lkml.org 
[lkml]   [1999]   [Jan]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] IDE Flags & a question to the public
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







--- 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 */
\
 
 \ /
  Last update: 2005-03-22 13:49    [W:0.121 / U:0.320 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site