1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright (c) 2019, Silicon Laboratories, Inc.
5 #ifndef WFX_SECURE_LINK_H
6 #define WFX_SECURE_LINK_H
10 #include "hif_api_general.h"
18 static inline bool wfx_is_secure_command(struct wfx_dev *wdev, int cmd_id)
23 static inline int wfx_sl_decode(struct wfx_dev *wdev, struct hif_sl_msg *m)
28 static inline int wfx_sl_encode(struct wfx_dev *wdev, struct hif_msg *input,
29 struct hif_sl_msg *output)
34 static inline int wfx_sl_check_pubkey(struct wfx_dev *wdev, u8 *ncp_pubkey,
40 static inline void wfx_sl_fill_pdata(struct device *dev,
41 struct wfx_platform_data *pdata)
43 if (of_find_property(dev->of_node, "slk_key", NULL))
44 dev_err(dev, "secure link is not supported by this driver, ignoring provided key\n");
47 static inline int wfx_sl_init(struct wfx_dev *wdev)
52 static inline void wfx_sl_deinit(struct wfx_dev *wdev)