Deleted Added
full compact
savage_drv.c (152909) savage_drv.c (153579)
1/* savage_drv.c -- Savage DRI driver
2 */
3/*-
4 * Copyright 2005 Eric Anholt
5 * All Rights Reserved.
6 *
7 * Permission is hereby granted, free of charge, to any person obtaining a
8 * copy of this software and associated documentation files (the "Software"),

--- 13 unchanged lines hidden (view full) ---

22 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
23 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24 *
25 * Authors:
26 * Eric Anholt <anholt@FreeBSD.org>
27 */
28
29#include <sys/cdefs.h>
1/* savage_drv.c -- Savage DRI driver
2 */
3/*-
4 * Copyright 2005 Eric Anholt
5 * All Rights Reserved.
6 *
7 * Permission is hereby granted, free of charge, to any person obtaining a
8 * copy of this software and associated documentation files (the "Software"),

--- 13 unchanged lines hidden (view full) ---

22 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
23 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24 *
25 * Authors:
26 * Eric Anholt <anholt@FreeBSD.org>
27 */
28
29#include <sys/cdefs.h>
30__FBSDID("$FreeBSD: head/sys/dev/drm/savage_drv.c 152909 2005-11-28 23:13:57Z anholt $");
30__FBSDID("$FreeBSD: head/sys/dev/drm/savage_drv.c 153579 2005-12-20 22:44:36Z jhb $");
31
32#include "dev/drm/drmP.h"
33#include "dev/drm/drm.h"
34#include "dev/drm/savage_drm.h"
35#include "dev/drm/savage_drv.h"
36#include "dev/drm/drm_pciids.h"
37
38/* drv_PCI_IDs comes from drm_pciids.h, generated from drm_pciids.txt. */

--- 55 unchanged lines hidden (view full) ---

94
95static driver_t savage_driver = {
96 "drm",
97 savage_methods,
98 sizeof(drm_device_t)
99};
100
101extern devclass_t drm_devclass;
31
32#include "dev/drm/drmP.h"
33#include "dev/drm/drm.h"
34#include "dev/drm/savage_drm.h"
35#include "dev/drm/savage_drv.h"
36#include "dev/drm/drm_pciids.h"
37
38/* drv_PCI_IDs comes from drm_pciids.h, generated from drm_pciids.txt. */

--- 55 unchanged lines hidden (view full) ---

94
95static driver_t savage_driver = {
96 "drm",
97 savage_methods,
98 sizeof(drm_device_t)
99};
100
101extern devclass_t drm_devclass;
102#if __FreeBSD_version >= 700010
103DRIVER_MODULE(savage, vgapci, savage_driver, drm_devclass, 0, 0);
104#else
102DRIVER_MODULE(savage, pci, savage_driver, drm_devclass, 0, 0);
105DRIVER_MODULE(savage, pci, savage_driver, drm_devclass, 0, 0);
106#endif
103MODULE_DEPEND(savage, drm, 1, 1, 1);
104
105#elif defined(__NetBSD__) || defined(__OpenBSD__)
106CFDRIVER_DECL(savage, DV_TTY, NULL);
107#endif
107MODULE_DEPEND(savage, drm, 1, 1, 1);
108
109#elif defined(__NetBSD__) || defined(__OpenBSD__)
110CFDRIVER_DECL(savage, DV_TTY, NULL);
111#endif