Lines Matching refs:dev
35 __FBSDID("$FreeBSD: releng/11.0/sys/dev/drm/mga_drv.c 283999 2015-06-04 20:36:16Z jhb $");
37 #include "dev/drm/drmP.h"
38 #include "dev/drm/drm.h"
39 #include "dev/drm/mga_drm.h"
40 #include "dev/drm/mga_drv.h"
41 #include "dev/drm/drm_pciids.h"
55 * \param dev The device to be tested.
65 static int mga_driver_device_is_agp(struct drm_device * dev)
77 bus = device_get_parent(device_get_parent(dev->device));
78 if (pci_get_device(dev->device) == 0x0525 &&
86 static void mga_configure(struct drm_device *dev)
88 dev->driver->driver_features =
92 dev->driver->buf_priv_size = sizeof(drm_mga_buf_priv_t);
93 dev->driver->load = mga_driver_load;
94 dev->driver->unload = mga_driver_unload;
95 dev->driver->lastclose = mga_driver_lastclose;
96 dev->driver->get_vblank_counter = mga_get_vblank_counter;
97 dev->driver->enable_vblank = mga_enable_vblank;
98 dev->driver->disable_vblank = mga_disable_vblank;
99 dev->driver->irq_preinstall = mga_driver_irq_preinstall;
100 dev->driver->irq_postinstall = mga_driver_irq_postinstall;
101 dev->driver->irq_uninstall = mga_driver_irq_uninstall;
102 dev->driver->irq_handler = mga_driver_irq_handler;
103 dev->driver->dma_ioctl = mga_dma_buffers;
104 dev->driver->dma_quiescent = mga_driver_dma_quiescent;
105 dev->driver->device_is_agp = mga_driver_device_is_agp;
107 dev->driver->ioctls = mga_ioctls;
108 dev->driver->max_ioctl = mga_max_ioctl;
110 dev->driver->name = DRIVER_NAME;
111 dev->driver->desc = DRIVER_DESC;
112 dev->driver->date = DRIVER_DATE;
113 dev->driver->major = DRIVER_MAJOR;
114 dev->driver->minor = DRIVER_MINOR;
115 dev->driver->patchlevel = DRIVER_PATCHLEVEL;
127 struct drm_device *dev = device_get_softc(kdev);
129 dev->driver = malloc(sizeof(struct drm_driver_info), DRM_MEM_DRIVER,
132 mga_configure(dev);
140 struct drm_device *dev = device_get_softc(kdev);
145 free(dev->driver, DRM_MEM_DRIVER);