floppy.c File Reference

#include <drivers/floppy.h>
#include <fs/blockcache.h>
#include <routix/device.h>
#include <routix/atomic.h>
#include <routix/8259.h>
#include <routix/kstdio.h>
#include <routix/timer.h>

Go to the source code of this file.

Defines

Functions

Variables


Define Documentation

#define ACTUAL_REQUEST   (actual_request)
 

Definition at line 68 of file floppy.c.

Referenced by error(), floppy_procesar_buffer(), init_floppy_block_new(), leer_escribir_new(), motor_on_new_finish(), read_sector_block_new(), recalibrate_block_new(), and seek_block_new().

#define OK   0
 

Definition at line 43 of file floppy.c.

#define PCN   status[1]
 

Definition at line 385 of file floppy.c.

#define ST0   status[0]
 

Definition at line 85 of file floppy.c.

#define ST1   status[1]
 

Definition at line 86 of file floppy.c.

#define ST2   status[2]
 

Definition at line 87 of file floppy.c.

#define ST3   status[3]
 

Definition at line 88 of file floppy.c.


Function Documentation

int block void   ) 
 

Definition at line 840 of file floppy.c.

Referenced by endrequest(), init_floppy(), read_sector(), read_sector_id(), recalibrate(), seek(), and sendrequest().

void dump_states void   ) 
 

Definition at line 1191 of file floppy.c.

Referenced by read_sector(), read_sector_block_new(), recalibrate(), recalibrate_block_new(), seek(), and seek_block_new().

void dump_status_register int  numero,
byte  valor
 

Definition at line 1205 of file floppy.c.

Referenced by dump_states().

void error  ) 
 

Definition at line 1154 of file floppy.c.

Referenced by error_por_timeout(), leer_escribir_new(), read_sector_block_new(), recalibrate_block_new(), and seek_block_new().

void error_por_timeout  ) 
 

Definition at line 1142 of file floppy.c.

Referenced by read_sector_new(), recalibrate_new(), and seek_new().

void Floppy void   ) 
 

Definition at line 1258 of file floppy.c.

int floppy_get_result void   ) 
 

Definition at line 197 of file floppy.c.

Referenced by init_floppy(), init_floppy_block_new(), read_sector(), read_sector_block_new(), read_sector_id(), recalibrate(), recalibrate_block_new(), seek(), and seek_block_new().

void floppy_procesar_buffer void   ) 
 

Definition at line 1277 of file floppy.c.

int floppy_sendbyte byte  valor  ) 
 

Definition at line 171 of file floppy.c.

Referenced by init_floppy(), init_floppy_block_new(), read_sector(), read_sector_id(), read_sector_new(), recalibrate(), recalibrate_block_new(), recalibrate_new(), seek(), seek_block_new(), and seek_new().

int init_floppy  ) 
 

Definition at line 229 of file floppy.c.

Referenced by leer_escribir().

void init_floppy_block_new void   ) 
 

Definition at line 319 of file floppy.c.

Referenced by init_floppy_new().

void init_floppy_DMA byte  comando  ) 
 

Definition at line 869 of file floppy.c.

Referenced by read_sector(), and read_sector_new().

void init_floppy_new  ) 
 

Definition at line 302 of file floppy.c.

int leer_escribir byte  operacion,
dword  sector_logico,
byte buffer
 

Definition at line 897 of file floppy.c.

void leer_escribir_new  ) 
 

Definition at line 1007 of file floppy.c.

Referenced by floppy_procesar_buffer(), init_floppy_block_new(), motor_on_new_finish(), read_sector_block_new(), recalibrate_block_new(), and seek_block_new().

int leer_sec byte  cara,
byte  cilindro,
byte  sector,
byte buffer
 

Definition at line 1177 of file floppy.c.

Referenced by leer_escribir().

void motor_off  ) 
 

Definition at line 132 of file floppy.c.

void motor_off_new timer_t timer  ) 
 

Definition at line 140 of file floppy.c.

Referenced by error(), and leer_escribir_new().

void motor_on  ) 
 

Definition at line 97 of file floppy.c.

Referenced by leer_escribir(), read_sector_id(), and recalibrate().

void motor_on_new  ) 
 

Definition at line 108 of file floppy.c.

Referenced by leer_escribir_new().

void motor_on_new_finish timer_t timer  ) 
 

Definition at line 116 of file floppy.c.

Referenced by motor_on_new().

char read_msr  ) 
 

Definition at line 825 of file floppy.c.

int read_sector byte  cara,
byte  cilindro,
byte  sector
 

Definition at line 676 of file floppy.c.

Referenced by leer_sec().

void read_sector_block_new  ) 
 

Definition at line 788 of file floppy.c.

Referenced by read_sector_new().

byte read_sector_id void   ) 
 

Definition at line 509 of file floppy.c.

int read_sector_new byte  cara,
byte  cilindro,
byte  sector
 

Definition at line 735 of file floppy.c.

Referenced by leer_escribir_new().

int recalibrate  ) 
 

Definition at line 387 of file floppy.c.

Referenced by leer_escribir().

void recalibrate_block_new void   ) 
 

Definition at line 462 of file floppy.c.

Referenced by recalibrate_new().

int recalibrate_new  ) 
 

Definition at line 434 of file floppy.c.

Referenced by leer_escribir_new().

byte seek byte  cara,
byte  pista
 

Definition at line 554 of file floppy.c.

Referenced by leer_escribir().

void seek_block_new  ) 
 

Definition at line 621 of file floppy.c.

Referenced by seek_new().

int seek_new byte  cara,
byte  pista
 

Definition at line 593 of file floppy.c.

Referenced by leer_escribir_new().

void set_dor word  valor  ) 
 

Definition at line 161 of file floppy.c.


Variable Documentation

block_cache_t* actual_request = NULL [static]
 

Definition at line 67 of file floppy.c.

addr_t dma_address = 0xA0000 - 1024
 

Definition at line 94 of file floppy.c.

Referenced by init_floppy_DMA(), leer_escribir_new(), and leer_sec().

byte floppy_calibrado = 0 [static]
 

Definition at line 72 of file floppy.c.

Referenced by error(), leer_escribir(), leer_escribir_new(), motor_off(), motor_off_new(), recalibrate(), recalibrate_block_new(), and recalibrate_new().

byte floppy_continuar [static]
 

Definition at line 838 of file floppy.c.

Referenced by block(), and Floppy().

void(* func)(void) = NULL [static]
 

Definition at line 64 of file floppy.c.

char* ic_codes[] [static]
 

Initial value:

 { "Terminacion Normal", "Terminacion erronea",
                            "Comando invalido"  , "Terminacion erronea causada por polling" }

Definition at line 1202 of file floppy.c.

byte motor_status = MOTOR_OFF [static]
 

Definition at line 71 of file floppy.c.

Referenced by leer_escribir(), leer_escribir_new(), motor_off(), motor_off_new(), motor_on(), and motor_on_new_finish().

byte rw_status = 0 [static]
 

Definition at line 74 of file floppy.c.

Referenced by error(), leer_escribir_new(), motor_off_new(), and read_sector_block_new().

byte seek_status = 0 [static]
 

Definition at line 73 of file floppy.c.

Referenced by error(), leer_escribir_new(), motor_off_new(), and seek_block_new().

int status[12] [static]
 

Definition at line 83 of file floppy.c.

Referenced by dump_states(), floppy_get_result(), and read_sector_id().

timer_t* timer_motor = NULL [static]
 

Definition at line 77 of file floppy.c.

Referenced by error(), leer_escribir_new(), motor_off_new(), motor_on_new(), and motor_on_new_finish().

timer_t* timer_timeout = NULL [static]
 

Definition at line 79 of file floppy.c.

Referenced by error_por_timeout(), read_sector_block_new(), read_sector_new(), recalibrate_block_new(), recalibrate_new(), seek_block_new(), and seek_new().


Generated on Sun May 30 18:38:36 2004 for Routix OS by doxygen 1.3.6