tdfx_drv.c (183573) | tdfx_drv.c (183604) |
---|---|
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 183573 2008-10-03 16:59:11Z rnoland $"); | 36__FBSDID("$FreeBSD: head/sys/dev/drm/tdfx_drv.c 183604 2008-10-04 14:48:40Z rnoland $"); |
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 --- 24 unchanged lines hidden (view full) --- 69 70static int 71tdfx_attach(device_t nbdev) 72{ 73 struct drm_device *dev = device_get_softc(nbdev); 74 75 bzero(dev, sizeof(struct drm_device)); 76 | 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 --- 24 unchanged lines hidden (view full) --- 69 70static int 71tdfx_attach(device_t nbdev) 72{ 73 struct drm_device *dev = device_get_softc(nbdev); 74 75 bzero(dev, sizeof(struct drm_device)); 76 |
77 dev->driver = malloc(sizeof(struct drm_driver_info), M_DRM, M_NOWAIT | M_ZERO); | 77 dev->driver = malloc(sizeof(struct drm_driver_info), M_DRM, 78 M_WAITOK | M_ZERO); 79 |
78 tdfx_configure(dev); 79 80 return drm_attach(nbdev, tdfx_pciidlist); 81} 82 83static int 84tdfx_detach(device_t nbdev) 85{ --- 32 unchanged lines hidden --- | 80 tdfx_configure(dev); 81 82 return drm_attach(nbdev, tdfx_pciidlist); 83} 84 85static int 86tdfx_detach(device_t nbdev) 87{ --- 32 unchanged lines hidden --- |