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