Deleted Added
full compact
mga_drv.c (183573) mga_drv.c (183604)
1/* mga_drv.c -- Matrox G200/G400 driver -*- linux-c -*-
2 * Created: Mon Dec 13 01:56:22 1999 by jhartmann@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/* mga_drv.c -- Matrox G200/G400 driver -*- linux-c -*-
2 * Created: Mon Dec 13 01:56:22 1999 by jhartmann@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/mga_drv.c 183573 2008-10-03 16:59:11Z rnoland $");
35__FBSDID("$FreeBSD: head/sys/dev/drm/mga_drv.c 183604 2008-10-04 14:48:40Z rnoland $");
36
37#include "dev/drm/drmP.h"
38#include "dev/drm/drm.h"
39#include "dev/drm/mga_drm.h"
40#include "dev/drm/mga_drv.h"
41#include "dev/drm/drm_pciids.h"
42
43/* drv_PCI_IDs comes from drm_pciids.h, generated from drm_pciids.txt. */

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

127
128static int
129mga_attach(device_t nbdev)
130{
131 struct drm_device *dev = device_get_softc(nbdev);
132
133 bzero(dev, sizeof(struct drm_device));
134
36
37#include "dev/drm/drmP.h"
38#include "dev/drm/drm.h"
39#include "dev/drm/mga_drm.h"
40#include "dev/drm/mga_drv.h"
41#include "dev/drm/drm_pciids.h"
42
43/* drv_PCI_IDs comes from drm_pciids.h, generated from drm_pciids.txt. */

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

127
128static int
129mga_attach(device_t nbdev)
130{
131 struct drm_device *dev = device_get_softc(nbdev);
132
133 bzero(dev, sizeof(struct drm_device));
134
135 dev->driver = malloc(sizeof(struct drm_driver_info), M_DRM, M_NOWAIT | M_ZERO);
135 dev->driver = malloc(sizeof(struct drm_driver_info), M_DRM,
136 M_WAITOK | M_ZERO);
137
136 mga_configure(dev);
137
138 return drm_attach(nbdev, mga_pciidlist);
139}
140
141static int
142mga_detach(device_t nbdev)
143{

--- 32 unchanged lines hidden ---
138 mga_configure(dev);
139
140 return drm_attach(nbdev, mga_pciidlist);
141}
142
143static int
144mga_detach(device_t nbdev)
145{

--- 32 unchanged lines hidden ---