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

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

73
74static int
75savage_attach(device_t nbdev)
76{
77 struct drm_device *dev = device_get_softc(nbdev);
78
79 bzero(dev, sizeof(struct drm_device));
80
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. */

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

73
74static int
75savage_attach(device_t nbdev)
76{
77 struct drm_device *dev = device_get_softc(nbdev);
78
79 bzero(dev, sizeof(struct drm_device));
80
81 dev->driver = malloc(sizeof(struct drm_driver_info), M_DRM, M_NOWAIT | M_ZERO);
81 dev->driver = malloc(sizeof(struct drm_driver_info), M_DRM,
82 M_WAITOK | M_ZERO);
83
82 savage_configure(dev);
83
84 return drm_attach(nbdev, savage_pciidlist);
85}
86
87static int
88savage_detach(device_t nbdev)
89{

--- 32 unchanged lines hidden ---
84 savage_configure(dev);
85
86 return drm_attach(nbdev, savage_pciidlist);
87}
88
89static int
90savage_detach(device_t nbdev)
91{

--- 32 unchanged lines hidden ---