Lines Matching defs:port
84 struct gameport *port;
88 port = gameport_allocate_port();
89 if (!gp || !port) {
99 port->open = fm801_gp_open;
101 port->cooked_read = fm801_gp_cooked_read;
103 gameport_set_name(port, "FM801");
104 gameport_set_phys(port, "pci%s/gameport0", pci_name(pci));
105 port->dev.parent = &pci->dev;
106 port->io = pci_resource_start(pci, 0);
108 gp->gameport = port;
109 gp->res_port = request_region(port->io, 0x10, "FM801 GP");
112 port->io, port->io + 0x0f);
119 outb(0x60, port->io + 0x0d); /* enable joystick 1 and 2 */
120 gameport_register_port(port);
127 gameport_free_port(port);