p54spi: p54spi driver
PATCH v2 4/4 p54spi: p54spi driver
This patch adds the p54spi driver.
Signed-off-by Christian Lamparter <[email protected]>
---
Unless someone finds a problem that requires a +20kb patch to fix, this will be the last re-spin.
---
drivers/net/wireless/p54/Kconfig +10 -0
@@ -61,3 +61,13 @@ config P54_PCI http://prism54.org/ If you choose to build a module, it'll be called p54pci. + +config P54_SPI + tristate "Prism54 SPI (stlc45xx) support" + depends on P54_COMMON && SPI_MASTER + ---help--- + This driver is for stlc4550 or stlc4560 based wireless chips. + This driver is experimental, untested and will probably only work on + Nokia's N800/N810 Portable Internet Tablet. + + If you choose to build a module, it'll be called p54spi.
drivers/net/wireless/p54/Makefile +1 -0
@@ -1,3 +1,4 @@ obj-$(CONFIG_P54_COMMON) += p54common.o obj-$(CONFIG_P54_USB) += p54usb.o obj-$(CONFIG_P54_PCI) += p54pci.o +obj-$(CONFIG_P54_SPI) += p54spi.o
drivers/net/wireless/p54/p54common.c +2 -1
@@ -483,7 +483,7 @@ static struct p54_cal_database *p54_convreturn dst; } -static int p54_parse_eeprom (struct ieee80211_hw *dev,void *eeprom,int len) +int p54_parse_eeprom (struct ieee80211_hw *dev,void *eeprom,int len) {struct p54_common *priv = dev->priv;struct eeprom_pda_wrap *wrap =NULL ;
@@ -699,6 +699,7 @@ static int p54_parse_eeprom(struct ieee8 wiphy_name(dev->wiphy));return err; } +EXPORT_SYMBOL_GPL (p54_parse_eeprom);static int p54_rssi_to_dbm (struct ieee80211_hw *dev,int rssi) {
drivers/net/wireless/p54/p54.h +9 -0
@@ -104,6 +104,14 @@ struct p54_cal_database {#define FW_LM87 0x4c4d3837#define FW_LM20 0x4c4d3230 +enum fw_state { +FW_STATE_OFF , +FW_STATE_BOOTING , +FW_STATE_READY , +FW_STATE_RESET , +FW_STATE_RESETTING , +}; +struct p54_common {struct ieee80211_hw *hw;u32 rx_start;
@@ -154,6 +162,7 @@ struct p54_common {int p54_rx (struct ieee80211_hw *dev,struct sk_buff *skb);void p54_free_skb (struct ieee80211_hw *dev,struct sk_buff *skb);int p54_parse_firmware (struct ieee80211_hw *dev,const struct firmware *fw); +int p54_parse_eeprom (struct ieee80211_hw *dev,void *eeprom,int len);int p54_read_eeprom (struct ieee80211_hw *dev);struct ieee80211_hw *p54_init_common (size_t priv_data_len);void p54_free_common (struct ieee80211_hw *dev);
drivers/net/wireless/p54/p54spi.c +759 -0
759 lines not on this page · raw message
drivers/net/wireless/p54/p54spi.h +127 -0
127 lines not on this page · raw message