Rev 5270 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5270 | Rev 6082 | ||
---|---|---|---|
Line 10... | Line 10... | ||
10 | #include |
10 | #include |
Line 11... | Line 11... | ||
11 | 11 | ||
12 | struct drm_device; |
12 | struct drm_device; |
Line 13... | Line -... | ||
13 | struct drm_file; |
- | |
14 | - | ||
15 | #define __OS_HAS_AGP (defined(CONFIG_AGP) || (defined(CONFIG_AGP_MODULE) && \ |
- | |
16 | defined(MODULE))) |
13 | struct drm_file; |
17 | 14 | ||
18 | struct drm_agp_head { |
15 | struct drm_agp_head { |
19 | struct agp_kern_info agp_info; |
16 | struct agp_kern_info agp_info; |
20 | struct list_head memory; |
17 | struct list_head memory; |
Line 26... | Line 23... | ||
26 | int agp_mtrr; |
23 | int agp_mtrr; |
27 | int cant_use_aperture; |
24 | int cant_use_aperture; |
28 | unsigned long page_mask; |
25 | unsigned long page_mask; |
29 | }; |
26 | }; |
Line 30... | Line 27... | ||
30 | 27 | ||
Line 31... | Line 28... | ||
31 | #if __OS_HAS_AGP |
28 | #if IS_ENABLED(CONFIG_AGP) |
32 | 29 | ||
33 | void drm_free_agp(struct agp_memory * handle, int pages); |
30 | void drm_free_agp(struct agp_memory * handle, int pages); |
34 | int drm_bind_agp(struct agp_memory * handle, unsigned int start); |
31 | int drm_bind_agp(struct agp_memory * handle, unsigned int start); |
Line 64... | Line 61... | ||
64 | struct drm_file *file_priv); |
61 | struct drm_file *file_priv); |
65 | int drm_agp_bind(struct drm_device *dev, struct drm_agp_binding *request); |
62 | int drm_agp_bind(struct drm_device *dev, struct drm_agp_binding *request); |
66 | int drm_agp_bind_ioctl(struct drm_device *dev, void *data, |
63 | int drm_agp_bind_ioctl(struct drm_device *dev, void *data, |
67 | struct drm_file *file_priv); |
64 | struct drm_file *file_priv); |
Line 68... | Line 65... | ||
68 | 65 | ||
Line 69... | Line 66... | ||
69 | #else /* __OS_HAS_AGP */ |
66 | #else /* CONFIG_AGP */ |
70 | 67 | ||
71 | static inline void drm_free_agp(struct agp_memory * handle, int pages) |
68 | static inline void drm_free_agp(struct agp_memory * handle, int pages) |
Line 103... | Line 100... | ||
103 | static inline int drm_agp_acquire(struct drm_device *dev) |
100 | static inline int drm_agp_acquire(struct drm_device *dev) |
104 | { |
101 | { |
105 | return -ENODEV; |
102 | return -ENODEV; |
106 | } |
103 | } |
Line 107... | Line -... | ||
107 | - | ||
108 | static inline int drm_agp_acquire_ioctl(struct drm_device *dev, void *data, |
- | |
109 | struct drm_file *file_priv) |
- | |
110 | { |
- | |
111 | return -ENODEV; |
- | |
112 | } |
- | |
113 | 104 | ||
114 | static inline int drm_agp_release(struct drm_device *dev) |
105 | static inline int drm_agp_release(struct drm_device *dev) |
115 | { |
106 | { |
116 | return -ENODEV; |
107 | return -ENODEV; |
Line 117... | Line -... | ||
117 | } |
- | |
118 | - | ||
119 | static inline int drm_agp_release_ioctl(struct drm_device *dev, void *data, |
- | |
120 | struct drm_file *file_priv) |
- | |
121 | { |
- | |
122 | return -ENODEV; |
- | |
123 | } |
108 | } |
124 | 109 | ||
125 | static inline int drm_agp_enable(struct drm_device *dev, |
110 | static inline int drm_agp_enable(struct drm_device *dev, |
126 | struct drm_agp_mode mode) |
111 | struct drm_agp_mode mode) |
127 | { |
112 | { |
Line 128... | Line -... | ||
128 | return -ENODEV; |
- | |
129 | } |
- | |
130 | - | ||
131 | static inline int drm_agp_enable_ioctl(struct drm_device *dev, void *data, |
- | |
132 | struct drm_file *file_priv) |
- | |
133 | { |
- | |
134 | return -ENODEV; |
113 | return -ENODEV; |
135 | } |
114 | } |
136 | 115 | ||
137 | static inline int drm_agp_info(struct drm_device *dev, |
116 | static inline int drm_agp_info(struct drm_device *dev, |
138 | struct drm_agp_info *info) |
117 | struct drm_agp_info *info) |
Line 139... | Line -... | ||
139 | { |
- | |
140 | return -ENODEV; |
- | |
141 | } |
- | |
142 | - | ||
143 | static inline int drm_agp_info_ioctl(struct drm_device *dev, void *data, |
- | |
144 | struct drm_file *file_priv) |
- | |
145 | { |
118 | { |
146 | return -ENODEV; |
119 | return -ENODEV; |
147 | } |
120 | } |
148 | 121 | ||
149 | static inline int drm_agp_alloc(struct drm_device *dev, |
122 | static inline int drm_agp_alloc(struct drm_device *dev, |
Line 150... | Line -... | ||
150 | struct drm_agp_buffer *request) |
- | |
151 | { |
- | |
152 | return -ENODEV; |
- | |
153 | } |
- | |
154 | - | ||
155 | static inline int drm_agp_alloc_ioctl(struct drm_device *dev, void *data, |
- | |
156 | struct drm_file *file_priv) |
123 | struct drm_agp_buffer *request) |
157 | { |
124 | { |
158 | return -ENODEV; |
125 | return -ENODEV; |
159 | } |
126 | } |
160 | 127 | ||
Line 161... | Line -... | ||
161 | static inline int drm_agp_free(struct drm_device *dev, |
- | |
162 | struct drm_agp_buffer *request) |
- | |
163 | { |
- | |
164 | return -ENODEV; |
- | |
165 | } |
- | |
166 | - | ||
167 | static inline int drm_agp_free_ioctl(struct drm_device *dev, void *data, |
128 | static inline int drm_agp_free(struct drm_device *dev, |
168 | struct drm_file *file_priv) |
129 | struct drm_agp_buffer *request) |
169 | { |
130 | { |
170 | return -ENODEV; |
131 | return -ENODEV; |
171 | } |
132 | } |
Line 172... | Line -... | ||
172 | - | ||
173 | static inline int drm_agp_unbind(struct drm_device *dev, |
- | |
174 | struct drm_agp_binding *request) |
- | |
175 | { |
- | |
176 | return -ENODEV; |
- | |
177 | } |
- | |
178 | 133 | ||
179 | static inline int drm_agp_unbind_ioctl(struct drm_device *dev, void *data, |
134 | static inline int drm_agp_unbind(struct drm_device *dev, |
180 | struct drm_file *file_priv) |
135 | struct drm_agp_binding *request) |
181 | { |
136 | { |
182 | return -ENODEV; |
137 | return -ENODEV; |
Line 183... | Line -... | ||
183 | } |
- | |
184 | - | ||
185 | static inline int drm_agp_bind(struct drm_device *dev, |
- | |
186 | struct drm_agp_binding *request) |
- | |
187 | { |
- | |
188 | return -ENODEV; |
- | |
189 | } |
138 | } |
Line 190... | Line 139... | ||
190 | 139 |