summaryrefslogtreecommitdiffstats
path: root/drivers/char/agp/efficeon-agp.c
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2006-04-18 05:39:10 -0400
committerJeff Garzik <jeff@garzik.org>2006-04-18 05:39:10 -0400
commitb2b4b9a7c09ad66e095b13c97946a96f2dc8284e (patch)
treefb856b5998df266bd83e6e64b8884287e812845a /drivers/char/agp/efficeon-agp.c
parent875999c5539999f61a45620aae0c3e5fb1d2b035 (diff)
parent4741c336d27dec3ea68a35659abb8dc82b142388 (diff)
downloadkernel-crypto-b2b4b9a7c09ad66e095b13c97946a96f2dc8284e.tar.gz
kernel-crypto-b2b4b9a7c09ad66e095b13c97946a96f2dc8284e.tar.xz
kernel-crypto-b2b4b9a7c09ad66e095b13c97946a96f2dc8284e.zip
Merge branch 'upstream'
Diffstat (limited to 'drivers/char/agp/efficeon-agp.c')
-rw-r--r--drivers/char/agp/efficeon-agp.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/char/agp/efficeon-agp.c b/drivers/char/agp/efficeon-agp.c
index fed0a87448d..86a966b6523 100644
--- a/drivers/char/agp/efficeon-agp.c
+++ b/drivers/char/agp/efficeon-agp.c
@@ -64,6 +64,12 @@ static struct gatt_mask efficeon_generic_masks[] =
{.mask = 0x00000001, .type = 0}
};
+/* This function does the same thing as mask_memory() for this chipset... */
+static inline unsigned long efficeon_mask_memory(unsigned long addr)
+{
+ return addr | 0x00000001;
+}
+
static struct aper_size_info_lvl2 efficeon_generic_sizes[4] =
{
{256, 65536, 0},
@@ -251,7 +257,7 @@ static int efficeon_insert_memory(struct agp_memory * mem, off_t pg_start, int t
last_page = NULL;
for (i = 0; i < count; i++) {
int index = pg_start + i;
- unsigned long insert = mem->memory[i];
+ unsigned long insert = efficeon_mask_memory(mem->memory[i]);
page = (unsigned int *) efficeon_private.l1_table[index >> 10];