iodev.h revision 207329
1117521Snjl/*- 2199337Sjkim * Copyright (c) 2010 Marcel Moolenaar 3199337Sjkim * All rights reserved. 4199337Sjkim * 5199337Sjkim * Redistribution and use in source and binary forms, with or without 6199337Sjkim * modification, are permitted provided that the following conditions 7199337Sjkim * are met: 8199337Sjkim * 1. Redistributions of source code must retain the above copyright 9199337Sjkim * notice, this list of conditions and the following disclaimer. 10199337Sjkim * 2. Redistributions in binary form must reproduce the above copyright 11199337Sjkim * notice, this list of conditions and the following disclaimer in the 12199337Sjkim * documentation and/or other materials provided with the distribution. 13199337Sjkim * 14199337Sjkim * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15199337Sjkim * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16199337Sjkim * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17199337Sjkim * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18199337Sjkim * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19199337Sjkim * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20199337Sjkim * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21199337Sjkim * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22199337Sjkim * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23199337Sjkim * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24199337Sjkim * SUCH DAMAGE. 25199337Sjkim * 26199337Sjkim * $FreeBSD: head/sys/dev/io/iodev.h 207329 2010-04-28 15:38:01Z attilio $ 27199337Sjkim */ 28199337Sjkim 29199337Sjkim#ifndef _DEV_IODEV_H_ 30199337Sjkim#define _DEV_IODEV_H_ 31199337Sjkim 32199337Sjkim#define IODEV_PIO_READ 0 33199337Sjkim#define IODEV_PIO_WRITE 1 34199337Sjkim 35199337Sjkimstruct iodev_pio_req { 36199337Sjkim u_int access; 37199337Sjkim u_int port; 38199337Sjkim u_int width; 39199337Sjkim u_int val; 40199337Sjkim}; 41199337Sjkim 42199337Sjkim#define IODEV_PIO _IOWR('I', 0, struct iodev_pio_req) 43199337Sjkim 44199337Sjkim#endif /* _DEV_IODEV_H_ */ 45199337Sjkim