Contents of /trunk/ati-drivers/patches/fglrx-2.6.12-inter_module_get.patch
Parent Directory | Revision Log
Revision 144 -
(show annotations)
(download)
Tue May 8 20:06:05 2007 UTC (17 years, 4 months ago) by niro
File size: 1265 byte(s)
Tue May 8 20:06:05 2007 UTC (17 years, 4 months ago) by niro
File size: 1265 byte(s)
-import
1 | --- build_mod.orig/firegl_public.c 2005-06-19 21:37:23.000000000 +0200 |
2 | +++ build_mod/firegl_public.c 2005-06-19 21:22:49.000000000 +0200 |
3 | @@ -343,17 +343,17 @@ |
4 | struct firegl_drm_stub_info_t *firegl_stub_pointer = NULL; |
5 | #define inter_module_put(x) |
6 | #define inter_module_unregister(x) |
7 | -#define inter_module_get(x) firegl_stub_pointer |
8 | +#define inter_module_get_request(x,y) firegl_stub_pointer |
9 | #define inter_module_register(x,y,z) do { firegl_stub_pointer = z; } while (0) |
10 | /* This is a kludge for backward compatibility that is only useful in DRM(stub_open) */ |
11 | #define fops_put(fops) MOD_DEC_USE_COUNT |
12 | #define fops_get(fops) (fops); MOD_INC_USE_COUNT |
13 | #endif // LINUX_VERSION_CODE < 0x020400 |
14 | |
15 | -#define DRM_MODULE_GET (firegl_drm_stub_info_t *)inter_module_get("drm") |
16 | +#define DRM_MODULE_GET (firegl_drm_stub_info_t *)inter_module_get_request("drm", "drm") |
17 | #define DRM_MODULE_PUT inter_module_put("drm") |
18 | |
19 | -#define DRM_AGP_MODULE_GET (drm_agp_t *)inter_module_get("drm_agp") |
20 | +#define DRM_AGP_MODULE_GET (drm_agp_t *)inter_module_get_request("drm_agp","drm_agp") |
21 | #define DRM_AGP_MODULE_PUT inter_module_put("drm_agp") |
22 | |
23 | unsigned long ATI_API_CALL __ke_cpu_to_le32(unsigned long _u) |
Properties
Name | Value |
---|---|
svn:executable | * |