summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/drmP.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/pci/drm/drmP.h')
-rw-r--r--sys/dev/pci/drm/drmP.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/sys/dev/pci/drm/drmP.h b/sys/dev/pci/drm/drmP.h
index a90b9188d96..c9a2b235992 100644
--- a/sys/dev/pci/drm/drmP.h
+++ b/sys/dev/pci/drm/drmP.h
@@ -540,16 +540,13 @@ typedef struct drm_ioctl_desc {
#define DRM_IOCTL_DEF(ioctl, func, flags) \
[DRM_IOCTL_NR(ioctl)] = {ioctl, func, flags}
-typedef struct drm_magic_entry {
+typedef TAILQ_HEAD(drm_magic_list, drm_magic_entry) drm_magic_head_t;
+struct drm_magic_entry {
drm_magic_t magic;
struct drm_file *priv;
- struct drm_magic_entry *next;
-} drm_magic_entry_t;
+ TAILQ_ENTRY(drm_magic_entry) link;
+};
-typedef struct drm_magic_head {
- struct drm_magic_entry *head;
- struct drm_magic_entry *tail;
-} drm_magic_head_t;
typedef struct drm_buf {
int idx; /* Index into master buflist */