1*d0b3c59bSPatrick Mooney /*- 2*d0b3c59bSPatrick Mooney * Copyright (c) 2010 Marcel Moolenaar 3*d0b3c59bSPatrick Mooney * All rights reserved. 4*d0b3c59bSPatrick Mooney * 5*d0b3c59bSPatrick Mooney * Redistribution and use in source and binary forms, with or without 6*d0b3c59bSPatrick Mooney * modification, are permitted provided that the following conditions 7*d0b3c59bSPatrick Mooney * are met: 8*d0b3c59bSPatrick Mooney * 1. Redistributions of source code must retain the above copyright 9*d0b3c59bSPatrick Mooney * notice, this list of conditions and the following disclaimer. 10*d0b3c59bSPatrick Mooney * 2. Redistributions in binary form must reproduce the above copyright 11*d0b3c59bSPatrick Mooney * notice, this list of conditions and the following disclaimer in the 12*d0b3c59bSPatrick Mooney * documentation and/or other materials provided with the distribution. 13*d0b3c59bSPatrick Mooney * 14*d0b3c59bSPatrick Mooney * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15*d0b3c59bSPatrick Mooney * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16*d0b3c59bSPatrick Mooney * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17*d0b3c59bSPatrick Mooney * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18*d0b3c59bSPatrick Mooney * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19*d0b3c59bSPatrick Mooney * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20*d0b3c59bSPatrick Mooney * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21*d0b3c59bSPatrick Mooney * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22*d0b3c59bSPatrick Mooney * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23*d0b3c59bSPatrick Mooney * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24*d0b3c59bSPatrick Mooney * SUCH DAMAGE. 25*d0b3c59bSPatrick Mooney */ 26*d0b3c59bSPatrick Mooney 27*d0b3c59bSPatrick Mooney #ifndef _DEV_IODEV_H_ 28*d0b3c59bSPatrick Mooney #define _DEV_IODEV_H_ 29*d0b3c59bSPatrick Mooney 30*d0b3c59bSPatrick Mooney #define IODEV_PIO_READ 0 31*d0b3c59bSPatrick Mooney #define IODEV_PIO_WRITE 1 32*d0b3c59bSPatrick Mooney 33*d0b3c59bSPatrick Mooney struct iodev_pio_req { 34*d0b3c59bSPatrick Mooney u_int access; 35*d0b3c59bSPatrick Mooney u_int port; 36*d0b3c59bSPatrick Mooney u_int width; 37*d0b3c59bSPatrick Mooney u_int val; 38*d0b3c59bSPatrick Mooney }; 39*d0b3c59bSPatrick Mooney 40*d0b3c59bSPatrick Mooney #define IODEV_PIO _IOWR('I', 0, struct iodev_pio_req) 41*d0b3c59bSPatrick Mooney 42*d0b3c59bSPatrick Mooney #endif /* _DEV_IODEV_H_ */ 43