Lines Matching refs:slot

51 static uint32_t	pci_docfgregread(int bus, int slot, int func, int reg,
53 static int pciereg_cfgread(int bus, unsigned slot, unsigned func,
55 static void pciereg_cfgwrite(int bus, unsigned slot, unsigned func,
57 static int pcireg_cfgread(int bus, int slot, int func, int reg, int bytes);
58 static void pcireg_cfgwrite(int bus, int slot, int func, int reg, int data, int bytes);
123 pci_docfgregread(int bus, int slot, int func, int reg, int bytes)
128 (bus != 0 || !(1 << slot & pcie_badslots)))
129 return (pciereg_cfgread(bus, slot, func, reg, bytes));
131 return (pcireg_cfgread(bus, slot, func, reg, bytes));
138 pci_cfgregread(int bus, int slot, int func, int reg, int bytes)
151 line = pci_docfgregread(bus, slot, func, PCIR_INTLINE, 1);
156 return (pci_docfgregread(bus, slot, func, reg, bytes));
163 pci_cfgregwrite(int bus, int slot, int func, int reg, u_int32_t data, int bytes)
168 (bus != 0 || !(1 << slot & pcie_badslots)))
169 pciereg_cfgwrite(bus, slot, func, reg, data, bytes);
171 pcireg_cfgwrite(bus, slot, func, reg, data, bytes);
180 pci_cfgenable(unsigned bus, unsigned slot, unsigned func, int reg, int bytes)
184 if (bus <= PCI_BUSMAX && slot <= PCI_SLOTMAX && func <= PCI_FUNCMAX &&
187 outl(CONF1_ADDR_PORT, (1 << 31) | (bus << 16) | (slot << 11)
206 pcireg_cfgread(int bus, int slot, int func, int reg, int bytes)
212 port = pci_cfgenable(bus, slot, func, reg, bytes);
232 pcireg_cfgwrite(int bus, int slot, int func, int reg, int data, int bytes)
237 port = pci_cfgenable(bus, slot, func, reg, bytes);
259 int slot;
284 for (slot = 0; slot <= PCI_SLOTMAX; slot++) {
285 val1 = pcireg_cfgread(0, slot, 0, 0, 4);
289 val2 = pciereg_cfgread(0, slot, 0, 0, 4);
291 pcie_badslots |= (1 << slot);
305 #define PCIE_VADDR(base, reg, bus, slot, func) \
308 (((slot) & 0x1f) << 15) | \
313 pciereg_cfgread(int bus, unsigned slot, unsigned func, unsigned reg,
319 if (bus < pcie_minbus || bus > pcie_maxbus || slot > PCI_SLOTMAX ||
323 va = PCIE_VADDR(pcie_base, reg, bus, slot, func);
344 pciereg_cfgwrite(int bus, unsigned slot, unsigned func, unsigned reg, int data,
349 if (bus < pcie_minbus || bus > pcie_maxbus || slot > PCI_SLOTMAX ||
353 va = PCIE_VADDR(pcie_base, reg, bus, slot, func);