Trned the LPT ports into device_t's.
This commit is contained in:
@@ -129,7 +129,8 @@ machine_zenith_init(const machine_t *model)
|
||||
int
|
||||
machine_xt_z184_init(const machine_t *model)
|
||||
{
|
||||
int ret;
|
||||
lpt_t *lpt = NULL;
|
||||
int ret;
|
||||
|
||||
ret = bios_load_linear("roms/machines/zdsupers/z184m v3.1d.10d",
|
||||
0x000f8000, 32768, 0);
|
||||
@@ -142,9 +143,11 @@ machine_xt_z184_init(const machine_t *model)
|
||||
if (fdc_current[0] == FDC_INTERNAL)
|
||||
device_add(&fdc_xt_device);
|
||||
|
||||
lpt1_remove(); /* only one parallel port */
|
||||
lpt2_remove();
|
||||
lpt1_setup(LPT2_ADDR);
|
||||
lpt = device_add_inst(&lpt_port_device, 1);
|
||||
lpt_port_remove(lpt);
|
||||
lpt_port_setup(lpt, LPT2_ADDR);
|
||||
lpt_set_next_inst(255);
|
||||
|
||||
device_add(&ns8250_device);
|
||||
/* So that serial_standalone_init() won't do anything. */
|
||||
serial_set_next_inst(SERIAL_MAX - 1);
|
||||
@@ -183,7 +186,8 @@ machine_xt_z151_init(const machine_t *model)
|
||||
int
|
||||
machine_xt_z159_init(const machine_t *model)
|
||||
{
|
||||
int ret;
|
||||
lpt_t *lpt = NULL;
|
||||
int ret;
|
||||
|
||||
ret = bios_load_linear("roms/machines/zdsz159/z159m v2.9e.10d",
|
||||
0x000f8000, 32768, 0);
|
||||
@@ -197,9 +201,10 @@ machine_xt_z159_init(const machine_t *model)
|
||||
device_add(&fdc_xt_tandy_device);
|
||||
|
||||
/* parallel port is on the memory board */
|
||||
lpt1_remove(); /* only one parallel port */
|
||||
lpt2_remove();
|
||||
lpt1_setup(LPT2_ADDR);
|
||||
lpt = device_add_inst(&lpt_port_device, 1);
|
||||
lpt_port_remove(lpt);
|
||||
lpt_port_setup(lpt, LPT2_ADDR);
|
||||
lpt_set_next_inst(255);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user