diff options
author | Eric Anholt <anholt@freebsd.org> | 2002-06-27 03:23:41 +0000 |
---|---|---|
committer | Eric Anholt <anholt@freebsd.org> | 2002-06-27 03:23:41 +0000 |
commit | 635b7784a6e53b7f12e387957cb991c7d0734673 (patch) | |
tree | b9b4145e1d1044210e917a019f019e847afa0d75 | |
parent | 840ea6cd73a9701fd1ab4989cced600be031bdb8 (diff) |
Messed up use of IOC() in the last commit.
-rw-r--r-- | libdrm/xf86drm.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/libdrm/xf86drm.c b/libdrm/xf86drm.c index 4b2c3cf9..b5375ee5 100644 --- a/libdrm/xf86drm.c +++ b/libdrm/xf86drm.c @@ -1381,7 +1381,8 @@ int drmCommandRead(int fd, unsigned long drmCommandIndex, { unsigned long request; - request = DRM_IOC( DRM_IOC_READ, DRM_COMMAND_BASE, drmCommandIndex, size); + request = DRM_IOC( DRM_IOC_READ, DRM_IOCTL_BASE, + DRM_COMMAND_BASE + drmCommandIndex, size); if (ioctl(fd, request, data)) { return -errno; @@ -1394,7 +1395,8 @@ int drmCommandWrite(int fd, unsigned long drmCommandIndex, { unsigned long request; - request = DRM_IOC( DRM_IOC_WRITE, DRM_COMMAND_BASE, drmCommandIndex, size); + request = DRM_IOC( DRM_IOC_WRITE, DRM_IOCTL_BASE, + DRM_COMMAND_BASE + drmCommandIndex, size); if (ioctl(fd, request, data)) { return -errno; @@ -1407,7 +1409,8 @@ int drmCommandWriteRead(int fd, unsigned long drmCommandIndex, { unsigned long request; - request = DRM_IOC( DRM_IOC_READ|DRM_IOC_WRITE, DRM_COMMAND_BASE, drmCommandIndex, size); + request = DRM_IOC( DRM_IOC_READ|DRM_IOC_WRITE, DRM_IOCTL_BASE, + DRM_COMMAND_BASE + drmCommandIndex, size); if (ioctl(fd, request, data)) { return -errno; |