Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
hostap_plx.c File Reference
#include <linux/module.h>
#include <linux/init.h>
#include <linux/if.h>
#include <linux/skbuff.h>
#include <linux/netdevice.h>
#include <linux/slab.h>
#include <linux/workqueue.h>
#include <linux/wireless.h>
#include <net/iw_handler.h>
#include <linux/ioport.h>
#include <linux/pci.h>
#include <asm/io.h>
#include "hostap_wlan.h"
#include "hostap_hw.c"

Go to the source code of this file.

Data Structures

struct  hostap_plx_priv
 
struct  prism2_plx_manfid
 

Macros

#define PRISM2_PLX
 
#define PLX_MIN_ATTR_LEN   512 /* at least 2 x 256 is needed for CIS */
 
#define COR_SRESET   0x80
 
#define COR_LEVLREQ   0x40
 
#define COR_ENABLE_FUNC   0x01
 
#define PLX_PCIIPR   0x3d /* PCI Interrupt Pin */
 
#define PLX_INTCSR   0x4c /* Interrupt Control/Status Register */
 
#define PLX_INTCSR_PCI_INTEN   BIT(6) /* PCI Interrupt Enable */
 
#define PLX_CNTRL   0x50
 
#define PLX_CNTRL_SERIAL_EEPROM_PRESENT   BIT(28)
 
#define PLXDEV(vendor, dev, str)   { vendor, dev, PCI_ANY_ID, PCI_ANY_ID }
 
#define HFA384X_OUTB(v, a)   outb((v), dev->base_addr + (a))
 
#define HFA384X_INB(a)   inb(dev->base_addr + (a))
 
#define HFA384X_OUTW(v, a)   outw((v), dev->base_addr + (a))
 
#define HFA384X_INW(a)   inw(dev->base_addr + (a))
 
#define HFA384X_INSW(a, buf, wc)   insw(dev->base_addr + (a), buf, wc)
 
#define HFA384X_OUTSW(a, buf, wc)   outsw(dev->base_addr + (a), buf, wc)
 
#define CISTPL_CONFIG   0x1A
 
#define CISTPL_MANFID   0x20
 
#define CISTPL_END   0xFF
 
#define CIS_MAX_LEN   256
 

Functions

 MODULE_AUTHOR ("Jouni Malinen")
 
 MODULE_DESCRIPTION ("Support for Intersil Prism2-based 802.11 wireless LAN ""cards (PLX).")
 
 MODULE_SUPPORTED_DEVICE ("Intersil Prism2-based WLAN cards (PLX)")
 
 MODULE_LICENSE ("GPL")
 
 module_param (ignore_cis, int, 0444)
 
 MODULE_PARM_DESC (ignore_cis,"Do not verify manfid information in CIS")
 
 MODULE_DEVICE_TABLE (pci, prism2_plx_id_table)
 
 module_pci_driver (prism2_plx_driver)
 

Macro Definition Documentation

#define CIS_MAX_LEN   256
#define CISTPL_CONFIG   0x1A
#define CISTPL_END   0xFF
#define CISTPL_MANFID   0x20
#define COR_ENABLE_FUNC   0x01

Definition at line 52 of file hostap_plx.c.

#define COR_LEVLREQ   0x40

Definition at line 51 of file hostap_plx.c.

#define COR_SRESET   0x80

Definition at line 50 of file hostap_plx.c.

#define HFA384X_INB (   a)    inb(dev->base_addr + (a))

Definition at line 215 of file hostap_plx.c.

#define HFA384X_INSW (   a,
  buf,
  wc 
)    insw(dev->base_addr + (a), buf, wc)

Definition at line 218 of file hostap_plx.c.

#define HFA384X_INW (   a)    inw(dev->base_addr + (a))

Definition at line 217 of file hostap_plx.c.

#define HFA384X_OUTB (   v,
  a 
)    outb((v), dev->base_addr + (a))

Definition at line 214 of file hostap_plx.c.

#define HFA384X_OUTSW (   a,
  buf,
  wc 
)    outsw(dev->base_addr + (a), buf, wc)

Definition at line 219 of file hostap_plx.c.

#define HFA384X_OUTW (   v,
  a 
)    outw((v), dev->base_addr + (a))

Definition at line 216 of file hostap_plx.c.

#define PLX_CNTRL   0x50

Definition at line 58 of file hostap_plx.c.

#define PLX_CNTRL_SERIAL_EEPROM_PRESENT   BIT(28)

Definition at line 59 of file hostap_plx.c.

#define PLX_INTCSR   0x4c /* Interrupt Control/Status Register */

Definition at line 56 of file hostap_plx.c.

#define PLX_INTCSR_PCI_INTEN   BIT(6) /* PCI Interrupt Enable */

Definition at line 57 of file hostap_plx.c.

#define PLX_MIN_ATTR_LEN   512 /* at least 2 x 256 is needed for CIS */

Definition at line 49 of file hostap_plx.c.

#define PLX_PCIIPR   0x3d /* PCI Interrupt Pin */

Definition at line 54 of file hostap_plx.c.

#define PLXDEV (   vendor,
  dev,
  str 
)    { vendor, dev, PCI_ANY_ID, PCI_ANY_ID }

Definition at line 62 of file hostap_plx.c.

#define PRISM2_PLX

Definition at line 1 of file hostap_plx.c.

Function Documentation

MODULE_AUTHOR ( "Jouni Malinen"  )
MODULE_DESCRIPTION ( "Support for Intersil Prism2-based 802.11 wireless LAN ""cards (PLX)."  )
MODULE_DEVICE_TABLE ( pci  ,
prism2_plx_id_table   
)
MODULE_LICENSE ( "GPL"  )
module_param ( ignore_cis  ,
int  ,
0444   
)
MODULE_PARM_DESC ( ignore_cis  ,
"Do not verify manfid information in CIS  
)
module_pci_driver ( prism2_plx_driver  )
MODULE_SUPPORTED_DEVICE ( "Intersil Prism2-based WLAN cards (PLX)"  )