fat12.c File Reference

#include "routix/system.h"
#include "string.h"
#include "drivers/fat.h"
#include "routix/paging.h"
#include "routix/kalloc.h"
#include <routix/kstdio.h>
#include <routix/file.h>
#include <drivers/floppy.h>
#include <fs/blockcache.h>

Go to the source code of this file.

Defines

Functions

Variables


Define Documentation

#define ERR_LAST_SECTOR   -5
 

Definition at line 22 of file fat12.c.

Referenced by fat_next_sector().

#define ERR_NO_BOOT   -3
 

Definition at line 21 of file fat12.c.

Referenced by levantar_fat().

#define ERR_NO_FAT   -2
 

Definition at line 20 of file fat12.c.

Referenced by fat_next_sector().

#define ERR_NOMEM   -1
 

Definition at line 19 of file fat12.c.

Referenced by levantar_fat().

#define LAST_SECTOR   -100
 

Definition at line 23 of file fat12.c.

Referenced by fat_file_find(), and fat_next_sector().


Function Documentation

int fat_12 void   ) 
 

Definition at line 37 of file fat12.c.

Referenced by init_floppy_fs().

void fat_adapta_name byte nombre_fat,
byte adaptado
 

Definition at line 156 of file fat12.c.

Referenced by fat_file_find(), and fat_root_dir().

fat12_entry_t* fat_file_find char *  nombre,
fat12_entry_t datos_archivo
 

Definition at line 246 of file fat12.c.

Referenced by fat_test(), and open_FAT12().

int fat_next_sector dword  sector  ) 
 

Definition at line 180 of file fat12.c.

Referenced by fat_file_find(), fat_test(), and lseek().

void fat_root_dir void   ) 
 

Definition at line 520 of file fat12.c.

void fat_test void   ) 
 

Definition at line 556 of file fat12.c.

void floppy_cache_init void   ) 
 

Definition at line 354 of file fat12.c.

int init_floppy_fs void   ) 
 

Definition at line 142 of file fat12.c.

Referenced by fat_root_dir(), fat_test(), and open_FAT12().

int levantar_fat void   ) 
 

Definition at line 72 of file fat12.c.

Referenced by fat_test(), and init_floppy_fs().

void print_fat_info void   ) 
 

Definition at line 491 of file fat12.c.

int str_dir_len char *  nombre  ) 
 

Definition at line 220 of file fat12.c.

Referenced by fat_file_find().


Variable Documentation

byte buffer[512]
 

Definition at line 27 of file fat12.c.

dev_fat_t dev_fat[1]
 

Definition at line 30 of file fat12.c.

Referenced by fat_12(), fat_file_find(), fat_next_sector(), fat_root_dir(), fat_test(), init_floppy_fs(), levantar_fat(), open_FAT12(), print_fat_info(), and tarea_init().

fat_t fat_header
 

Definition at line 70 of file fat12.c.

Referenced by fat_next_sector(), and levantar_fat().

struct floppy_cache* header_floppy_cache = NULL
 

Definition at line 337 of file fat12.c.

Referenced by sys_show().

dword sectores_cache = 0
 

Definition at line 339 of file fat12.c.


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