#include "types.h"#include "defs.h"#include "param.h"#include "mmu.h"#include "proc.h"#include "x86.h"#include "traps.h"#include "spinlock.h"#include "buf.h"Go to the source code of this file.
Defines | |
| #define | IDE_BSY 0x80 |
| #define | IDE_DRDY 0x40 |
| #define | IDE_DF 0x20 |
| #define | IDE_ERR 0x01 |
| #define | IDE_CMD_READ 0x20 |
| #define | IDE_CMD_WRITE 0x30 |
Functions | |
| static void | idestart (struct buf *) |
| static int | idewait (int checkerr) |
| void | ideinit (void) |
| void | ideintr (void) |
| void | iderw (struct buf *b) |
Variables | |
| static struct spinlock | idelock |
| static struct buf * | idequeue |
| static int | havedisk1 |
| #define IDE_CMD_READ 0x20 |
| #define IDE_CMD_WRITE 0x30 |
| void ideinit | ( | void | ) |
Definition at line 45 of file ide.c.
References havedisk1, idelock, idewait(), inb(), initlock(), ioapicenable(), IRQ_IDE, ncpu, outb(), and picenable().
Referenced by mpmain().
| void ideintr | ( | void | ) |
| void iderw | ( | struct buf * | b | ) |
| static void idestart | ( | struct buf * | b | ) | [static] |
Definition at line 69 of file ide.c.
References B_DIRTY, buf::data, buf::dev, buf::flags, IDE_CMD_READ, IDE_CMD_WRITE, idewait(), outb(), outsl(), panic(), and buf::sector.
| static int idewait | ( | int | checkerr | ) | [static] |
1.5.6