summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/drm/mach64_drv.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/pci/drm/mach64_drv.c')
-rw-r--r--sys/dev/pci/drm/mach64_drv.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/sys/dev/pci/drm/mach64_drv.c b/sys/dev/pci/drm/mach64_drv.c
index ef2ed7a21ef..085a0de16bc 100644
--- a/sys/dev/pci/drm/mach64_drv.c
+++ b/sys/dev/pci/drm/mach64_drv.c
@@ -39,7 +39,7 @@
#include "mach64_drv.h"
#include "drm_pciids.h"
-void mach64_configure(drm_device_t *);
+void mach64_configure(struct drm_device *);
/* drv_PCI_IDs comes from drm_pciids.h, generated from drm_pciids.txt. */
static drm_pci_id_list_t mach64_pciidlist[] = {
@@ -47,7 +47,7 @@ static drm_pci_id_list_t mach64_pciidlist[] = {
};
void
-mach64_configure(drm_device_t *dev)
+mach64_configure(struct drm_device *dev)
{
dev->driver.buf_priv_size = 1; /* No dev_priv */
dev->driver.lastclose = mach64_driver_lastclose;
@@ -88,9 +88,9 @@ mach64_probe(device_t dev)
static int
mach64_attach(device_t nbdev)
{
- drm_device_t *dev = device_get_softc(nbdev);
+ struct drm_device *dev = device_get_softc(nbdev);
- bzero(dev, sizeof(drm_device_t));
+ bzero(dev, sizeof(struct drm_device));
mach64_configure(dev);
return drm_attach(nbdev, mach64_pciidlist);
}
@@ -107,7 +107,7 @@ static device_method_t mach64_methods[] = {
static driver_t mach64_driver = {
"drm",
mach64_methods,
- sizeof(drm_device_t)
+ sizeof(struct drm_device)
};
extern devclass_t drm_devclass;
@@ -137,7 +137,7 @@ void
mach64drm_attach(struct device *parent, struct device *self, void *aux)
{
struct pci_attach_args *pa = aux;
- drm_device_t *dev = (drm_device_t *)self;
+ struct drm_device *dev = (struct drm_device *)self;
mach64_configure(dev);
return drm_attach(parent, self, pa, mach64_pciidlist);
@@ -145,7 +145,7 @@ mach64drm_attach(struct device *parent, struct device *self, void *aux)
#if defined(__OpenBSD__)
struct cfattach machdrm_ca = {
- sizeof(drm_device_t), mach64drm_probe, mach64drm_attach,
+ sizeof(struct drm_device), mach64drm_probe, mach64drm_attach,
drm_detach, drm_activate
};
@@ -156,8 +156,8 @@ struct cfdriver machdrm_cd = {
#ifdef _LKM
CFDRIVER_DECL(mach64drm, DV_TTY, NULL);
#else
-CFATTACH_DECL(mach64drm, sizeof(drm_device_t), mach64drm_probe, mach64drm_attach,
- drm_detach, drm_activate);
+CFATTACH_DECL(mach64drm, sizeof(struct drm_device), mach64drm_probe,
+ mach64drm_attach, drm_detach, drm_activate);
#endif
#endif