Allow use of ATAPI devices with XTIDE
This commit is contained in:
@@ -417,7 +417,9 @@ is_valid_fdd(int i)
|
|||||||
static inline int
|
static inline int
|
||||||
is_valid_cdrom(int i)
|
is_valid_cdrom(int i)
|
||||||
{
|
{
|
||||||
if ((cdrom[i].bus_type == CDROM_BUS_ATAPI) && !MACHINE_HAS_IDE && memcmp(hdc_get_internal_name(hdc_current), "ide", 3))
|
if ((cdrom[i].bus_type == CDROM_BUS_ATAPI) && !MACHINE_HAS_IDE &&
|
||||||
|
memcmp(hdc_get_internal_name(hdc_current), "xtide", 5) &&
|
||||||
|
memcmp(hdc_get_internal_name(hdc_current), "ide", 3))
|
||||||
return 0;
|
return 0;
|
||||||
if ((cdrom[i].bus_type == CDROM_BUS_SCSI) && !MACHINE_HAS_SCSI &&
|
if ((cdrom[i].bus_type == CDROM_BUS_SCSI) && !MACHINE_HAS_SCSI &&
|
||||||
(scsi_card_current[0] == 0) && (scsi_card_current[1] == 0) &&
|
(scsi_card_current[0] == 0) && (scsi_card_current[1] == 0) &&
|
||||||
@@ -430,7 +432,9 @@ is_valid_cdrom(int i)
|
|||||||
static inline int
|
static inline int
|
||||||
is_valid_zip(int i)
|
is_valid_zip(int i)
|
||||||
{
|
{
|
||||||
if ((zip_drives[i].bus_type == ZIP_BUS_ATAPI) && !MACHINE_HAS_IDE && memcmp(hdc_get_internal_name(hdc_current), "ide", 3))
|
if ((zip_drives[i].bus_type == ZIP_BUS_ATAPI) && !MACHINE_HAS_IDE &&
|
||||||
|
memcmp(hdc_get_internal_name(hdc_current), "xtide", 5) &&
|
||||||
|
memcmp(hdc_get_internal_name(hdc_current), "ide", 3))
|
||||||
return 0;
|
return 0;
|
||||||
if ((zip_drives[i].bus_type == ZIP_BUS_SCSI) && !MACHINE_HAS_SCSI &&
|
if ((zip_drives[i].bus_type == ZIP_BUS_SCSI) && !MACHINE_HAS_SCSI &&
|
||||||
(scsi_card_current[0] == 0) && (scsi_card_current[1] == 0) &&
|
(scsi_card_current[0] == 0) && (scsi_card_current[1] == 0) &&
|
||||||
@@ -443,7 +447,9 @@ is_valid_zip(int i)
|
|||||||
static inline int
|
static inline int
|
||||||
is_valid_mo(int i)
|
is_valid_mo(int i)
|
||||||
{
|
{
|
||||||
if ((mo_drives[i].bus_type == MO_BUS_ATAPI) && !MACHINE_HAS_IDE && memcmp(hdc_get_internal_name(hdc_current), "ide", 3))
|
if ((mo_drives[i].bus_type == MO_BUS_ATAPI) && !MACHINE_HAS_IDE &&
|
||||||
|
memcmp(hdc_get_internal_name(hdc_current), "xtide", 5) &&
|
||||||
|
memcmp(hdc_get_internal_name(hdc_current), "ide", 3))
|
||||||
return 0;
|
return 0;
|
||||||
if ((mo_drives[i].bus_type == MO_BUS_SCSI) && !MACHINE_HAS_SCSI &&
|
if ((mo_drives[i].bus_type == MO_BUS_SCSI) && !MACHINE_HAS_SCSI &&
|
||||||
(scsi_card_current[0] == 0) && (scsi_card_current[1] == 0) &&
|
(scsi_card_current[0] == 0) && (scsi_card_current[1] == 0) &&
|
||||||
|
@@ -573,7 +573,7 @@ ui_sb_update_panes(void)
|
|||||||
for (i=0; i<CDROM_NUM; i++) {
|
for (i=0; i<CDROM_NUM; i++) {
|
||||||
/* Could be Internal or External IDE.. */
|
/* Could be Internal or External IDE.. */
|
||||||
if ((cdrom[i].bus_type == CDROM_BUS_ATAPI) &&
|
if ((cdrom[i].bus_type == CDROM_BUS_ATAPI) &&
|
||||||
!ide_int && memcmp(hdc_name, "ide", 3))
|
!ide_int && memcmp(hdc_name, "xtide", 5) && memcmp(hdc_name, "ide", 3))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if ((cdrom[i].bus_type == CDROM_BUS_SCSI) && !scsi_int &&
|
if ((cdrom[i].bus_type == CDROM_BUS_SCSI) && !scsi_int &&
|
||||||
@@ -586,7 +586,7 @@ ui_sb_update_panes(void)
|
|||||||
for (i=0; i<ZIP_NUM; i++) {
|
for (i=0; i<ZIP_NUM; i++) {
|
||||||
/* Could be Internal or External IDE.. */
|
/* Could be Internal or External IDE.. */
|
||||||
if ((zip_drives[i].bus_type == ZIP_BUS_ATAPI) &&
|
if ((zip_drives[i].bus_type == ZIP_BUS_ATAPI) &&
|
||||||
!ide_int && memcmp(hdc_name, "ide", 3))
|
!ide_int && memcmp(hdc_name, "xtide", 5) && memcmp(hdc_name, "ide", 3))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if ((zip_drives[i].bus_type == ZIP_BUS_SCSI) && !scsi_int &&
|
if ((zip_drives[i].bus_type == ZIP_BUS_SCSI) && !scsi_int &&
|
||||||
@@ -599,7 +599,7 @@ ui_sb_update_panes(void)
|
|||||||
for (i=0; i<MO_NUM; i++) {
|
for (i=0; i<MO_NUM; i++) {
|
||||||
/* Could be Internal or External IDE.. */
|
/* Could be Internal or External IDE.. */
|
||||||
if ((mo_drives[i].bus_type == MO_BUS_ATAPI) &&
|
if ((mo_drives[i].bus_type == MO_BUS_ATAPI) &&
|
||||||
!ide_int && memcmp(hdc_name, "ide", 3))
|
!ide_int && memcmp(hdc_name, "xtide", 5) && memcmp(hdc_name, "ide", 3))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if ((mo_drives[i].bus_type == MO_BUS_SCSI) && !scsi_int &&
|
if ((mo_drives[i].bus_type == MO_BUS_SCSI) && !scsi_int &&
|
||||||
@@ -666,7 +666,7 @@ ui_sb_update_panes(void)
|
|||||||
for (i=0; i<CDROM_NUM; i++) {
|
for (i=0; i<CDROM_NUM; i++) {
|
||||||
/* Could be Internal or External IDE.. */
|
/* Could be Internal or External IDE.. */
|
||||||
if ((cdrom[i].bus_type == CDROM_BUS_ATAPI) &&
|
if ((cdrom[i].bus_type == CDROM_BUS_ATAPI) &&
|
||||||
!ide_int && memcmp(hdc_name, "ide", 3))
|
!ide_int && memcmp(hdc_name, "xtide", 5) && memcmp(hdc_name, "ide", 3))
|
||||||
continue;
|
continue;
|
||||||
if ((cdrom[i].bus_type == CDROM_BUS_SCSI) && !scsi_int &&
|
if ((cdrom[i].bus_type == CDROM_BUS_SCSI) && !scsi_int &&
|
||||||
(scsi_card_current[0] == 0) && (scsi_card_current[1] == 0) &&
|
(scsi_card_current[0] == 0) && (scsi_card_current[1] == 0) &&
|
||||||
@@ -683,7 +683,7 @@ ui_sb_update_panes(void)
|
|||||||
for (i=0; i<ZIP_NUM; i++) {
|
for (i=0; i<ZIP_NUM; i++) {
|
||||||
/* Could be Internal or External IDE.. */
|
/* Could be Internal or External IDE.. */
|
||||||
if ((zip_drives[i].bus_type == ZIP_BUS_ATAPI) &&
|
if ((zip_drives[i].bus_type == ZIP_BUS_ATAPI) &&
|
||||||
!ide_int && memcmp(hdc_name, "ide", 3))
|
!ide_int && memcmp(hdc_name, "xtide", 5) && memcmp(hdc_name, "ide", 3))
|
||||||
continue;
|
continue;
|
||||||
if ((zip_drives[i].bus_type == ZIP_BUS_SCSI) && !scsi_int &&
|
if ((zip_drives[i].bus_type == ZIP_BUS_SCSI) && !scsi_int &&
|
||||||
(scsi_card_current[0] == 0) && (scsi_card_current[1] == 0) &&
|
(scsi_card_current[0] == 0) && (scsi_card_current[1] == 0) &&
|
||||||
@@ -700,7 +700,7 @@ ui_sb_update_panes(void)
|
|||||||
for (i=0; i<MO_NUM; i++) {
|
for (i=0; i<MO_NUM; i++) {
|
||||||
/* Could be Internal or External IDE.. */
|
/* Could be Internal or External IDE.. */
|
||||||
if ((mo_drives[i].bus_type == MO_BUS_ATAPI) &&
|
if ((mo_drives[i].bus_type == MO_BUS_ATAPI) &&
|
||||||
!ide_int && memcmp(hdc_name, "ide", 3))
|
!ide_int && memcmp(hdc_name, "xtide", 5) && memcmp(hdc_name, "ide", 3))
|
||||||
continue;
|
continue;
|
||||||
if ((mo_drives[i].bus_type == MO_BUS_SCSI) && !scsi_int &&
|
if ((mo_drives[i].bus_type == MO_BUS_SCSI) && !scsi_int &&
|
||||||
(scsi_card_current[0] == 0) && (scsi_card_current[1] == 0) &&
|
(scsi_card_current[0] == 0) && (scsi_card_current[1] == 0) &&
|
||||||
|
Reference in New Issue
Block a user