aboutsummaryrefslogtreecommitdiff
path: root/shared-core/savage_bci.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2005-09-03 03:27:14 +0000
committerDave Airlie <airlied@linux.ie>2005-09-03 03:27:14 +0000
commit0d346a07a87ef7bf6b77adda7c776e2ac5849266 (patch)
tree84a5501d1d26c85c45971e9d0fc4dd1f49a16cad /shared-core/savage_bci.c
parent80ed93c7bf9f8c8d42cbcc26e82020cfcd92fb77 (diff)
convert ioctl flags to use flags instead of separate ints
Diffstat (limited to 'shared-core/savage_bci.c')
-rw-r--r--shared-core/savage_bci.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/shared-core/savage_bci.c b/shared-core/savage_bci.c
index 6199c349..28ef38bb 100644
--- a/shared-core/savage_bci.c
+++ b/shared-core/savage_bci.c
@@ -1099,10 +1099,10 @@ void savage_reclaim_buffers(drm_device_t *dev, DRMFILE filp) {
}
drm_ioctl_desc_t savage_ioctls[] = {
- [DRM_IOCTL_NR(DRM_SAVAGE_BCI_INIT)] = {savage_bci_init, 1, 1, 1},
- [DRM_IOCTL_NR(DRM_SAVAGE_BCI_CMDBUF)] = {savage_bci_cmdbuf, 1, 0, 0},
- [DRM_IOCTL_NR(DRM_SAVAGE_BCI_EVENT_EMIT)] = {savage_bci_event_emit, 1, 0, 0},
- [DRM_IOCTL_NR(DRM_SAVAGE_BCI_EVENT_WAIT)] = {savage_bci_event_wait, 1, 0, 0},
+ [DRM_IOCTL_NR(DRM_SAVAGE_BCI_INIT)] = {savage_bci_init, DRM_AUTH|DRM_MASTER|DRM_ROOT_ONLY},
+ [DRM_IOCTL_NR(DRM_SAVAGE_BCI_CMDBUF)] = {savage_bci_cmdbuf, DRM_AUTH},
+ [DRM_IOCTL_NR(DRM_SAVAGE_BCI_EVENT_EMIT)] = {savage_bci_event_emit, DRM_AUTH},
+ [DRM_IOCTL_NR(DRM_SAVAGE_BCI_EVENT_WAIT)] = {savage_bci_event_wait, DRM_AUTH},
};
int savage_max_ioctl = DRM_ARRAY_SIZE(savage_ioctls);