radeon_drv.c (152909) | radeon_drv.c (153579) |
---|---|
1/* radeon_drv.c -- ATI Radeon driver -*- linux-c -*- 2 * Created: Wed Feb 14 17:10:04 2001 by gareth@valinux.com 3 */ 4/*- 5 * Copyright 2000 VA Linux Systems, Inc., Sunnyvale, California. 6 * All Rights Reserved. 7 * 8 * Permission is hereby granted, free of charge, to any person obtaining a --- 16 unchanged lines hidden (view full) --- 25 * OTHER DEALINGS IN THE SOFTWARE. 26 * 27 * Authors: 28 * Gareth Hughes <gareth@valinux.com> 29 * 30 */ 31 32#include <sys/cdefs.h> | 1/* radeon_drv.c -- ATI Radeon driver -*- linux-c -*- 2 * Created: Wed Feb 14 17:10:04 2001 by gareth@valinux.com 3 */ 4/*- 5 * Copyright 2000 VA Linux Systems, Inc., Sunnyvale, California. 6 * All Rights Reserved. 7 * 8 * Permission is hereby granted, free of charge, to any person obtaining a --- 16 unchanged lines hidden (view full) --- 25 * OTHER DEALINGS IN THE SOFTWARE. 26 * 27 * Authors: 28 * Gareth Hughes <gareth@valinux.com> 29 * 30 */ 31 32#include <sys/cdefs.h> |
33__FBSDID("$FreeBSD: head/sys/dev/drm/radeon_drv.c 152909 2005-11-28 23:13:57Z anholt $"); | 33__FBSDID("$FreeBSD: head/sys/dev/drm/radeon_drv.c 153579 2005-12-20 22:44:36Z jhb $"); |
34 35#include "dev/drm/drmP.h" 36#include "dev/drm/drm.h" 37#include "dev/drm/radeon_drm.h" 38#include "dev/drm/radeon_drv.h" 39#include "dev/drm/drm_pciids.h" 40 41int radeon_no_wb; --- 67 unchanged lines hidden (view full) --- 109 110static driver_t radeon_driver = { 111 "drm", 112 radeon_methods, 113 sizeof(drm_device_t) 114}; 115 116extern devclass_t drm_devclass; | 34 35#include "dev/drm/drmP.h" 36#include "dev/drm/drm.h" 37#include "dev/drm/radeon_drm.h" 38#include "dev/drm/radeon_drv.h" 39#include "dev/drm/drm_pciids.h" 40 41int radeon_no_wb; --- 67 unchanged lines hidden (view full) --- 109 110static driver_t radeon_driver = { 111 "drm", 112 radeon_methods, 113 sizeof(drm_device_t) 114}; 115 116extern devclass_t drm_devclass; |
117#if __FreeBSD_version >= 700010 118DRIVER_MODULE(radeon, vgapci, radeon_driver, drm_devclass, 0, 0); 119#else |
|
117DRIVER_MODULE(radeon, pci, radeon_driver, drm_devclass, 0, 0); | 120DRIVER_MODULE(radeon, pci, radeon_driver, drm_devclass, 0, 0); |
121#endif |
|
118MODULE_DEPEND(radeon, drm, 1, 1, 1); 119 120#elif defined(__NetBSD__) || defined(__OpenBSD__) 121#ifdef _LKM 122CFDRIVER_DECL(radeon, DV_TTY, NULL); 123#else 124CFATTACH_DECL(radeon, sizeof(drm_device_t), drm_probe, drm_attach, drm_detach, 125 drm_activate); 126#endif 127#endif /* __FreeBSD__ */ | 122MODULE_DEPEND(radeon, drm, 1, 1, 1); 123 124#elif defined(__NetBSD__) || defined(__OpenBSD__) 125#ifdef _LKM 126CFDRIVER_DECL(radeon, DV_TTY, NULL); 127#else 128CFATTACH_DECL(radeon, sizeof(drm_device_t), drm_probe, drm_attach, drm_detach, 129 drm_activate); 130#endif 131#endif /* __FreeBSD__ */ |