Lines Matching refs:dev
32 __FBSDID("$FreeBSD: releng/11.0/sys/dev/drm/via_drv.c 203288 2010-01-31 14:30:39Z rnoland $");
34 #include "dev/drm/drmP.h"
35 #include "dev/drm/drm.h"
36 #include "dev/drm/via_drm.h"
37 #include "dev/drm/via_drv.h"
38 #include "dev/drm/drm_pciids.h"
45 static void via_configure(struct drm_device *dev)
47 dev->driver->driver_features =
50 dev->driver->buf_priv_size = sizeof(drm_via_private_t);
51 dev->driver->load = via_driver_load;
52 dev->driver->unload = via_driver_unload;
53 dev->driver->lastclose = via_lastclose;
54 dev->driver->get_vblank_counter = via_get_vblank_counter;
55 dev->driver->enable_vblank = via_enable_vblank;
56 dev->driver->disable_vblank = via_disable_vblank;
57 dev->driver->irq_preinstall = via_driver_irq_preinstall;
58 dev->driver->irq_postinstall = via_driver_irq_postinstall;
59 dev->driver->irq_uninstall = via_driver_irq_uninstall;
60 dev->driver->irq_handler = via_driver_irq_handler;
61 dev->driver->dma_quiescent = via_driver_dma_quiescent;
63 dev->driver->ioctls = via_ioctls;
64 dev->driver->max_ioctl = via_max_ioctl;
66 dev->driver->name = DRIVER_NAME;
67 dev->driver->desc = DRIVER_DESC;
68 dev->driver->date = DRIVER_DATE;
69 dev->driver->major = DRIVER_MAJOR;
70 dev->driver->minor = DRIVER_MINOR;
71 dev->driver->patchlevel = DRIVER_PATCHLEVEL;
83 struct drm_device *dev = device_get_softc(kdev);
85 dev->driver = malloc(sizeof(struct drm_driver_info), DRM_MEM_DRIVER,
88 via_configure(dev);
96 struct drm_device *dev = device_get_softc(kdev);
101 free(dev->driver, DRM_MEM_DRIVER);