diff options
author | Eric Anholt <anholt@freebsd.org> | 2003-10-17 03:14:39 +0000 |
---|---|---|
committer | Eric Anholt <anholt@freebsd.org> | 2003-10-17 03:14:39 +0000 |
commit | ff58476011ba8fe72d65e884380d3d86710bfdd4 (patch) | |
tree | c2855a267ab001340e588ae6b32a55982312cfa0 /bsd-core/drmP.h | |
parent | 355b204de0dbc01308bebc77c4c1c0a9a402cded (diff) |
- Converted Linux drivers to initialize DRM instances based on PCI IDs, not
just a single instance. Moved the PCI ID lists from <card>_drv.c in BSD
to <card>.h. The PCI ID lists include a driver private field, which may
be used by drivers for chip family or other information. Based on work
by jonsmirl.
- Make tdfx_drv.c and tdfx.h match other drivers.
- Fixed up linking of sis shared files.
Tested with Radeon and SiS on Linux and FreeBSD, including a Linux setup
with
2 SiS cards in a machine, but only one head being used (with DRI)
Diffstat (limited to 'bsd-core/drmP.h')
-rw-r--r-- | bsd-core/drmP.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bsd-core/drmP.h b/bsd-core/drmP.h index 2d36c3c8..0a93ef32 100644 --- a/bsd-core/drmP.h +++ b/bsd-core/drmP.h @@ -123,6 +123,14 @@ typedef struct drm_file drm_file_t; } while(0) +typedef struct drm_pci_id_list +{ + int vendor; + int device; + long driver_private; + char *name; +} drm_pci_id_list_t; + typedef struct drm_ioctl_desc { int (*func)(DRM_IOCTL_ARGS); int auth_needed; |