Lines Matching +full:0 +full:x2f

37 #define TOPAZ_ASR_TOGGLE	0x40
38 #define TOPAZ_ASR_DISABLE 0x80
41 #define PEARL_BASE 0xe04
42 #define PEARL_WRITE 0xe06
43 #define PEARL_READ 0xe07
45 #define PEARL_ASR_DISABLE_MASK 0x80 /* bit 7: disable = 1, enable = 0 */
46 #define PEARL_ASR_TOGGLE_MASK 0x40 /* bit 6: 0, then 1, then 0 */
49 #define JASPER_ASR_REG_OFFSET 0x38
51 #define JASPER_ASR_DISABLE_MASK 0x01 /* bit 0: disable = 1, enable = 0 */
52 #define JASPER_ASR_TOGGLE_MASK 0x02 /* bit 1: 0, then 1, then 0 */
54 #define JUNIPER_BASE_ADDRESS 0x54b /* Base address of Juniper ASR */
55 #define JUNIPER_ASR_DISABLE_MASK 0x01 /* bit 0: disable = 1 enable = 0 */
56 #define JUNIPER_ASR_TOGGLE_MASK 0x02 /* bit 1: 0, then 1, then 0 */
58 #define SPRUCE_BASE_ADDRESS 0x118e /* Base address of Spruce ASR */
59 #define SPRUCE_ASR_DISABLE_MASK 0x01 /* bit 1: disable = 1 enable = 0 */
60 #define SPRUCE_ASR_TOGGLE_MASK 0x02 /* bit 0: 0, then 1, then 0 */
151 (WRITE 0x07 TO BOTH 0x2E and 0x2F) */ in asr_get_base_address()
152 outb(0x07, 0x2e); in asr_get_base_address()
153 outb(0x07, 0x2f); in asr_get_base_address()
156 outb(0x60, 0x2e); in asr_get_base_address()
157 high = inb(0x2f); in asr_get_base_address()
160 outb(0x61, 0x2e); in asr_get_base_address()
161 low = inb(0x2f); in asr_get_base_address()
172 #if 0 in asr_get_base_address()
175 pdev = pci_get_bus_and_slot(0, DEVFN(0x1f, 0)); in asr_get_base_address()
178 pci_read_config_dword(pdev, 0x58, &r); in asr_get_base_address()
179 asr_base = r & 0xFFFE; in asr_get_base_address()
188 outl(0x8000f858, 0xcf8); in asr_get_base_address()
190 /* BUS 0, Slot 1F, fnc 0, offset 58 */ in asr_get_base_address()
197 asr_base = inl(0xcfc) & 0xfffe; in asr_get_base_address()
243 return 0; in asr_get_base_address()
255 asr_expect_close = 0; in asr_write()
257 for (i = 0; i != count; i++) { in asr_write()
283 return copy_to_user(argp, &ident, sizeof(ident)) ? -EFAULT : 0; in asr_ioctl()
286 return put_user(0, p); in asr_ioctl()
294 retval = 0; in asr_ioctl()
299 retval = 0; in asr_ioctl()
305 return 0; in asr_ioctl()
320 if (test_and_set_bit(0, &asr_is_open)) in asr_open()
337 clear_bit(0, &asr_is_open); in asr_release()
338 asr_expect_close = 0; in asr_release()
339 return 0; in asr_release()
393 if (rc < 0) { in ibmasr_init()
399 return 0; in ibmasr_init()
415 module_param(nowayout, bool, 0);