[BACK]Return to pio.h CVS log [TXT][DIR] Up to [local] / sys / arch / arm / include

Annotation of sys/arch/arm/include/pio.h, Revision 1.1.1.1

1.1       nbrk        1: /*     $OpenBSD: pio.h,v 1.1 2004/02/01 05:09:49 drahn Exp $   */
                      2: /*     $NetBSD: pio.h,v 1.1 2001/02/23 21:23:48 reinoud Exp $  */
                      3:
                      4: /*
                      5:  * Copyright 1997
                      6:  * Digital Equipment Corporation. All rights reserved.
                      7:  *
                      8:  * This software is furnished under license and may be used and
                      9:  * copied only in accordance with the following terms and conditions.
                     10:  * Subject to these conditions, you may download, copy, install,
                     11:  * use, modify and distribute this software in source and/or binary
                     12:  * form. No title or ownership is transferred hereby.
                     13:  *
                     14:  * 1) Any source code used, modified or distributed must reproduce
                     15:  *    and retain this copyright notice and list of conditions as
                     16:  *    they appear in the source file.
                     17:  *
                     18:  * 2) No right is granted to use any trade name, trademark, or logo of
                     19:  *    Digital Equipment Corporation. Neither the "Digital Equipment
                     20:  *    Corporation" name nor any trademark or logo of Digital Equipment
                     21:  *    Corporation may be used to endorse or promote products derived
                     22:  *    from this software without the prior written permission of
                     23:  *    Digital Equipment Corporation.
                     24:  *
                     25:  * 3) This software is provided "AS-IS" and any express or implied
                     26:  *    warranties, including but not limited to, any implied warranties
                     27:  *    of merchantability, fitness for a particular purpose, or
                     28:  *    non-infringement are disclaimed. In no event shall DIGITAL be
                     29:  *    liable for any damages whatsoever, and in particular, DIGITAL
                     30:  *    shall not be liable for special, indirect, consequential, or
                     31:  *    incidental damages or damages for lost profits, loss of
                     32:  *    revenue or loss of use, whether such damages arise in contract,
                     33:  *    negligence, tort, under statute, in equity, at law or otherwise,
                     34:  *    even if advised of the possibility of such damage.
                     35:  */
                     36:
                     37: #ifndef _ARM32_PIO_H_
                     38: #define _ARM32_PIO_H_
                     39:
                     40: #include <machine/bus.h>
                     41:
                     42: extern struct bus_space isa_io_bs_tag;
                     43:
                     44: #define        inb(port)        bus_space_read_1( &isa_io_bs_tag, (bus_space_handle_t)isa_io_bs_tag.bs_cookie, (port))
                     45: #define        outb(port, byte) bus_space_write_1(&isa_io_bs_tag, (bus_space_handle_t)isa_io_bs_tag.bs_cookie, (port), (byte))
                     46:
                     47: #endif /* _ARM32_PIO_H_ */

CVSweb