• Jim Hague's avatar
    [PATCH] pm2fb: fix big-endian (Sparc) support · e9776274
    Jim Hague authored
    A collection of changes that taken together makes the driver work correctly on
    big-endian systems, specifically Sparc.
    
    - Remove old PM2FB_BE_APERTURE define and use __BIG_ENDIAN
      throughout. PM2FB_BE_APERTURE wasn't defined on Sparc; this
      was incorrect.
    - Replace colour mode magic numbers with suitable constants,
      and tidy colour mode handling. Use BGR not RGB at 24bit on
      big-endian.
    - Replace aperture magic numbers with constants. Rearrange code to
      emphasise second aperture is not used. Add short explanations
      of aperture settings for big endian.
    - Update comments to note that the driver now works on Sparc.
    - Revisit 32bit depth colour offsets and ensure transp is set.
    Signed-off-by: default avatarJim Hague <jim.hague@acm.org>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    e9776274
permedia2.h 8.11 KB