Added epson_inw function.
This commit is contained in:
parent
c713c25620
commit
cde2e82802
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user