1 /*
2  * Copyright (c) 2020-2021 Huawei Device Co., Ltd.
3  *
4  * HDF is dual licensed: you can use it either under the terms of
5  * the GPL, or the BSD license, at your option.
6  * See the LICENSE file in the root of this repository for complete details.
7  */
8 
9 #ifndef MMC_SD_H
10 #define MMC_SD_H
11 
12 #include "mmc_corex.h"
13 
14 #ifdef __cplusplus
15 #if __cplusplus
16 extern "C" {
17 #endif
18 #endif /* __cplusplus */
19 
20 struct SdRegister {
21     uint32_t rawScr[SCR_LEN];
22     uint16_t rawDsr;
23     struct SdScr scr;
24     struct SdSsr ssr;
25     struct SdSwitchCaps swCaps;
26 };
27 
28 struct SdDevice {
29     struct MmcDevice mmc;
30     enum SdBusSpeedMode busSpeedMode;
31     struct SdRegister reg;
32 };
33 
34 #ifdef __cplusplus
35 #if __cplusplus
36 }
37 #endif
38 #endif /* __cplusplus */
39 
40 #endif /* MMC_SD_H */
41