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

« back to all changes in this revision

Viewing changes to drivers/staging/xgifb/XGIfb.h

  • Committer: Package Import Robot
  • Author(s): Paolo Pisati, Paolo Pisati
  • Date: 2011-12-06 15:56:07 UTC
  • Revision ID: package-import@ubuntu.com-20111206155607-pcf44kv5fmhk564f
Tags: 3.2.0-1401.1
[ Paolo Pisati ]

* Rebased on top of Ubuntu-3.2.0-3.8
* Tilt-tracking @ ef2487af4bb15bdd0689631774b5a5e3a59f74e2
* Delete debian.ti-omap4/control, it shoudln't be tracked
* Fix architecture spelling (s/armel/armhf/)
* [Config] Update configs following 3.2 import
* [Config] Fix compilation: disable CODA and ARCH_OMAP3
* [Config] Fix compilation: disable Ethernet Faraday
* Update series to precise

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
#include <linux/ioctl.h>
4
4
#include <linux/types.h>
5
5
 
6
 
#define DISPTYPE_CRT1       0x00000008L
7
 
#define DISPTYPE_CRT2       0x00000004L
8
 
#define DISPTYPE_LCD        0x00000002L
9
 
#define DISPTYPE_TV         0x00000001L
10
 
#define DISPTYPE_DISP1      DISPTYPE_CRT1
11
 
#define DISPTYPE_DISP2      (DISPTYPE_CRT2 | DISPTYPE_LCD | DISPTYPE_TV)
12
 
#define DISPMODE_SINGLE     0x00000020L
13
 
#define DISPMODE_MIRROR     0x00000010L
14
 
#define DISPMODE_DUALVIEW   0x00000040L
 
6
#include "vb_struct.h"
 
7
#include "vgatypes.h"
 
8
 
 
9
enum xgifb_display_type {
 
10
        XGIFB_DISP_NONE = 0,
 
11
        XGIFB_DISP_CRT,
 
12
        XGIFB_DISP_LCD,
 
13
        XGIFB_DISP_TV,
 
14
};
15
15
 
16
16
#define HASVB_NONE          0x00
17
17
#define HASVB_301           0x01
19
19
#define HASVB_TRUMPION      0x04
20
20
#define HASVB_LVDS_CHRONTEL 0x10
21
21
#define HASVB_302           0x20
22
 
#define HASVB_303           0x40
23
22
#define HASVB_CHRONTEL      0x80
24
23
 
25
 
#ifndef XGIFB_ID
26
 
#define XGIFB_ID        0x53495346 /* Identify myself with 'XGIF' */
27
 
#endif
28
 
 
29
24
enum XGI_CHIP_TYPE {
30
25
        XG40 = 32,
31
26
        XG41,
47
42
};
48
43
 
49
44
enum xgi_tv_plug { /* vicki@030226 */
50
 
/*      TVPLUG_Legacy = 0, */
51
 
/*      TVPLUG_COMPOSITE,  */
52
 
/*      TVPLUG_SVIDEO,     */
53
 
/*      TVPLUG_SCART,      */
54
 
/*      TVPLUG_TOTAL       */
55
45
        TVPLUG_UNKNOWN = 0,
56
46
        TVPLUG_COMPOSITE = 1,
57
47
        TVPLUG_SVIDEO = 2,
64
54
        TVPLUG_TOTAL
65
55
};
66
56
 
67
 
struct video_info {
 
57
struct xgifb_video_info {
 
58
        struct fb_info *fb_info;
 
59
        struct xgi_hw_device_info hw_info;
 
60
        struct vb_device_info dev_info;
 
61
 
 
62
        int mode_idx;
 
63
        int rate_idx;
 
64
 
 
65
        u32 pseudo_palette[17];
 
66
 
68
67
        int           chip_id;
69
68
        unsigned int  video_size;
70
69
        unsigned long video_base;
71
 
        char          *video_vbase;
 
70
        void __iomem *video_vbase;
72
71
        unsigned long mmio_base;
73
72
        unsigned long mmio_size;
74
 
        char          *mmio_vbase;
 
73
        void __iomem *mmio_vbase;
75
74
        unsigned long vga_base;
76
75
        unsigned long mtrr;
77
76
 
86
85
        int    video_linelength;
87
86
        unsigned int refresh_rate;
88
87
 
89
 
        unsigned long disp_state;
 
88
        enum xgifb_display_type display2; /* the second display output type */
90
89
        unsigned char hasVB;
91
90
        unsigned char TV_type;
92
91
        unsigned char TV_plug;
108
107
        char reserved[236];
109
108
};
110
109
 
111
 
 
112
 
extern struct video_info xgi_video_info;
113
 
 
114
110
#endif