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_MMC_MMC_H
20 #define UAPI_MMC_MMC_H
21 #define MMC_GO_IDLE_STATE 0
22 #define MMC_SEND_OP_COND 1
23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24 #define MMC_ALL_SEND_CID 2
25 #define MMC_SET_RELATIVE_ADDR 3
26 #define MMC_SET_DSR 4
27 #define MMC_SLEEP_AWAKE 5
28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29 #define MMC_SWITCH 6
30 #define MMC_SELECT_CARD 7
31 #define MMC_SEND_EXT_CSD 8
32 #define MMC_SEND_CSD 9
33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34 #define MMC_SEND_CID 10
35 #define MMC_READ_DAT_UNTIL_STOP 11
36 #define MMC_STOP_TRANSMISSION 12
37 #define MMC_SEND_STATUS 13
38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39 #define MMC_BUS_TEST_R 14
40 #define MMC_GO_INACTIVE_STATE 15
41 #define MMC_BUS_TEST_W 19
42 #define MMC_SPI_READ_OCR 58
43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44 #define MMC_SPI_CRC_ON_OFF 59
45 #define MMC_SET_BLOCKLEN 16
46 #define MMC_READ_SINGLE_BLOCK 17
47 #define MMC_READ_MULTIPLE_BLOCK 18
48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49 #define MMC_SEND_TUNING_BLOCK 19
50 #define MMC_SEND_TUNING_BLOCK_HS200 21
51 #define MMC_SEND_TUNING_BLOCK_HS400 MMC_SEND_TUNING_BLOCK_HS200
52 #define MMC_TUNING_BLK_PATTERN_4BIT_SIZE 64
53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54 #define MMC_TUNING_BLK_PATTERN_8BIT_SIZE 128
55 #define MMC_WRITE_DAT_UNTIL_STOP 20
56 #define MMC_SET_BLOCK_COUNT 23
57 #define MMC_WRITE_BLOCK 24
58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59 #define MMC_WRITE_MULTIPLE_BLOCK 25
60 #define MMC_PROGRAM_CID 26
61 #define MMC_PROGRAM_CSD 27
62 #define MMC_SET_WRITE_PROT 28
63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64 #define MMC_CLR_WRITE_PROT 29
65 #define MMC_SEND_WRITE_PROT 30
66 #define MMC_ERASE_GROUP_START 35
67 #define MMC_ERASE_GROUP_END 36
68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69 #define MMC_ERASE 38
70 #define MMC_FAST_IO 39
71 #define MMC_GO_IRQ_STATE 40
72 #define MMC_LOCK_UNLOCK 42
73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74 #define MMC_APP_CMD 55
75 #define MMC_GEN_CMD 56
76 #endif
77 
78