Round 2 of the clean-ups - AT vs. PS/2 KBC is now decided based on machine flags, reduces the chances of mismatch to zero.

This commit is contained in:
OBattler
2025-08-23 15:05:08 +02:00
parent 5204f44a4a
commit 467b6b8f77
21 changed files with 366 additions and 517 deletions

View File

@@ -904,14 +904,14 @@ pc87307_init(const device_t *info)
switch (info->local & PCX730X_KBC) {
case PCX730X_AMI:
default:
dev->kbc = device_add_params(&kbc_ps2_ami_device, (void *) 0x00003500);
dev->kbc = device_add_params(&kbc_at_ami_device, (void *) 0x00003500);
break;
/* Optiplex! */
case PCX730X_PHOENIX_42:
dev->kbc = device_add_params(&kbc_ps2_phoenix_device, (void *) 0x00013700);
dev->kbc = device_add_params(&kbc_at_phoenix_device, (void *) 0x00013700);
break;
case PCX730X_PHOENIX_42I:
dev->kbc = device_add_params(&kbc_ps2_phoenix_device, (void *) 0x00041600);
dev->kbc = device_add_params(&kbc_at_phoenix_device, (void *) 0x00041600);
break;
}