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 EMMC_TEST_H 10 #define EMMC_TEST_H 11 12 #include "hdf_device_desc.h" 13 #include "platform_if.h" 14 15 enum EmmcTestCmd { 16 EMMC_GET_CID_01 = 0, 17 }; 18 19 struct EmmcTester { 20 struct IDeviceIoService service; 21 struct HdfDeviceObject *device; 22 int32_t (*TestEntry)(struct EmmcTester *tester, int32_t cmd); 23 uint32_t busNum; 24 uint32_t hostId; 25 DevHandle handle; 26 }; 27 GetEmmcTester(void)28static inline struct EmmcTester *GetEmmcTester(void) 29 { 30 return (struct EmmcTester *)DevSvcManagerClntGetService("EMMC_TEST"); 31 } 32 33 #endif /* EMMC_TEST_H */ 34