Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Arnaldo Carvalho de Melo | 98521b3 | 2017-04-25 15:45:35 -0300 | [diff] [blame] | 2 | #ifndef PERF_MEMSWAP_H_ |
| 3 | #define PERF_MEMSWAP_H_ |
| 4 | |
Arnaldo Carvalho de Melo | 5cac8ea | 2019-09-18 12:28:41 -0300 | [diff] [blame] | 5 | #include <linux/types.h> |
| 6 | |
| 7 | union u64_swap { |
| 8 | u64 val64; |
| 9 | u32 val32[2]; |
| 10 | }; |
| 11 | |
Arnaldo Carvalho de Melo | 98521b3 | 2017-04-25 15:45:35 -0300 | [diff] [blame] | 12 | void mem_bswap_64(void *src, int byte_size); |
| 13 | void mem_bswap_32(void *src, int byte_size); |
| 14 | |
| 15 | #endif /* PERF_MEMSWAP_H_ */ |