Lines Matching +full:additional +full:- +full:devs
27 pci_read_config_dword(agp_bridge->dev, ALI_ATTBASE, &temp); in ali_fetch_size()
29 values = A_SIZE_32(agp_bridge->driver->aperture_sizes); in ali_fetch_size()
31 for (i = 0; i < agp_bridge->driver->num_aperture_sizes; i++) { in ali_fetch_size()
33 agp_bridge->previous_size = in ali_fetch_size()
34 agp_bridge->current_size = (void *) (values + i); in ali_fetch_size()
35 agp_bridge->aperture_size_idx = i; in ali_fetch_size()
47 pci_read_config_dword(agp_bridge->dev, ALI_TLBCTRL, &temp); in ali_tlbflush()
50 pci_write_config_dword(agp_bridge->dev, ALI_TAGCTRL, temp); in ali_tlbflush()
58 previous_size = A_SIZE_32(agp_bridge->previous_size); in ali_cleanup()
60 pci_read_config_dword(agp_bridge->dev, ALI_TLBCTRL, &temp); in ali_cleanup()
62 pci_write_config_dword(agp_bridge->dev, ALI_TAGCTRL, in ali_cleanup()
65 pci_read_config_dword(agp_bridge->dev, ALI_ATTBASE, &temp); in ali_cleanup()
66 pci_write_config_dword(agp_bridge->dev, ALI_ATTBASE, in ali_cleanup()
67 ((temp & 0x00000ff0) | previous_size->size_value)); in ali_cleanup()
75 current_size = A_SIZE_32(agp_bridge->current_size); in ali_configure()
78 pci_read_config_dword(agp_bridge->dev, ALI_ATTBASE, &temp); in ali_configure()
79 temp = (((temp & 0x00000ff0) | (agp_bridge->gatt_bus_addr & 0xfffff000)) in ali_configure()
80 | (current_size->size_value & 0xf)); in ali_configure()
81 pci_write_config_dword(agp_bridge->dev, ALI_ATTBASE, temp); in ali_configure()
84 pci_read_config_dword(agp_bridge->dev, ALI_TLBCTRL, &temp); in ali_configure()
85 pci_write_config_dword(agp_bridge->dev, ALI_TLBCTRL, ((temp & 0xffffff00) | 0x00000010)); in ali_configure()
88 agp_bridge->gart_bus_addr = pci_bus_address(agp_bridge->dev, in ali_configure()
92 if (agp_bridge->type == ALI_M1541) { in ali_configure()
95 switch (current_size->size_value) { in ali_configure()
108 nlvm_addr--; in ali_configure()
111 nlvm_addr+= agp_bridge->gart_bus_addr; in ali_configure()
112 nlvm_addr|=(agp_bridge->gart_bus_addr>>12); in ali_configure()
113 dev_info(&agp_bridge->dev->dev, "nlvm top &base = %8x\n", in ali_configure()
118 pci_read_config_dword(agp_bridge->dev, ALI_TLBCTRL, &temp); in ali_configure()
120 pci_write_config_dword(agp_bridge->dev, ALI_TLBCTRL, temp); in ali_configure()
133 page_count = 1 << A_SIZE_32(agp_bridge->current_size)->page_order; in m1541_cache_flush()
135 pci_read_config_dword(agp_bridge->dev, ALI_CACHE_FLUSH_CTRL, in m1541_cache_flush()
137 pci_write_config_dword(agp_bridge->dev, ALI_CACHE_FLUSH_CTRL, in m1541_cache_flush()
139 (agp_bridge->gatt_bus_addr + i)) | in m1541_cache_flush()
152 pci_read_config_dword(agp_bridge->dev, ALI_CACHE_FLUSH_CTRL, &temp); in m1541_alloc_page()
153 pci_write_config_dword(agp_bridge->dev, ALI_CACHE_FLUSH_CTRL, in m1541_alloc_page()
163 global_cache_flush(); /* is this really needed? --hch */ in ali_destroy_page()
180 pci_read_config_dword(agp_bridge->dev, ALI_CACHE_FLUSH_CTRL, &temp); in m1541_destroy_page()
181 pci_write_config_dword(agp_bridge->dev, ALI_CACHE_FLUSH_CTRL, in m1541_destroy_page()
304 struct agp_device_ids *devs = ali_agp_device_ids; in agp_ali_probe() local
311 return -ENODEV; in agp_ali_probe()
314 for (j = 0; devs[j].chipset_name; j++) { in agp_ali_probe()
315 if (pdev->device == devs[j].device_id) in agp_ali_probe()
319 dev_err(&pdev->dev, "unsupported ALi chipset [%04x/%04x])\n", in agp_ali_probe()
320 pdev->vendor, pdev->device); in agp_ali_probe()
321 return -ENODEV; in agp_ali_probe()
327 return -ENOMEM; in agp_ali_probe()
329 bridge->dev = pdev; in agp_ali_probe()
330 bridge->capndx = cap_ptr; in agp_ali_probe()
332 switch (pdev->device) { in agp_ali_probe()
334 bridge->driver = &ali_m1541_bridge; in agp_ali_probe()
340 devs[j].chipset_name = "M1631"; in agp_ali_probe()
343 devs[j].chipset_name = "M1632"; in agp_ali_probe()
346 devs[j].chipset_name = "M1641"; in agp_ali_probe()
349 devs[j].chipset_name = "M1621"; in agp_ali_probe()
352 devs[j].chipset_name = "M1647"; in agp_ali_probe()
355 devs[j].chipset_name = "M1651"; in agp_ali_probe()
362 bridge->driver = &ali_generic_bridge; in agp_ali_probe()
365 dev_info(&pdev->dev, "ALi %s chipset\n", devs[j].chipset_name); in agp_ali_probe()
369 bridge->capndx+PCI_AGP_STATUS, in agp_ali_probe()
370 &bridge->mode); in agp_ali_probe()
399 .name = "agpgart-ali",
408 return -EINVAL; in agp_ali_init()
422 MODULE_LICENSE("GPL and additional rights");