From 4e774e7f0224114e8e57e4840447cca1f5683da3 Mon Sep 17 00:00:00 2001 From: joerg Date: Sun, 16 Dec 2001 07:52:13 +0000 Subject: Oops, forgot to commit one file in the fd driver mega update. Here it is, some more constants for NE765 & Co. Pointed out by: silby, Dave Cornejo --- sys/dev/ic/nec765.h | 39 ++++++++++++++++++++++----------------- 1 file changed, 22 insertions(+), 17 deletions(-) (limited to 'sys') diff --git a/sys/dev/ic/nec765.h b/sys/dev/ic/nec765.h index c08b73b..4d569d1 100644 --- a/sys/dev/ic/nec765.h +++ b/sys/dev/ic/nec765.h @@ -98,28 +98,33 @@ /* * the top three bits -- where appropriate -- are set as follows: * - * 0x80 - MT multi-track; allow both sides to be handled in single cmd - * 0x40 - MFM modified frequency modulation; use MFM encoding - * 0x20 - SK skip; skip sectors marked as "deleted" + * MT - multi-track; allow both sides to be handled in single cmd + * MFM - modified frequency modulation; use MFM encoding + * SK - skip; skip sectors marked as "deleted" */ -#define NE7CMD_READTRK 0x42 /* read whole track */ + +#define NE7CMD_MT 0x80 /* READ, WRITE, WRITEDEL, READDEL, SCAN* */ +#define NE7CMD_MFM 0x40 /* same as MT, plus READTRK, READID, FORMAT */ +#define NE7CMD_SK 0x20 /* READ, READDEL, SCAN* */ + +#define NE7CMD_READTRK 2 /* read whole track */ #define NE7CMD_SPECIFY 3 /* specify drive parameters - requires unit - parameters byte */ + * parameters byte */ #define NE7CMD_SENSED 4 /* sense drive - requires unit select byte */ -#define NE7CMD_WRITE 0xc5 /* write - requires eight additional bytes */ -#define NE7CMD_READ 0xe6 /* read - requires eight additional bytes */ +#define NE7CMD_WRITE 5 /* write - requires eight additional bytes */ +#define NE7CMD_READ 6 /* read - requires eight additional bytes */ #define NE7CMD_RECAL 7 /* recalibrate drive - requires - unit select byte */ + * unit select byte */ #define NE7CMD_SENSEI 8 /* sense controller interrupt status */ -#define NE7CMD_WRITEDEL 0xc9 /* write deleted data */ -#define NE7CMD_READID 0x4a /* read ID field */ -#define NE7CMD_READDEL 0xec /* read deleted data */ -#define NE7CMD_FORMAT 0x4d /* format - requires five additional bytes */ -#define NE7CMD_SEEK 0x0f /* seek drive - requires unit select byte - and new cyl byte */ -#define NE7CMD_SCNEQU 0xf1 /* scan equal */ -#define NE7CMD_SCNLE 0xf9 /* scan less or equal */ -#define NE7CMD_SCNGE 0xfd /* scan greater or equal */ +#define NE7CMD_WRITEDEL 9 /* write deleted data */ +#define NE7CMD_READID 0xa /* read ID field */ +#define NE7CMD_READDEL 0xc /* read deleted data */ +#define NE7CMD_FORMAT 0xd /* format - requires five additional bytes */ +#define NE7CMD_SEEK 0xf /* seek drive - requires unit select byte + * and new cyl byte */ +#define NE7CMD_SCNEQU 0x11 /* scan equal */ +#define NE7CMD_SCNLE 0x19 /* scan less or equal */ +#define NE7CMD_SCNGE 0x1d /* scan greater or equal */ /* * Enhanced controller commands: -- cgit v1.1