fdc: add a 'check media rate' property. Not used yet
Set it to true for current Qemu versions, and false for previous ones Signed-off-by: Hervé Poussineau <hpoussin@reactos.org> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
f8d3d12857
commit
09c6d5850f
3
hw/fdc.c
3
hw/fdc.c
|
@ -420,6 +420,7 @@ struct FDCtrl {
|
||||||
int sun4m;
|
int sun4m;
|
||||||
FDrive drives[MAX_FD];
|
FDrive drives[MAX_FD];
|
||||||
int reset_sensei;
|
int reset_sensei;
|
||||||
|
uint32_t check_media_rate;
|
||||||
/* Timers state */
|
/* Timers state */
|
||||||
uint8_t timer0;
|
uint8_t timer0;
|
||||||
uint8_t timer1;
|
uint8_t timer1;
|
||||||
|
@ -2003,6 +2004,8 @@ static Property isa_fdc_properties[] = {
|
||||||
DEFINE_PROP_DRIVE("driveB", FDCtrlISABus, state.drives[1].bs),
|
DEFINE_PROP_DRIVE("driveB", FDCtrlISABus, state.drives[1].bs),
|
||||||
DEFINE_PROP_INT32("bootindexA", FDCtrlISABus, bootindexA, -1),
|
DEFINE_PROP_INT32("bootindexA", FDCtrlISABus, bootindexA, -1),
|
||||||
DEFINE_PROP_INT32("bootindexB", FDCtrlISABus, bootindexB, -1),
|
DEFINE_PROP_INT32("bootindexB", FDCtrlISABus, bootindexB, -1),
|
||||||
|
DEFINE_PROP_BIT("check_media_rate", FDCtrlISABus, state.check_media_rate,
|
||||||
|
0, true),
|
||||||
DEFINE_PROP_END_OF_LIST(),
|
DEFINE_PROP_END_OF_LIST(),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
28
hw/pc_piix.c
28
hw/pc_piix.c
|
@ -384,6 +384,10 @@ static QEMUMachine pc_machine_v1_0 = {
|
||||||
.driver = "pc-sysfw",
|
.driver = "pc-sysfw",
|
||||||
.property = "rom_only",
|
.property = "rom_only",
|
||||||
.value = stringify(1),
|
.value = stringify(1),
|
||||||
|
}, {
|
||||||
|
.driver = "isa-fdc",
|
||||||
|
.property = "check_media_rate",
|
||||||
|
.value = "off",
|
||||||
},
|
},
|
||||||
{ /* end of list */ }
|
{ /* end of list */ }
|
||||||
},
|
},
|
||||||
|
@ -399,6 +403,10 @@ static QEMUMachine pc_machine_v0_15 = {
|
||||||
.driver = "pc-sysfw",
|
.driver = "pc-sysfw",
|
||||||
.property = "rom_only",
|
.property = "rom_only",
|
||||||
.value = stringify(1),
|
.value = stringify(1),
|
||||||
|
}, {
|
||||||
|
.driver = "isa-fdc",
|
||||||
|
.property = "check_media_rate",
|
||||||
|
.value = "off",
|
||||||
},
|
},
|
||||||
{ /* end of list */ }
|
{ /* end of list */ }
|
||||||
},
|
},
|
||||||
|
@ -434,6 +442,10 @@ static QEMUMachine pc_machine_v0_14 = {
|
||||||
.driver = "virtio-balloon-pci",
|
.driver = "virtio-balloon-pci",
|
||||||
.property = "event_idx",
|
.property = "event_idx",
|
||||||
.value = "off",
|
.value = "off",
|
||||||
|
},{
|
||||||
|
.driver = "isa-fdc",
|
||||||
|
.property = "check_media_rate",
|
||||||
|
.value = "off",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
.driver = "pc-sysfw",
|
.driver = "pc-sysfw",
|
||||||
|
@ -486,6 +498,10 @@ static QEMUMachine pc_machine_v0_13 = {
|
||||||
.driver = "AC97",
|
.driver = "AC97",
|
||||||
.property = "use_broken_id",
|
.property = "use_broken_id",
|
||||||
.value = stringify(1),
|
.value = stringify(1),
|
||||||
|
},{
|
||||||
|
.driver = "isa-fdc",
|
||||||
|
.property = "check_media_rate",
|
||||||
|
.value = "off",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
.driver = "pc-sysfw",
|
.driver = "pc-sysfw",
|
||||||
|
@ -542,6 +558,10 @@ static QEMUMachine pc_machine_v0_12 = {
|
||||||
.driver = "AC97",
|
.driver = "AC97",
|
||||||
.property = "use_broken_id",
|
.property = "use_broken_id",
|
||||||
.value = stringify(1),
|
.value = stringify(1),
|
||||||
|
},{
|
||||||
|
.driver = "isa-fdc",
|
||||||
|
.property = "check_media_rate",
|
||||||
|
.value = "off",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
.driver = "pc-sysfw",
|
.driver = "pc-sysfw",
|
||||||
|
@ -606,6 +626,10 @@ static QEMUMachine pc_machine_v0_11 = {
|
||||||
.driver = "AC97",
|
.driver = "AC97",
|
||||||
.property = "use_broken_id",
|
.property = "use_broken_id",
|
||||||
.value = stringify(1),
|
.value = stringify(1),
|
||||||
|
},{
|
||||||
|
.driver = "isa-fdc",
|
||||||
|
.property = "check_media_rate",
|
||||||
|
.value = "off",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
.driver = "pc-sysfw",
|
.driver = "pc-sysfw",
|
||||||
|
@ -682,6 +706,10 @@ static QEMUMachine pc_machine_v0_10 = {
|
||||||
.driver = "AC97",
|
.driver = "AC97",
|
||||||
.property = "use_broken_id",
|
.property = "use_broken_id",
|
||||||
.value = stringify(1),
|
.value = stringify(1),
|
||||||
|
},{
|
||||||
|
.driver = "isa-fdc",
|
||||||
|
.property = "check_media_rate",
|
||||||
|
.value = "off",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
.driver = "pc-sysfw",
|
.driver = "pc-sysfw",
|
||||||
|
|
Loading…
Reference in a new issue