Deleted Added
full compact
tdfx_drv.c (152909) tdfx_drv.c (153579)
1/* tdfx_drv.c -- tdfx driver -*- linux-c -*-
2 * Created: Thu Oct 7 10:38:32 1999 by faith@precisioninsight.com
3 */
4/*-
5 * Copyright 1999 Precision Insight, Inc., Cedar Park, Texas.
6 * Copyright 2000 VA Linux Systems, Inc., Sunnyvale, California.
7 * All Rights Reserved.
8 *

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

28 * Authors:
29 * Rickard E. (Rik) Faith <faith@valinux.com>
30 * Daryll Strauss <daryll@valinux.com>
31 * Gareth Hughes <gareth@valinux.com>
32 *
33 */
34
35#include <sys/cdefs.h>
1/* tdfx_drv.c -- tdfx driver -*- linux-c -*-
2 * Created: Thu Oct 7 10:38:32 1999 by faith@precisioninsight.com
3 */
4/*-
5 * Copyright 1999 Precision Insight, Inc., Cedar Park, Texas.
6 * Copyright 2000 VA Linux Systems, Inc., Sunnyvale, California.
7 * All Rights Reserved.
8 *

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

28 * Authors:
29 * Rickard E. (Rik) Faith <faith@valinux.com>
30 * Daryll Strauss <daryll@valinux.com>
31 * Gareth Hughes <gareth@valinux.com>
32 *
33 */
34
35#include <sys/cdefs.h>
36__FBSDID("$FreeBSD: head/sys/dev/drm/tdfx_drv.c 152909 2005-11-28 23:13:57Z anholt $");
36__FBSDID("$FreeBSD: head/sys/dev/drm/tdfx_drv.c 153579 2005-12-20 22:44:36Z jhb $");
37
38#include "dev/drm/tdfx_drv.h"
39#include "dev/drm/drmP.h"
40#include "dev/drm/drm_pciids.h"
41
42/* drv_PCI_IDs comes from drm_pciids.h, generated from drm_pciids.txt. */
43static drm_pci_id_list_t tdfx_pciidlist[] = {
44 tdfx_PCI_IDS

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

88
89static driver_t tdfx_driver = {
90 "drm",
91 tdfx_methods,
92 sizeof(drm_device_t)
93};
94
95extern devclass_t drm_devclass;
37
38#include "dev/drm/tdfx_drv.h"
39#include "dev/drm/drmP.h"
40#include "dev/drm/drm_pciids.h"
41
42/* drv_PCI_IDs comes from drm_pciids.h, generated from drm_pciids.txt. */
43static drm_pci_id_list_t tdfx_pciidlist[] = {
44 tdfx_PCI_IDS

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

88
89static driver_t tdfx_driver = {
90 "drm",
91 tdfx_methods,
92 sizeof(drm_device_t)
93};
94
95extern devclass_t drm_devclass;
96#if __FreeBSD_version >= 700010
97DRIVER_MODULE(tdfx, vgapci, tdfx_driver, drm_devclass, 0, 0);
98#else
96DRIVER_MODULE(tdfx, pci, tdfx_driver, drm_devclass, 0, 0);
99DRIVER_MODULE(tdfx, pci, tdfx_driver, drm_devclass, 0, 0);
100#endif
97MODULE_DEPEND(tdfx, drm, 1, 1, 1);
98
99#elif defined(__NetBSD__) || defined(__OpenBSD__)
100#ifdef _LKM
101CFDRIVER_DECL(tdfx, DV_TTY, NULL);
102#else
103CFATTACH_DECL(tdfx, sizeof(drm_device_t), drm_probe, drm_attach, drm_detach,
104 drm_activate);
105#endif
106#endif
101MODULE_DEPEND(tdfx, drm, 1, 1, 1);
102
103#elif defined(__NetBSD__) || defined(__OpenBSD__)
104#ifdef _LKM
105CFDRIVER_DECL(tdfx, DV_TTY, NULL);
106#else
107CFATTACH_DECL(tdfx, sizeof(drm_device_t), drm_probe, drm_attach, drm_detach,
108 drm_activate);
109#endif
110#endif