1 diff -urNp -x '*.orig' xf86-video-r128-6.12.0.org/src/atipcirename.h xf86-video-r128-6.12.0/src/atipcirename.h
2 --- xf86-video-r128-6.12.0.org/src/atipcirename.h 2018-10-23 06:10:56.000000000 +0200
3 +++ xf86-video-r128-6.12.0/src/atipcirename.h 2021-11-04 00:00:29.275887352 +0100
4 @@ -36,6 +36,7 @@ enum region_type {
7 #include "xf86Module.h"
8 +#include <sys/types.h>
10 #if GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) >= 12
12 @@ -50,10 +51,10 @@ enum region_type {
14 #define PCI_DOMBUS_MASK (((PCI_DOM_MASK) << 8) | 0x0ffu)
16 -static inline uint32_t
17 +static inline u_int32_t
18 pciTag(int busnum, int devnum, int funcnum)
22 tag = (busnum & (PCI_DOMBUS_MASK)) << 16;
23 tag |= (devnum & 0x00001fu) << 11;
24 tag |= (funcnum & 0x000007u) << 8;