Lines Matching refs:isc
112 struct agp_intel_softc *isc; in agp_intel_attach() local
116 isc = malloc(sizeof *isc, M_AGP, M_WAITOK|M_ZERO); in agp_intel_attach()
118 sc->as_chipc = isc; in agp_intel_attach()
120 if (pci_find_device(&isc->vga_pa, agp_intel_vgamatch) == 0) { in agp_intel_attach()
123 isc->chiptype = CHIP_INTEL; in agp_intel_attach()
131 free(isc, M_AGP); in agp_intel_attach()
136 switch (PCI_PRODUCT(isc->vga_pa.pa_id)) { in agp_intel_attach()
140 isc->chiptype = CHIP_I443; in agp_intel_attach()
143 isc->chiptype = CHIP_I840; in agp_intel_attach()
148 isc->chiptype = CHIP_I845; in agp_intel_attach()
151 isc->chiptype = CHIP_I850; in agp_intel_attach()
155 isc->chiptype = CHIP_I865; in agp_intel_attach()
163 isc->aperture_mask = pci_conf_read(sc->as_pc, sc->as_tag, in agp_intel_attach()
166 isc->initial_aperture = AGP_GET_APERTURE(sc); in agp_intel_attach()
183 isc->gatt = gatt; in agp_intel_attach()
194 struct agp_intel_softc *isc = sc->as_chipc; in agp_intel_init() local
195 struct agp_gatt *gatt = isc->gatt; in agp_intel_init()
203 switch (isc->chiptype) { in agp_intel_init()
216 switch (isc->chiptype) { in agp_intel_init()
248 switch (isc->chiptype) { in agp_intel_init()
278 struct agp_intel_softc *isc = sc->as_chipc;
290 AGP_SET_APERTURE(sc, isc->initial_aperture);
291 agp_free_gatt(sc, isc->gatt);
300 struct agp_intel_softc *isc = sc->as_chipc; in agp_intel_get_aperture() local
304 AGP_INTEL_APSIZE) & isc->aperture_mask; in agp_intel_get_aperture()
313 return (((apsize ^ isc->aperture_mask) << 22) | ((1 << 22) - 1)) + 1; in agp_intel_get_aperture()
319 struct agp_intel_softc *isc = sc->as_chipc; in agp_intel_set_aperture() local
325 apsize = ((aperture - 1) >> 22) ^ isc->aperture_mask; in agp_intel_set_aperture()
330 if ((((apsize ^ isc->aperture_mask) << 22) | in agp_intel_set_aperture()
343 struct agp_intel_softc *isc = sc->as_chipc; in agp_intel_bind_page() local
345 if (offset < 0 || offset >= (isc->gatt->ag_entries << AGP_PAGE_SHIFT)) in agp_intel_bind_page()
348 isc->gatt->ag_virtual[offset >> AGP_PAGE_SHIFT] = physical | 0x17; in agp_intel_bind_page()
355 struct agp_intel_softc *isc = sc->as_chipc; in agp_intel_unbind_page() local
357 if (offset < 0 || offset >= (isc->gatt->ag_entries << AGP_PAGE_SHIFT)) in agp_intel_unbind_page()
360 isc->gatt->ag_virtual[offset >> AGP_PAGE_SHIFT] = 0; in agp_intel_unbind_page()
367 struct agp_intel_softc *isc = sc->as_chipc; in agp_intel_flush_tlb() local
370 switch (isc->chiptype) { in agp_intel_flush_tlb()