Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions
pata_cs5536.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/pci.h>
#include <linux/init.h>
#include <linux/blkdev.h>
#include <linux/delay.h>
#include <linux/libata.h>
#include <scsi/scsi_host.h>

Go to the source code of this file.

Macros

#define rdmsr(x, y, z)   do { } while (0)
 
#define wrmsr(x, y, z)   do { } while (0)
 
#define use_msr   0
 
#define DRV_NAME   "pata_cs5536"
 
#define DRV_VERSION   "0.0.8"
 

Enumerations

enum  {
  MSR_IDE_CFG = 0x51300010, PCI_IDE_CFG = 0x40, CFG = 0, DTC = 2,
  CAST = 3, ETC = 4, IDE_CFG_CHANEN = (1 << 1), IDE_CFG_CABLE = (1 << 17) | (1 << 16),
  IDE_D0_SHIFT = 24, IDE_D1_SHIFT = 16, IDE_DRV_MASK = 0xff, IDE_CAST_D0_SHIFT = 6,
  IDE_CAST_D1_SHIFT = 4, IDE_CAST_DRV_MASK = 0x3, IDE_CAST_CMD_MASK = 0xff, IDE_CAST_CMD_SHIFT = 24,
  IDE_ETC_UDMA_MASK = 0xc0
}
 

Functions

 module_pci_driver (cs5536_pci_driver)
 
 MODULE_AUTHOR ("Martin K. Petersen")
 
 MODULE_DESCRIPTION ("low-level driver for the CS5536 IDE controller")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DEVICE_TABLE (pci, cs5536)
 
 MODULE_VERSION (DRV_VERSION)
 

Macro Definition Documentation

#define DRV_NAME   "pata_cs5536"

Definition at line 55 of file pata_cs5536.c.

#define DRV_VERSION   "0.0.8"

Definition at line 56 of file pata_cs5536.c.

#define rdmsr (   x,
  y,
 
)    do { } while (0)

Definition at line 50 of file pata_cs5536.c.

#define use_msr   0

Definition at line 52 of file pata_cs5536.c.

#define wrmsr (   x,
  y,
 
)    do { } while (0)

Definition at line 51 of file pata_cs5536.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
MSR_IDE_CFG 
PCI_IDE_CFG 
CFG 
DTC 
CAST 
ETC 
IDE_CFG_CHANEN 
IDE_CFG_CABLE 
IDE_D0_SHIFT 
IDE_D1_SHIFT 
IDE_DRV_MASK 
IDE_CAST_D0_SHIFT 
IDE_CAST_D1_SHIFT 
IDE_CAST_DRV_MASK 
IDE_CAST_CMD_MASK 
IDE_CAST_CMD_SHIFT 
IDE_ETC_UDMA_MASK 

Definition at line 58 of file pata_cs5536.c.

Function Documentation

MODULE_AUTHOR ( "Martin K. Petersen"  )
MODULE_DESCRIPTION ( "low-level driver for the CS5536 IDE controller )
MODULE_DEVICE_TABLE ( pci  ,
cs5536   
)
MODULE_LICENSE ( "GPL"  )
module_pci_driver ( cs5536_pci_driver  )
MODULE_VERSION ( DRV_VERSION  )