change /dev/dri/card0 to /dev/drm0. Subdirs in /dev considered

irritating.
This commit is contained in:
oga 2008-06-12 22:20:24 +00:00
parent 6c7c865978
commit 4b526e486b
2 changed files with 7 additions and 2 deletions

View File

@ -48,8 +48,13 @@
(S_IRUSR|S_IWUSR|S_IXUSR|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH)
#define DRM_DEV_MODE (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP)
#ifdef __OpenBSD__
#define DRM_DIR_NAME "/dev"
#define DRM_DEV_NAME "%s/drm%d"
#else
#define DRM_DIR_NAME "/dev/dri"
#define DRM_DEV_NAME "%s/card%d"
#endif
#define DRM_PROC_NAME "/proc/dri/" /* For backward Linux compatibility */
#define DRM_ERR_NO_DEVICE (-1001)

View File

@ -1,4 +1,4 @@
/* $OpenBSD: privsep.c,v 1.6 2008/06/12 18:50:19 oga Exp $ */
/* $OpenBSD: privsep.c,v 1.7 2008/06/12 22:20:24 oga Exp $ */
/*
* Copyright 2001 Niels Provos <provos@citi.umich.edu>
* All rights reserved.
@ -108,7 +108,7 @@ struct okdev {
{"/dev/ttyD7", O_RDWR | O_NONBLOCK | O_EXCL},
{"/dev/pci", O_RDWR | O_NONBLOCK | O_EXCL},
{"/dev/agp0", O_RDWR | O_NONBLOCK | O_EXCL},
{"/dev/dri/card0", O_RDWR },
{"/dev/drm0", O_RDWR },
{NULL, 0}
};