1 /* SPDX-License-Identifier: BSD-3-Clause */ 2 /* 3 * Copyright (C) 2018, Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi> 4 * Copyright (C) 2018, Bin Meng <bmeng.cn@gmail.com> 5 * 6 * From Linux kernel include/uapi/linux/virtio_types.h 7 */ 8 9 #ifndef _LINUX_VIRTIO_TYPES_H 10 #define _LINUX_VIRTIO_TYPES_H 11 12 #include <linux/types.h> 13 14 /* 15 * __virtio{16,32,64} have the following meaning: 16 * - __u{16,32,64} for virtio devices in legacy mode, accessed in native endian 17 * - __le{16,32,64} for standard-compliant virtio devices 18 */ 19 20 typedef __u16 __bitwise __virtio16; 21 typedef __u32 __bitwise __virtio32; 22 typedef __u64 __bitwise __virtio64; 23 24 #endif /* _LINUX_VIRTIO_TYPES_H */ 25