This is an automated email from the ASF dual-hosted git repository.
pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 83ac6c7c43 mmc: change rpmb operation type define style
83ac6c7c43 is described below
commit 83ac6c7c43481f9d534536380fc8457a2badded0
Author: wanggang26 <[email protected]>
AuthorDate: Mon Aug 21 09:52:08 2023 +0800
mmc: change rpmb operation type define style
Signed-off-by: wanggang26 <[email protected]>
---
include/nuttx/mmcsd.h | 22 ++++++++++++++--------
1 file changed, 14 insertions(+), 8 deletions(-)
diff --git a/include/nuttx/mmcsd.h b/include/nuttx/mmcsd.h
index 83432af88b..bd0563288b 100644
--- a/include/nuttx/mmcsd.h
+++ b/include/nuttx/mmcsd.h
@@ -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.