Imported Upstream version 1.1.11
[platform/upstream/cdrkit.git] / icedax / scsi_cmds.h
1 /*
2  * This file has been modified for the cdrkit suite.
3  *
4  * The behaviour and appearence of the program code below can differ to a major
5  * extent from the version distributed by the original author(s).
6  *
7  * For details, see Changelog file distributed with the cdrkit package. If you
8  * received this file from another source then ask the distributing person for
9  * a log of modifications.
10  *
11  */
12
13 /* @(#)scsi_cmds.h      1.11 03/03/02 Copyright 1998,1999 Heiko Eissfeldt */
14 /* header file for scsi_cmds.c */
15
16 extern unsigned char *cmd;
17 struct TOC;
18 int SCSI_emulated_ATAPI_on(SCSI *usalp);
19 unsigned char *Inquiry(SCSI *usalp);
20 int TestForMedium(SCSI *usalp);
21 void SpeedSelectSCSIMMC(SCSI *usalp, unsigned speed);
22 void SpeedSelectSCSIYamaha(SCSI *usalp, unsigned speed);
23 void SpeedSelectSCSISony(SCSI *usalp, unsigned speed);
24 void SpeedSelectSCSIPhilipsCDD2600(SCSI *usalp, unsigned speed);
25 void SpeedSelectSCSINEC(SCSI *usalp, unsigned speed);
26 void SpeedSelectSCSIToshiba(SCSI *usalp, unsigned speed);
27 subq_chnl *ReadSubQSCSI(SCSI *usalp, unsigned char sq_format, 
28                                                                 unsigned char ltrack);
29 subq_chnl *ReadSubChannelsSony(SCSI *usalp, unsigned lSector);
30 subq_chnl *ReadSubChannelsFallbackMMC(SCSI *usalp, unsigned lSector);
31 subq_chnl *ReadStandardSub(SCSI *usalp, unsigned lSector);
32 int ReadCddaMMC12(SCSI *usalp, UINT4 *p, unsigned lSector, 
33                                                 unsigned SectorBurstVal);
34 int ReadCdda12Matsushita(SCSI *usalp, UINT4 *p, unsigned lSector, 
35                                                                  unsigned SectorBurstVal);
36 int ReadCdda12(SCSI *usalp, UINT4 *p, unsigned lSector, unsigned SecorBurstVal);
37 int ReadCdda10(SCSI *usalp, UINT4 *p, unsigned lSector, unsigned SecorBurstVal);
38 int ReadStandard(SCSI *usalp, UINT4 *p, unsigned lSector, 
39                                           unsigned SctorBurstVal);
40 int ReadStandardData(SCSI *usalp, UINT4 *p, unsigned lSector, 
41                                                         unsigned SctorBurstVal);
42 int ReadCddaFallbackMMC(SCSI *usalp, UINT4 *p, unsigned lSector, 
43                                                                 unsigned SctorBurstVal);
44 int ReadCddaSubSony(SCSI *usalp, UINT4 *p, unsigned lSector, 
45                                                   unsigned SectorBurstVal);
46 int ReadCddaSub96Sony(SCSI *usalp, UINT4 *p, unsigned lSector, 
47                                                          unsigned SectorBurstVal);
48 int ReadCddaSubMMC12(SCSI *usalp, UINT4 *p, unsigned lSector, 
49                                                         unsigned SectorBurstVal);
50 unsigned ReadTocSony(SCSI *usalp);
51 unsigned ReadTocMMC(SCSI *usalp);
52 unsigned ReadTocSCSI(SCSI *usalp);
53 unsigned ReadFirstSessionTOCSony(SCSI *usalp);
54 unsigned ReadFirstSessionTOCMMC(SCSI *usalp);
55 void ReadTocTextSCSIMMC(SCSI *usalp);
56 int Play_atSCSI(SCSI *usalp, unsigned int from_sector, unsigned int sectors);
57 int StopPlaySCSI(SCSI *usalp);
58 void EnableCddaModeSelect(SCSI *usalp, int fAudioMode, unsigned uSectorsize);
59 int set_sectorsize(SCSI *usalp, unsigned int secsize);
60 unsigned int
61 get_orig_sectorsize(SCSI *usalp, unsigned char *m4, unsigned char *m10,
62                     unsigned char *m11);
63 int heiko_mmc(SCSI *usalp);
64 void init_scsibuf(SCSI *usalp, unsigned amt);
65 int     myscsierr(SCSI *usalp);
66
67 extern int accepts_fua_bit;
68 extern unsigned char density;
69 extern unsigned char orgmode4;
70 extern unsigned char orgmode10, orgmode11;
71