Lines Matching refs:device
39 * The "mechanism 2" interface only has 4 bits for device number. To
73 pci_mech2_getb(int bus, int device, int function, int reg)
78 if (device >= PCI_MAX_DEVS_2)
82 val = inb(PCI_CADDR2(device, reg));
89 pci_mech2_getw(int bus, int device, int function, int reg)
94 if (device >= PCI_MAX_DEVS_2)
98 val = inw(PCI_CADDR2(device, reg));
105 pci_mech2_getl(int bus, int device, int function, int reg)
110 if (device >= PCI_MAX_DEVS_2)
114 val = inl(PCI_CADDR2(device, reg));
121 pci_mech2_putb(int bus, int device, int function, int reg, uint8_t val)
125 if (device >= PCI_MAX_DEVS_2)
129 outb(PCI_CADDR2(device, reg), val);
134 pci_mech2_putw(int bus, int device, int function, int reg, uint16_t val)
138 if (device >= PCI_MAX_DEVS_2)
142 outw(PCI_CADDR2(device, reg), val);
147 pci_mech2_putl(int bus, int device, int function, int reg, uint32_t val)
151 if (device >= PCI_MAX_DEVS_2)
155 outl(PCI_CADDR2(device, reg), val);