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

Go to the source code of this file.

Data Structures

struct  piix_map_db
 
struct  piix_host_priv
 
struct  ich_laptop
 

Macros

#define DRV_NAME   "ata_piix"
 
#define DRV_VERSION   "2.13"
 
#define AHCI_PCI_BAR   5
 
#define AHCI_GLOBAL_CTL   0x04
 
#define AHCI_ENABLE   (1 << 31)
 

Enumerations

enum  {
  PIIX_IOCFG = 0x54, ICH5_PMR = 0x90, ICH5_PCS = 0x92, PIIX_SIDPR_BAR = 5,
  PIIX_SIDPR_LEN = 16, PIIX_SIDPR_IDX = 0, PIIX_SIDPR_DATA = 4, PIIX_FLAG_CHECKINTR = (1 << 28),
  PIIX_FLAG_SIDPR = (1 << 29), PIIX_PATA_FLAGS = ATA_FLAG_SLAVE_POSS, PIIX_SATA_FLAGS = ATA_FLAG_SATA | PIIX_FLAG_CHECKINTR, PIIX_FLAG_PIO16 = (1 << 30),
  PIIX_80C_PRI = (1 << 5) | (1 << 4), PIIX_80C_SEC = (1 << 7) | (1 << 6), P0 = 0, P1 = 1,
  P2 = 2, P3 = 3, IDE = -1, NA = -2,
  RV = -3, PIIX_AHCI_DEVICE = 6, PIIX_HOST_BROKEN_SUSPEND = (1 << 24)
}
 
enum  piix_controller_ids {
  piix_pata_mwdma, piix_pata_33, ich_pata_33, ich_pata_66,
  ich_pata_100, ich_pata_100_nomwdma1, ich5_sata, ich6_sata,
  ich6m_sata, ich8_sata, ich8_2port_sata, ich8m_apple_sata,
  tolapai_sata, piix_pata_vmw, ich8_sata_snb
}
 

Functions

 MODULE_AUTHOR ("Andre Hedrick, Alan Cox, Andrzej Krzysztofowicz, Jeff Garzik")
 
 MODULE_DESCRIPTION ("SCSI low-level driver for Intel PIIX/ICH ATA controllers")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DEVICE_TABLE (pci, piix_pci_tbl)
 
 MODULE_VERSION (DRV_VERSION)
 
 module_param (prefer_ms_hyperv, int, 0)
 
 module_init (piix_init)
 
 module_exit (piix_exit)
 

Macro Definition Documentation

#define AHCI_ENABLE   (1 << 31)

Definition at line 1266 of file ata_piix.c.

#define AHCI_GLOBAL_CTL   0x04

Definition at line 1265 of file ata_piix.c.

#define AHCI_PCI_BAR   5

Definition at line 1264 of file ata_piix.c.

#define DRV_NAME   "ata_piix"

Definition at line 98 of file ata_piix.c.

#define DRV_VERSION   "2.13"

Definition at line 99 of file ata_piix.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
PIIX_IOCFG 
ICH5_PMR 
ICH5_PCS 
PIIX_SIDPR_BAR 
PIIX_SIDPR_LEN 
PIIX_SIDPR_IDX 
PIIX_SIDPR_DATA 
PIIX_FLAG_CHECKINTR 
PIIX_FLAG_SIDPR 
PIIX_PATA_FLAGS 
PIIX_SATA_FLAGS 
PIIX_FLAG_PIO16 
PIIX_80C_PRI 
PIIX_80C_SEC 
P0 
P1 
P2 
P3 
IDE 
NA 
RV 
PIIX_AHCI_DEVICE 
PIIX_HOST_BROKEN_SUSPEND 

Definition at line 101 of file ata_piix.c.

Enumerator:
piix_pata_mwdma 
piix_pata_33 
ich_pata_33 
ich_pata_66 
ich_pata_100 
ich_pata_100_nomwdma1 
ich5_sata 
ich6_sata 
ich6m_sata 
ich8_sata 
ich8_2port_sata 
ich8m_apple_sata 
tolapai_sata 
piix_pata_vmw 
ich8_sata_snb 

Definition at line 136 of file ata_piix.c.

Function Documentation

MODULE_AUTHOR ( "Andre  Hedrick,
Alan  Cox,
Andrzej  Krzysztofowicz,
Jeff Garzik"   
)
MODULE_DESCRIPTION ( "SCSI low-level driver for Intel PIIX/ICH ATA controllers"  )
MODULE_DEVICE_TABLE ( pci  ,
piix_pci_tbl   
)
module_exit ( piix_exit  )
module_init ( piix_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( prefer_ms_hyperv  ,
int  ,
 
)
MODULE_VERSION ( DRV_VERSION  )