Deleted Added
full compact
radeon_drv.c (183573) radeon_drv.c (183604)
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 183573 2008-10-03 16:59:11Z rnoland $");
33__FBSDID("$FreeBSD: head/sys/dev/drm/radeon_drv.c 183604 2008-10-04 14:48:40Z rnoland $");
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;

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

87
88static int
89radeon_attach(device_t nbdev)
90{
91 struct drm_device *dev = device_get_softc(nbdev);
92
93 bzero(dev, sizeof(struct drm_device));
94
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;

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

87
88static int
89radeon_attach(device_t nbdev)
90{
91 struct drm_device *dev = device_get_softc(nbdev);
92
93 bzero(dev, sizeof(struct drm_device));
94
95 dev->driver = malloc(sizeof(struct drm_driver_info), M_DRM, M_NOWAIT | M_ZERO);
95 dev->driver = malloc(sizeof(struct drm_driver_info), M_DRM,
96 M_WAITOK | M_ZERO);
97
96 radeon_configure(dev);
97
98 return drm_attach(nbdev, radeon_pciidlist);
99}
100
101static int
102radeon_detach(device_t nbdev)
103{

--- 32 unchanged lines hidden ---
98 radeon_configure(dev);
99
100 return drm_attach(nbdev, radeon_pciidlist);
101}
102
103static int
104radeon_detach(device_t nbdev)
105{

--- 32 unchanged lines hidden ---