Changeset View
Changeset View
Standalone View
Standalone View
head/sys/arm64/cavium/thunder_pcie_pem.c
Show First 20 Lines • Show All 177 Lines • ▼ Show 20 Lines | static driver_t thunder_pem_driver = { | ||||
thunder_pem_methods, | thunder_pem_methods, | ||||
sizeof(struct thunder_pem_softc), | sizeof(struct thunder_pem_softc), | ||||
}; | }; | ||||
static int | static int | ||||
thunder_pem_maxslots(device_t dev) | thunder_pem_maxslots(device_t dev) | ||||
{ | { | ||||
#if 0 | |||||
/* max slots per bus acc. to standard */ | /* max slots per bus acc. to standard */ | ||||
return (PCI_SLOTMAX); | return (PCI_SLOTMAX); | ||||
#else | |||||
/* | |||||
* ARM64TODO Workaround - otherwise an em(4) interface appears to be | |||||
* present on every PCI function on the bus to which it is connected | |||||
*/ | |||||
return (0); | |||||
#endif | |||||
} | } | ||||
static int | static int | ||||
thunder_pem_read_ivar(device_t dev, device_t child, int index, | thunder_pem_read_ivar(device_t dev, device_t child, int index, | ||||
uintptr_t *result) | uintptr_t *result) | ||||
{ | { | ||||
struct thunder_pem_softc *sc; | struct thunder_pem_softc *sc; | ||||
int secondary_bus = 0; | int secondary_bus = 0; | ||||
▲ Show 20 Lines • Show All 442 Lines • Show Last 20 Lines |