Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions
sata_svw.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/interrupt.h>
#include <linux/device.h>
#include <scsi/scsi_host.h>
#include <scsi/scsi_cmnd.h>
#include <scsi/scsi.h>
#include <linux/libata.h>

Go to the source code of this file.

Macros

#define DRV_NAME   "sata_svw"
 
#define DRV_VERSION   "2.3"
 

Enumerations

enum  {
  K2_FLAG_SATA_8_PORTS = (1 << 24), K2_FLAG_NO_ATAPI_DMA = (1 << 25), K2_FLAG_BAR_POS_3 = (1 << 26), K2_SATA_TF_CMD_OFFSET = 0x00,
  K2_SATA_TF_DATA_OFFSET = 0x00, K2_SATA_TF_ERROR_OFFSET = 0x04, K2_SATA_TF_NSECT_OFFSET = 0x08, K2_SATA_TF_LBAL_OFFSET = 0x0c,
  K2_SATA_TF_LBAM_OFFSET = 0x10, K2_SATA_TF_LBAH_OFFSET = 0x14, K2_SATA_TF_DEVICE_OFFSET = 0x18, K2_SATA_TF_CMDSTAT_OFFSET = 0x1c,
  K2_SATA_TF_CTL_OFFSET = 0x20, K2_SATA_DMA_CMD_OFFSET = 0x30, K2_SATA_SCR_STATUS_OFFSET = 0x40, K2_SATA_SCR_ERROR_OFFSET = 0x44,
  K2_SATA_SCR_CONTROL_OFFSET = 0x48, K2_SATA_SICR1_OFFSET = 0x80, K2_SATA_SICR2_OFFSET = 0x84, K2_SATA_SIM_OFFSET = 0x88,
  K2_SATA_PORT_OFFSET = 0x100, chip_svw4 = 0, chip_svw8 = 1, chip_svw42 = 2,
  chip_svw43 = 3
}
 

Functions

 module_pci_driver (k2_sata_pci_driver)
 
 MODULE_AUTHOR ("Benjamin Herrenschmidt")
 
 MODULE_DESCRIPTION ("low-level driver for K2 SATA controller")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DEVICE_TABLE (pci, k2_sata_pci_tbl)
 
 MODULE_VERSION (DRV_VERSION)
 

Macro Definition Documentation

#define DRV_NAME   "sata_svw"

Definition at line 57 of file sata_svw.c.

#define DRV_VERSION   "2.3"

Definition at line 58 of file sata_svw.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
K2_FLAG_SATA_8_PORTS 
K2_FLAG_NO_ATAPI_DMA 
K2_FLAG_BAR_POS_3 
K2_SATA_TF_CMD_OFFSET 
K2_SATA_TF_DATA_OFFSET 
K2_SATA_TF_ERROR_OFFSET 
K2_SATA_TF_NSECT_OFFSET 
K2_SATA_TF_LBAL_OFFSET 
K2_SATA_TF_LBAM_OFFSET 
K2_SATA_TF_LBAH_OFFSET 
K2_SATA_TF_DEVICE_OFFSET 
K2_SATA_TF_CMDSTAT_OFFSET 
K2_SATA_TF_CTL_OFFSET 
K2_SATA_DMA_CMD_OFFSET 
K2_SATA_SCR_STATUS_OFFSET 
K2_SATA_SCR_ERROR_OFFSET 
K2_SATA_SCR_CONTROL_OFFSET 
K2_SATA_SICR1_OFFSET 
K2_SATA_SICR2_OFFSET 
K2_SATA_SIM_OFFSET 
K2_SATA_PORT_OFFSET 
chip_svw4 
chip_svw8 
chip_svw42 
chip_svw43 

Definition at line 60 of file sata_svw.c.

Function Documentation

MODULE_AUTHOR ( "Benjamin Herrenschmidt"  )
MODULE_DESCRIPTION ( "low-level driver for K2 SATA controller )
MODULE_DEVICE_TABLE ( pci  ,
k2_sata_pci_tbl   
)
MODULE_LICENSE ( "GPL"  )
module_pci_driver ( k2_sata_pci_driver  )
MODULE_VERSION ( DRV_VERSION  )