Lines Matching refs:spc

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