1 /*
2  * Copyright (c) 2023 Shenzhen Kaihong Digital Industry Development 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 #include "hdf_log.h"
10 #include "hdf_pcie_entry_test.h"
11 #include "pcie_bus_test.h"
12 
13 #define HDF_LOG_TAG hdf_pcie_bus_entry_test
14 
HdfPcieBusUnitTestEntry(HdfTestMsg * msg)15 int32_t HdfPcieBusUnitTestEntry(HdfTestMsg *msg)
16 {
17     if (msg == NULL) {
18         return HDF_FAILURE;
19     }
20 
21     msg->result = PcieBusTestExecute(msg->subCmd);
22 
23     return HDF_SUCCESS;
24 }
25