diff options
authorJammy Zhou2015-02-10 22:40:51 -0600
committerAlex Deucher2015-02-12 17:34:57 -0600
commitf1adc4b375a16b07f560b86a34e617984049c422 (patch)
tree0d8fdd70eb5f9653bd966dea644b56c827d65949 /xf86drm.h
parentdd89e1efd05299ec4015d144158d2eceeb6a6484 (diff)
Add new drmOpenWithType function (v4)
v2: Add drmGetMinorBase, and call drmOpenWithType in drmOpen v3: Pass 'type' to drmOpenByBusid and drmOpenDevice in drmOpenByName v4: Renumber node type definitions, and return -1 for unsupported type Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> (v3) Reviewed-by: Frank Binns <frank.binns@imgtec.com>
Diffstat (limited to 'xf86drm.h')
1 files changed, 8 insertions, 1 deletions
diff --git a/xf86drm.h b/xf86drm.h
index bfd0670b..7e82521b 100644
--- a/xf86drm.h
+++ b/xf86drm.h
@@ -552,7 +552,14 @@ do { register unsigned int __old __asm("o0"); \
552/* General user-level programmer's API: unprivileged */ 552/* General user-level programmer's API: unprivileged */
553extern int drmAvailable(void); 553extern int drmAvailable(void);
554extern int drmOpen(const char *name, const char *busid); 554extern int drmOpen(const char *name, const char *busid);
555extern int drmOpenControl(int minor); 555
556#define DRM_NODE_PRIMARY 0
557#define DRM_NODE_CONTROL 1
558#define DRM_NODE_RENDER 2
559extern int drmOpenWithType(const char *name, const char *busid,
560 int type);
562extern int drmOpenControl(int minor);
556extern int drmOpenRender(int minor); 563extern int drmOpenRender(int minor);
557extern int drmClose(int fd); 564extern int drmClose(int fd);
558extern drmVersionPtr drmGetVersion(int fd); 565extern drmVersionPtr drmGetVersion(int fd);