Lines Matching refs:port
260 /* enable configuration space accesses and return data port address */
333 * Writing a 0 to the address port can apparently
348 int port;
351 port = pci_cfgenable(bus, slot, func, reg, bytes);
352 if (port != 0) {
355 data = inb(port);
358 data = inw(port);
361 data = inl(port);
373 int port;
376 port = pci_cfgenable(bus, slot, func, reg, bytes);
377 if (port != 0) {
380 outb(port, data);
383 outw(port, data);
386 outl(port, data);
402 int port;
411 port = pci_cfgenable(0, device, 0, 0, 4);
412 id = inl(port);
416 port = pci_cfgenable(0, device, 0, 8, 4);
417 class = inl(port) >> 8;
423 port = pci_cfgenable(0, device, 0, 14, 1);
424 header = inb(port);
453 printf("pci_open(1):\tmode 1 addr port (0x0cf8) is 0x%08x\n",
491 printf("pci_open(2):\tmode 2 enable port (0x0cf8) is 0x%02x\n",