misc_scsi.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _MISC_SCSI_H
#define _MISC_SCSI_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
#include "device.h"
struct track_info {
int ti_track_no; /* Track number */
int ti_session_no; /* session no. 0 if cannot find that */
};
/*
* track_info_flags
*/
#define TI_FIXED_PACKET 1
#define TI_PACKET_MODE 2
#define TI_BLANK_TRACK 4
#define TI_RESERVED_TRACK 8
#define TI_COPY 0x10
#define TI_DAMAGED_TRACK 0x20
#define TI_NWA_VALID 0x100
#define TI_LRA_VALID 0x200
#define TI_SESSION_NO_VALID 0x1000
#define TI_FREE_BLOCKS_VALID 0x2000
/*
* Track mode nibble
*/
#define TRACK_MODE_DATA 0x06
#define TRACK_MODE_AUDIO 0x02
/* 74 minutes, each second is 75 blocks */
#define MAX_DVD_BLKS 2295100
/*
* Some devices just multiply speed by 176. But more accurate ones
* multiply speed by 176.4.
*/
int keep_disc_open);
void tao_fini(void);
void write_init(int mode);
void write_fini(void);
#ifdef __cplusplus
}
#endif
#endif /* _MISC_SCSI_H */