Changeset View
Changeset View
Standalone View
Standalone View
head/sys/mips/atheros/ar71xx_pci.c
Show First 20 Lines • Show All 456 Lines • ▼ Show 20 Lines | #ifdef AR71XX_ATH_EEPROM | ||||
* Hard-code a check for slot 17 and 18 - these are | * Hard-code a check for slot 17 and 18 - these are | ||||
* the two PCI slots which may have a PCI device that | * the two PCI slots which may have a PCI device that | ||||
* requires "fixing". | * requires "fixing". | ||||
*/ | */ | ||||
ar71xx_pci_slot_fixup(dev, 0, 17, 0); | ar71xx_pci_slot_fixup(dev, 0, 17, 0); | ||||
ar71xx_pci_slot_fixup(dev, 0, 18, 0); | ar71xx_pci_slot_fixup(dev, 0, 18, 0); | ||||
#endif /* AR71XX_ATH_EEPROM */ | #endif /* AR71XX_ATH_EEPROM */ | ||||
device_add_child(dev, "pci", busno); | device_add_child(dev, "pci", -1); | ||||
return (bus_generic_attach(dev)); | return (bus_generic_attach(dev)); | ||||
} | } | ||||
static int | static int | ||||
ar71xx_pci_read_ivar(device_t dev, device_t child, int which, | ar71xx_pci_read_ivar(device_t dev, device_t child, int which, | ||||
uintptr_t *result) | uintptr_t *result) | ||||
{ | { | ||||
struct ar71xx_pci_softc *sc = device_get_softc(dev); | struct ar71xx_pci_softc *sc = device_get_softc(dev); | ||||
▲ Show 20 Lines • Show All 233 Lines • Show Last 20 Lines |