diff options
author | Nikunj A Dadhania <nikunj@linux.vnet.ibm.com> | 2016-02-01 11:18:05 +0530 |
---|---|---|
committer | Alexey Kardashevskiy <aik@ozlabs.ru> | 2016-02-08 16:40:39 +1100 |
commit | ff9b0bd159ddb843d32f24e66a43fe99c920a00b (patch) | |
tree | 8a3802ed50ab33f441daf393f0e012d90535b45f /include/byteorder.h | |
parent | 5ed17500f03913f3f125ecde14aa041c6235ba08 (diff) | |
download | SLOF-ff9b0bd159ddb843d32f24e66a43fe99c920a00b.zip SLOF-ff9b0bd159ddb843d32f24e66a43fe99c920a00b.tar.gz SLOF-ff9b0bd159ddb843d32f24e66a43fe99c920a00b.tar.bz2 |
virtio: add virtio 1.0 related struct and defines
Traditionally, struct virtio_device is shared between SLOF and C code.
This still remains shared with the addition of virtio_cap structure as
well. Now both virtio_device and virtio_cap structures are shared.
Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Diffstat (limited to 'include/byteorder.h')
-rw-r--r-- | include/byteorder.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/byteorder.h b/include/byteorder.h index 8ae680f..d4a2c8c 100644 --- a/include/byteorder.h +++ b/include/byteorder.h @@ -19,6 +19,10 @@ #include <stdint.h> +typedef uint16_t le16; +typedef uint32_t le32; +typedef uint64_t le64; + static inline uint16_t bswap_16 (uint16_t x) { return __builtin_bswap16(x); |