Lines Matching refs:dev
34 __FBSDID("$FreeBSD: releng/11.0/sys/dev/drm/mach64_drv.c 283999 2015-06-04 20:36:16Z jhb $");
39 #include "dev/drm/drmP.h"
40 #include "dev/drm/drm.h"
41 #include "dev/drm/mach64_drm.h"
42 #include "dev/drm/mach64_drv.h"
43 #include "dev/drm/drm_pciids.h"
50 static void mach64_configure(struct drm_device *dev)
52 dev->driver->driver_features =
56 dev->driver->buf_priv_size = 1; /* No dev_priv */
57 dev->driver->load = mach64_driver_load;
58 dev->driver->lastclose = mach64_driver_lastclose;
59 dev->driver->get_vblank_counter = mach64_get_vblank_counter;
60 dev->driver->enable_vblank = mach64_enable_vblank;
61 dev->driver->disable_vblank = mach64_disable_vblank;
62 dev->driver->irq_preinstall = mach64_driver_irq_preinstall;
63 dev->driver->irq_postinstall = mach64_driver_irq_postinstall;
64 dev->driver->irq_uninstall = mach64_driver_irq_uninstall;
65 dev->driver->irq_handler = mach64_driver_irq_handler;
66 dev->driver->dma_ioctl = mach64_dma_buffers;
68 dev->driver->ioctls = mach64_ioctls;
69 dev->driver->max_ioctl = mach64_max_ioctl;
71 dev->driver->name = DRIVER_NAME;
72 dev->driver->desc = DRIVER_DESC;
73 dev->driver->date = DRIVER_DATE;
74 dev->driver->major = DRIVER_MAJOR;
75 dev->driver->minor = DRIVER_MINOR;
76 dev->driver->patchlevel = DRIVER_PATCHLEVEL;
88 struct drm_device *dev = device_get_softc(kdev);
90 dev->driver = malloc(sizeof(struct drm_driver_info), DRM_MEM_DRIVER,
93 mach64_configure(dev);
99 mach64_driver_load(struct drm_device * dev, unsigned long flags)
101 return drm_vblank_init(dev, 1);
107 struct drm_device *dev = device_get_softc(kdev);
112 free(dev->driver, DRM_MEM_DRIVER);