65oo2/vm/ata/ata.h

20 lines
332 B
C

#ifndef VM_ATA_ATA_H
# define VM_ATA_ATA_H 1
# include <stdint.h>
typedef void (*IoWrite)(uint8_t offset, uint8_t data);
typedef uint8_t (*IoRead)(uint8_t offset);
typedef struct
{
char const *name;
uint16_t start;
uint16_t end;
void *state;
IoWrite io_write;
IoRead io_read;
} AtaDevice;
#endif /* VM_ATA_ATA_H */