]> git.hungrycats.org Git - linux/commitdiff
agp: aper_base is unsigned
authorLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 23 Feb 2005 02:33:11 +0000 (18:33 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 23 Feb 2005 02:33:11 +0000 (18:33 -0800)
Not that anybody cares about the sign, but the signed type does
the wrong thing for right shifts. Which we had.

include/linux/agp_backend.h
include/linux/agpgart.h

index 7936986c289ef1c3033d0bbf2a5d7d324589d0cf..367864695b8f14d6bb45172b3945970dfb43b5f5 100644 (file)
@@ -54,7 +54,7 @@ struct agp_kern_info {
        struct pci_dev *device;
        enum chipset_type chipset;
        unsigned long mode;
-       off_t aper_base;
+       unsigned long aper_base;
        size_t aper_size;
        int max_memory;         /* In pages */
        int current_memory;
index ff4c2c058cb64aa78f417fbc9caba417bb3ec936..17a17c55a17f97c2da02e7b83f1ca367f7bc6d5e 100644 (file)
@@ -64,7 +64,7 @@ typedef struct _agp_info {
        struct agp_version version;     /* version of the driver        */
        __u32 bridge_id;        /* bridge vendor/device         */
        __u32 agp_mode;         /* mode info of bridge          */
-       off_t aper_base;        /* base of aperture             */
+       unsigned long aper_base;/* base of aperture             */
        size_t aper_size;       /* size of aperture             */
        size_t pg_total;        /* max pages (swap + system)    */
        size_t pg_system;       /* max pages (system)           */
@@ -118,7 +118,7 @@ struct agp_info {
        struct agp_version version;     /* version of the driver        */
        u32 bridge_id;          /* bridge vendor/device         */
        u32 agp_mode;           /* mode info of bridge          */
-       off_t aper_base;        /* base of aperture             */
+       unsigned long aper_base;/* base of aperture             */
        size_t aper_size;       /* size of aperture             */
        size_t pg_total;        /* max pages (swap + system)    */
        size_t pg_system;       /* max pages (system)           */