Add files via upload

This commit is contained in:
Ompronce
2021-09-18 22:01:13 -04:00
committed by GitHub
parent c3cfc40005
commit e8908ee1b4

View File

@@ -802,7 +802,6 @@ es1371_outb(uint16_t port, uint8_t val, void *p)
Addressable as byte, word, longword */
case 0x18:
dev->legacy_ctrl |= LEGACY_INT;
// nmi = 0;
break;
case 0x1a:
old_legacy_ctrl = dev->legacy_ctrl;
@@ -879,7 +878,6 @@ es1371_outw(uint16_t port, uint16_t val, void *p)
Addressable as byte, word, longword */
case 0x18:
dev->legacy_ctrl |= LEGACY_INT;
// nmi = 0;
break;
case 0x1a:
old_legacy_ctrl = dev->legacy_ctrl;
@@ -1032,7 +1030,6 @@ es1371_outl(uint16_t port, uint32_t val, void *p)
old_legacy_ctrl = dev->legacy_ctrl;
dev->legacy_ctrl = (dev->legacy_ctrl & 0x0000ffff) | (val & 0xffff0000);
dev->legacy_ctrl |= LEGACY_INT;
// nmi = 0;
es1371_update_irqs(dev);
update_legacy(dev, old_legacy_ctrl);
break;
@@ -1239,17 +1236,17 @@ update_legacy(es1371_t *dev, uint32_t old_legacy_ctrl)
if (old_legacy_ctrl & LEGACY_CAPTURE_CODEC) {
switch ((old_legacy_ctrl >> LEGACY_CODEC_ADDR_SHIFT) & 3) {
case 0:
io_removehandler(0x5300, 0x0080,
io_removehandler(0x0530, 0x0008,
capture_read_codec, NULL, NULL,
capture_write_codec, NULL, NULL, dev);
break;
case 2:
io_removehandler(0xe800, 0x0080,
io_removehandler(0x0e80, 0x0008,
capture_read_codec, NULL, NULL,
capture_write_codec,NULL,NULL, dev);
break;
case 3:
io_removehandler(0xf400, 0x0080,
io_removehandler(0x0f40, 0x0008,
capture_read_codec, NULL, NULL,
capture_write_codec, NULL, NULL, dev);
break;
@@ -1326,17 +1323,17 @@ update_legacy(es1371_t *dev, uint32_t old_legacy_ctrl)
if (dev->legacy_ctrl & LEGACY_CAPTURE_CODEC) {
switch ((dev->legacy_ctrl >> LEGACY_CODEC_ADDR_SHIFT) & 3) {
case 0:
io_sethandler(0x5300, 0x0080,
io_sethandler(0x0530, 0x0008,
capture_read_codec, NULL, NULL,
capture_write_codec, NULL, NULL, dev);
break;
case 2:
io_sethandler(0xe800, 0x0080,
io_sethandler(0x0e80, 0x0008,
capture_read_codec, NULL, NULL,
capture_write_codec, NULL, NULL, dev);
break;
case 3:
io_sethandler(0xf400, 0x0080,
io_sethandler(0x0f40, 0x0008,
capture_read_codec, NULL, NULL,
capture_write_codec, NULL, NULL, dev);
break;