diff options
author | nyan <nyan@FreeBSD.org> | 2001-07-14 04:14:29 +0000 |
---|---|---|
committer | nyan <nyan@FreeBSD.org> | 2001-07-14 04:14:29 +0000 |
commit | f1fc85923f0b4dd1d520dc0bf138decbd9a16dc6 (patch) | |
tree | 6275887124044ee38b22bcbcc29876243941026d /sys | |
parent | 81a72cd354d04ca32ff2c2965440c3972df1491d (diff) | |
download | FreeBSD-src-f1fc85923f0b4dd1d520dc0bf138decbd9a16dc6.zip FreeBSD-src-f1fc85923f0b4dd1d520dc0bf138decbd9a16dc6.tar.gz |
Added epson_inw function.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/pc98/pc98/epsonio.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/pc98/pc98/epsonio.h b/sys/pc98/pc98/epsonio.h index ad820bf..105c9b8 100644 --- a/sys/pc98/pc98/epsonio.h +++ b/sys/pc98/pc98/epsonio.h @@ -51,6 +51,17 @@ epson_outb(u_int port, u_char data) outb(0x43f, 0x40); } +static __inline u_int16_t +epson_inw(u_int port) +{ + u_int16_t data; + + outb(0x43f, 0x42); + data = inw(port); + outb(0x43f, 0x40); + return (data); +} + static __inline void epson_insw(u_int port, void *addr, size_t cnt) { |