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

Go to the source code of this file.

Macros

#define DRV_NAME   "sata_vsc"
 
#define DRV_VERSION   "2.3"
 

Enumerations

enum  {
  VSC_MMIO_BAR = 0, VSC_SATA_INT_STAT_OFFSET = 0x00, VSC_SATA_INT_MASK_OFFSET = 0x04, VSC_SATA_TF_CMD_OFFSET = 0x00,
  VSC_SATA_TF_DATA_OFFSET = 0x00, VSC_SATA_TF_ERROR_OFFSET = 0x04, VSC_SATA_TF_FEATURE_OFFSET = 0x06, VSC_SATA_TF_NSECT_OFFSET = 0x08,
  VSC_SATA_TF_LBAL_OFFSET = 0x0c, VSC_SATA_TF_LBAM_OFFSET = 0x10, VSC_SATA_TF_LBAH_OFFSET = 0x14, VSC_SATA_TF_DEVICE_OFFSET = 0x18,
  VSC_SATA_TF_STATUS_OFFSET = 0x1c, VSC_SATA_TF_COMMAND_OFFSET = 0x1d, VSC_SATA_TF_ALTSTATUS_OFFSET = 0x28, VSC_SATA_TF_CTL_OFFSET = 0x29,
  VSC_SATA_UP_DESCRIPTOR_OFFSET = 0x64, VSC_SATA_UP_DATA_BUFFER_OFFSET = 0x6C, VSC_SATA_DMA_CMD_OFFSET = 0x70, VSC_SATA_SCR_STATUS_OFFSET = 0x100,
  VSC_SATA_SCR_ERROR_OFFSET = 0x104, VSC_SATA_SCR_CONTROL_OFFSET = 0x108, VSC_SATA_PORT_OFFSET = 0x200, VSC_SATA_INT_ERROR_CRC = 0x40,
  VSC_SATA_INT_ERROR_T = 0x20, VSC_SATA_INT_ERROR_P = 0x10, VSC_SATA_INT_ERROR_R = 0x8, VSC_SATA_INT_ERROR_E = 0x4,
  VSC_SATA_INT_ERROR_M = 0x2, VSC_SATA_INT_PHY_CHANGE = 0x1, VSC_SATA_INT_ERROR
}
 

Functions

 module_pci_driver (vsc_sata_pci_driver)
 
 MODULE_AUTHOR ("Jeremy Higdon")
 
 MODULE_DESCRIPTION ("low-level driver for Vitesse VSC7174 SATA controller")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DEVICE_TABLE (pci, vsc_sata_pci_tbl)
 
 MODULE_VERSION (DRV_VERSION)
 

Macro Definition Documentation

#define DRV_NAME   "sata_vsc"

Definition at line 49 of file sata_vsc.c.

#define DRV_VERSION   "2.3"

Definition at line 50 of file sata_vsc.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
VSC_MMIO_BAR 
VSC_SATA_INT_STAT_OFFSET 
VSC_SATA_INT_MASK_OFFSET 
VSC_SATA_TF_CMD_OFFSET 
VSC_SATA_TF_DATA_OFFSET 
VSC_SATA_TF_ERROR_OFFSET 
VSC_SATA_TF_FEATURE_OFFSET 
VSC_SATA_TF_NSECT_OFFSET 
VSC_SATA_TF_LBAL_OFFSET 
VSC_SATA_TF_LBAM_OFFSET 
VSC_SATA_TF_LBAH_OFFSET 
VSC_SATA_TF_DEVICE_OFFSET 
VSC_SATA_TF_STATUS_OFFSET 
VSC_SATA_TF_COMMAND_OFFSET 
VSC_SATA_TF_ALTSTATUS_OFFSET 
VSC_SATA_TF_CTL_OFFSET 
VSC_SATA_UP_DESCRIPTOR_OFFSET 
VSC_SATA_UP_DATA_BUFFER_OFFSET 
VSC_SATA_DMA_CMD_OFFSET 
VSC_SATA_SCR_STATUS_OFFSET 
VSC_SATA_SCR_ERROR_OFFSET 
VSC_SATA_SCR_CONTROL_OFFSET 
VSC_SATA_PORT_OFFSET 
VSC_SATA_INT_ERROR_CRC 
VSC_SATA_INT_ERROR_T 
VSC_SATA_INT_ERROR_P 
VSC_SATA_INT_ERROR_R 
VSC_SATA_INT_ERROR_E 
VSC_SATA_INT_ERROR_M 
VSC_SATA_INT_PHY_CHANGE 
VSC_SATA_INT_ERROR 

Definition at line 52 of file sata_vsc.c.

Function Documentation

MODULE_AUTHOR ( "Jeremy Higdon"  )
MODULE_DESCRIPTION ( "low-level driver for Vitesse VSC7174 SATA controller )
MODULE_DEVICE_TABLE ( pci  ,
vsc_sata_pci_tbl   
)
MODULE_LICENSE ( "GPL"  )
module_pci_driver ( vsc_sata_pci_driver  )
MODULE_VERSION ( DRV_VERSION  )