pci_softc
DEFINE_CLASS_1(pci, acpi_pci_driver, acpi_pci_methods, sizeof(struct pci_softc),
struct ahc_pci_softc pci_softc;
ahc->bus_softc.pci_softc.devconfig =
ahc->bus_softc.pci_softc.command =
ahc->bus_softc.pci_softc.csize_lattime =
ahc->bus_softc.pci_softc.dscommand0 = ahc_inb(ahc, DSCOMMAND0);
ahc->bus_softc.pci_softc.dspcistatus = ahc_inb(ahc, DSPCISTATUS);
ahc->bus_softc.pci_softc.optionmode = ahc_inb(ahc, OPTIONMODE);
ahc->bus_softc.pci_softc.targcrccnt = ahc_inw(ahc, TARGCRCCNT);
ahc->bus_softc.pci_softc.crccontrol1 =
ahc->bus_softc.pci_softc.scbbaddr = ahc_inb(ahc, SCBBADDR);
ahc->bus_softc.pci_softc.dff_thrsh = ahc_inb(ahc, DFF_THRSH);
ahc_outb(ahc, DSCOMMAND0, ahc->bus_softc.pci_softc.dscommand0);
ahc_outb(ahc, DSPCISTATUS, ahc->bus_softc.pci_softc.dspcistatus);
ahc_outb(ahc, OPTIONMODE, ahc->bus_softc.pci_softc.optionmode);
ahc_outw(ahc, TARGCRCCNT, ahc->bus_softc.pci_softc.targcrccnt);
ahc->bus_softc.pci_softc.crccontrol1);
ahc_outb(ahc, SCBBADDR, ahc->bus_softc.pci_softc.scbbaddr);
ahc_outb(ahc, DFF_THRSH, ahc->bus_softc.pci_softc.dff_thrsh);
ahc->bus_softc.pci_softc.devconfig, /*bytes*/4);
ahc->bus_softc.pci_softc.command, /*bytes*/1);
ahc->bus_softc.pci_softc.csize_lattime,
DEFINE_CLASS_1(pci, ofw_pci_driver, ofw_pci_methods, sizeof(struct pci_softc),
DEFINE_CLASS_0(pci, pci_driver, pci_methods, sizeof(struct pci_softc));
struct pci_softc *sc;
struct pci_softc *sc;
struct pci_softc *sc;
struct pci_softc *sc = device_get_softc(bus);
DEFINE_CLASS_1(pci, tb_pci_driver, tb_pci_methods, sizeof(struct pci_softc),
sizeof(struct pci_softc), pci_driver);
sizeof(struct pci_softc), ofw_pcibus_driver);