Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 134137
b: refs/heads/master
c: cd8d3d3
h: refs/heads/master
i:
  134135: 93b05e3
v: v3
  • Loading branch information
Christian Lamparter authored and John W. Linville committed Jan 29, 2009
1 parent 977ce25 commit fc42e8c
Show file tree
Hide file tree
Showing 7 changed files with 909 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4628ae75583311fcbbd02f4eebcfc08514dfbd65
refs/heads/master: cd8d3d321285a34b4e29cb7b04e552c49cc0f018
10 changes: 10 additions & 0 deletions trunk/drivers/net/wireless/p54/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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.
1 change: 1 addition & 0 deletions trunk/drivers/net/wireless/p54/Makefile
Original file line number Diff line number Diff line change
@@ -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
9 changes: 9 additions & 0 deletions trunk/drivers/net/wireless/p54/p54.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down
3 changes: 2 additions & 1 deletion trunk/drivers/net/wireless/p54/p54common.c
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ static struct p54_cal_database *p54_convert_db(struct pda_custom_wrapper *src,
return 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;
Expand Down Expand Up @@ -698,6 +698,7 @@ static int p54_parse_eeprom(struct ieee80211_hw *dev, void *eeprom, int len)
wiphy_name(dev->wiphy));
return err;
}
EXPORT_SYMBOL_GPL(p54_parse_eeprom);

static int p54_rssi_to_dbm(struct ieee80211_hw *dev, int rssi)
{
Expand Down
Loading

0 comments on commit fc42e8c

Please sign in to comment.