[PATCH 1/4] Define platform ctrl interface

Eugene Krasnikov k.eugene.e at gmail.com
Thu Aug 8 03:42:32 EDT 2013


This will make wcn36xx platform independent.

Signed-off-by: Eugene Krasnikov <k.eugene.e at gmail.com>
---
 wcn36xx.h | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/wcn36xx.h b/wcn36xx.h
index bb4bcea..24ea793 100644
--- a/wcn36xx.h
+++ b/wcn36xx.h
@@ -99,6 +99,18 @@ struct nv_data {
 	int	is_valid;
 	void	*table;
 };
+
+/* Interface for platform control path
+ *
+ * @open: hook must be called when wcn36xx wants to open control channel.
+ * @tx: sends a buffer.
+ */
+struct wcn36xx_platform_ctrl_ops {
+	int (*open)(void *drv_priv, void *rsp_cb);
+	void (*close)(void);
+	int (*tx)(char *buf, size_t len);
+};
+
 /**
  * struct wcn36xx_vif - holds VIF related fields
  *
@@ -180,6 +192,7 @@ struct wcn36xx {
 	/* Rates */
 	struct wcn36xx_hal_supported_rates supported_rates;
 
+	struct wcn36xx_platform_ctrl_ops *ctrl_ops;
 	/* SMD related */
 	smd_channel_t		*smd_ch;
 	/*
-- 
1.8.2.2




More information about the wcn36xx mailing list