[PATCH] pci: Restore pciTag as a deprecated function

Jeremy Huddleston jeremyhu at apple.com
Wed Oct 19 00:20:28 PDT 2011


This partially reverts b3d56d06ef840bbbe16ec3c37e170078b7f98b04 to allow
driver developers time to adjust.

Signed-off-by: Jeremy Huddleston <jeremyhu at apple.com>
---
The commit that deprecated the PCITAG type had these leftovers that I didn't mean to get rid of just yet.

 hw/xfree86/os-support/bus/Pci.c     |    6 ++++++
 hw/xfree86/os-support/bus/xf86Pci.h |    1 +
 2 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/hw/xfree86/os-support/bus/Pci.c b/hw/xfree86/os-support/bus/Pci.c
index 0362a00..f1dbfc2 100644
--- a/hw/xfree86/os-support/bus/Pci.c
+++ b/hw/xfree86/os-support/bus/Pci.c
@@ -126,6 +126,12 @@
 
 #include "Pci.h"
 
+PCITAG
+pciTag(int busnum, int devnum, int funcnum)
+{
+	return(PCI_MAKE_TAG(busnum,devnum,funcnum));
+}
+
 Bool
 xf86scanpci(void)
 {
diff --git a/hw/xfree86/os-support/bus/xf86Pci.h b/hw/xfree86/os-support/bus/xf86Pci.h
index 74ead20..55e631c 100644
--- a/hw/xfree86/os-support/bus/xf86Pci.h
+++ b/hw/xfree86/os-support/bus/xf86Pci.h
@@ -251,6 +251,7 @@ typedef enum {
 
 
 /* Public PCI access functions */
+extern _X_EXPORT _X_DEPRECATED PCITAG pciTag(int busnum, int devnum, int funcnum);
 extern _X_EXPORT Bool xf86scanpci(void);
 
 /* Domain access functions.  Some of these probably shouldn't be public */
-- 
1.7.7




More information about the xorg-devel mailing list