Lines Matching +full:zynqmp +full:- +full:firmware
1 // SPDX-License-Identifier: GPL-2.0
3 * Xilinx Zynq MPSoC Firmware layer for debugfs APIs
5 * Copyright (C) 2014-2018 Xilinx, Inc.
19 #include <linux/firmware/xlnx-zynqmp.h>
20 #include "zynqmp-debug.h"
41 * zynqmp_pm_argument_value() - Extract argument value from a PM-API request
42 * @arg: Entered PM-API argument in string format
61 * get_pm_api_id() - Extract API-ID from a PM-API request
62 * @pm_api_req: Entered PM-API argument in string format
63 * @pm_id: API-ID
79 /* If no name was entered look for PM-API ID instead */ in get_pm_api_id()
81 return -EINVAL; in get_pm_api_id()
95 sprintf(debugfs_buf, "PM-API Version = %d.%d\n", in process_api_request()
125 sprintf(debugfs_buf, "Unsupported PM-API request\n"); in process_api_request()
126 ret = -EINVAL; in process_api_request()
133 * zynqmp_pm_debugfs_api_write() - debugfs write function
135 * @ptr: User entered PM-API string
143 * Return: Number of bytes copied if PM-API request succeeds,
162 if (*off != 0 || len <= 1 || len > PAGE_SIZE - 1) in zynqmp_pm_debugfs_api_write()
163 return -EINVAL; in zynqmp_pm_debugfs_api_write()
177 /* Read node_id and arguments from the PM-API request */ in zynqmp_pm_debugfs_api_write()
195 * zynqmp_pm_debugfs_api_read() - debugfs read function
219 * zynqmp_pm_api_debugfs_init - Initialize debugfs interface
226 firmware_debugfs_root = debugfs_create_dir("zynqmp-firmware", NULL); in zynqmp_pm_api_debugfs_init()
232 * zynqmp_pm_api_debugfs_exit - Remove debugfs interface