Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
core.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/delay.h>
#include <linux/init.h>
#include <linux/isapnp.h>
#include <linux/mutex.h>
#include <asm/io.h>
#include "../base.h"

Go to the source code of this file.

Macros

#define _PIDXR   0x279
 
#define _PNPWRP   0xa79
 
#define _STAG_PNPVERNO   0x01
 
#define _STAG_LOGDEVID   0x02
 
#define _STAG_COMPATDEVID   0x03
 
#define _STAG_IRQ   0x04
 
#define _STAG_DMA   0x05
 
#define _STAG_STARTDEP   0x06
 
#define _STAG_ENDDEP   0x07
 
#define _STAG_IOPORT   0x08
 
#define _STAG_FIXEDIO   0x09
 
#define _STAG_VENDOR   0x0e
 
#define _STAG_END   0x0f
 
#define _LTAG_MEMRANGE   0x81
 
#define _LTAG_ANSISTR   0x82
 
#define _LTAG_UNICODESTR   0x83
 
#define _LTAG_VENDOR   0x84
 
#define _LTAG_MEM32RANGE   0x85
 
#define _LTAG_FIXEDMEM32RANGE   0x86
 
#define ISAPNP_CFG_ACTIVATE   0x30 /* byte */
 
#define ISAPNP_CFG_MEM   0x40 /* 4 * dword */
 
#define ISAPNP_CFG_PORT   0x60 /* 8 * word */
 
#define ISAPNP_CFG_IRQ   0x70 /* 2 * word */
 
#define ISAPNP_CFG_DMA   0x74 /* 2 * byte */
 
#define ISAPNP_MAX_MEM   4
 
#define ISAPNP_MAX_PORT   8
 
#define ISAPNP_MAX_IRQ   2
 
#define ISAPNP_MAX_DMA   2
 
#define RDP_STEP   32 /* minimum is 4 */
 

Functions

 MODULE_AUTHOR ("Jaroslav Kysela <[email protected]>")
 
 MODULE_DESCRIPTION ("Generic ISA Plug & Play support")
 
 module_param (isapnp_disable, int, 0)
 
 MODULE_PARM_DESC (isapnp_disable,"ISA Plug & Play disable")
 
 module_param (isapnp_rdp, int, 0)
 
 MODULE_PARM_DESC (isapnp_rdp,"ISA Plug & Play read data port")
 
 module_param (isapnp_reset, int, 0)
 
 MODULE_PARM_DESC (isapnp_reset,"ISA Plug & Play reset all cards")
 
 module_param (isapnp_verbose, int, 0)
 
 MODULE_PARM_DESC (isapnp_verbose,"ISA Plug & Play verbose mode")
 
 MODULE_LICENSE ("GPL")
 
unsigned char isapnp_read_byte (unsigned char idx)
 
void isapnp_write_byte (unsigned char idx, unsigned char val)
 
int isapnp_present (void)
 
int isapnp_cfg_begin (int csn, int logdev)
 
int isapnp_cfg_end (void)
 
 EXPORT_SYMBOL (isapnp_protocol)
 
 EXPORT_SYMBOL (isapnp_present)
 
 EXPORT_SYMBOL (isapnp_cfg_begin)
 
 EXPORT_SYMBOL (isapnp_cfg_end)
 
 EXPORT_SYMBOL (isapnp_write_byte)
 
 device_initcall (isapnp_init)
 
 __setup ("noisapnp", isapnp_setup_disable)
 
 __setup ("isapnp=", isapnp_setup_isapnp)
 

Variables

int isapnp_disable
 
struct pnp_protocol isapnp_protocol
 

Macro Definition Documentation

#define _LTAG_ANSISTR   0x82

Definition at line 86 of file core.c.

#define _LTAG_FIXEDMEM32RANGE   0x86

Definition at line 90 of file core.c.

#define _LTAG_MEM32RANGE   0x85

Definition at line 89 of file core.c.

#define _LTAG_MEMRANGE   0x81

Definition at line 85 of file core.c.

#define _LTAG_UNICODESTR   0x83

Definition at line 87 of file core.c.

#define _LTAG_VENDOR   0x84

Definition at line 88 of file core.c.

#define _PIDXR   0x279

Definition at line 69 of file core.c.

#define _PNPWRP   0xa79

Definition at line 70 of file core.c.

#define _STAG_COMPATDEVID   0x03

Definition at line 75 of file core.c.

#define _STAG_DMA   0x05

Definition at line 77 of file core.c.

#define _STAG_END   0x0f

Definition at line 83 of file core.c.

#define _STAG_ENDDEP   0x07

Definition at line 79 of file core.c.

#define _STAG_FIXEDIO   0x09

Definition at line 81 of file core.c.

#define _STAG_IOPORT   0x08

Definition at line 80 of file core.c.

#define _STAG_IRQ   0x04

Definition at line 76 of file core.c.

#define _STAG_LOGDEVID   0x02

Definition at line 74 of file core.c.

#define _STAG_PNPVERNO   0x01

Definition at line 73 of file core.c.

#define _STAG_STARTDEP   0x06

Definition at line 78 of file core.c.

#define _STAG_VENDOR   0x0e

Definition at line 82 of file core.c.

#define ISAPNP_CFG_ACTIVATE   0x30 /* byte */

Definition at line 94 of file core.c.

#define ISAPNP_CFG_DMA   0x74 /* 2 * byte */

Definition at line 98 of file core.c.

#define ISAPNP_CFG_IRQ   0x70 /* 2 * word */

Definition at line 97 of file core.c.

#define ISAPNP_CFG_MEM   0x40 /* 4 * dword */

Definition at line 95 of file core.c.

#define ISAPNP_CFG_PORT   0x60 /* 8 * word */

Definition at line 96 of file core.c.

#define ISAPNP_MAX_DMA   2

Definition at line 107 of file core.c.

#define ISAPNP_MAX_IRQ   2

Definition at line 106 of file core.c.

#define ISAPNP_MAX_MEM   4

Definition at line 104 of file core.c.

#define ISAPNP_MAX_PORT   8

Definition at line 105 of file core.c.

#define RDP_STEP   32 /* minimum is 4 */

Definition at line 231 of file core.c.

Function Documentation

__setup ( "noisapnp"  ,
isapnp_setup_disable   
)
__setup ( )
device_initcall ( isapnp_init  )
EXPORT_SYMBOL ( isapnp_protocol  )
EXPORT_SYMBOL ( isapnp_present  )
EXPORT_SYMBOL ( isapnp_cfg_begin  )
EXPORT_SYMBOL ( isapnp_cfg_end  )
EXPORT_SYMBOL ( isapnp_write_byte  )
int isapnp_cfg_begin ( int  csn,
int  logdev 
)

Definition at line 855 of file core.c.

int isapnp_cfg_end ( void  )

Definition at line 882 of file core.c.

int isapnp_present ( void  )

Definition at line 844 of file core.c.

unsigned char isapnp_read_byte ( unsigned char  idx)

Definition at line 132 of file core.c.

void isapnp_write_byte ( unsigned char  idx,
unsigned char  val 
)

Definition at line 147 of file core.c.

MODULE_AUTHOR ( "Jaroslav Kysela <[email protected]>"  )
MODULE_DESCRIPTION ( "Generic ISA Plug & Play support )
MODULE_LICENSE ( "GPL"  )
module_param ( isapnp_disable  ,
int  ,
 
)
module_param ( isapnp_rdp  ,
int  ,
 
)
module_param ( isapnp_reset  ,
int  ,
 
)
module_param ( isapnp_verbose  ,
int  ,
 
)
MODULE_PARM_DESC ( isapnp_disable  ,
"ISA Plug & Play disable  
)
MODULE_PARM_DESC ( isapnp_rdp  ,
"ISA Plug & Play read data port  
)
MODULE_PARM_DESC ( isapnp_reset  ,
"ISA Plug & Play reset all cards  
)
MODULE_PARM_DESC ( isapnp_verbose  ,
"ISA Plug & Play verbose mode  
)

Variable Documentation

int isapnp_disable

Definition at line 52 of file core.c.

struct pnp_protocol isapnp_protocol
Initial value:
= {
.name = "ISA Plug and Play",
.get = isapnp_get_resources,
.set = isapnp_set_resources,
.disable = isapnp_disable_resources,
}

Definition at line 997 of file core.c.