Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/bhyve/pci_emul.c
Context not available. | |||||
} else { | } else { | ||||
x = *eax; | x = *eax; | ||||
cfgenable = (x & CONF1_ENABLE) == CONF1_ENABLE; | cfgenable = (x & CONF1_ENABLE) == CONF1_ENABLE; | ||||
cfgoff = x & PCI_REGMAX; | cfgoff = (x & PCI_REGMAX) & ~0x03; | ||||
cfgfunc = (x >> 8) & PCI_FUNCMAX; | cfgfunc = (x >> 8) & PCI_FUNCMAX; | ||||
cfgslot = (x >> 11) & PCI_SLOTMAX; | cfgslot = (x >> 11) & PCI_SLOTMAX; | ||||
cfgbus = (x >> 16) & PCI_BUSMAX; | cfgbus = (x >> 16) & PCI_BUSMAX; | ||||
Context not available. |