drm/i915: range-restricted eviction support
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / drivers / net / irda / w83977af.h
blob04476c2e91210bd693b1dec6391cdcc67c574aa1
1 #ifndef W83977AF_H
2 #define W83977AF_H
4 #define W977_EFIO_BASE 0x370
5 #define W977_EFIO2_BASE 0x3f0
6 #define W977_DEVICE_IR 0x06
9 /*
10 * Enter extended function mode
12 static inline void w977_efm_enter(unsigned int efio)
14 outb(0x87, efio);
15 outb(0x87, efio);
19 * Select a device to configure
22 static inline void w977_select_device(__u8 devnum, unsigned int efio)
24 outb(0x07, efio);
25 outb(devnum, efio+1);
28 /*
29 * Write a byte to a register
31 static inline void w977_write_reg(__u8 reg, __u8 value, unsigned int efio)
33 outb(reg, efio);
34 outb(value, efio+1);
38 * read a byte from a register
40 static inline __u8 w977_read_reg(__u8 reg, unsigned int efio)
42 outb(reg, efio);
43 return inb(efio+1);
47 * Exit extended function mode
49 static inline void w977_efm_exit(unsigned int efio)
51 outb(0xAA, efio);
53 #endif