xref: /openbmc/u-boot/arch/m68k/include/asm/coldfire/ata.h (revision 5794619e)
1 /*
2  * ATA Internal Memory Map
3  *
4  * Copyright (C) 2004-2008 Freescale Semiconductor, Inc.
5  * TsiChung Liew (Tsi-Chung.Liew@freescale.com)
6  *
7  * See file CREDITS for list of people who contributed to this
8  * project.
9  *
10  * This program is free software; you can redistribute it and/or
11  * modify it under the terms of the GNU General Public License as
12  * published by the Free Software Foundation; either version 2 of
13  * the License, or (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program; if not, write to the Free Software
22  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
23  * MA 02111-1307 USA
24  */
25 
26 #ifndef __ATA_H__
27 #define __ATA_H__
28 
29 /* ATA */
30 typedef struct atac {
31 	/* PIO */
32 	u8 toff;		/* 0x00 */
33 	u8 ton;			/* 0x01 */
34 	u8 t1;			/* 0x02 */
35 	u8 t2w;			/* 0x03 */
36 	u8 t2r;			/* 0x04 */
37 	u8 ta;			/* 0x05 */
38 	u8 trd;			/* 0x06 */
39 	u8 t4;			/* 0x07 */
40 	u8 t9;			/* 0x08 */
41 
42 	/* DMA */
43 	u8 tm;			/* 0x09 */
44 	u8 tn;			/* 0x0A */
45 	u8 td;			/* 0x0B */
46 	u8 tk;			/* 0x0C */
47 	u8 tack;		/* 0x0D */
48 	u8 tenv;		/* 0x0E */
49 	u8 trp;			/* 0x0F */
50 	u8 tzah;		/* 0x10 */
51 	u8 tmli;		/* 0x11 */
52 	u8 tdvh;		/* 0x12 */
53 	u8 tdzfs;		/* 0x13 */
54 	u8 tdvs;		/* 0x14 */
55 	u8 tcvh;		/* 0x15 */
56 	u8 tss;			/* 0x16 */
57 	u8 tcyc;		/* 0x17 */
58 
59 	/* FIFO */
60 	u32 fifo32;		/* 0x18 */
61 	u16 fifo16;		/* 0x1C */
62 	u8 rsvd0[2];
63 	u8 ffill;		/* 0x20 */
64 	u8 rsvd1[3];
65 
66 	/* ATA */
67 	u8 cr;			/* 0x24 */
68 	u8 rsvd2[3];
69 	u8 isr;			/* 0x28 */
70 	u8 rsvd3[3];
71 	u8 ier;			/* 0x2C */
72 	u8 rsvd4[3];
73 	u8 icr;			/* 0x30 */
74 	u8 rsvd5[3];
75 	u8 falarm;		/* 0x34 */
76 	u8 rsvd6[106];
77 } atac_t;
78 
79 #endif				/* __ATA_H__ */
80