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

Go to the source code of this file.

Macros

#define DRV_NAME   "cs5535"
 
#define MSR_ATAC_BASE   0x51300000
 
#define ATAC_GLD_MSR_CAP   (MSR_ATAC_BASE+0)
 
#define ATAC_GLD_MSR_CONFIG   (MSR_ATAC_BASE+0x01)
 
#define ATAC_GLD_MSR_SMI   (MSR_ATAC_BASE+0x02)
 
#define ATAC_GLD_MSR_ERROR   (MSR_ATAC_BASE+0x03)
 
#define ATAC_GLD_MSR_PM   (MSR_ATAC_BASE+0x04)
 
#define ATAC_GLD_MSR_DIAG   (MSR_ATAC_BASE+0x05)
 
#define ATAC_IO_BAR   (MSR_ATAC_BASE+0x08)
 
#define ATAC_RESET   (MSR_ATAC_BASE+0x10)
 
#define ATAC_CH0D0_PIO   (MSR_ATAC_BASE+0x20)
 
#define ATAC_CH0D0_DMA   (MSR_ATAC_BASE+0x21)
 
#define ATAC_CH0D1_PIO   (MSR_ATAC_BASE+0x22)
 
#define ATAC_CH0D1_DMA   (MSR_ATAC_BASE+0x23)
 
#define ATAC_PCI_ABRTERR   (MSR_ATAC_BASE+0x24)
 
#define ATAC_BM0_CMD_PRIM   0x00
 
#define ATAC_BM0_STS_PRIM   0x02
 
#define ATAC_BM0_PRD   0x04
 
#define CS5535_CABLE_DETECT   0x48
 
#define CS5535_BAD_PIO(timings)   ( (timings&~0x80000000UL) == 0x00009172 )
 
#define CS5535_BAD_DMA(timings)   ( (timings & 0x000FFFFF) == 0x00077771 )
 

Functions

 MODULE_DEVICE_TABLE (pci, cs5535_pci_tbl)
 
 module_init (cs5535_ide_init)
 
 module_exit (cs5535_ide_exit)
 
 MODULE_AUTHOR ("AMD")
 
 MODULE_DESCRIPTION ("PCI driver module for AMD/NS CS5535 IDE")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define ATAC_BM0_CMD_PRIM   0x00

Definition at line 45 of file cs5535.c.

#define ATAC_BM0_PRD   0x04

Definition at line 47 of file cs5535.c.

#define ATAC_BM0_STS_PRIM   0x02

Definition at line 46 of file cs5535.c.

#define ATAC_CH0D0_DMA   (MSR_ATAC_BASE+0x21)

Definition at line 41 of file cs5535.c.

#define ATAC_CH0D0_PIO   (MSR_ATAC_BASE+0x20)

Definition at line 40 of file cs5535.c.

#define ATAC_CH0D1_DMA   (MSR_ATAC_BASE+0x23)

Definition at line 43 of file cs5535.c.

#define ATAC_CH0D1_PIO   (MSR_ATAC_BASE+0x22)

Definition at line 42 of file cs5535.c.

#define ATAC_GLD_MSR_CAP   (MSR_ATAC_BASE+0)

Definition at line 32 of file cs5535.c.

#define ATAC_GLD_MSR_CONFIG   (MSR_ATAC_BASE+0x01)

Definition at line 33 of file cs5535.c.

#define ATAC_GLD_MSR_DIAG   (MSR_ATAC_BASE+0x05)

Definition at line 37 of file cs5535.c.

#define ATAC_GLD_MSR_ERROR   (MSR_ATAC_BASE+0x03)

Definition at line 35 of file cs5535.c.

#define ATAC_GLD_MSR_PM   (MSR_ATAC_BASE+0x04)

Definition at line 36 of file cs5535.c.

#define ATAC_GLD_MSR_SMI   (MSR_ATAC_BASE+0x02)

Definition at line 34 of file cs5535.c.

#define ATAC_IO_BAR   (MSR_ATAC_BASE+0x08)

Definition at line 38 of file cs5535.c.

#define ATAC_PCI_ABRTERR   (MSR_ATAC_BASE+0x24)

Definition at line 44 of file cs5535.c.

#define ATAC_RESET   (MSR_ATAC_BASE+0x10)

Definition at line 39 of file cs5535.c.

#define CS5535_BAD_DMA (   timings)    ( (timings & 0x000FFFFF) == 0x00077771 )

Definition at line 67 of file cs5535.c.

#define CS5535_BAD_PIO (   timings)    ( (timings&~0x80000000UL) == 0x00009172 )

Definition at line 66 of file cs5535.c.

#define CS5535_CABLE_DETECT   0x48

Definition at line 48 of file cs5535.c.

#define DRV_NAME   "cs5535"

Definition at line 29 of file cs5535.c.

#define MSR_ATAC_BASE   0x51300000

Definition at line 31 of file cs5535.c.

Function Documentation

MODULE_AUTHOR ( "AMD"  )
MODULE_DESCRIPTION ( "PCI driver module for AMD/NS CS5535 IDE )
MODULE_DEVICE_TABLE ( pci  ,
cs5535_pci_tbl   
)
module_exit ( cs5535_ide_exit  )
module_init ( cs5535_ide_init  )
MODULE_LICENSE ( "GPL"  )