I wonder if they ever compile FB drivers with arches where BITS_PER_LONG !=32... Index: include/linux/fb.h =================================================================== RCS file: /home/cvs/linux/include/linux/fb.h,v retrieving revision 1.30 diff -u -r1.30 fb.h --- include/linux/fb.h 1 Jun 2003 12:07:45 -0000 1.30 +++ include/linux/fb.h 1 Jun 2003 19:28:32 -0000 @@ -432,9 +432,11 @@ #define fb_readb(addr) (*(volatile u8 *) (addr)) #define fb_readw(addr) (*(volatile u16 *) (addr)) #define fb_readl(addr) (*(volatile u32 *) (addr)) +#define fb_readq(addr) (*(volatile u64 *) (addr)) #define fb_writeb(b,addr) (*(volatile u8 *) (addr) = (b)) #define fb_writew(b,addr) (*(volatile u16 *) (addr) = (b)) #define fb_writel(b,addr) (*(volatile u32 *) (addr) = (b)) +#define fb_writeq(b,addr) (*(volatile u64 *) (addr) = (b)) #define fb_memset memset #endif Index: drivers/video/cfbcopyarea.c =================================================================== RCS file: /home/cvs/linux/drivers/video/cfbcopyarea.c,v retrieving revision 1.4 diff -u -r1.4 cfbcopyarea.c --- drivers/video/cfbcopyarea.c 1 Jun 2003 12:07:43 -0000 1.4 +++ drivers/video/cfbcopyarea.c 1 Jun 2003 19:30:55 -0000 @@ -38,7 +38,7 @@ #define BYTES_PER_LONG 4 #else #define FB_WRITEL fb_writeq -#define FB_READL fb_readq(x) +#define FB_READL fb_readq #define SHIFT_PER_LONG 6 #define BYTES_PER_LONG 8 #endif
Attachment:
pgp00282.pgp
Description: PGP signature