Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
tx4939ide.c File Reference
#include <linux/module.h>
#include <linux/types.h>
#include <linux/ide.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/platform_device.h>
#include <linux/io.h>
#include <linux/scatterlist.h>
#include <asm/ide.h>

Go to the source code of this file.

Macros

#define MODNAME   "tx4939ide"
 
#define TX4939IDE_Data   0x000
 
#define TX4939IDE_Error_Feature   0x001
 
#define TX4939IDE_Sec   0x002
 
#define TX4939IDE_LBA0   0x003
 
#define TX4939IDE_LBA1   0x004
 
#define TX4939IDE_LBA2   0x005
 
#define TX4939IDE_DevHead   0x006
 
#define TX4939IDE_Stat_Cmd   0x007
 
#define TX4939IDE_AltStat_DevCtl   0x402
 
#define TX4939IDE_DMA_Cmd   0x800 /* 8-bit */
 
#define TX4939IDE_DMA_Stat   0x802 /* 8-bit */
 
#define TX4939IDE_PRD_Ptr   0x804 /* 32-bit */
 
#define TX4939IDE_Sys_Ctl   0xc00
 
#define TX4939IDE_Xfer_Cnt_1   0xc08
 
#define TX4939IDE_Xfer_Cnt_2   0xc0a
 
#define TX4939IDE_Sec_Cnt   0xc10
 
#define TX4939IDE_Start_Lo_Addr   0xc18
 
#define TX4939IDE_Start_Up_Addr   0xc20
 
#define TX4939IDE_Add_Ctl   0xc28
 
#define TX4939IDE_Lo_Burst_Cnt   0xc30
 
#define TX4939IDE_Up_Burst_Cnt   0xc38
 
#define TX4939IDE_PIO_Addr   0xc88
 
#define TX4939IDE_H_Rst_Tim   0xc90
 
#define TX4939IDE_Int_Ctl   0xc98
 
#define TX4939IDE_Pkt_Cmd   0xcb8
 
#define TX4939IDE_Bxfer_Cnt_Hi   0xcc0
 
#define TX4939IDE_Bxfer_Cnt_Lo   0xcc8
 
#define TX4939IDE_Dev_TErr   0xcd0
 
#define TX4939IDE_Pkt_Xfer_Ctl   0xcd8
 
#define TX4939IDE_Start_TAddr   0xce0
 
#define TX4939IDE_INT_ADDRERR   0x80
 
#define TX4939IDE_INT_REACHMUL   0x40
 
#define TX4939IDE_INT_DEVTIMING   0x20
 
#define TX4939IDE_INT_UDMATERM   0x10
 
#define TX4939IDE_INT_TIMER   0x08
 
#define TX4939IDE_INT_BUSERR   0x04
 
#define TX4939IDE_INT_XFEREND   0x02
 
#define TX4939IDE_INT_HOST   0x01
 
#define TX4939IDE_IGNORE_INTS
 
#define tx4939ide_swizzlel(a)   (a)
 
#define tx4939ide_swizzlew(a)   (a)
 
#define tx4939ide_swizzleb(a)   (a)
 
#define TX4939IDE_BASE(hwif)   ((void __iomem *)(hwif)->extra_base)
 
#define tx4939ide_dma_host_set   ide_dma_host_set
 
#define tx4939ide_build_dmatable   ide_build_dmatable
 
#define CHECK_DMA_MASK   (ATA_DMA_ACTIVE | ATA_DMA_ERR | ATA_DMA_INTR)
 
#define tx4939ide_dma_sff_read_status   ide_dma_sff_read_status
 
#define tx4939ide_resume   NULL
 

Functions

 module_init (tx4939ide_init)
 
 module_exit (tx4939ide_exit)
 
 MODULE_DESCRIPTION ("TX4939 internal IDE driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS ("platform:tx4939ide")
 

Macro Definition Documentation

#define CHECK_DMA_MASK   (ATA_DMA_ACTIVE | ATA_DMA_ERR | ATA_DMA_INTR)
#define MODNAME   "tx4939ide"

Definition at line 23 of file tx4939ide.c.

#define TX4939IDE_Add_Ctl   0xc28

Definition at line 46 of file tx4939ide.c.

#define TX4939IDE_AltStat_DevCtl   0x402

Definition at line 34 of file tx4939ide.c.

#define TX4939IDE_BASE (   hwif)    ((void __iomem *)(hwif)->extra_base)

Definition at line 105 of file tx4939ide.c.

#define tx4939ide_build_dmatable   ide_build_dmatable

Definition at line 285 of file tx4939ide.c.

#define TX4939IDE_Bxfer_Cnt_Hi   0xcc0

Definition at line 53 of file tx4939ide.c.

#define TX4939IDE_Bxfer_Cnt_Lo   0xcc8

Definition at line 54 of file tx4939ide.c.

#define TX4939IDE_Data   0x000

Definition at line 26 of file tx4939ide.c.

#define TX4939IDE_Dev_TErr   0xcd0

Definition at line 55 of file tx4939ide.c.

#define TX4939IDE_DevHead   0x006

Definition at line 32 of file tx4939ide.c.

#define TX4939IDE_DMA_Cmd   0x800 /* 8-bit */

Definition at line 36 of file tx4939ide.c.

#define tx4939ide_dma_host_set   ide_dma_host_set

Definition at line 216 of file tx4939ide.c.

#define tx4939ide_dma_sff_read_status   ide_dma_sff_read_status

Definition at line 390 of file tx4939ide.c.

#define TX4939IDE_DMA_Stat   0x802 /* 8-bit */

Definition at line 37 of file tx4939ide.c.

#define TX4939IDE_Error_Feature   0x001

Definition at line 27 of file tx4939ide.c.

#define TX4939IDE_H_Rst_Tim   0xc90

Definition at line 50 of file tx4939ide.c.

#define TX4939IDE_IGNORE_INTS
Value:
TX4939IDE_INT_DEVTIMING | TX4939IDE_INT_UDMATERM | \
TX4939IDE_INT_TIMER | TX4939IDE_INT_XFEREND)

Definition at line 69 of file tx4939ide.c.

#define TX4939IDE_INT_ADDRERR   0x80

Definition at line 60 of file tx4939ide.c.

#define TX4939IDE_INT_BUSERR   0x04

Definition at line 65 of file tx4939ide.c.

#define TX4939IDE_Int_Ctl   0xc98

Definition at line 51 of file tx4939ide.c.

#define TX4939IDE_INT_DEVTIMING   0x20

Definition at line 62 of file tx4939ide.c.

#define TX4939IDE_INT_HOST   0x01

Definition at line 67 of file tx4939ide.c.

#define TX4939IDE_INT_REACHMUL   0x40

Definition at line 61 of file tx4939ide.c.

#define TX4939IDE_INT_TIMER   0x08

Definition at line 64 of file tx4939ide.c.

#define TX4939IDE_INT_UDMATERM   0x10

Definition at line 63 of file tx4939ide.c.

#define TX4939IDE_INT_XFEREND   0x02

Definition at line 66 of file tx4939ide.c.

#define TX4939IDE_LBA0   0x003

Definition at line 29 of file tx4939ide.c.

#define TX4939IDE_LBA1   0x004

Definition at line 30 of file tx4939ide.c.

#define TX4939IDE_LBA2   0x005

Definition at line 31 of file tx4939ide.c.

#define TX4939IDE_Lo_Burst_Cnt   0xc30

Definition at line 47 of file tx4939ide.c.

#define TX4939IDE_PIO_Addr   0xc88

Definition at line 49 of file tx4939ide.c.

#define TX4939IDE_Pkt_Cmd   0xcb8

Definition at line 52 of file tx4939ide.c.

#define TX4939IDE_Pkt_Xfer_Ctl   0xcd8

Definition at line 56 of file tx4939ide.c.

#define TX4939IDE_PRD_Ptr   0x804 /* 32-bit */

Definition at line 38 of file tx4939ide.c.

#define tx4939ide_resume   NULL

Definition at line 615 of file tx4939ide.c.

#define TX4939IDE_Sec   0x002

Definition at line 28 of file tx4939ide.c.

#define TX4939IDE_Sec_Cnt   0xc10

Definition at line 43 of file tx4939ide.c.

#define TX4939IDE_Start_Lo_Addr   0xc18

Definition at line 44 of file tx4939ide.c.

#define TX4939IDE_Start_TAddr   0xce0

Definition at line 57 of file tx4939ide.c.

#define TX4939IDE_Start_Up_Addr   0xc20

Definition at line 45 of file tx4939ide.c.

#define TX4939IDE_Stat_Cmd   0x007

Definition at line 33 of file tx4939ide.c.

#define tx4939ide_swizzleb (   a)    (a)

Definition at line 81 of file tx4939ide.c.

#define tx4939ide_swizzlel (   a)    (a)

Definition at line 79 of file tx4939ide.c.

#define tx4939ide_swizzlew (   a)    (a)

Definition at line 80 of file tx4939ide.c.

#define TX4939IDE_Sys_Ctl   0xc00

Definition at line 40 of file tx4939ide.c.

#define TX4939IDE_Up_Burst_Cnt   0xc38

Definition at line 48 of file tx4939ide.c.

#define TX4939IDE_Xfer_Cnt_1   0xc08

Definition at line 41 of file tx4939ide.c.

#define TX4939IDE_Xfer_Cnt_2   0xc0a

Definition at line 42 of file tx4939ide.c.

Function Documentation

MODULE_ALIAS ( "platform:tx4939ide"  )
MODULE_DESCRIPTION ( "TX4939 internal IDE driver )
module_exit ( tx4939ide_exit  )
module_init ( tx4939ide_init  )
MODULE_LICENSE ( "GPL"  )