• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /****************************************************************************
2  ****************************************************************************
3  ***
4  ***   This header was automatically generated from a Linux kernel header
5  ***   of the same name, to make information necessary for userspace to
6  ***   call into the kernel available to libc.  It contains only constants,
7  ***   structures, and macros generated from the original header, and thus,
8  ***   contains no copyrightable information.
9  ***
10  ***   To edit the content of this header, modify the corresponding
11  ***   source file (e.g. under external/kernel-headers/original/) then
12  ***   run bionic/libc/kernel/tools/update_all.py
13  ***
14  ***   Any manual change here will be lost the next time this script will
15  ***   be run. You've been warned!
16  ***
17  ****************************************************************************
18  ****************************************************************************/
19 #ifndef __UAPI_WCD_SPI_AC_PARAMS_H__
20 #define __UAPI_WCD_SPI_AC_PARAMS_H__
21 #include <linux/types.h>
22 #define WCD_SPI_AC_CMD_CONC_BEGIN 0x01
23 #define WCD_SPI_AC_CMD_CONC_END 0x02
24 #define WCD_SPI_AC_CMD_BUF_DATA 0x03
25 #define WCD_SPI_AC_MAX_BUFFERS 2
26 #define WCD_SPI_AC_MAX_CH_PER_BUF 8
27 #define WCD_SPI_AC_CLIENT_CDEV_NAME "wcd-spi-ac-client"
28 #define WCD_SPI_AC_PROCFS_DIR_NAME "wcd-spi-ac"
29 #define WCD_SPI_AC_PROCFS_STATE_NAME "svc-state"
30 struct wcd_spi_ac_buf_data {
31   __u32 addr[WCD_SPI_AC_MAX_CH_PER_BUF];
32 } __attribute__((packed));
33 struct wcd_spi_ac_write_cmd {
34   __u32 cmd_type;
35   __u8 payload[0];
36 } __attribute__((packed));
37 #endif
38 
39