header.h 922 B

1234567891011121314151617181920212223242526272829
  1. /* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) */
  2. /*
  3. * This file is provided under a dual BSD/GPLv2 license. When using or
  4. * redistributing this file, you may do so under either license.
  5. *
  6. * Copyright(c) 2018 Intel Corporation. All rights reserved.
  7. */
  8. #ifndef __INCLUDE_UAPI_SOUND_SOF_USER_HEADER_H__
  9. #define __INCLUDE_UAPI_SOUND_SOF_USER_HEADER_H__
  10. #include <linux/types.h>
  11. /*
  12. * Header for all non IPC ABI data.
  13. *
  14. * Identifies data type, size and ABI.
  15. * Used by any bespoke component data structures or binary blobs.
  16. */
  17. struct sof_abi_hdr {
  18. __u32 magic; /**< 'S', 'O', 'F', '\0' */
  19. __u32 type; /**< component specific type */
  20. __u32 size; /**< size in bytes of data excl. this struct */
  21. __u32 abi; /**< SOF ABI version */
  22. __u32 reserved[4]; /**< reserved for future use */
  23. __u32 data[0]; /**< Component data - opaque to core */
  24. } __attribute__((packed));
  25. #endif