[PATCH] video: pm3fb macros fix
authorMariusz Kozlowski <m.kozlowski@tuxland.pl>
Fri, 8 Dec 2006 10:41:00 +0000 (02:41 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Fri, 8 Dec 2006 16:29:08 +0000 (08:29 -0800)
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/video/pm3fb.h

index ac021379ac40abb0b1c7767a69d90ce33d412b88..94c7d2da90eae37d8601b8f6b07e17382ab8b309 100644 (file)
 #define PM3FBDestReadModeOr                                    0xac98
        #define PM3FBDestReadMode_ReadDisable                   0<<0
        #define PM3FBDestReadMode_ReadEnable                    1<<0
-       #define PM3FBDestReadMode_StripePitch(sp)       (((sp)&0x7)<<2
-       #define PM3FBDestReadMode_StripeHeight(sh)      (((sh)&0x7)<<7
+       #define PM3FBDestReadMode_StripePitch(sp)       (((sp)&0x7)<<2)
+       #define PM3FBDestReadMode_StripeHeight(sh)      (((sh)&0x7)<<7)
        #define PM3FBDestReadMode_Enable0                       1<<8
        #define PM3FBDestReadMode_Enable1                       1<<9
        #define PM3FBDestReadMode_Enable2                       1<<10
        #define PM3FBDestReadMode_Enable3                       1<<11
-       #define PM3FBDestReadMode_Layout0(l)            (((l)&0x3)<<12
-       #define PM3FBDestReadMode_Layout1(l)            (((l)&0x3)<<14
-       #define PM3FBDestReadMode_Layout2(l)            (((l)&0x3)<<16
-       #define PM3FBDestReadMode_Layout3(l)            (((l)&0x3)<<18
+       #define PM3FBDestReadMode_Layout0(l)            (((l)&0x3)<<12)
+       #define PM3FBDestReadMode_Layout1(l)            (((l)&0x3)<<14)
+       #define PM3FBDestReadMode_Layout2(l)            (((l)&0x3)<<16)
+       #define PM3FBDestReadMode_Layout3(l)            (((l)&0x3)<<18)
        #define PM3FBDestReadMode_Origin0                       1<<20
        #define PM3FBDestReadMode_Origin1                       1<<21
        #define PM3FBDestReadMode_Origin2                       1<<22
 #define PM3FBSourceReadModeOr                                  0xaca8
        #define PM3FBSourceReadMode_ReadDisable                 (0<<0)
        #define PM3FBSourceReadMode_ReadEnable                  (1<<0)
-       #define PM3FBSourceReadMode_StripePitch(sp)     (((sp)&0x7)<<2
-       #define PM3FBSourceReadMode_StripeHeight(sh)    (((sh)&0x7)<<7
-       #define PM3FBSourceReadMode_Layout(l)           (((l)&0x3)<<8
+       #define PM3FBSourceReadMode_StripePitch(sp)     (((sp)&0x7)<<2)
+       #define PM3FBSourceReadMode_StripeHeight(sh)    (((sh)&0x7)<<7)
+       #define PM3FBSourceReadMode_Layout(l)           (((l)&0x3)<<8)
        #define PM3FBSourceReadMode_Origin                      1<<10
        #define PM3FBSourceReadMode_Blocking                    1<<11
        #define PM3FBSourceReadMode_UserTexelCoord              1<<13
        #define PM3FBSourceReadMode_WrapXEnable                 1<<14
        #define PM3FBSourceReadMode_WrapYEnable                 1<<15
-       #define PM3FBSourceReadMode_WrapX(w)            (((w)&0xf)<<16
-       #define PM3FBSourceReadMode_WrapY(w)            (((w)&0xf)<<20
+       #define PM3FBSourceReadMode_WrapX(w)            (((w)&0xf)<<16)
+       #define PM3FBSourceReadMode_WrapY(w)            (((w)&0xf)<<20)
        #define PM3FBSourceReadMode_ExternalSourceData          1<<24
 #define PM3FBWriteBufferAddr0                                   0xb000
 #define PM3FBWriteBufferAddr1                                   0xb008
 #define PM3Window                                              0x8980
        #define PM3Window_ForceLBUpdate                         1<<3
        #define PM3Window_LBUpdateSource                        1<<4
-       #define PM3Window_FrameCount(c)                         (((c)&0xff)<<9
+       #define PM3Window_FrameCount(c)                         (((c)&0xff)<<9)
        #define PM3Window_StencilFCP                            1<<17
        #define PM3Window_DepthFCP                              1<<18
        #define PM3Window_OverrideWriteFiltering                1<<19