UNIX xv6 (rev8, 9/1/15)
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Functions
ide.c File Reference
#include "types.h"
#include "defs.h"
#include "param.h"
#include "memlayout.h"
#include "mmu.h"
#include "proc.h"
#include "x86.h"
#include "traps.h"
#include "spinlock.h"
#include "fs.h"
#include "buf.h"

Go to the source code of this file.

Macros

#define SECTOR_SIZE   512
 
#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

void ideinit (void)
 
void ideintr (void)
 
void iderw (struct buf *b)
 

Macro Definition Documentation

#define IDE_BSY   0x80

Definition at line 16 of file ide.c.

#define IDE_CMD_READ   0x20

Definition at line 21 of file ide.c.

#define IDE_CMD_WRITE   0x30

Definition at line 22 of file ide.c.

#define IDE_DF   0x20

Definition at line 18 of file ide.c.

#define IDE_DRDY   0x40

Definition at line 17 of file ide.c.

#define IDE_ERR   0x01

Definition at line 19 of file ide.c.

#define SECTOR_SIZE   512

Definition at line 15 of file ide.c.

Function Documentation

void ideinit ( void  )

Definition at line 48 of file ide.c.

void ideintr ( void  )

Definition at line 100 of file ide.c.

void iderw ( struct buf b)

Definition at line 134 of file ide.c.