Lines Matching +full:0 +full:x1fff
18 #define PCI_VENDOR_ID_FORTEMEDIA 0x1319
19 #define PCI_DEVICE_ID_FM801_GP 0x0802
34 *buttons = (~w >> 14) & 0x03; in fm801_gp_cooked_read()
35 axes[0] = (w == 0xffff) ? -1 : ((w & 0x1fff) << 5); in fm801_gp_cooked_read()
37 axes[1] = (w == 0xffff) ? -1 : ((w & 0x1fff) << 5); in fm801_gp_cooked_read()
39 *buttons |= ((~w >> 14) & 0x03) << 2; in fm801_gp_cooked_read()
40 axes[2] = (w == 0xffff) ? -1 : ((w & 0x1fff) << 5); in fm801_gp_cooked_read()
42 axes[3] = (w == 0xffff) ? -1 : ((w & 0x1fff) << 5); in fm801_gp_cooked_read()
43 outw(0xff, gameport->io); /* reset */ in fm801_gp_cooked_read()
45 return 0; in fm801_gp_cooked_read()
54 return 0; in fm801_gp_open()
57 return 0; in fm801_gp_open()
62 return 0; in fm801_gp_open()
90 port->io = pci_resource_start(pci, 0); in fm801_gp_probe()
93 gp->res_port = request_region(port->io, 0x10, "FM801 GP"); in fm801_gp_probe()
95 printk(KERN_DEBUG "fm801-gp: unable to grab region 0x%x-0x%x\n", in fm801_gp_probe()
96 port->io, port->io + 0x0f); in fm801_gp_probe()
103 outb(0x60, port->io + 0x0d); /* enable joystick 1 and 2 */ in fm801_gp_probe()
106 return 0; in fm801_gp_probe()
128 { PCI_VENDOR_ID_FORTEMEDIA, PCI_DEVICE_ID_FM801_GP, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 },
129 { 0 }