Home | History | Annotate | Download | only in pci

Lines Matching refs:spc

98 	struct sti_pci_softc *spc = device_private(self);
102 spc->sc_dev = self;
104 spc->sc_pc = paa->pa_pc;
105 spc->sc_tag = paa->pa_tag;
106 spc->sc_base.sc_dev = self;
107 spc->sc_base.sc_enable_rom = sti_pci_enable_rom;
108 spc->sc_base.sc_disable_rom = sti_pci_disable_rom;
112 if (sti_check_rom(spc, paa) != 0)
116 ret = sti_pci_is_console(paa, spc->sc_base. bases);
118 spc->sc_base.sc_flags |= STI_CONSOLE;
120 ret = sti_attach_common(&spc->sc_base, paa->pa_iot, paa->pa_memt,
121 spc->sc_romh, STI_CODEBASE_MAIN);
129 struct sti_pci_softc *spc = device_private(dev);
130 struct sti_softc *sc = &spc->sc_base;
140 sti_check_rom(struct sti_pci_softc *spc, struct pci_attach_args *pa)
142 struct sti_softc *sc = &spc->sc_base;
174 sti_pci_disable_rom_internal(spc);
181 sti_pci_enable_rom_internal(spc);
188 sti_pci_disable_rom_internal(spc);
204 sti_pci_disable_rom_internal(spc);
218 sti_pci_disable_rom_internal(spc);
221 sti_pci_enable_rom_internal(spc);
235 sti_pci_disable_rom_internal(spc);
248 sti_pci_disable_rom_internal(spc);
286 sti_pci_enable_rom_internal(spc);
305 sti_pci_disable_rom_internal(spc);
316 stiromsize, 0, &spc->sc_romh);
322 sti_pci_disable_rom_internal(spc);
330 sti_pci_disable_rom_internal(spc);
382 sti_pci_enable_rom_internal(struct sti_pci_softc *spc)
386 KASSERT(spc != NULL);
388 address = pci_conf_read(spc->sc_pc, spc->sc_tag, PCI_MAPREG_ROM);
390 pci_conf_write(spc->sc_pc, spc->sc_tag, PCI_MAPREG_ROM, address);
396 struct sti_pci_softc *spc = device_private(sc->sc_dev);
399 sti_pci_enable_rom_internal(spc);
408 sti_pci_disable_rom_internal(struct sti_pci_softc *spc)
412 KASSERT(spc != NULL);
414 address = pci_conf_read(spc->sc_pc, spc->sc_tag, PCI_MAPREG_ROM);
416 pci_conf_write(spc->sc_pc, spc->sc_tag, PCI_MAPREG_ROM, address);
422 struct sti_pci_softc *spc = device_private(sc->sc_dev);
425 sti_pci_disable_rom_internal(spc);