]>
Commit | Line | Data |
---|---|---|
f634ce88 JR |
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 { | |
4cb15322 | 5 | |
f634ce88 | 6 | #include <stdint.h> |
4cb15322 JR |
7 | #include "xf86Module.h" |
8 | +#include <sys/types.h> | |
9 | ||
10 | #if GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) >= 12 | |
11 | ||
f634ce88 | 12 | @@ -50,10 +51,10 @@ enum region_type { |
4cb15322 JR |
13 | #endif |
14 | #define PCI_DOMBUS_MASK (((PCI_DOM_MASK) << 8) | 0x0ffu) | |
15 | ||
16 | -static inline uint32_t | |
17 | +static inline u_int32_t | |
18 | pciTag(int busnum, int devnum, int funcnum) | |
19 | { | |
20 | - uint32_t tag; | |
21 | + u_int32_t tag; | |
22 | tag = (busnum & (PCI_DOMBUS_MASK)) << 16; | |
23 | tag |= (devnum & 0x00001fu) << 11; | |
24 | tag |= (funcnum & 0x000007u) << 8; |