Lines Matching +full:0 +full:xcf8

36 #define TOPAZ_ASR_TOGGLE	0x40
37 #define TOPAZ_ASR_DISABLE 0x80
40 #define PEARL_BASE 0xe04
41 #define PEARL_WRITE 0xe06
42 #define PEARL_READ 0xe07
44 #define PEARL_ASR_DISABLE_MASK 0x80 /* bit 7: disable = 1, enable = 0 */
45 #define PEARL_ASR_TOGGLE_MASK 0x40 /* bit 6: 0, then 1, then 0 */
48 #define JASPER_ASR_REG_OFFSET 0x38
50 #define JASPER_ASR_DISABLE_MASK 0x01 /* bit 0: disable = 1, enable = 0 */
51 #define JASPER_ASR_TOGGLE_MASK 0x02 /* bit 1: 0, then 1, then 0 */
53 #define JUNIPER_BASE_ADDRESS 0x54b /* Base address of Juniper ASR */
54 #define JUNIPER_ASR_DISABLE_MASK 0x01 /* bit 0: disable = 1 enable = 0 */
55 #define JUNIPER_ASR_TOGGLE_MASK 0x02 /* bit 1: 0, then 1, then 0 */
57 #define SPRUCE_BASE_ADDRESS 0x118e /* Base address of Spruce ASR */
58 #define SPRUCE_ASR_DISABLE_MASK 0x01 /* bit 1: disable = 1 enable = 0 */
59 #define SPRUCE_ASR_TOGGLE_MASK 0x02 /* bit 0: 0, then 1, then 0 */
150 (WRITE 0x07 TO BOTH 0x2E and 0x2F) */ in asr_get_base_address()
151 outb(0x07, 0x2e); in asr_get_base_address()
152 outb(0x07, 0x2f); in asr_get_base_address()
155 outb(0x60, 0x2e); in asr_get_base_address()
156 high = inb(0x2f); in asr_get_base_address()
159 outb(0x61, 0x2e); in asr_get_base_address()
160 low = inb(0x2f); in asr_get_base_address()
171 #if 0 in asr_get_base_address()
174 pdev = pci_get_bus_and_slot(0, DEVFN(0x1f, 0)); in asr_get_base_address()
177 pci_read_config_dword(pdev, 0x58, &r); in asr_get_base_address()
178 asr_base = r & 0xFFFE; in asr_get_base_address()
187 outl(0x8000f858, 0xcf8); in asr_get_base_address()
189 /* BUS 0, Slot 1F, fnc 0, offset 58 */ in asr_get_base_address()
196 asr_base = inl(0xcfc) & 0xfffe; in asr_get_base_address()
242 return 0; in asr_get_base_address()
254 asr_expect_close = 0; in asr_write()
256 for (i = 0; i != count; i++) { in asr_write()
282 return copy_to_user(argp, &ident, sizeof(ident)) ? -EFAULT : 0; in asr_ioctl()
285 return put_user(0, p); in asr_ioctl()
293 retval = 0; in asr_ioctl()
298 retval = 0; in asr_ioctl()
304 return 0; in asr_ioctl()
319 if (test_and_set_bit(0, &asr_is_open)) in asr_open()
336 clear_bit(0, &asr_is_open); in asr_release()
337 asr_expect_close = 0; in asr_release()
338 return 0; in asr_release()
391 if (rc < 0) { in ibmasr_init()
397 return 0; in ibmasr_init()
413 module_param(nowayout, bool, 0);