summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/drmP.h
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2008-06-26 18:17:23 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2008-06-26 18:17:23 +0000
commit0669fb3306ea473e9ddaaf9f82ba81844f054b02 (patch)
tree0b86f8ae37003fb865f6512e1f2aafe8d2e86f2a /sys/dev/pci/drm/drmP.h
parentd451bd346083a51e422c67a4c80a4368ec81af41 (diff)
Since we're not ifdefed anymore, change
drm_{open,close,poll,read,mmap,ioctl} into the form that cdev_decl() likes, and nuke the #defines.
Diffstat (limited to 'sys/dev/pci/drm/drmP.h')
-rw-r--r--sys/dev/pci/drm/drmP.h33
1 files changed, 11 insertions, 22 deletions
diff --git a/sys/dev/pci/drm/drmP.h b/sys/dev/pci/drm/drmP.h
index 237fe2ed70b..7d505c48ab3 100644
--- a/sys/dev/pci/drm/drmP.h
+++ b/sys/dev/pci/drm/drmP.h
@@ -153,17 +153,6 @@ extern drm_device_t *drm_units[];
/* Deal with netbsd code where only the print statements differ */
#define printk printf
#define __unused /* nothing */
-/*
- * cdev_decl() doesn't like underscore separated names.
- * doing this here is easier that ifdefing each of them.
- */
-#define drm_ioctl drmioctl
-#define drm_open drmopen
-#define drm_close drmclose
-#define drm_read drmread
-#define drm_poll drmpoll
-#define drm_mmap drmmmap
-
#define DRM_IRQ_ARGS void *arg
typedef int irqreturn_t;
@@ -735,17 +724,17 @@ extern int drm_debug_flag;
/* Device setup support (drm_drv.c) */
int drm_probe(struct pci_attach_args *, drm_pci_id_list_t * );
-void drm_attach(struct device *kdev, struct device *parent,
- struct pci_attach_args *pa, drm_pci_id_list_t *idlist);
-int drm_detach(struct device *self, int flags);
-int drm_activate(struct device *self, enum devact act);
-dev_type_ioctl(drm_ioctl);
-dev_type_open(drm_open);
-dev_type_close(drm_close);
-dev_type_read(drm_read);
-dev_type_poll(drm_poll);
-dev_type_mmap(drm_mmap);
-extern drm_local_map_t *drm_getsarea(drm_device_t *dev);
+void drm_attach(struct device *, struct device *,
+ struct pci_attach_args *, drm_pci_id_list_t *);
+int drm_detach(struct device *, int );
+int drm_activate(struct device *, enum devact);
+dev_type_ioctl(drmioctl);
+dev_type_open(drmopen);
+dev_type_close(drmclose);
+dev_type_read(drmread);
+dev_type_poll(drmpoll);
+dev_type_mmap(drmmmap);
+extern drm_local_map_t *drm_getsarea(drm_device_t *);
/* File operations helpers (drm_fops.c) */
int drm_open_helper(DRM_CDEV, int, int,