#include "disk.h"
#include "ge.h"
#include "connector34.h"
#include "log.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
Go to the source code of this file.
|
| static int | disk_claims (void *opaque, struct std_unitname un) |
| |
| static std_reaction | disk_command (struct ge *ge, void *opaque, struct std_unitname un, uint8_t order) |
| |
| static std_reaction | disk_transfer (struct ge *ge, void *opaque, struct std_unitname un, int dir, uint8_t *buf, uint16_t *len, uint16_t cap) |
| |
| int | disk_register (struct ge *ge, const char *image_path, uint8_t connector, uint8_t unit) |
| |
◆ DEFAULT_SECTORS
| #define DEFAULT_SECTORS 64 |
◆ SECTOR_BYTES
◆ disk_order
| Enumerator |
|---|
| DISK_ORD_SEEK | |
| DISK_ORD_READ | |
| DISK_ORD_WRITE | |
| DISK_ORD_FORMAT | |
Definition at line 30 of file disk.c.
◆ disk_claims()
| static int disk_claims |
( |
void * |
opaque, |
|
|
struct std_unitname |
un |
|
) |
| |
|
static |
◆ disk_command()
◆ disk_register()
| int disk_register |
( |
struct ge * |
ge, |
|
|
const char * |
image_path, |
|
|
uint8_t |
connector, |
|
|
uint8_t |
unit |
|
) |
| |
◆ disk_transfer()
| static std_reaction disk_transfer |
( |
struct ge * |
ge, |
|
|
void * |
opaque, |
|
|
struct std_unitname |
un, |
|
|
int |
dir, |
|
|
uint8_t * |
buf, |
|
|
uint16_t * |
len, |
|
|
uint16_t |
cap |
|
) |
| |
|
static |