1132956Smarkm/*-
2132956Smarkm * Copyright (c) 2004 Mark R V Murray
3132956Smarkm * All rights reserved.
4132956Smarkm *
5132956Smarkm * Redistribution and use in source and binary forms, with or without
6132956Smarkm * modification, are permitted provided that the following conditions
7132956Smarkm * are met:
8132956Smarkm * 1. Redistributions of source code must retain the above copyright
9132956Smarkm *    notice, this list of conditions and the following disclaimer
10132956Smarkm *    in this position and unchanged.
11132956Smarkm * 2. Redistributions in binary form must reproduce the above copyright
12132956Smarkm *    notice, this list of conditions and the following disclaimer in the
13132956Smarkm *    documentation and/or other materials provided with the distribution.
14132956Smarkm *
15132956Smarkm * THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR
16132956Smarkm * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17132956Smarkm * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18132956Smarkm * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19132956Smarkm * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20132956Smarkm * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21132956Smarkm * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22132956Smarkm * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23132956Smarkm * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24132956Smarkm * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25132956Smarkm *
26132956Smarkm * $FreeBSD$
27132956Smarkm */
28207329Sattilio#ifndef _MACHINE_IODEV_H_
29207329Sattilio#define	_MACHINE_IODEV_H_
30132956Smarkm
31207329Sattilio#ifdef _KERNEL
32207329Sattilio#include <machine/cpufunc.h>
33207329Sattilio
34207329Sattilio#define	iodev_read_1	inb
35207329Sattilio#define	iodev_read_2	inw
36207329Sattilio#define	iodev_read_4	inl
37207329Sattilio#define	iodev_write_1	outb
38207329Sattilio#define	iodev_write_2	outw
39207329Sattilio#define	iodev_write_4	outl
40207329Sattilio
41207329Sattilioint	 iodev_open(struct thread *td);
42207329Sattilioint	 iodev_close(struct thread *td);
43207329Sattilioint	 iodev_ioctl(u_long cmd, caddr_t data);
44207329Sattilio
45207329Sattilio#endif /* _KERNEL */
46207329Sattilio#endif /* _MACHINE_IODEV_H_ */
47