diff options
author | Linux Build Service Account <lnxbuild@qualcomm.com> | 2010-08-30 14:11:56 -0700 |
---|---|---|
committer | QuIC Gerrit Code Review <code-review@quicinc.com> | 2010-08-30 14:11:56 -0700 |
commit | 1c17b6f1eece6435a6a39450d2b21d35c5bdfdbe (patch) | |
tree | a1ea5e3f385473d7f4f09762e14d3a19f89877bb | |
parent | 651438b1696b5c088366832f5c7b21731a57e2f7 (diff) | |
parent | 7c560c2ca78d373251b212fa9965237f5b356e1c (diff) | |
download | bionic-1c17b6f1eece6435a6a39450d2b21d35c5bdfdbe.zip bionic-1c17b6f1eece6435a6a39450d2b21d35c5bdfdbe.tar.gz bionic-1c17b6f1eece6435a6a39450d2b21d35c5bdfdbe.tar.bz2 |
Merge "bionic: Add csdio.h to bionic" into froyoQ8650DTBCANLYA2040M8660AAABQNLYA1045M7630AABBQVLZA3020M7630AABBQMLZA2020
-rw-r--r-- | libc/kernel/common/linux/csdio.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/libc/kernel/common/linux/csdio.h b/libc/kernel/common/linux/csdio.h new file mode 100644 index 0000000..0e59579 --- /dev/null +++ b/libc/kernel/common/linux/csdio.h @@ -0,0 +1,47 @@ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + **************************************************************************** + ****************************************************************************/ +#ifndef CSDIO_H +#define CSDIO_H + +#include <linux/ioctl.h> + +#define CSDIO_IOC_MAGIC 'm' + +#define CSDIO_IOC_ENABLE_HIGHSPEED_MODE _IO(CSDIO_IOC_MAGIC, 0) +#define CSDIO_IOC_SET_DATA_TRANSFER_CLOCKS _IO(CSDIO_IOC_MAGIC, 1) +#define CSDIO_IOC_SET_OP_CODE _IO(CSDIO_IOC_MAGIC, 2) +#define CSDIO_IOC_FUNCTION_SET_BLOCK_SIZE _IO(CSDIO_IOC_MAGIC, 3) +#define CSDIO_IOC_SET_BLOCK_MODE _IO(CSDIO_IOC_MAGIC, 4) +#define CSDIO_IOC_CONNECT_ISR _IO(CSDIO_IOC_MAGIC, 5) +#define CSDIO_IOC_DISCONNECT_ISR _IO(CSDIO_IOC_MAGIC, 6) +#define CSDIO_IOC_CMD52 _IO(CSDIO_IOC_MAGIC, 7) +#define CSDIO_IOC_CMD53 _IO(CSDIO_IOC_MAGIC, 8) +#define CSDIO_IOC_ENABLE_ISR _IO(CSDIO_IOC_MAGIC, 9) +#define CSDIO_IOC_DISABLE_ISR _IO(CSDIO_IOC_MAGIC, 10) + +#define CSDIO_IOC_MAXNR 10 + +struct csdio_cmd53_ctrl_t { + uint32_t m_block_mode; + uint32_t m_op_code; + uint32_t m_address; +} __attribute__ ((packed)); + +struct csdio_cmd52_ctrl_t { + uint32_t m_write; + uint32_t m_address; + uint32_t m_data; + uint32_t m_ret; +} __attribute__ ((packed)); + +#endif + |