Deleted Added
full compact
26c26
< * $FreeBSD: head/sys/amd64/include/iodev.h 202097 2010-01-11 18:10:13Z marcel $
---
> * $FreeBSD: head/sys/amd64/include/iodev.h 207329 2010-04-28 15:38:01Z attilio $
27a28,29
> #ifndef _MACHINE_IODEV_H_
> #define _MACHINE_IODEV_H_
29,31c31,46
< d_open_t ioopen;
< d_close_t ioclose;
< d_ioctl_t ioioctl;
---
> #ifdef _KERNEL
> #include <machine/cpufunc.h>
>
> #define iodev_read_1 inb
> #define iodev_read_2 inw
> #define iodev_read_4 inl
> #define iodev_write_1 outb
> #define iodev_write_2 outw
> #define iodev_write_4 outl
>
> int iodev_open(struct thread *td);
> int iodev_close(struct thread *td);
> int iodev_ioctl(u_long cmd, caddr_t data);
>
> #endif /* _KERNEL */
> #endif /* _MACHINE_IODEV_H_ */