mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
ide: Replace IDEState members is_cdrom, is_cf by drive_kind
The two aren't independent variables. Make that obvious. Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
f597627ff5
commit
cd8722bb22
4 changed files with 25 additions and 24 deletions
|
@ -362,6 +362,8 @@ typedef struct BMDMAState BMDMAState;
|
|||
#define SMART_DISABLE 0xd9
|
||||
#define SMART_STATUS 0xda
|
||||
|
||||
typedef enum { IDE_HD, IDE_CD, IDE_CFATA } IDEDriveKind;
|
||||
|
||||
typedef void EndTransferFunc(IDEState *);
|
||||
|
||||
/* NOTE: IDEState represents in fact one drive */
|
||||
|
@ -369,8 +371,7 @@ struct IDEState {
|
|||
IDEBus *bus;
|
||||
uint8_t unit;
|
||||
/* ide config */
|
||||
int is_cdrom;
|
||||
int is_cf;
|
||||
IDEDriveKind drive_kind;
|
||||
int cylinders, heads, sectors;
|
||||
int64_t nb_sectors;
|
||||
int mult_sectors;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue