- deprecated option 'newharddrivesupport' removed from hard drive code

- sense code ASC_ILLEGAL_OPCODE added for unimplemented/unknown ATAPI commands
- some panics changed to errors
- unsupported bits message in drive and head register changed to BX_DEBUG
- improved info about not existing drive
- indent mode fixed in ATAPI packet command section
This commit is contained in:
Volker Ruppert 2005-10-02 10:16:54 +00:00
parent 9b264e8830
commit 0cacb9af0c
5 changed files with 591 additions and 609 deletions

View File

@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////
// $Id: bochs.h,v 1.158 2005-09-18 07:16:28 vruppert Exp $
// $Id: bochs.h,v 1.159 2005-10-02 10:16:53 vruppert Exp $
/////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2002 MandrakeSoft S.A.
@ -656,7 +656,6 @@ typedef struct BOCHSAPI {
bx_cmosimage_options cmosimage;
bx_clock_options clock;
bx_ne2k_options ne2k;
bx_param_bool_c *OnewHardDriveSupport;
bx_load32bitOSImage_t load32bitOSImage;
bx_log_options log;
bx_keyboard_options keyboard;

View File

@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////
// $Id: config.cc,v 1.46 2005-09-22 21:12:26 vruppert Exp $
// $Id: config.cc,v 1.47 2005-10-02 10:16:53 vruppert Exp $
/////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2002 MandrakeSoft S.A.
@ -745,11 +745,6 @@ void bx_init_options ()
}
}
bx_options.OnewHardDriveSupport = new bx_param_bool_c (BXP_NEWHARDDRIVESUPPORT,
"New hard drive support",
"Enables new features found on newer hard drives.",
1);
// boot sequence
for (i=0; i<3; i++) {
sprintf (name, "Boot drive #%d", i+1);
@ -1717,9 +1712,8 @@ void bx_reset_options ()
bx_options.atadevice[channel][slave].Omodel->reset();
bx_options.atadevice[channel][slave].Obiosdetect->reset();
bx_options.atadevice[channel][slave].Otranslation->reset();
}
}
bx_options.OnewHardDriveSupport->reset();
}
// boot
for (i=0; i<3; i++) {

View File

@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////
// $Id: siminterface.h,v 1.141 2005-09-22 21:12:26 vruppert Exp $
// $Id: siminterface.h,v 1.142 2005-10-02 10:16:53 vruppert Exp $
/////////////////////////////////////////////////////////////////////////
//
// Intro to siminterface by Bryce Denney:
@ -341,7 +341,6 @@ typedef enum {
BXP_SCREENMODE,
BXP_I440FX_SUPPORT,
BXP_PCI,
BXP_NEWHARDDRIVESUPPORT,
BXP_LOG_FILENAME,
BXP_LOG_PREFIX,
BXP_DEBUGGER_LOG_FILENAME,

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////
// $Id: harddrv.h,v 1.32 2005-08-21 17:40:45 vruppert Exp $
// $Id: harddrv.h,v 1.33 2005-10-02 10:16:54 vruppert Exp $
/////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2002 MandrakeSoft S.A.
@ -108,10 +108,11 @@ typedef enum _sense {
} sense_t;
typedef enum _asc {
ASC_ILLEGAL_OPCODE = 0x20,
ASC_LOGICAL_BLOCK_OOR = 0x21,
ASC_INV_FIELD_IN_CMD_PACKET = 0x24,
ASC_MEDIUM_NOT_PRESENT = 0x3a,
ASC_SAVING_PARAMETERS_NOT_SUPPORTED = 0x39,
ASC_LOGICAL_BLOCK_OOR = 0x21
ASC_MEDIUM_NOT_PRESENT = 0x3a
} asc_t;
class LOWLEVEL_CDROM;