mmc: change rpmb operation type define style
Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
This commit is contained in:
parent
61a38ca680
commit
83ac6c7c43
@ -43,18 +43,24 @@
|
||||
#define MMC_IOC_MAX_CMDS 255
|
||||
#define mmc_ioc_cmd_set_data(ic, ptr) (ic).data_ptr = (uint64_t)(unsigned long)(ptr)
|
||||
|
||||
/* rpmb request */
|
||||
|
||||
#define MMC_RPMB_WRITE_KEY 0x01
|
||||
#define MMC_RPMB_READ_CNT 0x02
|
||||
#define MMC_RPMB_WRITE 0x03
|
||||
#define MMC_RPMB_READ 0x04
|
||||
#define MMC_RPMB_READ_RESP 0x05
|
||||
|
||||
/****************************************************************************
|
||||
* Public Types
|
||||
****************************************************************************/
|
||||
|
||||
/* rpmb request */
|
||||
|
||||
enum rpmb_op_type
|
||||
{
|
||||
MMC_RPMB_WRITE_KEY = 0x01,
|
||||
MMC_RPMB_READ_CNT = 0x02,
|
||||
MMC_RPMB_WRITE = 0x03,
|
||||
MMC_RPMB_READ = 0x04,
|
||||
|
||||
/* For internal usage only, do not use it directly */
|
||||
|
||||
MMC_RPMB_READ_RESP = 0x05
|
||||
};
|
||||
|
||||
struct mmc_ioc_cmd
|
||||
{
|
||||
/* Direction of data: nonzero = write, zero = read.
|
||||
|
Loading…
Reference in New Issue
Block a user