Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations | Functions
i82365.c File Reference
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/init.h>
#include <linux/types.h>
#include <linux/fcntl.h>
#include <linux/string.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/timer.h>
#include <linux/ioport.h>
#include <linux/delay.h>
#include <linux/workqueue.h>
#include <linux/interrupt.h>
#include <linux/platform_device.h>
#include <linux/bitops.h>
#include <asm/irq.h>
#include <asm/io.h>
#include <pcmcia/ss.h>
#include <linux/isapnp.h>
#include "i82365.h"
#include "cirrus.h"
#include "vg468.h"
#include "ricoh.h"

Go to the source code of this file.

Data Structures

struct  cirrus_state_t
 
struct  vg46x_state_t
 
struct  i82365_socket
 
struct  pcic_t
 

Macros

#define I365_MASK   0xdeb8 /* irq 15,14,12,11,10,9,7,5,4,3 */
 
#define ISA_LOCK(n, f)   spin_lock_irqsave(&isa_lock, f)
 
#define ISA_UNLOCK(n, f)   spin_unlock_irqrestore(&isa_lock, f)
 
#define IS_VADEM   0x0001
 
#define IS_CIRRUS   0x0002
 
#define IS_VIA   0x0010
 
#define IS_UNKNOWN   0x0400
 
#define IS_VG_PWR   0x0800
 
#define IS_DF_PWR   0x1000
 
#define IS_REGISTERED   0x2000
 
#define IS_ALIVE   0x8000
 
#define PCIC_COUNT   (sizeof(pcic)/sizeof(pcic_t))
 
#define flip(v, b, f)   (v = ((f)<0) ? v : ((f) ? ((v)|(b)) : ((v)&(~b))))
 
#define LOCKED(x)
 

Typedefs

typedef struct cirrus_state_t cirrus_state_t
 
typedef struct vg46x_state_t vg46x_state_t
 
typedef enum pcic_id pcic_id
 
typedef struct pcic_t pcic_t
 

Enumerations

enum  pcic_id {
  IS_I82365A, IS_I82365B, IS_I82365DF, IS_IBM,
  IS_RF5Cx96, IS_VLSI, IS_VG468, IS_VG469,
  IS_PD6710, IS_PD672X, IS_VT83C469
}
 

Functions

 module_param (i365_base, ulong, 0444)
 
 module_param (ignore, int, 0444)
 
 module_param (extra_sockets, int, 0444)
 
 module_param (irq_mask, int, 0444)
 
 module_param_array (irq_list, int,&irq_list_count, 0444)
 
 module_param (cs_irq, int, 0444)
 
 module_param (async_clock, int, 0444)
 
 module_param (cable_mode, int, 0444)
 
 module_param (wakeup, int, 0444)
 
 module_param (do_scan, int, 0444)
 
 module_param (poll_interval, int, 0444)
 
 module_param (cycle_time, int, 0444)
 
 module_param (has_dma, int, 0444)
 
 module_param (has_led, int, 0444)
 
 module_param (has_ring, int, 0444)
 
 module_param (dynamic_mode, int, 0444)
 
 module_param (freq_bypass, int, 0444)
 
 module_param (setup_time, int, 0444)
 
 module_param (cmd_time, int, 0444)
 
 module_param (recov_time, int, 0444)
 
 module_init (init_i82365)
 
 module_exit (exit_i82365)
 
 MODULE_LICENSE ("Dual MPL/GPL")
 

Macro Definition Documentation

#define flip (   v,
  b,
  f 
)    (v = ((f)<0) ? v : ((f) ? ((v)|(b)) : ((v)&(~b))))

Definition at line 292 of file i82365.c.

#define I365_MASK   0xdeb8 /* irq 15,14,12,11,10,9,7,5,4,3 */

Definition at line 164 of file i82365.c.

#define IS_ALIVE   0x8000

Definition at line 190 of file i82365.c.

#define IS_CIRRUS   0x0002

Definition at line 184 of file i82365.c.

#define IS_DF_PWR   0x1000

Definition at line 188 of file i82365.c.

#define IS_REGISTERED   0x2000

Definition at line 189 of file i82365.c.

#define IS_UNKNOWN   0x0400

Definition at line 186 of file i82365.c.

#define IS_VADEM   0x0001

Definition at line 183 of file i82365.c.

#define IS_VG_PWR   0x0800

Definition at line 187 of file i82365.c.

#define IS_VIA   0x0010

Definition at line 185 of file i82365.c.

#define ISA_LOCK (   n,
  f 
)    spin_lock_irqsave(&isa_lock, f)

Definition at line 168 of file i82365.c.

#define ISA_UNLOCK (   n,
  f 
)    spin_unlock_irqrestore(&isa_lock, f)

Definition at line 169 of file i82365.c.

#define LOCKED (   x)
Value:
do { \
int retval; \
unsigned long flags; \
spin_lock_irqsave(&isa_lock, flags); \
retval = x; \
spin_unlock_irqrestore(&isa_lock, flags); \
return retval; \
} while (0)

Definition at line 1154 of file i82365.c.

#define PCIC_COUNT   (sizeof(pcic)/sizeof(pcic_t))

Definition at line 211 of file i82365.c.

Typedef Documentation

typedef enum pcic_id pcic_id
typedef struct pcic_t pcic_t

Enumeration Type Documentation

enum pcic_id
Enumerator:
IS_I82365A 
IS_I82365B 
IS_I82365DF 
IS_IBM 
IS_RF5Cx96 
IS_VLSI 
IS_VG468 
IS_VG469 
IS_PD6710 
IS_PD672X 
IS_VT83C469 

Definition at line 176 of file i82365.c.

Function Documentation

module_exit ( exit_i82365  )
module_init ( init_i82365  )
MODULE_LICENSE ( "Dual MPL/GPL"  )
module_param ( i365_base  ,
ulong  ,
0444   
)
module_param ( ignore  ,
int  ,
0444   
)
module_param ( extra_sockets  ,
int  ,
0444   
)
module_param ( irq_mask  ,
int  ,
0444   
)
module_param ( cs_irq  ,
int  ,
0444   
)
module_param ( async_clock  ,
int  ,
0444   
)
module_param ( cable_mode  ,
int  ,
0444   
)
module_param ( wakeup  ,
int  ,
0444   
)
module_param ( do_scan  ,
int  ,
0444   
)
module_param ( poll_interval  ,
int  ,
0444   
)
module_param ( cycle_time  ,
int  ,
0444   
)
module_param ( has_dma  ,
int  ,
0444   
)
module_param ( has_led  ,
int  ,
0444   
)
module_param ( has_ring  ,
int  ,
0444   
)
module_param ( dynamic_mode  ,
int  ,
0444   
)
module_param ( freq_bypass  ,
int  ,
0444   
)
module_param ( setup_time  ,
int  ,
0444   
)
module_param ( cmd_time  ,
int  ,
0444   
)
module_param ( recov_time  ,
int  ,
0444   
)
module_param_array ( irq_list  ,
int  ,
irq_list_count,
0444   
)