[PATCH] IDE Flags & a question to the public

Dietmar Kling (dietmar.kling@sam-net.de)
Wed, 13 Jan 1999 00:21:06 +0100


Dies ist eine mehrteilige Nachricht im MIME-Format.
--------------DEA704E086E672F8753BC3BE
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Linus,

please include this small patch into the standard Kernel.
It adds one missing Flag.

I am writing a IDE Driver for another OS. Though I have the IDE Specs i
read the linux Source code to
get a impression what to do.

Questions to the public:
Are there any reasons for not using the Flags MCR_ERR & MC_ERR ?

With that we could "automagically" umount a CDROM.
if a user presses the CDROM Button MCR_ERR gets set -> umount DEVICE
OR "automagically" ;) mount a cdrom (MC_ERR will be set when a MEDIA (
CDROM ) is inserted - says my SPEC)

Sorry - i have no time to do this.

Regards
Dietmar

--------------DEA704E086E672F8753BC3BE
Content-Type: text/plain; charset=us-ascii;
name="hdreg.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="hdreg.patch"

--- linux/include/linux/hdreg.h~ Sun Jan 10 16:26:49 1999
+++ linux/include/linux/hdreg.h Tue Jan 12 23:59:21 1999
@@ -105,8 +105,9 @@
#define MARK_ERR 0x01 /* Bad address mark */
#define TRK0_ERR 0x02 /* couldn't find track 0 */
#define ABRT_ERR 0x04 /* Command aborted */
-#define MCR_ERR 0x08 /* media change request */
+#define MCR_ERR 0x08 /* media change request (Enhanced IDE) */
#define ID_ERR 0x10 /* ID field not found */
+#define MC_ERR 0x20 /* Media has changed (Enhanced IDE) */
#define ECC_ERR 0x40 /* Uncorrectable ECC error */
#define BBD_ERR 0x80 /* pre-EIDE meaning: block marked bad */
#define ICRC_ERR 0x80 /* new meaning: CRC error during transfer */

--------------DEA704E086E672F8753BC3BE--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/