Deleted Added
full compact
r128_drv.c (152909) r128_drv.c (153579)
1/* r128_drv.c -- ATI Rage 128 driver -*- linux-c -*-
2 * Created: Mon Dec 13 09:47:27 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 *

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

27 *
28 * Authors:
29 * Rickard E. (Rik) Faith <faith@valinux.com>
30 * Gareth Hughes <gareth@valinux.com>
31 *
32 */
33
34#include <sys/cdefs.h>
1/* r128_drv.c -- ATI Rage 128 driver -*- linux-c -*-
2 * Created: Mon Dec 13 09:47:27 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 *

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

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

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

104
105static driver_t r128_driver = {
106 "drm",
107 r128_methods,
108 sizeof(drm_device_t)
109};
110
111extern devclass_t drm_devclass;
36
37#include "dev/drm/drmP.h"
38#include "dev/drm/drm.h"
39#include "dev/drm/r128_drm.h"
40#include "dev/drm/r128_drv.h"
41#include "dev/drm/drm_pciids.h"
42
43/* drv_PCI_IDs comes from drm_pciids.h, generated from drm_pciids.txt. */

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

104
105static driver_t r128_driver = {
106 "drm",
107 r128_methods,
108 sizeof(drm_device_t)
109};
110
111extern devclass_t drm_devclass;
112#if __FreeBSD_version >= 700010
113DRIVER_MODULE(r128, vgapci, r128_driver, drm_devclass, 0, 0);
114#else
112DRIVER_MODULE(r128, pci, r128_driver, drm_devclass, 0, 0);
115DRIVER_MODULE(r128, pci, r128_driver, drm_devclass, 0, 0);
116#endif
113MODULE_DEPEND(r128, drm, 1, 1, 1);
114
115#elif defined(__NetBSD__) || defined(__OpenBSD__)
116#ifdef _LKM
117CFDRIVER_DECL(r128, DV_TTY, NULL);
118#else
119CFATTACH_DECL(r128, sizeof(drm_device_t), drm_probe, drm_attach, drm_detach,
120 drm_activate);
121#endif
122#endif
117MODULE_DEPEND(r128, drm, 1, 1, 1);
118
119#elif defined(__NetBSD__) || defined(__OpenBSD__)
120#ifdef _LKM
121CFDRIVER_DECL(r128, DV_TTY, NULL);
122#else
123CFATTACH_DECL(r128, sizeof(drm_device_t), drm_probe, drm_attach, drm_detach,
124 drm_activate);
125#endif
126#endif