mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
57b74303d6
Squashed commit of the following: commit c3fb53893cbc4b5e217ef176010d1b88982a9454 Author: Alexander Kolesnikov <akolesni@codeaurora.org> Date: Wed Sep 15 17:16:52 2010 +0200 csdio: Set/get vdd ioctl support Implement power up/down sequence for internal UBM chip. This commit includes generic, platform independent part. CRs-Fixed: 255849 Change-Id: I526c78765ba32b310463a231c5cf578cb37c6deb Signed-off-by: Alexander Kolesnikov <akolesni@codeaurora.org> commit e1ba27311fcf3de2a5ca9a3fc1303328720dd120 Author: Nela Gurevich <nelag@codeaurora.org> Date: Thu Aug 19 14:00:09 2010 +0300 csdio: Move csdio.h to kernel/include Change-Id: Idf8df750e9f3bcc014d1afa673c9c27c97253195 Signed-off-by: Nela Gurevich <nelag@codeaurora.org> commit 31d1b09c677c26efb71fa36ff6fe1e7f2d83abbc Author: Alexander Kolesnikov <akolesni@codeaurora.org> Date: Tue Aug 10 13:26:20 2010 +0300 mmc: Char SDIO Device Driver The Char SDIO Device Driver is an interface which exposes an SDIO card/function from kernel space as a char device in user space. Change-Id: If298cdd6d4426b700e69affa5a3602cd221ad89c Signed-off-by: Alexander Kolesnikov <akolesni@codeaurora.org> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
37 lines
1.4 KiB
C
37 lines
1.4 KiB
C
#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_SET_VDD _IO(CSDIO_IOC_MAGIC, 11)
|
|
#define CSDIO_IOC_GET_VDD _IO(CSDIO_IOC_MAGIC, 12)
|
|
|
|
#define CSDIO_IOC_MAXNR 12
|
|
|
|
struct csdio_cmd53_ctrl_t {
|
|
uint32_t m_block_mode; /* data tran. byte(0)/block(1) mode */
|
|
uint32_t m_op_code; /* address auto increment flag */
|
|
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
|