Implemented some ATIP functionality

This commit is contained in:
2006-10-21 10:34:15 +00:00
parent 4718ad99f9
commit b6a04cb493
10 changed files with 225 additions and 10 deletions

View File

@ -663,6 +663,12 @@ int burn_drive_get_write_speed(struct burn_drive *d)
return d->mdata->max_write_speed;
}
/* ts A61021 : New API function */
int burn_drive_get_min_write_speed(struct burn_drive *d)
{
return d->mdata->min_write_speed;
}
/* ts A51221 */
static char *enumeration_whitelist[BURN_DRIVE_WHITELIST_LEN];
@ -1136,3 +1142,19 @@ int burn_disc_pretend_blank(struct burn_drive *d)
return 1;
}
/* ts A61021: new API function */
int burn_disc_read_atip(struct burn_drive *d)
{
if (burn_drive_is_released(d)) {
libdax_msgs_submit(libdax_messenger,
d->global_index, 0x0002010e,
LIBDAX_MSGS_SEV_FATAL, LIBDAX_MSGS_PRIO_HIGH,
"Attempt to read ATIP from ungrabbed drive",
0, 0);
return -1;
}
d->read_atip(d);
/* >>> some control of success would be nice :) */
return 1;
}