11.3Smatt/* $NetBSD: pio.h,v 1.3 2014/01/29 00:42:15 matt Exp $ */ 21.1Sreinoud 31.1Sreinoud/* 41.1Sreinoud * Copyright 1997 51.1Sreinoud * Digital Equipment Corporation. All rights reserved. 61.1Sreinoud * 71.1Sreinoud * This software is furnished under license and may be used and 81.1Sreinoud * copied only in accordance with the following terms and conditions. 91.1Sreinoud * Subject to these conditions, you may download, copy, install, 101.1Sreinoud * use, modify and distribute this software in source and/or binary 111.1Sreinoud * form. No title or ownership is transferred hereby. 121.1Sreinoud * 131.1Sreinoud * 1) Any source code used, modified or distributed must reproduce 141.1Sreinoud * and retain this copyright notice and list of conditions as 151.1Sreinoud * they appear in the source file. 161.1Sreinoud * 171.1Sreinoud * 2) No right is granted to use any trade name, trademark, or logo of 181.1Sreinoud * Digital Equipment Corporation. Neither the "Digital Equipment 191.1Sreinoud * Corporation" name nor any trademark or logo of Digital Equipment 201.1Sreinoud * Corporation may be used to endorse or promote products derived 211.1Sreinoud * from this software without the prior written permission of 221.1Sreinoud * Digital Equipment Corporation. 231.1Sreinoud * 241.1Sreinoud * 3) This software is provided "AS-IS" and any express or implied 251.1Sreinoud * warranties, including but not limited to, any implied warranties 261.1Sreinoud * of merchantability, fitness for a particular purpose, or 271.1Sreinoud * non-infringement are disclaimed. In no event shall DIGITAL be 281.1Sreinoud * liable for any damages whatsoever, and in particular, DIGITAL 291.1Sreinoud * shall not be liable for special, indirect, consequential, or 301.1Sreinoud * incidental damages or damages for lost profits, loss of 311.1Sreinoud * revenue or loss of use, whether such damages arise in contract, 321.1Sreinoud * negligence, tort, under statute, in equity, at law or otherwise, 331.1Sreinoud * even if advised of the possibility of such damage. 341.1Sreinoud */ 351.1Sreinoud 361.3Smatt#ifndef _ARM_PIO_H_ 371.3Smatt#define _ARM_PIO_H_ 381.1Sreinoud 391.2Sdyoung#include <sys/bus.h> 401.1Sreinoud 411.1Sreinoudextern struct bus_space isa_io_bs_tag; 421.1Sreinoud 431.1Sreinoud#define inb(port) bus_space_read_1( &isa_io_bs_tag, (bus_space_handle_t)isa_io_bs_tag.bs_cookie, (port)) 441.1Sreinoud#define outb(port, byte) bus_space_write_1(&isa_io_bs_tag, (bus_space_handle_t)isa_io_bs_tag.bs_cookie, (port), (byte)) 451.1Sreinoud 461.3Smatt#endif /* _ARM_PIO_H_ */ 47