#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "cpu.h"
#include "device.h"
#include "diskimage.h"
#include "emul.h"
#include "machine.h"
#include "memory.h"
#include "misc.h"
#include "testmachine/dev_disk.h"
Go to the source code of this file.
Classes | |
struct | disk_data |
Macros | |
#define | SECTOR_SIZE 512 |
Functions | |
DEVICE_ACCESS (disk_buf) | |
DEVICE_ACCESS (disk) | |
DEVINIT (disk) | |
Variables | |
int | verbose |
#define SECTOR_SIZE 512 |
Definition at line 50 of file dev_disk.cc.
Referenced by DEVICE_ACCESS().
DEVICE_ACCESS | ( | disk_buf | ) |
Definition at line 62 of file dev_disk.cc.
References disk_data::buf, data, and MEM_WRITE.
DEVICE_ACCESS | ( | disk | ) |
Definition at line 75 of file dev_disk.cc.
References disk_data::buf, disk_data::command, data, debug, DEV_DISK_ID, DEV_DISK_OFFSET, DEV_DISK_OFFSET_HIGH32, DEV_DISK_START_OPERATION, DEV_DISK_STATUS, disk_data::disk_id, diskimage_access(), DISKIMAGE_IDE, fatal(), cpu::machine, MEM_READ, MEM_WRITE, memory_readmax64(), memory_writemax64(), disk_data::offset, SECTOR_SIZE, disk_data::status, and verbose.
DEVINIT | ( | disk | ) |
Definition at line 165 of file dev_disk.cc.
References devinit::addr, machine::arch_pagesize, disk_data::buf, CHECK_ALLOCATION, DEV_DISK_BUFFER, DM_DEFAULT, DM_DYNTRANS_OK, DM_DYNTRANS_WRITE_OK, DM_READS_HAVE_NO_SIDE_EFFECTS, devinit::machine, machine::memory, memory_device_register(), devinit::name, and strlen().
int verbose |
Definition at line 77 of file main.cc.
Referenced by DEVICE_ACCESS().