Changeset View
Changeset View
Standalone View
Standalone View
head/sys/x86/pci/qpi.c
Show First 20 Lines • Show All 212 Lines • ▼ Show 20 Lines | qpi_pcib_probe(device_t dev) | ||||
device_set_desc(dev, "QPI Host-PCI bridge"); | device_set_desc(dev, "QPI Host-PCI bridge"); | ||||
return (BUS_PROBE_SPECIFIC); | return (BUS_PROBE_SPECIFIC); | ||||
} | } | ||||
static int | static int | ||||
qpi_pcib_attach(device_t dev) | qpi_pcib_attach(device_t dev) | ||||
{ | { | ||||
device_add_child(dev, "pci", pcib_get_bus(dev)); | device_add_child(dev, "pci", -1); | ||||
return (bus_generic_attach(dev)); | return (bus_generic_attach(dev)); | ||||
} | } | ||||
static int | static int | ||||
qpi_pcib_read_ivar(device_t dev, device_t child, int which, uintptr_t *result) | qpi_pcib_read_ivar(device_t dev, device_t child, int which, uintptr_t *result) | ||||
{ | { | ||||
switch (which) { | switch (which) { | ||||
▲ Show 20 Lines • Show All 75 Lines • Show Last 20 Lines |