aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2012-06-24 13:57:24 -0400
committerDave Airlie <airlied@redhat.com>2012-07-19 22:51:58 -0400
commit83bc5fd29afff5898cadf87fb29eb9260eecc63e (patch)
tree3e30342aa5203f4a0789d7968f89446e8fd19dd5 /include
parent26587e69946249dc8327c5912d86320c3f63b2c5 (diff)
drm/sis: fixup sis_mm ioctl structs
Userspace uses long in quite a few places more than the kernel. Which gives me neat proof that I'm the only guy on this side of the galaxy who ever tried to run glxgears on a 64bit machine with sis graphics on linux. Note that the longs in drm_sis_mem_t aren't aligned properly, so this won't even work with 32bit userspace on 64bit kernel as-is. Hence the patch can't break that, either. Nope, I'm not nuts enough to write the 32bit ioctl compat layer for this and test it with some wine app. Even though hunting the ebay dungeons for a sis card actually supported by the mesa drivers casts some doubts on this ... Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/drm/sis_drm.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/drm/sis_drm.h b/include/drm/sis_drm.h
index 035b804dda6d..df3763222d73 100644
--- a/include/drm/sis_drm.h
+++ b/include/drm/sis_drm.h
@@ -51,17 +51,17 @@
51 51
52typedef struct { 52typedef struct {
53 int context; 53 int context;
54 unsigned int offset; 54 unsigned long offset;
55 unsigned int size; 55 unsigned long size;
56 unsigned long free; 56 unsigned long free;
57} drm_sis_mem_t; 57} drm_sis_mem_t;
58 58
59typedef struct { 59typedef struct {
60 unsigned int offset, size; 60 unsigned long offset, size;
61} drm_sis_agp_t; 61} drm_sis_agp_t;
62 62
63typedef struct { 63typedef struct {
64 unsigned int offset, size; 64 unsigned long offset, size;
65} drm_sis_fb_t; 65} drm_sis_fb_t;
66 66
67struct sis_file_private { 67struct sis_file_private {