#include <stdint.h>
#include <stdbool.h>
#include "cpu/pic/pic.h"
#include "cpu/idt/idt.h"
#include "assembly/io.h"
#include <stdlib.h>
#include <string.h>
#include "logger/logger.h"
#include "cpu/timer/timer.h"
#include "cpu/dma/dma.h"
#include "filesystems/fat/fat_header.h"
#include <ktime.h>
Go to the source code of this file.
|
bool | fdc_init () |
|
bool | floppy_init (int sectors_per_track) |
|
bool | fdc_is_present () |
|
bool | floppy_is_inserted () |
|
void | floppy_lba_to_chs (uint16_t lba, uint8_t *head, uint8_t *track, uint8_t *sector) |
|
bool | floppy_reset () |
|
bool | floppy_wait_until_ready () |
|
bool | floppy_send_command (uint8_t cmd) |
|
uint8_t | floppy_read_data () |
|
void | floppy_confirm_interrupt (uint8_t *st0, uint8_t *cylinder) |
|
void | floppy_set_parameters (uint32_t step_rate, uint32_t head_load_time, uint32_t head_unload_time, bool dma) |
|
bool | floppy_calibrate () |
|
uint8_t * | floppy_read_sector (int device_number, int sector) |
|
void | floppy_write_sector (int device_number, int sector, uint8_t *content) |
|
uint8_t * | floppy_do_operation_on_sector (uint8_t head, uint8_t track, uint8_t sector, bool read) |
|
void | floppy_enable_motor () |
|
void | floppy_disable_motor () |
|
bool | floppy_seek (uint8_t cylinder, uint8_t head) |
|
bool | floppy_wait_for_interrupt () |
|
bool | floppy_interrupt () |
|
bool | floppy_timer_interrupt () |
|
uint8_t * | floppy_read_continous (int device_number, int sector, int count) |
|
uint8_t * | floppy_read_sectors (int device_number, uint8_t head, uint8_t track, uint8_t sector, uint32_t count) |
|
uint8_t * | read_track_from_floppy (int device_number, int head, int track) |
|
◆ DEVICE_NUMBER
◆ FLOPPY_CONTROL_REGISTER
#define FLOPPY_CONTROL_REGISTER 0x3f7 |
◆ FLOPPY_DATA_REGISTER
#define FLOPPY_DATA_REGISTER 0x3f5 |
◆ FLOPPY_DIGITAL_INPUT_REGISTER
#define FLOPPY_DIGITAL_INPUT_REGISTER 0x3f7 |
◆ FLOPPY_DIGITAL_OUTPUT_REGISTER
#define FLOPPY_DIGITAL_OUTPUT_REGISTER 0x3f2 |
◆ FLOPPY_MAIN_STAUTS_REGISTER
#define FLOPPY_MAIN_STAUTS_REGISTER 0x3f4 |
◆ IDLE_TIME
◆ fdc_init()
◆ fdc_is_present()
◆ floppy_calibrate()
bool floppy_calibrate |
( |
| ) |
|
◆ floppy_confirm_interrupt()
void floppy_confirm_interrupt |
( |
uint8_t * |
st0, |
|
|
uint8_t * |
cylinder |
|
) |
| |
◆ floppy_disable_motor()
void floppy_disable_motor |
( |
| ) |
|
◆ floppy_do_operation_on_sector()
uint8_t* floppy_do_operation_on_sector |
( |
uint8_t |
head, |
|
|
uint8_t |
track, |
|
|
uint8_t |
sector, |
|
|
bool |
read |
|
) |
| |
◆ floppy_enable_motor()
void floppy_enable_motor |
( |
| ) |
|
◆ floppy_init()
bool floppy_init |
( |
int |
sectors_per_track | ) |
|
◆ floppy_interrupt()
bool floppy_interrupt |
( |
| ) |
|
◆ floppy_is_inserted()
bool floppy_is_inserted |
( |
| ) |
|
◆ floppy_lba_to_chs()
void floppy_lba_to_chs |
( |
uint16_t |
lba, |
|
|
uint8_t * |
head, |
|
|
uint8_t * |
track, |
|
|
uint8_t * |
sector |
|
) |
| |
◆ floppy_read_continous()
uint8_t* floppy_read_continous |
( |
int |
device_number, |
|
|
int |
sector, |
|
|
int |
count |
|
) |
| |
◆ floppy_read_data()
uint8_t floppy_read_data |
( |
| ) |
|
◆ floppy_read_sector()
uint8_t* floppy_read_sector |
( |
int |
device_number, |
|
|
int |
sector |
|
) |
| |
◆ floppy_read_sectors()
uint8_t* floppy_read_sectors |
( |
int |
device_number, |
|
|
uint8_t |
head, |
|
|
uint8_t |
track, |
|
|
uint8_t |
sector, |
|
|
uint32_t |
count |
|
) |
| |
◆ floppy_reset()
◆ floppy_seek()
bool floppy_seek |
( |
uint8_t |
cylinder, |
|
|
uint8_t |
head |
|
) |
| |
◆ floppy_send_command()
bool floppy_send_command |
( |
uint8_t |
cmd | ) |
|
◆ floppy_set_parameters()
◆ floppy_timer_interrupt()
bool floppy_timer_interrupt |
( |
| ) |
|
◆ floppy_wait_for_interrupt()
bool floppy_wait_for_interrupt |
( |
| ) |
|
◆ floppy_wait_until_ready()
bool floppy_wait_until_ready |
( |
| ) |
|
◆ floppy_write_sector()
void floppy_write_sector |
( |
int |
device_number, |
|
|
int |
sector, |
|
|
uint8_t * |
content |
|
) |
| |
◆ read_track_from_floppy()
uint8_t* read_track_from_floppy |
( |
int |
device_number, |
|
|
int |
head, |
|
|
int |
track |
|
) |
| |