25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: dev_disk.c,v 1.7 2005/08/04 10:53:25 debug Exp $ |
* $Id: dev_disk.c,v 1.8 2005/10/26 14:37:03 debug Exp $ |
29 |
* |
* |
30 |
* Basic "Disk" device. This is a simple test device which can be used to |
* Basic "Disk" device. This is a simple test device which can be used to |
31 |
* read and write data from disk devices. |
* read and write data from disk devices. |
83 |
struct disk_data *d = (struct disk_data *) extra; |
struct disk_data *d = (struct disk_data *) extra; |
84 |
uint64_t idata = 0, odata = 0; |
uint64_t idata = 0, odata = 0; |
85 |
|
|
86 |
idata = memory_readmax64(cpu, data, len); |
if (writeflag == MEM_WRITE) |
87 |
|
idata = memory_readmax64(cpu, data, len); |
88 |
|
|
89 |
switch (relative_addr) { |
switch (relative_addr) { |
90 |
case 0x00: |
case 0x00: |