main.c File Reference

#include <idereg.h>
#include <idevar.h>
#include "libtimer.h"
#include "libpic.h"

Functions

void sys_ide ()
int ide_wait (u_int16_t reg, u_int16_t filter, u_int16_t bk, u_int32_t timeout)
t_ide_drvide_get_drv (u_int32_t dev)
int ide_drive_state (t_ide_drv *drv)
int ide_dma_write_data (t_ide_drv *drv, t_ata_cmd *cmd)
int ide_dma_read_data (t_ide_drv *drv, t_ata_cmd *cmd)
int ide_pio_write_data (t_ide_drv *drv, t_ata_cmd *cmd)
int ide_pio_read_data (t_ide_drv *drv, t_ata_cmd *cmd)
void ide_ascii_string (short *buffer, char *data, short offset, short length)
int ide_identify_ata (t_ide_drv *drv)
int ide_identify_atapi (t_ide_drv *drv)
void ide_software_reset (t_ide_ctrl *ctrl)
void ide_probe_drive (t_ide_drv *drv)
void ide_print_drive (t_ide_drv *drv)
void ide_detect_drive (t_ide_drv *drv)
void ide_init_drive (t_ide_ctrl *ctrl, t_ide_drv *drv, u_int8_t unit)
int ide_acquire_ioports (t_ide_ctrl *ctrl, pid_t pid)
int ide_release_ioports (t_ide_ctrl *ctrl, pid_t pid)
int ide_init_controller (t_ide_ctrl *ctrl, u_int8_t unit)
int ide_init ()
void ide_primary_ctrl_handler ()
void ide_secondary_ctrl_handler ()
int ide_set_interrupt (t_ide_ctrl *ctrl, char *name, void(*handler)(), pid_t *ide_sel_handler)
int main (int argc, char **argv)
void sys_ide_write (t_tcb *caller)
void sys_ide_read (t_tcb *caller)
void sys_ide_getdrive (t_tcb *caller)
void sys_ide_init (t_tcb *caller)
void do_sys_ide ()

Variables

int errno
int suberrno
t_ide ide

Function Documentation

void do_sys_ide  ) 
 

int ide_acquire_ioports t_ide_ctrl ctrl,
pid_t  pid
 

void ide_ascii_string short *  buffer,
char *  data,
short  offset,
short  length
 

void ide_detect_drive t_ide_drv drv  ) 
 

int ide_dma_read_data t_ide_drv drv,
t_ata_cmd cmd
 

int ide_dma_write_data t_ide_drv drv,
t_ata_cmd cmd
 

int ide_drive_state t_ide_drv drv  ) 
 

t_ide_drv* ide_get_drv u_int32_t  dev  ) 
 

int ide_identify_ata t_ide_drv drv  ) 
 

int ide_identify_atapi t_ide_drv drv  ) 
 

int ide_init void   ) 
 

int ide_init_controller t_ide_ctrl ctrl,
u_int8_t  unit
 

void ide_init_drive t_ide_ctrl ctrl,
t_ide_drv drv,
u_int8_t  unit
 

int ide_pio_read_data t_ide_drv drv,
t_ata_cmd cmd
 

int ide_pio_write_data t_ide_drv drv,
t_ata_cmd cmd
 

void ide_primary_ctrl_handler  ) 
 

void ide_print_drive t_ide_drv drv  ) 
 

void ide_probe_drive t_ide_drv drv  ) 
 

int ide_release_ioports t_ide_ctrl ctrl,
pid_t  pid
 

void ide_secondary_ctrl_handler  ) 
 

int ide_set_interrupt t_ide_ctrl ctrl,
char *  name,
void(*)()  handler,
pid_t ide_sel_handler
 

void ide_software_reset t_ide_ctrl ctrl  ) 
 

int ide_wait u_int16_t  reg,
u_int16_t  filter,
u_int16_t  bk,
u_int32_t  timeout
 

int main int  argc,
char **  argv
 

void sys_ide  ) 
 

void sys_ide_getdrive t_tcb caller  ) 
 

void sys_ide_init t_tcb caller  ) 
 

void sys_ide_read t_tcb caller  ) 
 

void sys_ide_write t_tcb caller  ) 
 


Variable Documentation

int errno
 

t_ide ide
 

int suberrno
 


Generated on Wed May 24 23:06:01 2006 for LSE/OS by  doxygen 1.4.6