Changeset View
Changeset View
Standalone View
Standalone View
head/sys/mips/atheros/qca955x_pci.c
Show First 20 Lines • Show All 356 Lines • ▼ Show 20 Lines | qca955x_pci_write_config(dev, 0, 0, 0, PCIR_BAR(0), | ||||
4); | 4); | ||||
/* Fixup internal PCI bridge */ | /* Fixup internal PCI bridge */ | ||||
qca955x_pci_write_config(dev, 0, 0, 0, PCIR_COMMAND, | qca955x_pci_write_config(dev, 0, 0, 0, PCIR_COMMAND, | ||||
PCIM_CMD_BUSMASTEREN | PCIM_CMD_MEMEN | PCIM_CMD_BUSMASTEREN | PCIM_CMD_MEMEN | ||||
| PCIM_CMD_SERRESPEN | PCIM_CMD_BACKTOBACK | | PCIM_CMD_SERRESPEN | PCIM_CMD_BACKTOBACK | ||||
| PCIM_CMD_PERRESPEN | PCIM_CMD_MWRICEN, 2); | | PCIM_CMD_PERRESPEN | PCIM_CMD_MWRICEN, 2); | ||||
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 | ||||
qca955x_pci_read_ivar(device_t dev, device_t child, int which, uintptr_t *result) | qca955x_pci_read_ivar(device_t dev, device_t child, int which, 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 234 Lines • Show Last 20 Lines |