1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Device probe and register.
5 * Copyright (c) 2017-2020, Silicon Laboratories, Inc.
6 * Copyright (c) 2010, ST-Ericsson
13 #include <linux/device.h>
14 #include <linux/gpio/consumer.h>
16 #include "hif_api_general.h"
21 struct wfx_platform_data {
22 /* Keyset and ".sec" extension will be appended to this string */
25 struct gpio_desc *gpio_wakeup;
26 /* if true HIF D_out is sampled on the rising edge of the clock
27 * (intended to be used in 50Mhz SDIO)
32 struct wfx_dev *wfx_init_common(struct device *dev,
33 const struct wfx_platform_data *pdata,
34 const struct hwbus_ops *hwbus_ops,
37 int wfx_probe(struct wfx_dev *wdev);
38 void wfx_release(struct wfx_dev *wdev);
40 bool wfx_api_older_than(struct wfx_dev *wdev, int major, int minor);
41 int wfx_send_pds(struct wfx_dev *wdev, u8 *buf, size_t len);