Lines Matching defs:port
24 int pci_handle_pio_write(struct pci *pci, uint16_t port, enum opsize size,
29 switch(port) {
30 case 0xcf8: // PCI config address port
39 case 0xcfc: // PCI config data port
44 if(port != 0xcfc) {
48 VMKIT_PCI_DEBUG("wrote %x to 0x%x\n", val, port);
67 VMKIT_PCI_DEBUG("write to invalid port\n");
74 int pci_handle_pio_read(struct pci *pci, uint16_t port, enum opsize size,
79 switch(port) {
80 case 0xcf8: // PCI config address port
85 case 0xcfc: // PCI config data port
109 *val >>= (port - 0xcfc) * 8;
111 VMKIT_PCI_DEBUG("read %x from 0x%x\n", *val, port);
115 VMKIT_PCI_DEBUG("read from invalid port\n");