Added epson_inw function.

This commit is contained in:
Yoshihiro Takahashi 2001-07-14 04:14:29 +00:00
parent c713c25620
commit cde2e82802

View File

@ -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)
{