Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/nathanw_sa]: src/sys/dev/podulebus Update to use the new support for IRQ...



details:   https://anonhg.NetBSD.org/src/rev/9ed905672052
branches:  nathanw_sa
changeset: 504763:9ed905672052
user:      bjh21 <bjh21%NetBSD.org@localhost>
date:      Wed Jun 13 18:29:42 2001 +0000

description:
Update to use the new support for IRQ-less IDE controllers.
Also generally re-work to do channel attachment in a loop, since that saves on
code size.

diffstat:

 sys/dev/podulebus/dtidereg.h |  23 +++++++++++++++++++++++
 1 files changed, 23 insertions(+), 0 deletions(-)

diffs (27 lines):

diff -r bbff9d61c97c -r 9ed905672052 sys/dev/podulebus/dtidereg.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/dev/podulebus/dtidereg.h      Wed Jun 13 18:29:42 2001 +0000
@@ -0,0 +1,23 @@
+/* $NetBSD: dtidereg.h,v 1.2.8.2 2001/06/13 18:29:42 bjh21 Exp $ */
+
+/* This file is in the public domain */
+
+/*
+ * dtidereg.h - hardware-related constants of the D.T. Software IDE interface.
+ */
+
+/*
+ * This is mostly reverse-engineered by Ben Harris from the driver that
+ * comes with the board and the board itself.  Treat with caution.
+ */
+
+#define DTIDE_NCHANNELS        2
+
+#define DTIDE_MAGICBASE        0x2000
+
+#define DTIDE_REGSHIFT 5 /* ie DA0 == LA5 */
+#define DTIDE_CMDBASE0 0x2400
+#define DTIDE_CTLBASE0 0x2500
+#define DTIDE_CMDBASE1 0x2600
+#define DTIDE_CTLBASE1 0x2700
+       



Home | Main Index | Thread Index | Old Index