summaryrefslogtreecommitdiff
path: root/src/mga.h
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2012-05-23 23:34:07 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2012-05-25 14:52:47 -0700
commit3d9631b819c5c6f64ebf9bda8aab93e1cc7f391f (patch)
tree8cbe2801961d417b085a734e98f735e830b39c3c /src/mga.h
parent0af7dba78559ce82b4c3eed0862415efcde51863 (diff)
Move PCI vendor/device id defines into mga.h instead of using xf86PciInfo.h
Silences deprecation warnings from xf86PciInfo.h in current Xorg servers Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/mga.h')
-rw-r--r--src/mga.h45
1 files changed, 23 insertions, 22 deletions
diff --git a/src/mga.h b/src/mga.h
index 77406f1..7d94d59 100644
--- a/src/mga.h
+++ b/src/mga.h
@@ -116,29 +116,30 @@ void MGAdbg_outreg32(ScrnInfoPtr, int,int, char*);
#define OUTREG(addr,val) MGAdbg_outreg32(pScrn, addr, val, __FUNCTION__)
#endif /* EXTRADEBUG */
-#ifndef PCI_CHIP_MGAG200_SE_A_PCI
-#define PCI_CHIP_MGAG200_SE_A_PCI 0x0522
-#endif
-
-#ifndef PCI_CHIP_MGAG200_SE_B_PCI
-#define PCI_CHIP_MGAG200_SE_B_PCI 0x0524
-#endif
-
-#ifndef PCI_CHIP_MGAG200_WINBOND_PCI
-#define PCI_CHIP_MGAG200_WINBOND_PCI 0x0532
-#endif
-
-#ifndef PCI_CHIP_MGAG200_EV_PCI
-#define PCI_CHIP_MGAG200_EV_PCI 0x0530
-#endif
-
-#ifndef PCI_CHIP_MGAG200_EH_PCI
-#define PCI_CHIP_MGAG200_EH_PCI 0x0533
-#endif
+/*
+ * PCI vendor/device ids, formerly in xf86PciInfo.h
+ */
-#ifndef PCI_CHIP_MGAG200_ER_PCI
-#define PCI_CHIP_MGAG200_ER_PCI 0x0534
-#endif
+#define PCI_VENDOR_MATROX 0x102B
+
+#define PCI_CHIP_MGA2085 0x0518
+#define PCI_CHIP_MGA2064 0x0519
+#define PCI_CHIP_MGA1064 0x051A
+#define PCI_CHIP_MGA2164 0x051B
+#define PCI_CHIP_MGA2164_AGP 0x051F
+
+#define PCI_CHIP_MGAG100_PCI 0x1000
+#define PCI_CHIP_MGAG100 0x1001
+#define PCI_CHIP_MGAG200_PCI 0x0520
+#define PCI_CHIP_MGAG200 0x0521
+#define PCI_CHIP_MGAG200_SE_A_PCI 0x0522
+#define PCI_CHIP_MGAG200_SE_B_PCI 0x0524
+#define PCI_CHIP_MGAG200_WINBOND_PCI 0x0532
+#define PCI_CHIP_MGAG200_EV_PCI 0x0530
+#define PCI_CHIP_MGAG200_EH_PCI 0x0533
+#define PCI_CHIP_MGAG200_ER_PCI 0x0534
+#define PCI_CHIP_MGAG400 0x0525
+#define PCI_CHIP_MGAG550 0x2527
/*
* Read/write to the DAC via MMIO