diff options
author | Sandor Nagy | 2016-01-13 15:32:19 +0100 |
---|---|---|
committer | Sandor Nagy | 2016-01-13 15:33:39 +0100 |
commit | 726b02e5b0b99e130d51af7e4846fceb6c9dcdd4 (patch) | |
tree | 02d5260af83f12bbdc9f17e2c88f5f8581abf4fd /pciTag-removal-workaround.patch | |
download | aur-726b02e5b0b99e130d51af7e4846fceb6c9dcdd4.tar.gz |
Initial import
Diffstat (limited to 'pciTag-removal-workaround.patch')
-rw-r--r-- | pciTag-removal-workaround.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/pciTag-removal-workaround.patch b/pciTag-removal-workaround.patch new file mode 100644 index 000000000000..b41f3c71baa4 --- /dev/null +++ b/pciTag-removal-workaround.patch @@ -0,0 +1,39 @@ +diff -aur xf86-video-sis-0.9.1.pristine/src/sispcirename.h xf86-video-sis-0.9.1.new/src/sispcirename.h +--- xf86-video-sis-0.9.1.pristine/src/sispcirename.h 2012-03-17 04:45:58.280942665 +1100 ++++ xf86-video-sis-0.9.1.new/src/sispcirename.h 2012-03-17 04:48:28.539933065 +1100 +@@ -29,11 +29,35 @@ + #ifndef SISPCIRENAME_H + #define SISPCIRENAME_H + ++#include <stdint.h> ++ + enum region_type { + REGION_MEM, + REGION_IO + }; + ++#if (defined(__alpha__) || defined(__ia64__)) && defined (linux) ++#define PCI_DOM_MASK 0x01fful ++#else ++#define PCI_DOM_MASK 0x0ffu ++#endif ++ ++#ifndef PCI_DOM_MASK ++# define PCI_DOM_MASK 0x0ffu ++#endif ++#define PCI_DOMBUS_MASK (((PCI_DOM_MASK) << 8) | 0x0ffu) ++ ++static inline uint32_t ++pciTag(int busnum, int devnum, int funcnum) ++{ ++ uint32_t tag; ++ tag = (busnum & (PCI_DOMBUS_MASK)) << 16; ++ tag |= (devnum & 0x00001fu) << 11; ++ tag |= (funcnum & 0x000007u) << 8; ++ ++ return tag; ++} ++ + #ifndef XSERVER_LIBPCIACCESS + + /* pciVideoPtr */ |