函数源码 |
Source File:include\linux\io-64-nonatomic-lo-hi.h |
Create Date:2022-07-27 08:52:53 |
首页 | Copyright©Brick |
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | #define S8_C(x) x #define U8_C(x) x ## U #define S16_C(x) x #define U16_C(x) x ## U #define S32_C(x) x #define U32_C(x) x ## U #define S64_C(x) x ## LL #define U64_C(x) x ## ULL #else /* __ASSEMBLY__ */ #define S8_C(x) x #define U8_C(x) x #define S16_C(x) x #define U16_C(x) x #define S32_C(x) x #define U32_C(x) x #define S64_C(x) x #define U64_C(x) x #endif /* __ASSEMBLY__ */ #endif /* _ASM_GENERIC_INT_LL64_H */ static inline __u64 lo_hi_readq( const volatile void __iomem *addr) { const volatile u32 __iomem *p = addr; u32 low, high; low = readl(p); high = readl(p + 1); return low + ((u64)high << 32); } |