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