drm_agpsupport.c (165598) | drm_agpsupport.c (173573) |
---|---|
1/* drm_agpsupport.h -- DRM support for AGP/GART backend -*- linux-c -*- 2 * Created: Mon Dec 13 09:56:45 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 * Author: 29 * Rickard E. (Rik) Faith <faith@valinux.com> 30 * Gareth Hughes <gareth@valinux.com> 31 * 32 */ 33 34#include <sys/cdefs.h> | 1/* drm_agpsupport.h -- DRM support for AGP/GART backend -*- linux-c -*- 2 * Created: Mon Dec 13 09:56:45 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 * Author: 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/drm_agpsupport.c 165598 2006-12-28 21:55:47Z jhb $"); | 35__FBSDID("$FreeBSD: head/sys/dev/drm/drm_agpsupport.c 173573 2007-11-12 21:51:38Z jhb $"); |
36 37#include "dev/drm/drmP.h" 38 39#ifdef __FreeBSD__ | 36 37#include "dev/drm/drmP.h" 38 39#ifdef __FreeBSD__ |
40#if __FreeBSD_version >= 800004 41#include <dev/agp/agpreg.h> 42#else |
|
40#include <pci/agpreg.h> | 43#include <pci/agpreg.h> |
44#endif |
|
41#include <dev/pci/pcireg.h> 42#endif 43 44/* Returns 1 if AGP or 0 if not. */ 45static int 46drm_device_find_capability(drm_device_t *dev, int cap) 47{ 48#ifdef __FreeBSD__ --- 420 unchanged lines hidden --- | 45#include <dev/pci/pcireg.h> 46#endif 47 48/* Returns 1 if AGP or 0 if not. */ 49static int 50drm_device_find_capability(drm_device_t *dev, int cap) 51{ 52#ifdef __FreeBSD__ --- 420 unchanged lines hidden --- |