|
cbmimage
|
Functions | |
| static uint16_t | cbmimage_i_d80_d82_get_sectors_in_track (cbmimage_image_settings *settings, uint16_t track) |
| static int | cbmimage_i_d80_d82_ts_to_blockaddress (cbmimage_image_settings *settings, cbmimage_blockaddress *block) |
| static int | cbmimage_i_d80_d82_lba_to_blockaddress (cbmimage_image_settings *settings, cbmimage_blockaddress *block) |
| static void | cbmimage_i_d80_d82_calculate_track_lba_start_table (cbmimage_image_settings *settings) |
| static void | cbmimage_i_d80_d82_image_create (cbmimage_fileimage *image, cbmimage_imagetype imagetype, unsigned char *imagetype_name, uint8_t maxtracks) |
| void | cbmimage_i_d80_image_open (cbmimage_fileimage *image) |
| void | cbmimage_i_d82_image_open (cbmimage_fileimage *image) |
Variables | |
| static const cbmimage_fileimage_functions | d80_d82_fileimage_functions |
|
static |
create the "LBA start table"
In order to ease the calculation of LBA to T/S or vice versa (cf. cbmimage_i_d80_d82_ts_to_blockaddress(), cbmimage_i_d80_d82_lba_to_blockaddress()) an internal table of the first LBA on a track is used internally.
This function initializes this table.
| [in] | settings | pointer to the image data internal settings |
|
static |
get the number of sectors on a specific track of the D80 and D82 image
| [in] | settings | pointer to the image data internal settings |
| [in] | track | the track number for which to obtain the number of sectors |
|
static |
create a D80 or D82 image
| [in] | image | pointer to the image data |
| [in] | imagetype | The type of image that should be created |
| [in] | imagetype_name | The name of the image type that should be stored in the images. This value is only informational and can be asked for by the user; it is not used internally. |
| [in] | maxtracks | The maximum number of tracks of this image |
|
static |
convert the LBA to T/S block address
| [in] | settings | pointer to the image data internal settings |
| [in,out] | block | pointer to a block address with an initialized LBA address |
|
static |
convert the T/S to LBA block address
| [in] | settings | pointer to the image data internal settings |
| [in,out] | block | pointer to a block address witn an initialized T/S address |
| void cbmimage_i_d80_image_open | ( | cbmimage_fileimage * | image | ) |
create structures for a D80 image
| [in] | image | pointer to the image data |
| void cbmimage_i_d82_image_open | ( | cbmimage_fileimage * | image | ) |
create structures for a D82 image
| [in] | image | pointer to the image data |
|
static |
template for the file image functions for D80 and D82 images
This is a template that is copied into the image specific data.