mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-20 12:50:11 +01:00
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>
This commit is contained in:
parent
40b70e3244
commit
2abd1f270b
2 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue