1 /* SPDX-License-Identifier: BSD-3-Clause 2 * Copyright (C) 2022 Intel Corporation. 3 * All rights reserved. 4 */ 5 6 #include "accel_iaa.h" 7 8 #include "spdk/rpc.h" 9 #include "spdk/util.h" 10 #include "spdk/event.h" 11 #include "spdk/stdinc.h" 12 #include "spdk/env.h" 13 14 static void 15 rpc_iaa_scan_accel_module(struct spdk_jsonrpc_request *request, 16 const struct spdk_json_val *params) 17 { 18 if (params != NULL) { 19 spdk_jsonrpc_send_error_response(request, SPDK_JSONRPC_ERROR_INVALID_PARAMS, 20 "iaa_scan_accel_module requires no parameters"); 21 return; 22 } 23 24 SPDK_NOTICELOG("Enabling IAA user-mode\n"); 25 accel_iaa_enable_probe(); 26 spdk_jsonrpc_send_bool_response(request, true); 27 } 28 SPDK_RPC_REGISTER("iaa_scan_accel_module", rpc_iaa_scan_accel_module, SPDK_RPC_STARTUP) 29 SPDK_RPC_REGISTER_ALIAS_DEPRECATED(iaa_scan_accel_module, iaa_scan_accel_engine) 30