Main Page | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

wavelan.p.h File Reference

#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/types.h>
#include <linux/fcntl.h>
#include <linux/interrupt.h>
#include <linux/stat.h>
#include <linux/ptrace.h>
#include <linux/ioport.h>
#include <linux/in.h>
#include <linux/string.h>
#include <linux/delay.h>
#include <asm/system.h>
#include <asm/bitops.h>
#include <asm/io.h>
#include <asm/dma.h>
#include <asm/uaccess.h>
#include <linux/errno.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/skbuff.h>
#include <linux/malloc.h>
#include <linux/timer.h>
#include <linux/init.h>
#include <linux/wireless.h>
#include "i82586.h"
#include "wavelan.h"

Include dependency graph for wavelan.p.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  net_local

Defines

#define USE_PSA_CONFIG
#define MULTICAST_AVOID
#define DEBUG_INTERRUPT_ERROR
#define DEBUG_CONFIG_ERROR
#define DEBUG_TX_ERROR
#define DEBUG_RX_ERROR
#define DEBUG_IOCTL_ERROR
#define DEBUG_BASIC_SHOW
#define WATCHDOG_JIFFIES   (256*HZ/100)
#define NELS(a)   (sizeof(a) / sizeof(a[0]))
#define SIOCSIPQTHR   SIOCDEVPRIVATE
#define SIOCGIPQTHR   SIOCDEVPRIVATE + 1
#define SIOCSIPLTHR   SIOCDEVPRIVATE + 2
#define SIOCGIPLTHR   SIOCDEVPRIVATE + 3
#define SIOCSIPHISTO   SIOCDEVPRIVATE + 6
#define SIOCGIPHISTO   SIOCDEVPRIVATE + 7

Typedefs

typedef device device
typedef net_device_stats en_stats
typedef iw_statistics iw_stats
typedef iw_quality iw_qual
typedef iw_freq iw_freq
typedef net_local net_local
typedef timer_list timer_list
typedef u_char mac_addr [WAVELAN_ADDR_SIZE]

Functions

static unsigned long wv_splhi (void)
static void wv_splx (unsigned long)
static u_char wv_irq_to_psa (int)
static int wv_psa_to_irq (u_char)
static u_short hasr_read (u_long)
static void hacr_write (u_long, u_short)
static void hacr_write_slow (u_long, u_short)
static void set_chan_attn (u_long, u_short)
static void wv_hacr_reset (u_long)
static void wv_16_off (u_long, u_short)
static void wv_16_on (u_long, u_short)
static void wv_ints_off (device *)
static void wv_ints_on (device *)
static void psa_read (u_long, u_short, int, u_char *, int)
static void psa_write (u_long, u_short, int, u_char *, int)
static void mmc_out (u_long, u_short, u_char)
static void mmc_write (u_long, u_char, u_char *, int)
static u_char mmc_in (u_long, u_short)
static void mmc_read (u_long, u_char, u_char *, int)
static void fee_wait (u_long, int, int)
static void fee_read (u_long, u_short, u_short *, int)
static void obram_read (u_long, u_short, u_char *, int)
static void obram_write (u_long, u_short, u_char *, int)
static void wv_ack (device *)
static int wv_synchronous_cmd (device *, const char *)
static int wv_config_complete (device *, u_long, net_local *)
static int wv_complete (device *, u_long, net_local *)
static void wv_82586_reconfig (device *)
static void wv_init_info (device *)
static en_statswavelan_get_stats (device *)
static void wavelan_set_multicast_list (device *)
static void wv_packet_read (device *, u_short, int)
static void wv_receive (device *)
static void wv_packet_write (device *, void *, short)
static int wavelan_packet_xmit (struct sk_buff *, device *)
static int wv_mmc_init (device *)
static int wv_ru_start (device *)
static int wv_cu_start (device *)
static int wv_82586_start (device *)
static void wv_82586_config (device *)
static void wv_82586_stop (device *)
static int wv_hw_reset (device *)
static int wv_check_ioaddr (u_long, u_char *)
static void wavelan_interrupt (int, void *, struct pt_regs *)
static void wavelan_watchdog (u_long)
static int wavelan_open (device *)
static int wavelan_close (device *)
static int wavelan_config (device *)
int wavelan_probe (device *)

Variables

static net_localwavelan_list = (net_local *) NULL
static u_char irqvals []
static unsigned short iobase []


Define Documentation

#define DEBUG_BASIC_SHOW
 

Definition at line 387 of file wavelan.p.h.

#define DEBUG_CONFIG_ERROR
 

Definition at line 374 of file wavelan.p.h.

#define DEBUG_INTERRUPT_ERROR
 

Definition at line 371 of file wavelan.p.h.

#define DEBUG_IOCTL_ERROR
 

Definition at line 386 of file wavelan.p.h.

#define DEBUG_RX_ERROR
 

Definition at line 382 of file wavelan.p.h.

#define DEBUG_TX_ERROR
 

Definition at line 378 of file wavelan.p.h.

#define MULTICAST_AVOID
 

Definition at line 356 of file wavelan.p.h.

#define NELS a   )     (sizeof(a) / sizeof(a[0]))
 

Definition at line 405 of file wavelan.p.h.

Referenced by __initfunc(), and wv_irq_to_psa().

#define SIOCGIPHISTO   SIOCDEVPRIVATE + 7
 

Definition at line 415 of file wavelan.p.h.

#define SIOCGIPLTHR   SIOCDEVPRIVATE + 3
 

Definition at line 412 of file wavelan.p.h.

#define SIOCGIPQTHR   SIOCDEVPRIVATE + 1
 

Definition at line 410 of file wavelan.p.h.

#define SIOCSIPHISTO   SIOCDEVPRIVATE + 6
 

Definition at line 414 of file wavelan.p.h.

#define SIOCSIPLTHR   SIOCDEVPRIVATE + 2
 

Definition at line 411 of file wavelan.p.h.

#define SIOCSIPQTHR   SIOCDEVPRIVATE
 

Definition at line 409 of file wavelan.p.h.

#define USE_PSA_CONFIG
 

Definition at line 353 of file wavelan.p.h.

#define WATCHDOG_JIFFIES   (256*HZ/100)
 

Definition at line 402 of file wavelan.p.h.

Referenced by wavelan_interrupt(), wavelan_watchdog(), wv_82586_config(), and wv_packet_write().


Typedef Documentation

typedef struct device device
 

Definition at line 420 of file wavelan.p.h.

typedef struct net_device_stats en_stats
 

Definition at line 421 of file wavelan.p.h.

typedef struct iw_freq iw_freq
 

Definition at line 424 of file wavelan.p.h.

typedef struct iw_quality iw_qual
 

Definition at line 423 of file wavelan.p.h.

typedef struct iw_statistics iw_stats
 

Definition at line 422 of file wavelan.p.h.

typedef u_char mac_addr[WAVELAN_ADDR_SIZE]
 

Definition at line 429 of file wavelan.p.h.

typedef struct net_local net_local
 

Definition at line 425 of file wavelan.p.h.

typedef struct timer_list timer_list
 

Definition at line 426 of file wavelan.p.h.


Function Documentation

static void fee_read u_long  ,
u_short  ,
u_short ,
int 
[static]
 

static void fee_wait u_long  ,
int  ,
int 
 

static void hacr_write u_long  ,
u_short 
[inline, static]
 

static void hacr_write_slow u_long  ,
u_short 
 

static u_short hasr_read u_long   )  [inline, static]
 

static u_char mmc_in u_long  ,
u_short 
[inline, static]
 

static void mmc_out u_long  ,
u_short  ,
u_char 
[inline, static]
 

static void mmc_read u_long  ,
u_char  ,
u_char ,
int 
[inline, static]
 

static void mmc_write u_long  ,
u_char  ,
u_char ,
int 
 

static void obram_read u_long  ,
u_short  ,
u_char ,
int 
[static]
 

static void obram_write u_long  ,
u_short  ,
u_char ,
int 
[inline, static]
 

static void psa_read u_long  ,
u_short  ,
int  ,
u_char ,
int 
[static]
 

static void psa_write u_long  ,
u_short  ,
int  ,
u_char ,
int 
 

static void set_chan_attn u_long  ,
u_short 
 

static int wavelan_close device *   ) 
 

static int wavelan_config device *   ) 
 

Referenced by __initfunc().

static en_stats* wavelan_get_stats device *   )  [static]
 

static void wavelan_interrupt int  ,
void *  ,
struct pt_regs
[static]
 

static int wavelan_open device *   )  [static]
 

static int wavelan_packet_xmit struct sk_buff ,
device * 
[static]
 

int wavelan_probe device *   ) 
 

static void wavelan_set_multicast_list device *   )  [static]
 

static void wavelan_watchdog u_long   )  [static]
 

static void wv_16_off u_long  ,
u_short 
 

static void wv_16_on u_long  ,
u_short 
 

static void wv_82586_config device *   )  [static]
 

static void wv_82586_reconfig device *   )  [inline, static]
 

static int wv_82586_start device *   ) 
 

static void wv_82586_stop device *   )  [inline, static]
 

static void wv_ack device *   )  [static]
 

static int wv_check_ioaddr u_long  ,
u_char
 

static int wv_complete device *  ,
u_long  ,
net_local
[static]
 

static int wv_config_complete device *  ,
u_long  ,
net_local
 

static int wv_cu_start device *   ) 
 

static void wv_hacr_reset u_long   ) 
 

static int wv_hw_reset device *   )  [static]
 

static void wv_init_info device *   )  [inline, static]
 

static void wv_ints_off device *   ) 
 

static void wv_ints_on device *   ) 
 

static u_char wv_irq_to_psa int   )  [static]
 

static int wv_mmc_init device *   )  [inline, static]
 

static void wv_packet_read device *  ,
u_short  ,
int 
[inline, static]
 

static void wv_packet_write device *  ,
void *  ,
short 
[inline, static]
 

static int wv_psa_to_irq u_char   )  [static]
 

Referenced by __initfunc().

static void wv_receive device *   ) 
 

static int wv_ru_start device *   ) 
 

static unsigned long wv_splhi void   )  [inline, static]
 

static void wv_splx unsigned  long  )  [inline, static]
 

static int wv_synchronous_cmd device *  ,
const char * 
[inline, static]
 


Variable Documentation

unsigned short iobase[] [static]
 

Initial value:

{








        
  0x390, 0x3E0
}

Definition at line 643 of file wavelan.p.h.

u_char irqvals[] [static]
 

Initial value:

{
           0,    0,    0, 0x01,
        0x02, 0x04,    0, 0x08,
           0,    0, 0x10, 0x20,
        0x40,    0,    0, 0x80,
}

Definition at line 632 of file wavelan.p.h.

Referenced by __initfunc(), and wv_irq_to_psa().

net_local* wavelan_list = (net_local *) NULL [static]
 

Definition at line 626 of file wavelan.p.h.

Referenced by __initfunc().