Lines Matching defs:spc
79 struct sti_pci_softc *spc = (void *)self;
82 spc->sc_pc = paa->pa_pc;
83 spc->sc_tag = paa->pa_tag;
84 spc->sc_base.sc_enable_rom = sti_pci_enable_rom;
85 spc->sc_base.sc_disable_rom = sti_pci_disable_rom;
89 if (sti_check_rom(spc, paa) != 0)
93 if (sti_pci_is_console(paa, spc->sc_base.bases) != 0)
94 spc->sc_base.sc_flags |= STI_CONSOLE;
95 if (sti_attach_common(&spc->sc_base, paa->pa_iot, paa->pa_memt,
96 spc->sc_romh, STI_CODEBASE_MAIN) == 0)
97 startuphook_establish(sti_end_attach, spc);
106 struct sti_pci_softc *spc = (struct sti_pci_softc *)sc;
110 address = pci_conf_read(spc->sc_pc, spc->sc_tag, PCI_ROM_REG);
112 pci_conf_write(spc->sc_pc, spc->sc_tag, PCI_ROM_REG, address);
123 struct sti_pci_softc *spc = (struct sti_pci_softc *)sc;
127 address = pci_conf_read(spc->sc_pc, spc->sc_tag, PCI_ROM_REG);
129 pci_conf_write(spc->sc_pc, spc->sc_tag, PCI_ROM_REG, address);
210 sti_check_rom(struct sti_pci_softc *spc, struct pci_attach_args *pa)
212 struct sti_softc *sc = &spc->sc_base;
305 stiromsize, 0, &spc->sc_romh);
318 (bus_addr_t)bus_space_vaddr(pa->pa_memt, spc->sc_romh) -