summaryrefslogtreecommitdiff
path: root/bsd-core
diff options
context:
space:
mode:
authorEric Anholt <anholt@freebsd.org>2006-04-18 06:08:17 +0000
committerEric Anholt <anholt@freebsd.org>2006-04-18 06:08:17 +0000
commit2abd1f270bccfdda6e87021000ba88e07f54c181 (patch)
treedb01fa04c7c0dc8c730ab7859806e2eeedd07049 /bsd-core
parent40b70e324430e36f10d6229793acf66d9104aff7 (diff)
Reorder the DRM_*_AGP enum to match linux's numbers (oops). Fixes i915
attachment. Make our mga_drv.c use them, while I'm here. Submitted by: Jonathan Fosburgh <jonathan@fosburgh.org>
Diffstat (limited to 'bsd-core')
-rw-r--r--bsd-core/drmP.h4
-rw-r--r--bsd-core/mga_drv.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/bsd-core/drmP.h b/bsd-core/drmP.h
index 43f24271..074e1d2c 100644
--- a/bsd-core/drmP.h
+++ b/bsd-core/drmP.h
@@ -217,8 +217,8 @@ typedef void irqreturn_t;
enum {
DRM_IS_NOT_AGP,
- DRM_MIGHT_BE_AGP,
- DRM_IS_AGP
+ DRM_IS_AGP,
+ DRM_MIGHT_BE_AGP
};
#define DRM_AGP_MEM struct agp_memory_info
diff --git a/bsd-core/mga_drv.c b/bsd-core/mga_drv.c
index 3d324fb4..5dc7efea 100644
--- a/bsd-core/mga_drv.c
+++ b/bsd-core/mga_drv.c
@@ -79,9 +79,9 @@ static int mga_driver_device_is_agp(drm_device_t * dev)
if (pci_get_device(dev->device) == 0x0525 &&
pci_get_vendor(bus) == 0x3388 &&
pci_get_device(bus) == 0x0021)
- return 0;
+ return DRM_IS_NOT_AGP;
else
- return 2;
+ return DRM_MIGHT_BE_AGP;
}
static void mga_configure(drm_device_t *dev)