Make POST card PCjr detection a little more specific
This commit is contained in:
@@ -94,7 +94,7 @@ postcard_reset(void)
|
|||||||
static void
|
static void
|
||||||
postcard_write(uint16_t port, uint8_t val, void *priv)
|
postcard_write(uint16_t port, uint8_t val, void *priv)
|
||||||
{
|
{
|
||||||
if (postcard_written && val == postcard_code)
|
if (postcard_written && (val == postcard_code))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
postcard_prev_code = postcard_code;
|
postcard_prev_code = postcard_code;
|
||||||
@@ -117,7 +117,7 @@ postcard_init(const device_t *info)
|
|||||||
postcard_port = 0x190; /* ISA PS/2 machines */
|
postcard_port = 0x190; /* ISA PS/2 machines */
|
||||||
else if (strstr(machines[machine].name, " IBM XT "))
|
else if (strstr(machines[machine].name, " IBM XT "))
|
||||||
postcard_port = 0x60; /* IBM XT */
|
postcard_port = 0x60; /* IBM XT */
|
||||||
else if (strstr(machines[machine].name, "PCjr"))
|
else if (strstr(machines[machine].name, " IBM PCjr"))
|
||||||
postcard_port = 0x10; /* IBM PCjr */
|
postcard_port = 0x10; /* IBM PCjr */
|
||||||
else if (strstr(machines[machine].name, " Compaq ") && !(machines[machine].flags & MACHINE_PCI))
|
else if (strstr(machines[machine].name, " Compaq ") && !(machines[machine].flags & MACHINE_PCI))
|
||||||
postcard_port = 0x84; /* ISA Compaq machines */
|
postcard_port = 0x84; /* ISA Compaq machines */
|
||||||
|
Reference in New Issue
Block a user