Home | History | Annotate | Download | only in pci

Lines Matching refs:isc

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