From b0da5df90a76e4e79c356fdbc90211a8e21f095c Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 4 Aug 2005 07:42:01 +0000 Subject: Fix the MGA driver on BSD by passing in the proper chipset flags to the driver's preinit routine, and by using DRM_COPY_TO_USER_IOCTL when copying out to an ioctl's data pointer. Pulled from the latest version of my drm-hook-rename.diff and only compile-tested after that. --- bsd-core/drmP.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bsd-core/drmP.h') diff --git a/bsd-core/drmP.h b/bsd-core/drmP.h index ab6cc534..596e25f4 100644 --- a/bsd-core/drmP.h +++ b/bsd-core/drmP.h @@ -653,6 +653,8 @@ struct drm_device { void (*irq_handler)(DRM_IRQ_ARGS); int (*vblank_wait)(drm_device_t *dev, unsigned int *sequence); + drm_pci_id_list_t *id_entry; /* PCI ID, name, and chipset private */ + /** * Called by \c drm_device_is_agp. Typically used to determine if a * card is really attached to AGP or not. -- cgit v1.2.3