History

Merge branch 'asoc-5.3' into asoc-5.4

Mark Brown committed 7 years ago

Commit 3b46a672 parents 3dcfb39 1e112c336 files · +284 −134Browse files

Showing the changes to include/uapi (2 of 36 files). Show all

Unified · Split

2 files
  1. include/uapi/sound/sof/fw.h +9 −7
  2. include/uapi/sound/sof/header.h +8 −6
include/uapi/sound/sof/fw.h+9−7
@@ -13,6 +13,8 @@ · 12 unmodified lines
1313 #ifndef __INCLUDE_UAPI_SOF_FW_H__
1414 #define __INCLUDE_UAPI_SOF_FW_H__
1515
16+#include <linux/types.h>
17+
1618 #define SND_SOF_FW_SIG_SIZE 4
1719 #define SND_SOF_FW_ABI 1
1820 #define SND_SOF_FW_SIG "Reef"
@@ -46,8 +48,8 @@ enum snd_sof_fw_blk_type { · 27 unmodified lines
4648
4749 struct snd_sof_blk_hdr {
4850 enum snd_sof_fw_blk_type type;
49− uint32_t size; /* bytes minus this header */
50− uint32_t offset; /* offset from base */
51+ __u32 size; /* bytes minus this header */
52+ __u32 offset; /* offset from base */
5153 } __packed;
5254
5355 /*
@@ -61,8 +63,8 @@ enum snd_sof_fw_mod_type { · 7 unmodified lines
6163
6264 struct snd_sof_mod_hdr {
6365 enum snd_sof_fw_mod_type type;
64− uint32_t size; /* bytes minus this header */
65− uint32_t num_blocks; /* number of blocks */
66+ __u32 size; /* bytes minus this header */
67+ __u32 num_blocks; /* number of blocks */
6668 } __packed;
6769
6870 /*
@@ -70,9 +72,9 @@ struct snd_sof_mod_hdr { · 1 unmodified line
7072 */
7173 struct snd_sof_fw_header {
7274 unsigned char sig[SND_SOF_FW_SIG_SIZE]; /* "Reef" */
73− uint32_t file_size; /* size of file minus this header */
74− uint32_t num_modules; /* number of modules */
75− uint32_t abi; /* version of header format */
75+ __u32 file_size; /* size of file minus this header */
76+ __u32 num_modules; /* number of modules */
77+ __u32 abi; /* version of header format */
7678 } __packed;
7779
7880 #endif
include/uapi/sound/sof/header.h+8−6
@@ -9,6 +9,8 @@ · 8 unmodified lines
99 #ifndef __INCLUDE_UAPI_SOUND_SOF_USER_HEADER_H__
1010 #define __INCLUDE_UAPI_SOUND_SOF_USER_HEADER_H__
1111
12+#include <linux/types.h>
13+
1214 /*
1315 * Header for all non IPC ABI data.
1416 *
@@ -16,12 +18,12 @@ · 1 unmodified line
1618 * Used by any bespoke component data structures or binary blobs.
1719 */
1820 struct sof_abi_hdr {
19− uint32_t magic; /**< 'S', 'O', 'F', '\0' */
20− uint32_t type; /**< component specific type */
21− uint32_t size; /**< size in bytes of data excl. this struct */
22− uint32_t abi; /**< SOF ABI version */
23− uint32_t reserved[4]; /**< reserved for future use */
24− uint32_t data[0]; /**< Component data - opaque to core */
21+ __u32 magic; /**< 'S', 'O', 'F', '\0' */
22+ __u32 type; /**< component specific type */
23+ __u32 size; /**< size in bytes of data excl. this struct */
24+ __u32 abi; /**< SOF ABI version */
25+ __u32 reserved[4]; /**< reserved for future use */
26+ __u32 data[0]; /**< Component data - opaque to core */
2527 } __packed;
2628
2729 #endif