0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #ifndef WFX_MAIN_H
0011 #define WFX_MAIN_H
0012
0013 #include <linux/device.h>
0014 #include <linux/gpio/consumer.h>
0015
0016 #include "hif_api_general.h"
0017
0018 struct wfx_dev;
0019 struct wfx_hwbus_ops;
0020
0021 struct wfx_platform_data {
0022
0023 const char *file_fw;
0024 const char *file_pds;
0025 struct gpio_desc *gpio_wakeup;
0026
0027
0028
0029 bool use_rising_clk;
0030 };
0031
0032 struct wfx_dev *wfx_init_common(struct device *dev, const struct wfx_platform_data *pdata,
0033 const struct wfx_hwbus_ops *hwbus_ops, void *hwbus_priv);
0034
0035 int wfx_probe(struct wfx_dev *wdev);
0036 void wfx_release(struct wfx_dev *wdev);
0037
0038 bool wfx_api_older_than(struct wfx_dev *wdev, int major, int minor);
0039 int wfx_send_pds(struct wfx_dev *wdev, u8 *buf, size_t len);
0040
0041 #endif