1 /* 2 * Copyright (c) 2021-2023 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 PCIE_TEST_H 10 #define PCIE_TEST_H 11 12 #include "pcie_if.h" 13 14 #ifdef __cplusplus 15 extern "C" { 16 #endif 17 18 enum PcieTestCmd { 19 PCIE_READ_AND_WRITE_01 = 0, 20 PCIE_DMA_MAP_AND_UNMAP_01, 21 PCIE_REG_AND_UNREG_IRQ_01, 22 PCIE_TEST_MAX, 23 }; 24 25 struct PcieTestConfig { 26 uint32_t busNum; 27 }; 28 29 struct PcieTester { 30 struct PcieTestConfig config; 31 DevHandle handle; 32 }; 33 34 int32_t PcieTestExecute(int cmd); 35 36 #ifdef __cplusplus 37 } 38 #endif 39 40 #endif /* PCIE_TEST_H */ 41