From bb207a1d42c9a75a64af35de4f12912176ebfc8d Mon Sep 17 00:00:00 2001 From: rsc Date: Thu, 7 Sep 2006 14:28:12 +0000 Subject: comments --- ide.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ide.c') diff --git a/ide.c b/ide.c index 4e2e1a6..3afd19b 100644 --- a/ide.c +++ b/ide.c @@ -17,6 +17,12 @@ #define IDE_CMD_READ 0x20 #define IDE_CMD_WRITE 0x30 +// IDE request queue. +// The next request will be stored in request[head], +// and the request currently being served by the disk +// is request[tail]. +// Must hold ide_lock while manipulating queue. + struct ide_request { int diskno; uint secno; @@ -28,6 +34,7 @@ struct ide_request { struct ide_request request[NREQUEST]; int head, tail; struct spinlock ide_lock; + int disk_1_present; int disk_channel; -- cgit v1.2.3