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