• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2 // Copyright (C) 2022 Beken Corporation
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef _SDCARD_PUB_H_
17 #define _SDCARD_PUB_H_
18 
19 #define SDCARD_SUCCESS                 (0)
20 #define SDCARD_FAILURE                 ((UINT32)-1)
21 
22 #define SDCARD_DEV_NAME                ("sdcard")
23 
24 #define SDCARD_CMD_MAGIC               (0x8709000)
25 enum {
26 	CMD_SDCARD_SEND_BACKGROUND         = SDCARD_CMD_MAGIC + 0,
27 	CMD_SDCARD_RESET                   = SDCARD_CMD_MAGIC + 1,
28 };
29 
30 /*******************************************************************************
31 * Function Declarations
32 *******************************************************************************/
33 extern void sdcard_init(void);
34 extern void sdcard_exit(void);
35 #endif
36 // eof
37 
38