~ubuntu-branches/ubuntu/raring/libdrm/raring

« back to all changes in this revision

Viewing changes to intel/intel_chipset.h

  • Committer: Package Import Robot
  • Author(s): Robert Hooker
  • Date: 2012-01-06 17:00:29 UTC
  • mfrom: (2.3.15 sid)
  • Revision ID: package-import@ubuntu.com-20120106170029-74zl4lt5h0yclxdd
Tags: 2.4.30-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - debian/rules
  - debian/control:
    + Build libdrm-intel1 everywhere rather than just {i386,amd64}
      for Plymouth

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
#ifndef _INTEL_CHIPSET_H
29
29
#define _INTEL_CHIPSET_H
30
30
 
31
 
#define IS_830(dev) ((dev)->pci_device == 0x3577)
32
 
#define IS_845(dev) ((dev)->pci_device == 0x2562)
33
 
#define IS_85X(dev) ((dev)->pci_device == 0x3582)
34
 
#define IS_865(dev) ((dev)->pci_device == 0x2572)
 
31
#define PCI_CHIP_ILD_G                  0x0042
 
32
#define PCI_CHIP_ILM_G                  0x0046
 
33
 
 
34
#define PCI_CHIP_SANDYBRIDGE_GT1        0x0102 /* desktop */
 
35
#define PCI_CHIP_SANDYBRIDGE_GT2        0x0112
 
36
#define PCI_CHIP_SANDYBRIDGE_GT2_PLUS   0x0122
 
37
#define PCI_CHIP_SANDYBRIDGE_M_GT1      0x0106 /* mobile */
 
38
#define PCI_CHIP_SANDYBRIDGE_M_GT2      0x0116
 
39
#define PCI_CHIP_SANDYBRIDGE_M_GT2_PLUS 0x0126
 
40
#define PCI_CHIP_SANDYBRIDGE_S          0x010A /* server */
 
41
 
 
42
#define PCI_CHIP_IVYBRIDGE_GT1          0x0152 /* desktop */
 
43
#define PCI_CHIP_IVYBRIDGE_GT2          0x0162
 
44
#define PCI_CHIP_IVYBRIDGE_M_GT1        0x0156 /* mobile */
 
45
#define PCI_CHIP_IVYBRIDGE_M_GT2        0x0166
 
46
#define PCI_CHIP_IVYBRIDGE_S            0x015a /* server */
 
47
 
 
48
#define IS_830(dev) (dev == 0x3577)
 
49
#define IS_845(dev) (dev == 0x2562)
 
50
#define IS_85X(dev) (dev == 0x3582)
 
51
#define IS_865(dev) (dev == 0x2572)
35
52
 
36
53
#define IS_GEN2(dev) (IS_830(dev) ||                            \
37
54
                      IS_845(dev) ||                            \
38
55
                      IS_85X(dev) ||                            \
39
56
                      IS_865(dev))
40
57
 
41
 
#define IS_915G(dev) ((dev)->pci_device == 0x2582 ||            \
42
 
                       (dev)->pci_device == 0x258a)
43
 
#define IS_915GM(dev) ((dev)->pci_device == 0x2592)
44
 
#define IS_945G(dev) ((dev)->pci_device == 0x2772)
45
 
#define IS_945GM(dev) ((dev)->pci_device == 0x27A2 ||           \
46
 
                        (dev)->pci_device == 0x27AE)
 
58
#define IS_915G(dev) (dev == 0x2582 ||          \
 
59
                       dev == 0x258a)
 
60
#define IS_915GM(dev) (dev == 0x2592)
 
61
#define IS_945G(dev) (dev == 0x2772)
 
62
#define IS_945GM(dev) (dev == 0x27A2 ||         \
 
63
                        dev == 0x27AE)
47
64
 
48
65
#define IS_915(dev) (IS_915G(dev) ||                            \
49
66
                     IS_915GM(dev))
53
70
                     IS_G33(dev) ||                             \
54
71
                     IS_PINEVIEW(dev))
55
72
 
56
 
#define IS_G33(dev)    ((dev)->pci_device == 0x29C2 ||          \
57
 
                        (dev)->pci_device == 0x29B2 ||          \
58
 
                        (dev)->pci_device == 0x29D2)
 
73
#define IS_G33(dev)    (dev == 0x29C2 ||                \
 
74
                        dev == 0x29B2 ||                \
 
75
                        dev == 0x29D2)
59
76
 
60
 
#define IS_PINEVIEW(dev) ((dev)->pci_device == 0xa001 ||        \
61
 
                          (dev)->pci_device == 0xa011)
 
77
#define IS_PINEVIEW(dev) (dev == 0xa001 ||      \
 
78
                          dev == 0xa011)
62
79
 
63
80
#define IS_GEN3(dev) (IS_915(dev) ||                            \
64
81
                      IS_945(dev) ||                            \
65
82
                      IS_G33(dev) ||                            \
66
83
                      IS_PINEVIEW(dev))
67
84
 
68
 
#define IS_I965GM(dev) ((dev)->pci_device == 0x2A02)
 
85
#define IS_I965GM(dev) (dev == 0x2A02)
69
86
 
70
 
#define IS_GEN4(dev) ((dev)->pci_device == 0x2972 ||    \
71
 
                      (dev)->pci_device == 0x2982 ||    \
72
 
                      (dev)->pci_device == 0x2992 ||    \
73
 
                      (dev)->pci_device == 0x29A2 ||    \
74
 
                      (dev)->pci_device == 0x2A02 ||    \
75
 
                      (dev)->pci_device == 0x2A12 ||    \
76
 
                      (dev)->pci_device == 0x2A42 ||    \
77
 
                      (dev)->pci_device == 0x2E02 ||    \
78
 
                      (dev)->pci_device == 0x2E12 ||    \
79
 
                      (dev)->pci_device == 0x2E22 ||    \
80
 
                      (dev)->pci_device == 0x2E32 ||    \
81
 
                      (dev)->pci_device == 0x2E42 ||    \
82
 
                      (dev)->pci_device == 0x0042 ||    \
83
 
                      (dev)->pci_device == 0x0046 ||    \
 
87
#define IS_GEN4(dev) (dev == 0x2972 ||  \
 
88
                      dev == 0x2982 ||  \
 
89
                      dev == 0x2992 ||  \
 
90
                      dev == 0x29A2 ||  \
 
91
                      dev == 0x2A02 ||  \
 
92
                      dev == 0x2A12 ||  \
 
93
                      dev == 0x2A42 ||  \
 
94
                      dev == 0x2E02 ||  \
 
95
                      dev == 0x2E12 ||  \
 
96
                      dev == 0x2E22 ||  \
 
97
                      dev == 0x2E32 ||  \
 
98
                      dev == 0x2E42 ||  \
 
99
                      dev == 0x0042 ||  \
 
100
                      dev == 0x0046 ||  \
84
101
                      IS_I965GM(dev) || \
85
102
                      IS_G4X(dev))
86
103
 
87
 
#define IS_GM45(dev) ((dev)->pci_device == 0x2A42)
88
 
 
89
 
#define IS_G4X(dev) ((dev)->pci_device == 0x2E02 || \
90
 
                     (dev)->pci_device == 0x2E12 || \
91
 
                     (dev)->pci_device == 0x2E22 || \
92
 
                     (dev)->pci_device == 0x2E32 || \
93
 
                     (dev)->pci_device == 0x2E42 || \
 
104
#define IS_GM45(dev) (dev == 0x2A42)
 
105
 
 
106
 
 
107
#define IS_GEN5(dev)    (dev == PCI_CHIP_ILD_G || \
 
108
                         dev == PCI_CHIP_ILM_G)
 
109
 
 
110
#define IS_GEN6(dev)    (dev == PCI_CHIP_SANDYBRIDGE_GT1 || \
 
111
                         dev == PCI_CHIP_SANDYBRIDGE_GT2 || \
 
112
                         dev == PCI_CHIP_SANDYBRIDGE_GT2_PLUS || \
 
113
                         dev == PCI_CHIP_SANDYBRIDGE_M_GT1 || \
 
114
                         dev == PCI_CHIP_SANDYBRIDGE_M_GT2 || \
 
115
                         dev == PCI_CHIP_SANDYBRIDGE_M_GT2_PLUS || \
 
116
                         dev == PCI_CHIP_SANDYBRIDGE_S)
 
117
 
 
118
#define IS_GEN7(dev)    (dev == PCI_CHIP_IVYBRIDGE_GT1 || \
 
119
                         dev == PCI_CHIP_IVYBRIDGE_GT2 || \
 
120
                         dev == PCI_CHIP_IVYBRIDGE_M_GT1 || \
 
121
                         dev == PCI_CHIP_IVYBRIDGE_M_GT2 || \
 
122
                         dev == PCI_CHIP_IVYBRIDGE_S)
 
123
 
 
124
#define IS_G4X(dev) (dev == 0x2E02 || \
 
125
                     dev == 0x2E12 || \
 
126
                     dev == 0x2E22 || \
 
127
                     dev == 0x2E32 || \
 
128
                     dev == 0x2E42 || \
94
129
                     IS_GM45(dev))
95
130
 
96
131
#define IS_9XX(dev) (IS_GEN3(dev) ||                            \
97
132
                     IS_GEN4(dev) ||                            \
98
133
                     IS_GEN5(dev) ||                            \
99
 
                     IS_GEN6(dev))
 
134
                     IS_GEN6(dev) ||                            \
 
135
                     IS_GEN7(dev))
100
136
 
101
137
#endif /* _INTEL_CHIPSET_H */