From: Tom Rini <trini@kernel.crashing.org>
To: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Cc: linux-ide@vger.kernel.org, Hiroshi DOYU <hdoyu@mvista.com>
Subject: Re: [PATCH, review] IDE driver for MIPS Toshiba RBTX4939
Date: Mon, 3 Oct 2005 11:43:29 -0700 [thread overview]
Message-ID: <20051003184328.GC6735@smtp.west.cox.net> (raw)
In-Reply-To: <58cb370e0510030917q2bcb1790g6b9cd0456525bfae@mail.gmail.com>
On Mon, Oct 03, 2005 at 06:17:49PM +0200, Bartlomiej Zolnierkiewicz wrote:
> On 9/29/05, Tom Rini <trini@kernel.crashing.org> wrote:
[snip]
> > + /* save ata controller valiable */
> > + lo_bcnt = reg_rd16(&tx4939_ataptr(ch)->lo_bcnt);
> > + hi_bcnt = reg_rd16(&tx4939_ataptr(ch)->hi_bcnt);
>
> Could I see tx4939_ataptr() (I guess it is in <asm/tx4939/tx4939.h>)?
Indeed, sorry (lots of other stuff snipped out):
Index: linux-2.6.10/include/asm-mips/tx4939/tx4939.h
===================================================================
--- /dev/null
+++ linux-2.6.10/include/asm-mips/tx4939/tx4939.h
@@ -0,0 +1,1670 @@
[snip]
+/* TX4939 REGISTER ADDRESS MAP */
+
+#define TX4939_REG_BASE 0xff1f0000
+#define TX4939_REG_SIZE 0x00010000
+
+#define TX4939_ATA_REG(ch) (TX4939_REG_BASE + 0x3000 + (ch) * 0x1000)
[snip]
+#ifdef __BIG_ENDIAN
+#define endian_def_s4(e1,e2,e3,e4) \
+ u16 e1,e2,e3,e4
+#else
+#define endian_def_s4(e1,e2,e3,e4) \
+ u16 e4,e3,e2,e1
+#endif /* __ASSEMBLY__ */
+
+/* TX4939 REGISTER STRUCTURE */
+
+#ifndef __ASSEMBLY__
+
+struct tx4939_ata_reg {
+ u64 ata_shadow;
+ u64 unused0[127];
+ endian_def_b8(unused10, unused11, unused12, unused13, unused14,
+ alt_devctl, unused16, unused17);
+ u64 unused1[127];
+ endian_def_b8(unused20, unused21, unused22, prd_tbl, unused24,
+ dma_stat, unused26, dma_cmd);
+ u64 unused2[127];
+ endian_def_s4(unused30, unused31, sysctl2, sysctl1); /* +0xc00 */
+ endian_def_s4(unused32, unused33, xfer_cnt2, xfer_cnt1);
+ endian_def_s4(unused34, unused35, unused36, sec_cnt);
+ endian_def_s4(unused37, unused38, unused39, strt_addl);
+ endian_def_s4(unused40, unused41, unused42, strt_addu);
+ endian_def_s4(unused43, unused44, unused45, add_ctrl);
+ endian_def_s4(unused46, unused47, unused48, lo_bcnt);
+ endian_def_s4(unused49, unused50, unused51, hi_bcnt);
+ volatile u64 unused52[9];
+ endian_def_s4(unused53, unused54, unused55, pio_acc);
+ endian_def_s4(unused56, unused57, unused58, h_rst_tim);
+ endian_def_s4(unused59, unused60, unused61, int_ctl);
+ volatile u64 unused62[3];
+ endian_def_s4(unused63, unused64, unused65, pkt_cmd);
+ endian_def_s4(unused66, unused67, unused68, bxfer_cnth);
+ endian_def_s4(unused69, unused70, unused71, bxfer_cntl);
+ endian_def_s4(unused72, unused73, unused74, dev_terr);
+ endian_def_s4(unused75, unused76, unused77, pkt_xfer_ct);
+ endian_def_s4(unused78, unused79, unused80, strt_addr);
+};
[snip]
+#define tx4939_ataptr(ch) \
+ ((struct tx4939_ata_reg *)TX4939_ATA_REG(ch))
--
Tom Rini
http://gate.crashing.org/~trini/
next prev parent reply other threads:[~2005-10-03 18:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-29 16:22 [PATCH, review] IDE driver for MIPS Toshiba RBTX4939 Tom Rini
2005-10-03 16:17 ` Bartlomiej Zolnierkiewicz
2005-10-03 18:43 ` Tom Rini [this message]
2006-05-31 17:33 ` Sergei Shtylyov
2006-05-31 18:23 ` Sergei Shtylyov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20051003184328.GC6735@smtp.west.cox.net \
--to=trini@kernel.crashing.org \
--cc=bzolnier@gmail.com \
--cc=hdoyu@mvista.com \
--cc=linux-ide@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.