1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00

Add support for using BurnProff(tm) on drives that support it.

This is experimental as I dont have such a drive, reports welcome!!
This commit is contained in:
Søren Schmidt 2001-01-04 12:43:39 +00:00
parent 1458cde760
commit b4de9f62a4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=70666
2 changed files with 6 additions and 2 deletions

View File

@ -1396,6 +1396,8 @@ acd_open_track(struct acd_softc *cdp, struct cdr_track *track)
param.page_length = 0x32;
param.test_write = track->test_write ? 1 : 0;
param.write_type = CDR_WTYPE_TRACK;
if (cdp->cap.burnproof)
param.burnproof = 1;
switch (track->track_type) {

View File

@ -124,7 +124,7 @@ struct cappage {
u_int8_t mode2_form1 :1; /* mode 2 form 1 (XA) read */
u_int8_t mode2_form2 :1; /* mode 2 form 2 format */
u_int8_t multisession :1; /* multi-session photo-CD */
u_int8_t :1;
u_int8_t burnproof :1; /* supports burnproof */
u_int8_t cd_da :1; /* audio-CD read supported */
u_int8_t cd_da_stream :1; /* CD-DA streaming */
u_int8_t rw :1; /* combined R-W subchannels */
@ -221,7 +221,9 @@ struct write_param {
#define CDR_WTYPE_RAW 0x03
u_int8_t test_write :1; /* test write enable */
u_int8_t reserved2_567 :3;
u_int8_t reserved2_5 :1;
u_int8_t burnproof :1; /* BurnProof enable */
u_int8_t reserved2_7 :1;
u_int8_t track_mode :4; /* track mode */
#define CDR_TMODE_AUDIO 0x00
#define CDR_TMODE_AUDIO_PREEMP 0x01