Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions
yenta_socket.c File Reference
#include <linux/init.h>
#include <linux/pci.h>
#include <linux/workqueue.h>
#include <linux/interrupt.h>
#include <linux/delay.h>
#include <linux/module.h>
#include <linux/io.h>
#include <linux/slab.h>
#include <pcmcia/ss.h>
#include "yenta_socket.h"
#include "i82365.h"

Go to the source code of this file.

Macros

#define debug(x, s, args...)   dev_dbg(&s->dev->dev, x, ##args)
 
#define to_cycles(ns)   ((ns)/120)
 
#define to_ns(cycles)   ((cycles)*120)
 
#define BRIDGE_MEM_MAX   (4*1024*1024)
 
#define BRIDGE_MEM_ACC   (128*1024)
 
#define BRIDGE_MEM_MIN   (16*1024)
 
#define BRIDGE_IO_MAX   512
 
#define BRIDGE_IO_ACC   256
 
#define BRIDGE_IO_MIN   32
 
#define PCIBIOS_MIN_CARDBUS_IO   PCIBIOS_MIN_IO
 
#define YENTA_PM_OPS   NULL
 
#define CB_ID(vend, dev, type)
 

Enumerations

enum  {
  CARDBUS_TYPE_DEFAULT = -1, CARDBUS_TYPE_TI, CARDBUS_TYPE_TI113X, CARDBUS_TYPE_TI12XX,
  CARDBUS_TYPE_TI1250, CARDBUS_TYPE_RICOH, CARDBUS_TYPE_TOPIC95, CARDBUS_TYPE_TOPIC97,
  CARDBUS_TYPE_O2MICRO, CARDBUS_TYPE_ENE
}
 

Functions

 module_param (disable_clkrun, bool, 0444)
 
 MODULE_PARM_DESC (disable_clkrun,"If PC card doesn't function properly, please try this option")
 
 module_param (isa_probe, bool, 0444)
 
 MODULE_PARM_DESC (isa_probe,"If set ISA interrupts are probed (default). Set to N to disable probing")
 
 module_param (pwr_irqs_off, bool, 0644)
 
 MODULE_PARM_DESC (pwr_irqs_off,"Force IRQs off during power-on of slot. Use only when seeing IRQ storms!")
 
 module_param_string (o2_speedup, o2_speedup, sizeof(o2_speedup), 0444)
 
 MODULE_PARM_DESC (o2_speedup,"Use prefetch/burst for O2-bridges: 'on', 'off' ""or 'default' (uses recommended behaviour for the detected bridge)")
 
 module_param (override_bios, uint, 0000)
 
 MODULE_PARM_DESC (override_bios,"yenta ignore bios resource allocation")
 
 MODULE_DEVICE_TABLE (pci, yenta_table)
 
 module_init (yenta_socket_init)
 
 module_exit (yenta_socket_exit)
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define BRIDGE_IO_ACC   256

Definition at line 620 of file yenta_socket.c.

#define BRIDGE_IO_MAX   512

Definition at line 619 of file yenta_socket.c.

#define BRIDGE_IO_MIN   32

Definition at line 621 of file yenta_socket.c.

#define BRIDGE_MEM_ACC   (128*1024)

Definition at line 616 of file yenta_socket.c.

#define BRIDGE_MEM_MAX   (4*1024*1024)

Definition at line 615 of file yenta_socket.c.

#define BRIDGE_MEM_MIN   (16*1024)

Definition at line 617 of file yenta_socket.c.

#define CB_ID (   vend,
  dev,
  type 
)
Value:
{ \
.vendor = vend, \
.device = dev, \
.subvendor = PCI_ANY_ID, \
.subdevice = PCI_ANY_ID, \
.class = PCI_CLASS_BRIDGE_CARDBUS << 8, \
.class_mask = ~0, \
.driver_data = CARDBUS_TYPE_##type, \
}

Definition at line 1344 of file yenta_socket.c.

#define debug (   x,
  s,
  args... 
)    dev_dbg(&s->dev->dev, x, ##args)

Definition at line 56 of file yenta_socket.c.

#define PCIBIOS_MIN_CARDBUS_IO   PCIBIOS_MIN_IO

Definition at line 624 of file yenta_socket.c.

#define to_cycles (   ns)    ((ns)/120)

Definition at line 59 of file yenta_socket.c.

#define to_ns (   cycles)    ((cycles)*120)

Definition at line 60 of file yenta_socket.c.

#define YENTA_PM_OPS   NULL

Definition at line 1341 of file yenta_socket.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
CARDBUS_TYPE_DEFAULT 
CARDBUS_TYPE_TI 
CARDBUS_TYPE_TI113X 
CARDBUS_TYPE_TI12XX 
CARDBUS_TYPE_TI1250 
CARDBUS_TYPE_RICOH 
CARDBUS_TYPE_TOPIC95 
CARDBUS_TYPE_TOPIC97 
CARDBUS_TYPE_O2MICRO 
CARDBUS_TYPE_ENE 

Definition at line 838 of file yenta_socket.c.

Function Documentation

MODULE_DEVICE_TABLE ( pci  ,
yenta_table   
)
module_exit ( yenta_socket_exit  )
module_init ( yenta_socket_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( disable_clkrun  ,
bool  ,
0444   
)
module_param ( isa_probe  ,
bool  ,
0444   
)
module_param ( pwr_irqs_off  ,
bool  ,
0644   
)
module_param ( override_bios  ,
uint  ,
0000   
)
module_param_string ( o2_speedup  ,
o2_speedup  ,
sizeof(o2_speedup)  ,
0444   
)
MODULE_PARM_DESC ( disable_clkrun  ,
"If PC card doesn't function  properly,
please try this option  
)
MODULE_PARM_DESC ( isa_probe  ,
"If set ISA interrupts are probed (default). Set to N to disable probing"   
)
MODULE_PARM_DESC ( pwr_irqs_off  ,
"Force IRQs off during power-on of slot. Use only when seeing IRQ storms!"   
)
MODULE_PARM_DESC ( o2_speedup  ,
"Use prefetch/burst for O2-bridges: 'on'  ,
'off'""or 'default'(uses recommended behaviour for the detected bridge)"   
)
MODULE_PARM_DESC ( override_bios  ,
"yenta ignore bios resource allocation"   
)