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

Go to the source code of this file.

Data Structures

struct  scc_ports
 

Macros

#define PCI_DEVICE_ID_TOSHIBA_SCC_ATA   0x01b4
 
#define SCC_PATA_NAME   "scc IDE"
 
#define TDVHSEL_MASTER   0x00000001
 
#define TDVHSEL_SLAVE   0x00000004
 
#define MODE_JCUSFEN   0x00000080
 
#define CCKCTRL_ATARESET   0x00040000
 
#define CCKCTRL_BUFCNT   0x00020000
 
#define CCKCTRL_CRST   0x00010000
 
#define CCKCTRL_OCLKEN   0x00000100
 
#define CCKCTRL_ATACLKOEN   0x00000002
 
#define CCKCTRL_LCLKEN   0x00000001
 
#define QCHCD_IOS_SS   0x00000001
 
#define QCHSD_STPDIAG   0x00020000
 
#define INTMASK_MSK   0xD1000012
 
#define INTSTS_SERROR   0x80000000
 
#define INTSTS_PRERR   0x40000000
 
#define INTSTS_RERR   0x10000000
 
#define INTSTS_ICERR   0x01000000
 
#define INTSTS_BMSINT   0x00000010
 
#define INTSTS_BMHE   0x00000008
 
#define INTSTS_IOIRQS   0x00000004
 
#define INTSTS_INTRQ   0x00000002
 
#define INTSTS_ACTEINT   0x00000001
 
#define ECMODE_VALUE   0x01
 

: device name

setup_mmio_scc - map CTRL/BMID region : PCI device we are configuring

 MODULE_DEVICE_TABLE (pci, scc_pci_tbl)
 
 module_init (scc_ide_init)
 
 module_exit (scc_ide_exit)
 
 MODULE_DESCRIPTION ("PCI driver module for Toshiba SCC IDE")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define CCKCTRL_ATACLKOEN   0x00000002

Definition at line 45 of file scc_pata.c.

#define CCKCTRL_ATARESET   0x00040000

Definition at line 41 of file scc_pata.c.

#define CCKCTRL_BUFCNT   0x00020000

Definition at line 42 of file scc_pata.c.

#define CCKCTRL_CRST   0x00010000

Definition at line 43 of file scc_pata.c.

#define CCKCTRL_LCLKEN   0x00000001

Definition at line 46 of file scc_pata.c.

#define CCKCTRL_OCLKEN   0x00000100

Definition at line 44 of file scc_pata.c.

#define ECMODE_VALUE   0x01

Definition at line 63 of file scc_pata.c.

#define INTMASK_MSK   0xD1000012

Definition at line 52 of file scc_pata.c.

#define INTSTS_ACTEINT   0x00000001

Definition at line 61 of file scc_pata.c.

#define INTSTS_BMHE   0x00000008

Definition at line 58 of file scc_pata.c.

#define INTSTS_BMSINT   0x00000010

Definition at line 57 of file scc_pata.c.

#define INTSTS_ICERR   0x01000000

Definition at line 56 of file scc_pata.c.

#define INTSTS_INTRQ   0x00000002

Definition at line 60 of file scc_pata.c.

#define INTSTS_IOIRQS   0x00000004

Definition at line 59 of file scc_pata.c.

#define INTSTS_PRERR   0x40000000

Definition at line 54 of file scc_pata.c.

#define INTSTS_RERR   0x10000000

Definition at line 55 of file scc_pata.c.

#define INTSTS_SERROR   0x80000000

Definition at line 53 of file scc_pata.c.

#define MODE_JCUSFEN   0x00000080

Definition at line 39 of file scc_pata.c.

#define PCI_DEVICE_ID_TOSHIBA_SCC_ATA   0x01b4

Definition at line 32 of file scc_pata.c.

#define QCHCD_IOS_SS   0x00000001

Definition at line 48 of file scc_pata.c.

#define QCHSD_STPDIAG   0x00020000

Definition at line 50 of file scc_pata.c.

#define SCC_PATA_NAME   "scc IDE"

Definition at line 34 of file scc_pata.c.

#define TDVHSEL_MASTER   0x00000001

Definition at line 36 of file scc_pata.c.

#define TDVHSEL_SLAVE   0x00000004

Definition at line 37 of file scc_pata.c.

Function Documentation

MODULE_DESCRIPTION ( "PCI driver module for Toshiba SCC IDE )
MODULE_DEVICE_TABLE ( pci  ,
scc_pci_tbl   
)
module_exit ( scc_ide_exit  )
module_init ( scc_ide_init  )
MODULE_LICENSE ( "GPL"  )