TsiChung Liew | 7f1a046 | 2008-10-21 10:03:07 +0000 | [diff] [blame] | 1 | /* |
| 2 | * ATA Internal Memory Map |
| 3 | * |
| 4 | * Copyright (C) 2004-2008 Freescale Semiconductor, Inc. |
| 5 | * TsiChung Liew (Tsi-Chung.Liew@freescale.com) |
| 6 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 7 | * SPDX-License-Identifier: GPL-2.0+ |
TsiChung Liew | 7f1a046 | 2008-10-21 10:03:07 +0000 | [diff] [blame] | 8 | */ |
| 9 | |
| 10 | #ifndef __ATA_H__ |
| 11 | #define __ATA_H__ |
| 12 | |
| 13 | /* ATA */ |
| 14 | typedef struct atac { |
| 15 | /* PIO */ |
| 16 | u8 toff; /* 0x00 */ |
| 17 | u8 ton; /* 0x01 */ |
| 18 | u8 t1; /* 0x02 */ |
| 19 | u8 t2w; /* 0x03 */ |
| 20 | u8 t2r; /* 0x04 */ |
| 21 | u8 ta; /* 0x05 */ |
| 22 | u8 trd; /* 0x06 */ |
| 23 | u8 t4; /* 0x07 */ |
| 24 | u8 t9; /* 0x08 */ |
| 25 | |
| 26 | /* DMA */ |
| 27 | u8 tm; /* 0x09 */ |
| 28 | u8 tn; /* 0x0A */ |
| 29 | u8 td; /* 0x0B */ |
| 30 | u8 tk; /* 0x0C */ |
| 31 | u8 tack; /* 0x0D */ |
| 32 | u8 tenv; /* 0x0E */ |
| 33 | u8 trp; /* 0x0F */ |
| 34 | u8 tzah; /* 0x10 */ |
| 35 | u8 tmli; /* 0x11 */ |
| 36 | u8 tdvh; /* 0x12 */ |
| 37 | u8 tdzfs; /* 0x13 */ |
| 38 | u8 tdvs; /* 0x14 */ |
| 39 | u8 tcvh; /* 0x15 */ |
| 40 | u8 tss; /* 0x16 */ |
| 41 | u8 tcyc; /* 0x17 */ |
| 42 | |
| 43 | /* FIFO */ |
| 44 | u32 fifo32; /* 0x18 */ |
| 45 | u16 fifo16; /* 0x1C */ |
| 46 | u8 rsvd0[2]; |
| 47 | u8 ffill; /* 0x20 */ |
| 48 | u8 rsvd1[3]; |
| 49 | |
| 50 | /* ATA */ |
| 51 | u8 cr; /* 0x24 */ |
| 52 | u8 rsvd2[3]; |
| 53 | u8 isr; /* 0x28 */ |
| 54 | u8 rsvd3[3]; |
| 55 | u8 ier; /* 0x2C */ |
| 56 | u8 rsvd4[3]; |
| 57 | u8 icr; /* 0x30 */ |
| 58 | u8 rsvd5[3]; |
| 59 | u8 falarm; /* 0x34 */ |
| 60 | u8 rsvd6[106]; |
| 61 | } atac_t; |
| 62 | |
| 63 | #endif /* __ATA_H__ */ |