intel-agp.c (c58310bf4933986513020fa90b4190c7492995ae) | intel-agp.c (da503fa60b84d5945deb3ab74efdd0bec61df4a1) |
---|---|
1/* 2 * Intel AGPGART routines. 3 */ 4 5#include <linux/module.h> 6#include <linux/pci.h> 7#include <linux/init.h> 8#include <linux/kernel.h> --- 404 unchanged lines hidden (view full) --- 413 414static void intel_i810_free_by_type(struct agp_memory *curr) 415{ 416 agp_free_key(curr->key); 417 if (curr->type == AGP_PHYS_MEMORY) { 418 if (curr->page_count == 4) 419 i8xx_destroy_pages(gart_to_virt(curr->memory[0])); 420 else { | 1/* 2 * Intel AGPGART routines. 3 */ 4 5#include <linux/module.h> 6#include <linux/pci.h> 7#include <linux/init.h> 8#include <linux/kernel.h> --- 404 unchanged lines hidden (view full) --- 413 414static void intel_i810_free_by_type(struct agp_memory *curr) 415{ 416 agp_free_key(curr->key); 417 if (curr->type == AGP_PHYS_MEMORY) { 418 if (curr->page_count == 4) 419 i8xx_destroy_pages(gart_to_virt(curr->memory[0])); 420 else { |
421 agp_bridge->driver->agp_destroy_page(gart_to_virt(curr->memory[0]), | 421 void *va = gart_to_virt(curr->memory[0]); 422 423 agp_bridge->driver->agp_destroy_page(va, |
422 AGP_PAGE_DESTROY_UNMAP); | 424 AGP_PAGE_DESTROY_UNMAP); |
423 agp_bridge->driver->agp_destroy_page(gart_to_virt(curr->memory[0]), | 425 agp_bridge->driver->agp_destroy_page(va, |
424 AGP_PAGE_DESTROY_FREE); 425 } 426 agp_free_page_array(curr); 427 } 428 kfree(curr); 429} 430 431static unsigned long intel_i810_mask_memory(struct agp_bridge_data *bridge, --- 1857 unchanged lines hidden --- | 426 AGP_PAGE_DESTROY_FREE); 427 } 428 agp_free_page_array(curr); 429 } 430 kfree(curr); 431} 432 433static unsigned long intel_i810_mask_memory(struct agp_bridge_data *bridge, --- 1857 unchanged lines hidden --- |