Home | History | Annotate | Download | only in mmc
      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_CORE_H
     20 #define UAPI_MMC_CORE_H
     21 #define MMC_RSP_PRESENT (1 << 0)
     22 #define MMC_RSP_136 (1 << 1)
     23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     24 #define MMC_RSP_CRC (1 << 2)
     25 #define MMC_RSP_BUSY (1 << 3)
     26 #define MMC_RSP_OPCODE (1 << 4)
     27 #define MMC_CMD_MASK (3 << 5)
     28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     29 #define MMC_CMD_AC (0 << 5)
     30 #define MMC_CMD_ADTC (1 << 5)
     31 #define MMC_CMD_BC (2 << 5)
     32 #define MMC_CMD_BCR (3 << 5)
     33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     34 #define MMC_RSP_SPI_S1 (1 << 7)
     35 #define MMC_RSP_SPI_S2 (1 << 8)
     36 #define MMC_RSP_SPI_B4 (1 << 9)
     37 #define MMC_RSP_SPI_BUSY (1 << 10)
     38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     39 #define MMC_RSP_NONE (0)
     40 #define MMC_RSP_R1 (MMC_RSP_PRESENT | MMC_RSP_CRC | MMC_RSP_OPCODE)
     41 #define MMC_RSP_R1B (MMC_RSP_PRESENT | MMC_RSP_CRC | MMC_RSP_OPCODE | MMC_RSP_BUSY)
     42 #define MMC_RSP_R2 (MMC_RSP_PRESENT | MMC_RSP_136 | MMC_RSP_CRC)
     43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     44 #define MMC_RSP_R3 (MMC_RSP_PRESENT)
     45 #define MMC_RSP_R4 (MMC_RSP_PRESENT)
     46 #define MMC_RSP_R5 (MMC_RSP_PRESENT | MMC_RSP_CRC | MMC_RSP_OPCODE)
     47 #define MMC_RSP_R6 (MMC_RSP_PRESENT | MMC_RSP_CRC | MMC_RSP_OPCODE)
     48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     49 #define MMC_RSP_R7 (MMC_RSP_PRESENT | MMC_RSP_CRC | MMC_RSP_OPCODE)
     50 #endif
     51 
     52