Changeset 70614 in vbox
- Timestamp:
- Jan 17, 2018 7:39:40 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Parallel/DevParallel.cpp
r69500 r70614 718 718 N_("Configuration error: Failed to get the \"IOBase\" value")); 719 719 720 int port_count = (pThis->IOBase == 0x3BC) ? 4 : 8; 720 721 /* 721 722 * Register the I/O ports and saved state. 722 723 */ 723 rc = PDMDevHlpIOPortRegister(pDevIns, pThis->IOBase, 8, 0,724 rc = PDMDevHlpIOPortRegister(pDevIns, pThis->IOBase, port_count, 0, 724 725 parallelIOPortWrite, parallelIOPortRead, 725 726 NULL, NULL, "Parallel"); … … 738 739 if (pThis->fGCEnabled) 739 740 { 740 rc = PDMDevHlpIOPortRegisterRC(pDevIns, pThis->IOBase, 8, 0, "parallelIOPortWrite",741 rc = PDMDevHlpIOPortRegisterRC(pDevIns, pThis->IOBase, port_count, 0, "parallelIOPortWrite", 741 742 "parallelIOPortRead", NULL, NULL, "Parallel"); 742 743 if (RT_FAILURE(rc)) … … 744 745 745 746 #if 0 746 rc = PDMDevHlpIOPortRegisterGC(pDevIns, io_base+0x400, 8, 0, "parallelIOPortWriteECP",747 rc = PDMDevHlpIOPortRegisterGC(pDevIns, io_base+0x400, port_count, 0, "parallelIOPortWriteECP", 747 748 "parallelIOPortReadECP", NULL, NULL, "Parallel Ecp"); 748 749 if (RT_FAILURE(rc)) … … 753 754 if (pThis->fR0Enabled) 754 755 { 755 rc = PDMDevHlpIOPortRegisterR0(pDevIns, pThis->IOBase, 8, 0, "parallelIOPortWrite",756 rc = PDMDevHlpIOPortRegisterR0(pDevIns, pThis->IOBase, port_count, 0, "parallelIOPortWrite", 756 757 "parallelIOPortRead", NULL, NULL, "Parallel"); 757 758 if (RT_FAILURE(rc))
Note:
See TracChangeset
for help on using the changeset viewer.