renamed "slot" to "device" for better wording
This commit is contained in:
@@ -210,7 +210,7 @@ extern int16_t pci_unhook_interrupt(uint16_t handle);
|
||||
|
||||
#define PCI_HANDLE(bus, slot, function) (0 | ((bus & 0xff) << 8 | (slot & 0x1f) << 3 | (function & 7)))
|
||||
#define PCI_BUS_FROM_HANDLE(h) (((h) & 0xff00) >> 8)
|
||||
#define PCI_SLOT_FROM_HANDLE(h) (((h) & 0xf8) >> 3)
|
||||
#define PCI_DEVICE_FROM_HANDLE(h) (((h) & 0xf8) >> 3)
|
||||
#define PCI_FUNCTION_FROM_HANDLE(h) (((h) & 0x7))
|
||||
|
||||
#endif /* _PCI_H_ */
|
||||
|
||||
Reference in New Issue
Block a user