diff options
author | John Baldwin <jhb@FreeBSD.org> | 2005-12-20 22:44:36 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2005-12-20 22:44:36 +0000 |
commit | e9aa66d283ffab59006ac183b8788b3630178717 (patch) | |
tree | bf1b884ed397ca7de689d6b0df49906526678361 /sys/dev/drm/radeon_drv.c | |
parent | a1ee13ef190e865c9f19b1445020de1af28b3e6e (diff) | |
download | src-e9aa66d283ffab59006ac183b8788b3630178717.tar.gz src-e9aa66d283ffab59006ac183b8788b3630178717.zip |
- Bump FreeBSD version for the hostb(4) and vgapci(4) drivers as well as
the addition of pci_find_extcap().
- Change the drm drivers to attach to vgapci. This is #ifdef'd so the
code can be shared across branches.
- Use pci_find_extcap() to look for AGP and PCIE capabilities in drm.
- GC all the drmsub stuff for i810/i830/i915. The agp and drm devices are
now both children of vgapci.
Notes
Notes:
svn path=/head/; revision=153579
Diffstat (limited to 'sys/dev/drm/radeon_drv.c')
-rw-r--r-- | sys/dev/drm/radeon_drv.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/drm/radeon_drv.c b/sys/dev/drm/radeon_drv.c index 8ac798eac83c..af12d3d3f05e 100644 --- a/sys/dev/drm/radeon_drv.c +++ b/sys/dev/drm/radeon_drv.c @@ -114,7 +114,11 @@ static driver_t radeon_driver = { }; extern devclass_t drm_devclass; +#if __FreeBSD_version >= 700010 +DRIVER_MODULE(radeon, vgapci, radeon_driver, drm_devclass, 0, 0); +#else DRIVER_MODULE(radeon, pci, radeon_driver, drm_devclass, 0, 0); +#endif MODULE_DEPEND(radeon, drm, 1, 1, 1); #elif defined(__NetBSD__) || defined(__OpenBSD__) |