Changeset 64276 in vbox for trunk/src/VBox/Devices/Serial/DevSerial.cpp
- Timestamp:
- Oct 14, 2016 11:16:06 AM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 111289
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Serial/DevSerial.cpp
r63690 r64276 856 856 * @callback_method_impl{FNIOMIOPORTOUT} 857 857 */ 858 PDMBOTHCBDECL(int) serialIOPortWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb)858 PDMBOTHCBDECL(int) serialIOPortWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT uPort, uint32_t u32, unsigned cb) 859 859 { 860 860 PDEVSERIAL pThis = PDMINS_2_DATA(pDevIns, PDEVSERIAL); … … 865 865 if (cb == 1) 866 866 { 867 Log2(("%s: port %#06x val %#04x\n", __FUNCTION__, Port, u32));868 rc = serial_ioport_write(pThis, Port, u32);867 Log2(("%s: port %#06x val %#04x\n", __FUNCTION__, uPort, u32)); 868 rc = serial_ioport_write(pThis, uPort, u32); 869 869 } 870 870 else 871 871 { 872 AssertMsgFailed((" Port=%#x cb=%d u32=%#x\n",Port, cb, u32));872 AssertMsgFailed(("uPort=%#x cb=%d u32=%#x\n", uPort, cb, u32)); 873 873 rc = VINF_SUCCESS; 874 874 } … … 881 881 * @callback_method_impl{FNIOMIOPORTIN} 882 882 */ 883 PDMBOTHCBDECL(int) serialIOPortRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32, unsigned cb)883 PDMBOTHCBDECL(int) serialIOPortRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT uPort, uint32_t *pu32, unsigned cb) 884 884 { 885 885 PDEVSERIAL pThis = PDMINS_2_DATA(pDevIns, PDEVSERIAL); … … 890 890 if (cb == 1) 891 891 { 892 *pu32 = serial_ioport_read(pThis, Port, &rc);893 Log2(("%s: port %#06x val %#04x\n", __FUNCTION__, Port, *pu32));892 *pu32 = serial_ioport_read(pThis, uPort, &rc); 893 Log2(("%s: port %#06x val %#04x\n", __FUNCTION__, uPort, *pu32)); 894 894 } 895 895 else
Note:
See TracChangeset
for help on using the changeset viewer.