Lines Matching +full:0 +full:xc00
48 #define REG_GARTCTRL 0
71 if (agp_find_caps(dev) == 0) in agp_via_match()
75 case 0x01981106: in agp_via_match()
77 case 0x02591106: in agp_via_match()
79 case 0x02691106: in agp_via_match()
81 case 0x02961106: in agp_via_match()
83 case 0x03051106: in agp_via_match()
85 case 0x03141106: in agp_via_match()
87 case 0x03241106: in agp_via_match()
89 case 0x03271106: in agp_via_match()
91 case 0x03641106: in agp_via_match()
93 case 0x03911106: in agp_via_match()
95 case 0x05011106: in agp_via_match()
97 case 0x05971106: in agp_via_match()
99 case 0x05981106: in agp_via_match()
101 case 0x06011106: in agp_via_match()
103 case 0x06051106: in agp_via_match()
105 case 0x06911106: in agp_via_match()
107 case 0x30911106: in agp_via_match()
109 case 0x30991106: in agp_via_match()
111 case 0x31011106: in agp_via_match()
113 case 0x31121106: in agp_via_match()
115 case 0x31161106: in agp_via_match()
117 case 0x31231106: in agp_via_match()
119 case 0x31281106: in agp_via_match()
121 case 0x31481106: in agp_via_match()
123 case 0x31561106: in agp_via_match()
125 case 0x31681106: in agp_via_match()
127 case 0x31891106: in agp_via_match()
129 case 0x32051106: in agp_via_match()
131 case 0x32081106: in agp_via_match()
133 case 0x32581106: in agp_via_match()
135 case 0xb1981106: in agp_via_match()
171 if (((capid >> 20) & 0x0f) >= 3) { in agp_via_attach()
173 if ((agpsel & (1 << 1)) == 0) in agp_via_attach()
204 pci_write_config(dev, sc->regs[REG_GARTCTRL], 0x0f, 4); in agp_via_attach()
219 return 0; in agp_via_attach()
229 pci_write_config(dev, sc->regs[REG_GARTCTRL], 0, 4); in agp_via_detach()
230 pci_write_config(dev, sc->regs[REG_ATTBASE], 0, 4); in agp_via_detach()
235 return 0; in agp_via_detach()
254 return (((apsize ^ 0xff) << 20) | ((1 << 20) - 1)) + 1; in agp_via_get_aperture()
256 apsize = pci_read_config(dev, sc->regs[REG_APSIZE], 2) & 0xfff; in agp_via_get_aperture()
258 case 0x800: in agp_via_get_aperture()
259 return 0x80000000; in agp_via_get_aperture()
260 case 0xc00: in agp_via_get_aperture()
261 return 0x40000000; in agp_via_get_aperture()
262 case 0xe00: in agp_via_get_aperture()
263 return 0x20000000; in agp_via_get_aperture()
264 case 0xf00: in agp_via_get_aperture()
265 return 0x10000000; in agp_via_get_aperture()
266 case 0xf20: in agp_via_get_aperture()
267 return 0x08000000; in agp_via_get_aperture()
268 case 0xf30: in agp_via_get_aperture()
269 return 0x04000000; in agp_via_get_aperture()
270 case 0xf38: in agp_via_get_aperture()
271 return 0x02000000; in agp_via_get_aperture()
272 case 0xf3c: in agp_via_get_aperture()
273 return 0x01000000; in agp_via_get_aperture()
274 case 0xf3e: in agp_via_get_aperture()
275 return 0x00800000; in agp_via_get_aperture()
276 case 0xf3f: in agp_via_get_aperture()
277 return 0x00400000; in agp_via_get_aperture()
279 device_printf(dev, "Invalid aperture setting 0x%x\n", in agp_via_get_aperture()
281 return 0; in agp_via_get_aperture()
296 apsize = ((aperture - 1) >> 20) ^ 0xff; in agp_via_set_aperture()
301 if ((((apsize ^ 0xff) << 20) | ((1 << 20) - 1)) + 1 != aperture) in agp_via_set_aperture()
307 case 0x80000000: in agp_via_set_aperture()
308 key = 0x800; in agp_via_set_aperture()
310 case 0x40000000: in agp_via_set_aperture()
311 key = 0xc00; in agp_via_set_aperture()
313 case 0x20000000: in agp_via_set_aperture()
314 key = 0xe00; in agp_via_set_aperture()
316 case 0x10000000: in agp_via_set_aperture()
317 key = 0xf00; in agp_via_set_aperture()
319 case 0x08000000: in agp_via_set_aperture()
320 key = 0xf20; in agp_via_set_aperture()
322 case 0x04000000: in agp_via_set_aperture()
323 key = 0xf30; in agp_via_set_aperture()
325 case 0x02000000: in agp_via_set_aperture()
326 key = 0xf38; in agp_via_set_aperture()
328 case 0x01000000: in agp_via_set_aperture()
329 key = 0xf3c; in agp_via_set_aperture()
331 case 0x00800000: in agp_via_set_aperture()
332 key = 0xf3e; in agp_via_set_aperture()
334 case 0x00400000: in agp_via_set_aperture()
335 key = 0xf3f; in agp_via_set_aperture()
344 ((val & ~0xfff) | key), 2); in agp_via_set_aperture()
346 return 0; in agp_via_set_aperture()
358 return 0; in agp_via_bind_page()
369 sc->gatt->ag_virtual[offset >> AGP_PAGE_SHIFT] = 0; in agp_via_unbind_page()
370 return 0; in agp_via_unbind_page()
380 pci_write_config(dev, sc->regs[REG_GARTCTRL], 0x8f, 4); in agp_via_flush_tlb()
381 pci_write_config(dev, sc->regs[REG_GARTCTRL], 0x0f, 4); in agp_via_flush_tlb()
411 { 0, 0 }
420 DRIVER_MODULE(agp_via, hostb, agp_via_driver, 0, 0);