Changeset View
Changeset View
Standalone View
Standalone View
head/sys/arm/versatile/versatile_pci.c
Show First 20 Lines • Show All 260 Lines • ▼ Show 20 Lines | if ((vendordev_id == 0xffffffff) && | ||||
(class_id == 0xffffffff)) | (class_id == 0xffffffff)) | ||||
continue; | continue; | ||||
val = versatile_pci_conf_read_4((slot << 11) + PCIR_COMMAND); | val = versatile_pci_conf_read_4((slot << 11) + PCIR_COMMAND); | ||||
val |= PCIM_CMD_MEMEN | PCIM_CMD_PORTEN; | val |= PCIM_CMD_MEMEN | PCIM_CMD_PORTEN; | ||||
versatile_pci_conf_write_4((slot << 11) + PCIR_COMMAND, val); | versatile_pci_conf_write_4((slot << 11) + PCIR_COMMAND, val); | ||||
} | } | ||||
device_add_child(dev, "pci", 0); | device_add_child(dev, "pci", -1); | ||||
return (bus_generic_attach(dev)); | return (bus_generic_attach(dev)); | ||||
} | } | ||||
static int | static int | ||||
versatile_pci_read_ivar(device_t dev, device_t child, int which, | versatile_pci_read_ivar(device_t dev, device_t child, int which, | ||||
uintptr_t *result) | uintptr_t *result) | ||||
{ | { | ||||
struct versatile_pci_softc *sc = device_get_softc(dev); | struct versatile_pci_softc *sc = device_get_softc(dev); | ||||
▲ Show 20 Lines • Show All 244 Lines • Show Last 20 Lines |