1 /* @(#)scsi_cmds.h 1.19 15/10/19 Copyright 1998,1999,2015 Heiko Eissfeldt, Copyright 2004-2013 J. Schilling */ 2 /* 3 * header file for scsi_cmds.c 4 */ 5 /* 6 * The contents of this file are subject to the terms of the 7 * Common Development and Distribution License, Version 1.0 only 8 * (the "License"). You may not use this file except in compliance 9 * with the License. 10 * 11 * See the file CDDL.Schily.txt in this distribution for details. 12 * A copy of the CDDL is also available via the Internet at 13 * http://www.opensource.org/licenses/cddl1.txt 14 * 15 * When distributing Covered Code, include this CDDL HEADER in each 16 * file and include the License file CDDL.Schily.txt from this distribution. 17 */ 18 19 #ifndef _SCSI_CMDS_H 20 #define _SCSI_CMDS_H 21 22 extern int accepts_fua_bit; 23 extern unsigned char density; 24 extern unsigned char orgmode4; 25 extern unsigned char orgmode10; 26 extern unsigned char orgmode11; 27 28 extern int SCSI_emulated_ATAPI_on __PR((SCSI *scgp)); 29 extern unsigned char *ScsiInquiry __PR((SCSI *scgp)); 30 extern int TestForMedium __PR((SCSI *scgp)); 31 extern void SpeedSelectSCSIMMC __PR((SCSI *scgp, unsigned speed)); 32 extern void SpeedSelectSCSIYamaha __PR((SCSI *scgp, unsigned speed)); 33 extern void SpeedSelectSCSISony __PR((SCSI *scgp, unsigned speed)); 34 extern void SpeedSelectSCSIPhilipsCDD2600 __PR((SCSI *scgp, 35 unsigned speed)); 36 extern void SpeedSelectSCSINEC __PR((SCSI *scgp, unsigned speed)); 37 extern void SpeedSelectSCSIToshiba __PR((SCSI *scgp, unsigned speed)); 38 extern subq_chnl *ReadSubQSCSI __PR((SCSI *scgp, 39 unsigned char sq_format, 40 unsigned char ltrack)); 41 extern subq_chnl *ReadSubChannelsSony __PR((SCSI *scgp, unsigned lSector)); 42 extern subq_chnl *ReadSubChannelsFallbackMMC __PR((SCSI *scgp, 43 unsigned lSector)); 44 extern subq_chnl *ReadStandardSub __PR((SCSI *scgp, unsigned lSector)); 45 extern int ReadCddaMMC12 __PR((SCSI *scgp, UINT4 *p, 46 unsigned lSector, 47 unsigned SectorBurstVal)); 48 extern int ReadCddaMMC12_C2 __PR((SCSI *scgp, UINT4 *p, 49 unsigned lSector, 50 unsigned SectorBurstVal)); 51 extern int ReadCdda12Matsushita __PR((SCSI *scgp, UINT4 *p, 52 unsigned lSector, 53 unsigned SectorBurstVal)); 54 extern int ReadCdda12 __PR((SCSI *scgp, UINT4 *p, 55 unsigned lSector, 56 unsigned SecorBurstVal)); 57 extern int ReadCdda12_C2 __PR((SCSI *scgp, UINT4 *p, 58 unsigned lSector, 59 unsigned SecorBurstVal)); 60 extern int ReadCdda10 __PR((SCSI *scgp, UINT4 *p, 61 unsigned lSector, 62 unsigned SecorBurstVal)); 63 extern int ReadStandard __PR((SCSI *scgp, UINT4 *p, 64 unsigned lSector, 65 unsigned SctorBurstVal)); 66 extern int ReadStandardData __PR((SCSI *scgp, UINT4 *p, 67 unsigned lSector, 68 unsigned SctorBurstVal)); 69 extern int ReadCddaFallbackMMC __PR((SCSI *scgp, UINT4 *p, 70 unsigned lSector, 71 unsigned SctorBurstVal)); 72 extern int ReadCddaFallbackMMC_C2 __PR((SCSI *scgp, UINT4 *p, 73 unsigned lSector, 74 unsigned SctorBurstVal)); 75 extern int ReadCddaNoFallback_C2 __PR((SCSI *scgp, UINT4 *p, 76 unsigned lSector, 77 unsigned SctorBurstVal)); 78 extern int ReadCddaSubSony __PR((SCSI *scgp, UINT4 *p, 79 unsigned lSector, 80 unsigned SectorBurstVal)); 81 extern int ReadCddaSub96Sony __PR((SCSI *scgp, UINT4 *p, 82 unsigned lSector, 83 unsigned SectorBurstVal)); 84 extern int ReadCddaSubMMC12 __PR((SCSI *scgp, UINT4 *p, 85 unsigned lSector, 86 unsigned SectorBurstVal)); 87 extern unsigned ReadTocSony __PR((SCSI *scgp)); 88 extern unsigned ReadTocMMC __PR((SCSI *scgp)); 89 extern unsigned ReadTocSCSI __PR((SCSI *scgp)); 90 extern unsigned ReadFirstSessionTOCSony __PR((SCSI *scgp)); 91 extern unsigned ReadFirstSessionTOCMMC __PR((SCSI *scgp)); 92 extern void ReadTocTextSCSIMMC __PR((SCSI *scgp)); 93 extern int Play_atSCSI __PR((SCSI *scgp, 94 unsigned int from_sector, 95 unsigned int sectors)); 96 extern int StopPlaySCSI __PR((SCSI *scgp)); 97 extern void EnableCddaModeSelect __PR((SCSI *scgp, int fAudioMode, 98 unsigned uSectorsize)); 99 extern int set_sectorsize __PR((SCSI *scgp, 100 unsigned int secsize)); 101 extern unsigned int get_orig_sectorsize __PR((SCSI *scgp, unsigned char *m4, 102 unsigned char *m10, 103 unsigned char *m11)); 104 extern int heiko_mmc __PR((SCSI *scgp)); 105 extern void init_scsibuf __PR((SCSI *scgp, long amt)); 106 extern int myscsierr __PR((SCSI *scgp)); 107 108 #endif /* _SCSI_CMDS_H */ 109