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_DISPATCH_H 10 #define PCIE_DISPATCH_H 11 12 #include "hdf_base.h" 13 14 #ifndef __USER__ 15 #include "devsvc_manager_clnt.h" 16 #else 17 #include "hdf_io_service_if.h" 18 #endif 19 20 #ifdef __cplusplus 21 #if __cplusplus 22 extern "C" { 23 #endif 24 #endif /* __cplusplus */ 25 26 #ifndef __USER__ 27 int32_t PcieIoDispatch(struct HdfDeviceIoClient *client, int cmd, struct HdfSBuf *data, struct HdfSBuf *reply); 28 #endif 29 30 #ifdef __cplusplus 31 #if __cplusplus 32 } 33 #endif 34 #endif /* __cplusplus */ 35 36 #endif /* PCIE_DISPATCH_H */ 37