Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mac68k/include Add message definitions for SWIM and...
details: https://anonhg.NetBSD.org/src/rev/a9f4c2adb5a7
branches: trunk
changeset: 581875:a9f4c2adb5a7
user: rjs <rjs%NetBSD.org@localhost>
date: Wed Jun 08 22:16:44 2005 +0000
description:
Add message definitions for SWIM and for ADB autopoll.
diffstat:
sys/arch/mac68k/include/iopreg.h | 32 +++++++++++++++++++++++++++++++-
1 files changed, 31 insertions(+), 1 deletions(-)
diffs (51 lines):
diff -r 498aed219cdd -r a9f4c2adb5a7 sys/arch/mac68k/include/iopreg.h
--- a/sys/arch/mac68k/include/iopreg.h Wed Jun 08 20:34:06 2005 +0000
+++ b/sys/arch/mac68k/include/iopreg.h Wed Jun 08 22:16:44 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: iopreg.h,v 1.5 2005/01/15 16:00:59 chs Exp $ */
+/* $NetBSD: iopreg.h,v 1.6 2005/06/08 22:16:44 rjs Exp $ */
/*
* Copyright (c) 2000 Allen Briggs.
@@ -153,11 +153,41 @@
int iop_queue_receipt(int, int, iop_msg_handler, void *);
int iop_register_listener(int, int, iop_msg_handler, void *);
+/* SWIM support */
+#define IOP_CHAN_SWIM 1
+
+#define IOP_SWIM_INITIALIZE 0x01
+#define IOP_SWIM_SHUTDOWN 0x02
+#define IOP_SWIM_START_POLLING 0x03
+#define IOP_SWIM_STOP_POLLING 0x04
+#define IOP_SWIM_SET_HFS_TAG_ADDR 0x05
+#define IOP_SWIM_DRIVE_STATUS 0x06
+#define IOP_SWIM_EJECT 0x07
+#define IOP_SWIM_FORMAT 0x08
+#define IOP_SWIM_FORMAT_VERIFY 0x09
+#define IOP_SWIM_WRITE 0x0a
+#define IOP_SWIM_READ 0x0b
+#define IOP_SWIM_READ_VERIFY 0x0c
+#define IOP_SWIM_CACHE_CONTROL 0x0d
+#define IOP_SWIM_TAG_BUFFER_CONTROL 0x0e
+#define IOP_SWIM_GET_ICON 0x0f
+#define IOP_SWIM_DISK_DUP_INFO 0x10
+#define IOP_SWIM_GET_RAW_DATA 0x11
+
+/*
+ * The structure of a SWIM packet to/from the IOP is:
+ * Request kind
+ * Drive Number (if needed)
+ * Error Code
+ * Data (optional)
+ */
+
/* ADB support */
#define IOP_CHAN_ADB 2
#define IOP_ADB_FL_EXPLICIT 0x80 /* Non-zero if explicit command */
#define IOP_ADB_FL_AUTOPOLL 0x40 /* Auto/SRQ polling enabled */
+#define IOP_ADB_FL_POLL_UPDATE 0x20 /* Update polling bit mask */
#define IOP_ADB_FL_SRQ 0x04 /* SRQ detected */
#define IOP_ADB_FL_TIMEOUT 0x02 /* Non-zero if timeout */
Home |
Main Index |
Thread Index |
Old Index