diff options
author | rsc <rsc> | 2007-08-28 18:23:48 +0000 |
---|---|---|
committer | rsc <rsc> | 2007-08-28 18:23:48 +0000 |
commit | c1b100e93044469de30c634107bc645361cc1a73 (patch) | |
tree | e5e1ead7fa029917abdde9ed0fa9bdb45597d085 /ide.c | |
parent | 3e1eaf226d501fc4f57592e1c75c885f8b2e5d99 (diff) | |
download | xv6-labs-c1b100e93044469de30c634107bc645361cc1a73.tar.gz xv6-labs-c1b100e93044469de30c634107bc645361cc1a73.tar.bz2 xv6-labs-c1b100e93044469de30c634107bc645361cc1a73.zip |
nits
Diffstat (limited to 'ide.c')
-rw-r--r-- | ide.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -52,7 +52,7 @@ ide_init(void) ide_wait_ready(0); // Check if disk 1 is present - outb(0x1f6, 0xE0 | (1<<4)); + outb(0x1f6, 0xe0 | (1<<4)); for(i=0; i<1000; i++){ if(inb(0x1f7) != 0){ disk_1_present = 1; @@ -61,7 +61,7 @@ ide_init(void) } // Switch back to disk 0. - outb(0x1f6, 0xE0 | (0<<4)); + outb(0x1f6, 0xe0 | (0<<4)); } // Start the request for b. Caller must hold ide_lock. @@ -77,7 +77,7 @@ ide_start_request(struct buf *b) outb(0x1f3, b->sector & 0xff); outb(0x1f4, (b->sector >> 8) & 0xff); outb(0x1f5, (b->sector >> 16) & 0xff); - outb(0x1f6, 0xE0 | ((b->dev&1)<<4) | ((b->sector>>24)&0x0f)); + outb(0x1f6, 0xe0 | ((b->dev&1)<<4) | ((b->sector>>24)&0x0f)); if(b->flags & B_DIRTY){ outb(0x1f7, IDE_CMD_WRITE); outsl(0x1f0, b->data, 512/4); |