|
Packit |
cb6d3d |
/*
|
|
Packit |
cb6d3d |
Copyright (C) 2004, 2008, 2011 Rocky Bernstein <rocky@gnu.org>
|
|
Packit |
cb6d3d |
Copyright (C) 1998 Monty xiphmont@mit.edu
|
|
Packit |
cb6d3d |
|
|
Packit |
cb6d3d |
This program is free software: you can redistribute it and/or modify
|
|
Packit |
cb6d3d |
it under the terms of the GNU General Public License as published by
|
|
Packit |
cb6d3d |
the Free Software Foundation, either version 3 of the License, or
|
|
Packit |
cb6d3d |
(at your option) any later version.
|
|
Packit |
cb6d3d |
|
|
Packit |
cb6d3d |
This program is distributed in the hope that it will be useful,
|
|
Packit |
cb6d3d |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
cb6d3d |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
Packit |
cb6d3d |
GNU General Public License for more details.
|
|
Packit |
cb6d3d |
|
|
Packit |
cb6d3d |
You should have received a copy of the GNU General Public License
|
|
Packit |
cb6d3d |
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
Packit |
cb6d3d |
*/
|
|
Packit |
cb6d3d |
|
|
Packit |
cb6d3d |
#include "common_interface.h"
|
|
Packit |
cb6d3d |
#include "drive_exceptions.h"
|
|
Packit |
cb6d3d |
|
|
Packit |
cb6d3d |
int dummy_exception (cdrom_drive_t *d,int Switch)
|
|
Packit |
cb6d3d |
{
|
|
Packit |
cb6d3d |
return(0);
|
|
Packit |
cb6d3d |
}
|
|
Packit |
cb6d3d |
|
|
Packit |
cb6d3d |
#if HAVE_LINUX_MAJOR_H
|
|
Packit |
cb6d3d |
/* list of drives that affect autosensing in ATAPI specific portions of code
|
|
Packit |
cb6d3d |
(force drives to detect as ATAPI or SCSI, force ATAPI read command */
|
|
Packit |
cb6d3d |
|
|
Packit |
cb6d3d |
const exception_t atapi_list[]={
|
|
Packit |
cb6d3d |
{"SAMSUNG SCR-830 REV 2.09 2.09 ", 1, 0, dummy_exception,scsi_read_mmc2,0},
|
|
Packit |
cb6d3d |
{"Memorex CR-622", 1, 0, dummy_exception, NULL,0},
|
|
Packit |
cb6d3d |
{"SONY CD-ROM CDU-561", 0, 0, dummy_exception, NULL,0},
|
|
Packit |
cb6d3d |
{"Chinon CD-ROM CDS-525", 0, 0, dummy_exception, NULL,0},
|
|
Packit |
cb6d3d |
{NULL,0,0,NULL,NULL,0}};
|
|
Packit |
cb6d3d |
#endif /*HAVE_LINUX_MAJOR_H*/
|
|
Packit |
cb6d3d |
|
|
Packit |
cb6d3d |
/* list of drives that affect MMC default settings */
|
|
Packit |
cb6d3d |
|
|
Packit |
cb6d3d |
#ifdef NEED_MMC_LIST
|
|
Packit |
cb6d3d |
static exception_t mmc_list[]={
|
|
Packit |
cb6d3d |
{"SAMSUNG SCR-830 REV 2.09 2.09 ", 1, 0, dummy_exception,scsi_read_mmc2,0},
|
|
Packit |
cb6d3d |
{"Memorex CR-622", 1, 0, dummy_exception, NULL,0},
|
|
Packit |
cb6d3d |
{"SONY CD-ROM CDU-561", 0, 0, dummy_exception, NULL,0},
|
|
Packit |
cb6d3d |
{"Chinon CD-ROM CDS-525", 0, 0, dummy_exception, NULL,0},
|
|
Packit |
cb6d3d |
{"KENWOOD CD-ROM UCR", -1, 0, NULL,scsi_read_D8, 0},
|
|
Packit |
cb6d3d |
{NULL,0,0,NULL,NULL,0}};
|
|
Packit |
cb6d3d |
#endif /*NEED_MMC_LIST*/
|
|
Packit |
cb6d3d |
|
|
Packit |
cb6d3d |
/* list of drives that affect SCSI default settings */
|
|
Packit |
cb6d3d |
|
|
Packit |
cb6d3d |
#ifdef NEED_SCSI_LIST
|
|
Packit |
cb6d3d |
static exception_t scsi_list[]={
|
|
Packit |
cb6d3d |
{"TOSHIBA", -1,0x82,scsi_enable_cdda,scsi_read_28, 0},
|
|
Packit |
cb6d3d |
{"IBM", -1,0x82,scsi_enable_cdda,scsi_read_28, 0},
|
|
Packit |
cb6d3d |
{"DEC", -1,0x82,scsi_enable_cdda,scsi_read_28, 0},
|
|
Packit |
cb6d3d |
|
|
Packit |
cb6d3d |
{"IMS", -1, 0,scsi_enable_cdda,scsi_read_28, 1},
|
|
Packit |
cb6d3d |
{"KODAK", -1, 0,scsi_enable_cdda,scsi_read_28, 1},
|
|
Packit |
cb6d3d |
{"RICOH", -1, 0,scsi_enable_cdda,scsi_read_28, 1},
|
|
Packit |
cb6d3d |
{"HP", -1, 0,scsi_enable_cdda,scsi_read_28, 1},
|
|
Packit |
cb6d3d |
{"PHILIPS", -1, 0,scsi_enable_cdda,scsi_read_28, 1},
|
|
Packit |
cb6d3d |
{"PLASMON", -1, 0,scsi_enable_cdda,scsi_read_28, 1},
|
|
Packit |
cb6d3d |
{"GRUNDIG CDR100IPW", -1, 0,scsi_enable_cdda,scsi_read_28, 1},
|
|
Packit |
cb6d3d |
{"MITSUMI CD-R ", -1, 0,scsi_enable_cdda,scsi_read_28, 1},
|
|
Packit |
cb6d3d |
{"KENWOOD CD-ROM UCR", -1, 0, NULL,scsi_read_D8, 0},
|
|
Packit |
cb6d3d |
|
|
Packit |
cb6d3d |
{"YAMAHA", -1, 0,scsi_enable_cdda, NULL, 0},
|
|
Packit |
cb6d3d |
|
|
Packit |
cb6d3d |
{"PLEXTOR", -1, 0, NULL, NULL, 0},
|
|
Packit |
cb6d3d |
{"SONY", -1, 0, NULL, NULL, 0},
|
|
Packit |
cb6d3d |
|
|
Packit |
cb6d3d |
{"NEC", -1, 0, NULL,scsi_read_D4_10,0},
|
|
Packit |
cb6d3d |
|
|
Packit |
cb6d3d |
/* the 7501 locks up if hit with the 10 byte version from the
|
|
Packit |
cb6d3d |
autoprobe first */
|
|
Packit |
cb6d3d |
{"MATSHITA CD-R CW-7501", -1, 0, NULL,scsi_read_D4_12,-1},
|
|
Packit |
cb6d3d |
|
|
Packit |
cb6d3d |
{NULL,0,0,NULL,NULL,0}};
|
|
Packit |
cb6d3d |
|
|
Packit |
cb6d3d |
#endif /* NEED_SCSI_LIST*/
|