// SPDX-License-Identifier: GPL-2.0-only /* * Initialization protocol for ISHTP driver * * Copyright (c) 2003-2016, Intel Corporation. */ #include <linux/devm-helpers.h> #include <linux/export.h> #include <linux/slab.h> #include <linux/sched.h> #include "ishtp-dev.h" #include "hbm.h" #include "client.h" #include "loader.h" /** * ishtp_dev_state_str() -Convert to string format * @state: state to convert * * Convert state to string for prints * * Return: character pointer to converted string */ const char *ishtp_dev_state_str(int state) { … } /** * ishtp_device_init() - ishtp device init * @dev: ISHTP device instance * * After ISHTP device is alloacted, this function is used to initialize * each field which includes spin lock, work struct and lists */ void ishtp_device_init(struct ishtp_device *dev) { … } EXPORT_SYMBOL(…); /** * ishtp_start() - Start ISH processing * @dev: ISHTP device instance * * Start ISHTP processing by sending query subscriber message * * Return: 0 on success else -ENODEV */ int ishtp_start(struct ishtp_device *dev) { … } EXPORT_SYMBOL(…);