~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to drivers/staging/sm7xx/smtcfb.h

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
#define SCREEN_Y_RES      600
31
31
#define SCREEN_BPP        16
32
32
 
33
 
#ifndef FIELD_OFFSET
34
 
#define FIELD_OFSFET(type, field) \
35
 
        ((unsigned long) (PUCHAR) & (((type *)0)->field))
36
 
#endif
37
 
 
38
33
/*Assume SM712 graphics chip has 4MB VRAM */
39
34
#define SM712_VIDEOMEMORYSIZE     0x00400000
40
35
/*Assume SM722 graphics chip has 8MB VRAM */
790
785
         },
791
786
};
792
787
 
793
 
#define numVGAModes             (sizeof(VGAMode) / sizeof(struct ModeInit))
 
788
#define numVGAModes             ARRAY_SIZE(VGAMode)