Rev 2326 | Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2325 | Serge | 1 | |
2 | */ |
||
3 | /* |
||
4 | * |
||
5 | * Copyright 2003 Tungsten Graphics, Inc., Cedar Park, Texas. |
||
6 | * All Rights Reserved. |
||
7 | * |
||
8 | * Permission is hereby granted, free of charge, to any person obtaining a |
||
9 | * copy of this software and associated documentation files (the |
||
10 | * "Software"), to deal in the Software without restriction, including |
||
11 | * without limitation the rights to use, copy, modify, merge, publish, |
||
12 | * distribute, sub license, and/or sell copies of the Software, and to |
||
13 | * permit persons to whom the Software is furnished to do so, subject to |
||
14 | * the following conditions: |
||
15 | * |
||
16 | * The above copyright notice and this permission notice (including the |
||
17 | * next paragraph) shall be included in all copies or substantial portions |
||
18 | * of the Software. |
||
19 | * |
||
20 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS |
||
21 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
||
22 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. |
||
23 | * IN NO EVENT SHALL TUNGSTEN GRAPHICS AND/OR ITS SUPPLIERS BE LIABLE FOR |
||
24 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, |
||
25 | * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE |
||
26 | * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
||
27 | * |
||
28 | */ |
||
29 | |||
30 | |||
31 | #include |
||
32 | |||
33 | |||
34 | #include |
||
35 | #include |
||
36 | #include |
||
37 | #include |
||
38 | |||
39 | |||
40 | |||
41 | RCS = 0x0, |
||
42 | VCS, |
||
43 | BCS, |
||
44 | I915_NUM_RINGS, |
||
45 | }; |
||
46 | |||
47 | |||
48 | |||
49 | #include |
||
50 | |||
51 | |||
52 | .class = PCI_CLASS_DISPLAY_VGA << 8, \ |
||
53 | .class_mask = 0xff0000, \ |
||
54 | .vendor = 0x8086, \ |
||
55 | .device = id, \ |
||
56 | .subvendor = PCI_ANY_ID, \ |
||
57 | .subdevice = PCI_ANY_ID, \ |
||
58 | .driver_data = (unsigned long) info } |
||
59 | |||
60 | |||
61 | .gen = 6, |
||
62 | .need_gfx_hws = 1, |
||
63 | .has_hotplug = 1, |
||
64 | .has_bsd_ring = 1, |
||
65 | .has_blt_ring = 1, |
||
66 | }; |
||
67 | |||
68 | |||
69 | .gen = 6, |
||
70 | .is_mobile = 1, |
||
71 | .need_gfx_hws = 1, |
||
72 | .has_hotplug = 1, |
||
73 | .has_fbc = 1, |
||
74 | .has_bsd_ring = 1, |
||
75 | .has_blt_ring = 1, |
||
76 | }; |
||
77 | |||
78 | |||
79 | |||
80 | INTEL_VGA_DEVICE(0x0102, &intel_sandybridge_d_info), |
||
81 | INTEL_VGA_DEVICE(0x0112, &intel_sandybridge_d_info), |
||
82 | INTEL_VGA_DEVICE(0x0122, &intel_sandybridge_d_info), |
||
83 | INTEL_VGA_DEVICE(0x0106, &intel_sandybridge_m_info), |
||
84 | INTEL_VGA_DEVICE(0x0116, &intel_sandybridge_m_info), |
||
85 | INTEL_VGA_DEVICE(0x0126, &intel_sandybridge_m_info), |
||
86 | INTEL_VGA_DEVICE(0x010A, &intel_sandybridge_d_info), |
||
87 | {0, 0, 0} |
||
88 | }; |
||
89 | |||
90 | |||
91 | |||
92 | |||
93 | |||
94 | { |
||
95 | static pci_dev_t device; |
||
96 | const struct pci_device_id *ent; |
||
97 | int err; |
||
98 | |||
99 | |||
100 | { |
||
101 | DRM_ERROR("drm/i915 can't work without intel_agp module!\n"); |
||
102 | return 0; |
||
103 | }; |
||
104 | |||
105 | |||
106 | |||
107 | |||
108 | { |
||
109 | dbgprintf("device not found\n"); |
||
110 | return 0; |
||
111 | }; |
||
112 | |||
113 | |||
114 | device.pci_dev.device); |
||
115 | |||
116 | |||
117 | |||
118 | |||
119 | } |
||
120 | |||
121 | |||
122 | { |
||
123 | static struct drm_device *dev; |
||
124 | int ret; |
||
125 | |||
126 | |||
127 | |||
128 | |||
129 | if (!dev) |
||
130 | return -ENOMEM; |
||
131 | |||
132 | |||
133 | // if (ret) |
||
134 | // goto err_g1; |
||
135 | |||
136 | |||
137 | |||
138 | |||
139 | // printk(KERN_ERR "DRM: Fill_in_dev failed.\n"); |
||
140 | // goto err_g2; |
||
141 | // } |
||
142 | |||
143 | |||
144 | dev->pci_device = pdev->device; |
||
145 | dev->pci_vendor = pdev->vendor; |
||
146 | |||
147 | |||
148 | INIT_LIST_HEAD(&dev->ctxlist); |
||
149 | INIT_LIST_HEAD(&dev->vmalist); |
||
150 | INIT_LIST_HEAD(&dev->maplist); |
||
151 | |||
152 | |||
153 | mutex_init(&dev->struct_mutex); |
||
154 | mutex_init(&dev->ctxlist_mutex); |
||
155 | |||
156 | |||
157 | |||
158 | |||
159 | // if (ret) |
||
160 | // goto err_g4; |
||
161 | |||
162 | |||
163 | // init_display_kms(dev->dev_private, &usermode); |
||
164 | // else |
||
165 | // init_display(dev->dev_private, &usermode); |
||
166 | |||
167 | |||
168 | |||
169 | |||
170 | |||
171 | |||
172 | // drm_put_minor(&dev->primary); |
||
173 | //err_g3: |
||
174 | // if (drm_core_check_feature(dev, DRIVER_MODESET)) |
||
175 | // drm_put_minor(&dev->control); |
||
176 | //err_g2: |
||
177 | // pci_disable_device(pdev); |
||
178 | //err_g1: |
||
179 | free(dev); |
||
180 | |||
181 | |||
182 | |||
183 | |||
184 | }><> |
||
185 |