Commit 87e76353 authored by Dave Jones's avatar Dave Jones

Merge delerium.codemonkey.org.uk:/mnt/nfs/sepia/bar/src/kernel/2.6/trees/bk-linus

into delerium.codemonkey.org.uk:/mnt/nfs/sepia/bar/src/kernel/2.6/trees/agpgart
parents 96531b37 0c18ee95
...@@ -302,13 +302,6 @@ static int efficeon_remove_memory(struct agp_memory * mem, off_t pg_start, int t ...@@ -302,13 +302,6 @@ static int efficeon_remove_memory(struct agp_memory * mem, off_t pg_start, int t
return 0; return 0;
} }
/* GATT entry: (physical address | 1) */
static unsigned long efficeon_mask_memory(unsigned long addr, int type)
{
/* Memory type is ignored */
return addr | agp_bridge->driver->masks[0].mask;
}
struct agp_bridge_driver efficeon_driver = { struct agp_bridge_driver efficeon_driver = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
...@@ -319,7 +312,7 @@ struct agp_bridge_driver efficeon_driver = { ...@@ -319,7 +312,7 @@ struct agp_bridge_driver efficeon_driver = {
.fetch_size = efficeon_fetch_size, .fetch_size = efficeon_fetch_size,
.cleanup = efficeon_cleanup, .cleanup = efficeon_cleanup,
.tlb_flush = efficeon_tlbflush, .tlb_flush = efficeon_tlbflush,
.mask_memory = efficeon_mask_memory, .mask_memory = agp_generic_mask_memory,
.masks = efficeon_generic_masks, .masks = efficeon_generic_masks,
.agp_enable = agp_generic_enable, .agp_enable = agp_generic_enable,
.cache_flush = global_cache_flush, .cache_flush = global_cache_flush,
......
...@@ -160,23 +160,9 @@ static void via_tlbflush_agp3(struct agp_memory *mem) ...@@ -160,23 +160,9 @@ static void via_tlbflush_agp3(struct agp_memory *mem)
} }
static struct aper_size_info_16 via_generic_agp3_sizes[11] =
{
{ 4, 1024, 0, 1<<11|1<<10|1<<9|1<<8|1<<5|1<<4|1<<3|1<<2|1<<1|1<<0 },
{ 8, 2048, 1, 1<<11|1<<10|1<<9|1<<8|1<<5|1<<4|1<<3|1<<2|1<<1},
{ 16, 4096, 2, 1<<11|1<<10|1<<9|1<<8|1<<5|1<<4|1<<3|1<<2},
{ 32, 8192, 3, 1<<11|1<<10|1<<9|1<<8|1<<5|1<<4|1<<3},
{ 64, 16384, 4, 1<<11|1<<10|1<<9|1<<8|1<<5|1<<4},
{ 128, 32768, 5, 1<<11|1<<10|1<<9|1<<8|1<<5},
{ 256, 65536, 6, 1<<11|1<<10|1<<9|1<<8},
{ 512, 131072, 7, 1<<11|1<<10|1<<9},
{ 1024, 262144, 8, 1<<11|1<<10},
{ 2048, 524288, 9, 1<<11} /* 2GB <- Max supported */
};
struct agp_bridge_driver via_agp3_driver = { struct agp_bridge_driver via_agp3_driver = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.aperture_sizes = via_generic_agp3_sizes, .aperture_sizes = agp3_generic_sizes,
.size_type = U8_APER_SIZE, .size_type = U8_APER_SIZE,
.num_aperture_sizes = 10, .num_aperture_sizes = 10,
.configure = via_configure_agp3, .configure = via_configure_agp3,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment