Lines Matching defs:port
68 struct gameport *port;
72 port = gameport_allocate_port();
73 if (!gp || !port) {
83 port->open = fm801_gp_open;
85 port->cooked_read = fm801_gp_cooked_read;
87 gameport_set_name(port, "FM801");
88 gameport_set_phys(port, "pci%s/gameport0", pci_name(pci));
89 port->dev.parent = &pci->dev;
90 port->io = pci_resource_start(pci, 0);
92 gp->gameport = port;
93 gp->res_port = request_region(port->io, 0x10, "FM801 GP");
96 port->io, port->io + 0x0f);
103 outb(0x60, port->io + 0x0d); /* enable joystick 1 and 2 */
104 gameport_register_port(port);
111 gameport_free_port(port);