Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
cmd640.c File Reference
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/delay.h>
#include <linux/ide.h>
#include <linux/init.h>
#include <linux/module.h>
#include <asm/io.h>

Go to the source code of this file.

Macros

#define CMD640_PREFETCH_MASKS   1
 
#define DRV_NAME   "cmd640"
 
#define VID   0x00
 
#define DID   0x02
 
#define PCMD   0x04
 
#define PCMD_ENA   0x01
 
#define PSTTS   0x06
 
#define REVID   0x08
 
#define PROGIF   0x09
 
#define SUBCL   0x0a
 
#define BASCL   0x0b
 
#define BaseA0   0x10
 
#define BaseA1   0x14
 
#define BaseA2   0x18
 
#define BaseA3   0x1c
 
#define INTLINE   0x3c
 
#define INPINE   0x3d
 
#define CFR   0x50
 
#define CFR_DEVREV   0x03
 
#define CFR_IDE01INTR   0x04
 
#define CFR_DEVID   0x18
 
#define CFR_AT_VESA_078h   0x20
 
#define CFR_DSA1   0x40
 
#define CFR_DSA0   0x80
 
#define CNTRL   0x51
 
#define CNTRL_DIS_RA0   0x40
 
#define CNTRL_DIS_RA1   0x80
 
#define CNTRL_ENA_2ND   0x08
 
#define CMDTIM   0x52
 
#define ARTTIM0   0x53
 
#define DRWTIM0   0x54
 
#define ARTTIM1   0x55
 
#define DRWTIM1   0x56
 
#define ARTTIM23   0x57
 
#define ARTTIM23_DIS_RA2   0x04
 
#define ARTTIM23_DIS_RA3   0x08
 
#define ARTTIM23_IDE23INTR   0x10
 
#define DRWTIM23   0x58
 
#define BRST   0x59
 

Functions

 module_param_named (probe_vlb, cmd640_vlb, bool, 0)
 
 MODULE_PARM_DESC (probe_vlb,"probe for VLB version of CMD640 chipset")
 
 module_init (cmd640x_init)
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define ARTTIM0   0x53

Definition at line 150 of file cmd640.c.

#define ARTTIM1   0x55

Definition at line 152 of file cmd640.c.

#define ARTTIM23   0x57

Definition at line 154 of file cmd640.c.

#define ARTTIM23_DIS_RA2   0x04

Definition at line 155 of file cmd640.c.

#define ARTTIM23_DIS_RA3   0x08

Definition at line 156 of file cmd640.c.

#define ARTTIM23_IDE23INTR   0x10

Definition at line 157 of file cmd640.c.

#define BASCL   0x0b

Definition at line 128 of file cmd640.c.

#define BaseA0   0x10

Definition at line 129 of file cmd640.c.

#define BaseA1   0x14

Definition at line 130 of file cmd640.c.

#define BaseA2   0x18

Definition at line 131 of file cmd640.c.

#define BaseA3   0x1c

Definition at line 132 of file cmd640.c.

#define BRST   0x59

Definition at line 159 of file cmd640.c.

#define CFR   0x50

Definition at line 136 of file cmd640.c.

#define CFR_AT_VESA_078h   0x20

Definition at line 140 of file cmd640.c.

#define CFR_DEVID   0x18

Definition at line 139 of file cmd640.c.

#define CFR_DEVREV   0x03

Definition at line 137 of file cmd640.c.

#define CFR_DSA0   0x80

Definition at line 142 of file cmd640.c.

#define CFR_DSA1   0x40

Definition at line 141 of file cmd640.c.

#define CFR_IDE01INTR   0x04

Definition at line 138 of file cmd640.c.

#define CMD640_PREFETCH_MASKS   1

Definition at line 99 of file cmd640.c.

#define CMDTIM   0x52

Definition at line 149 of file cmd640.c.

#define CNTRL   0x51

Definition at line 144 of file cmd640.c.

#define CNTRL_DIS_RA0   0x40

Definition at line 145 of file cmd640.c.

#define CNTRL_DIS_RA1   0x80

Definition at line 146 of file cmd640.c.

#define CNTRL_ENA_2ND   0x08

Definition at line 147 of file cmd640.c.

#define DID   0x02

Definition at line 121 of file cmd640.c.

#define DRV_NAME   "cmd640"

Definition at line 112 of file cmd640.c.

#define DRWTIM0   0x54

Definition at line 151 of file cmd640.c.

#define DRWTIM1   0x56

Definition at line 153 of file cmd640.c.

#define DRWTIM23   0x58

Definition at line 158 of file cmd640.c.

#define INPINE   0x3d

Definition at line 134 of file cmd640.c.

#define INTLINE   0x3c

Definition at line 133 of file cmd640.c.

#define PCMD   0x04

Definition at line 122 of file cmd640.c.

#define PCMD_ENA   0x01

Definition at line 123 of file cmd640.c.

#define PROGIF   0x09

Definition at line 126 of file cmd640.c.

#define PSTTS   0x06

Definition at line 124 of file cmd640.c.

#define REVID   0x08

Definition at line 125 of file cmd640.c.

#define SUBCL   0x0a

Definition at line 127 of file cmd640.c.

#define VID   0x00

Definition at line 120 of file cmd640.c.

Function Documentation

module_init ( cmd640x_init  )
MODULE_LICENSE ( "GPL"  )
module_param_named ( probe_vlb  ,
cmd640_vlb  ,
bool  ,
 
)
MODULE_PARM_DESC ( probe_vlb  ,
"probe for VLB version of CMD640 chipset  
)