renamed "slot" to "device" for better wording

This commit is contained in:
Markus Fröschle
2013-11-05 20:52:20 +00:00
parent 5af37f21c3
commit bf1a8bef38
4 changed files with 36 additions and 26 deletions

View File

@@ -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_ */