2 |
#define DISKIMAGE_H |
#define DISKIMAGE_H |
3 |
|
|
4 |
/* |
/* |
5 |
* Copyright (C) 2003-2006 Anders Gavare. All rights reserved. |
* Copyright (C) 2003-2007 Anders Gavare. All rights reserved. |
6 |
* |
* |
7 |
* Redistribution and use in source and binary forms, with or without |
* Redistribution and use in source and binary forms, with or without |
8 |
* modification, are permitted provided that the following conditions are met: |
* modification, are permitted provided that the following conditions are met: |
28 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
29 |
* |
* |
30 |
* |
* |
31 |
* $Id: diskimage.h,v 1.32 2006/09/05 06:13:27 debug Exp $ |
* $Id: diskimage.h,v 1.34 2006/12/30 13:31:00 debug Exp $ |
32 |
* |
* |
33 |
* Generic disk image functions. (See diskimage.c for more info.) |
* Generic disk image functions. (See diskimage.c for more info.) |
34 |
*/ |
*/ |
59 |
int sectors_per_track; |
int sectors_per_track; |
60 |
|
|
61 |
off_t total_size; |
off_t total_size; |
62 |
|
int64_t override_base_offset; |
63 |
int logical_block_size; |
int logical_block_size; |
64 |
|
|
65 |
int writable; |
int writable; |
111 |
|
|
112 |
|
|
113 |
int64_t diskimage_getsize(struct machine *machine, int id, int type); |
int64_t diskimage_getsize(struct machine *machine, int id, int type); |
114 |
|
int64_t diskimage_get_baseoffset(struct machine *machine, int id, int type); |
115 |
void diskimage_getchs(struct machine *machine, int id, int type, |
void diskimage_getchs(struct machine *machine, int id, int type, |
116 |
int *c, int *h, int *s); |
int *c, int *h, int *s); |
117 |
int diskimage_scsicommand(struct cpu *cpu, int id, int type, |
int diskimage_scsicommand(struct cpu *cpu, int id, int type, |