Changeset 62618 in vbox for trunk/src/VBox/Devices/Parallel
- Timestamp:
- Jul 28, 2016 11:23:36 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Parallel/DrvHostParallel.cpp
r62510 r62618 172 172 /** 173 173 * R0 mode function to write byte value to data port. 174 * 174 175 * @returns VBox status code. 175 176 * @param pDrvIns Driver instance. … … 186 187 187 188 /** 188 * R0 mode function to write byte value to parallel port control 189 * register.189 * R0 mode function to write byte value to parallel port control register. 190 * 190 191 * @returns VBox status code. 191 192 * @param pDrvIns Driver instance. … … 201 202 202 203 /** 203 * R0 mode function to ready byte value from the parallel port 204 * data register204 * R0 mode function to ready byte value from the parallel port data register. 205 * 205 206 * @returns VBox status code. 206 207 * @param pDrvIns Driver instance. 207 * @param u64Arg Not used. 208 */ 209 static int drvR0HostParallelReqRead(PPDMDRVINS pDrvIns, uint64_t u64Arg) 210 { 211 uint8_t u8Data; 208 */ 209 static int drvR0HostParallelReqRead(PPDMDRVINS pDrvIns) 210 { 212 211 PDRVHOSTPARALLEL pThis = PDMINS_2_DATA(pDrvIns, PDRVHOSTPARALLEL); 213 u 8Data = ASMInU8(pThis->u32LptAddr);212 uint8_t u8Data = ASMInU8(pThis->u32LptAddr); 214 213 LogFlowFunc(("read from data port=%#x val=%#x\n", pThis->u32LptAddr, u8Data)); 215 214 pThis->u8ReadIn = u8Data; … … 218 217 219 218 /** 220 * R0 mode function to ready byte value from the parallel port 221 * control register.219 * R0 mode function to ready byte value from the parallel port control register. 220 * 222 221 * @returns VBox status code. 223 222 * @param pDrvIns Driver instance. 224 * @param u64Arg Not used. 225 */ 226 static int drvR0HostParallelReqReadControl(PPDMDRVINS pDrvIns, uint64_t u64Arg) 227 { 228 uint8_t u8Data; 223 */ 224 static int drvR0HostParallelReqReadControl(PPDMDRVINS pDrvIns) 225 { 229 226 PDRVHOSTPARALLEL pThis = PDMINS_2_DATA(pDrvIns, PDRVHOSTPARALLEL); 230 u 8Data = ASMInU8(pThis->u32LptAddrControl);227 uint8_t u8Data = ASMInU8(pThis->u32LptAddrControl); 231 228 LogFlowFunc(("read from ctrl port=%#x val=%#x\n", pThis->u32LptAddr, u8Data)); 232 229 pThis->u8ReadInControl = u8Data; … … 235 232 236 233 /** 237 * R0 mode function to ready byte value from the parallel port 238 * status register.234 * R0 mode function to ready byte value from the parallel port status register. 235 * 239 236 * @returns VBox status code. 240 237 * @param pDrvIns Driver instance. 241 * @param u64Arg Not used. 242 */ 243 static int drvR0HostParallelReqReadStatus(PPDMDRVINS pDrvIns, uint64_t u64Arg) 244 { 245 uint8_t u8Data; 238 */ 239 static int drvR0HostParallelReqReadStatus(PPDMDRVINS pDrvIns) 240 { 246 241 PDRVHOSTPARALLEL pThis = PDMINS_2_DATA(pDrvIns, PDRVHOSTPARALLEL); 247 u 8Data = ASMInU8(pThis->u32LptAddrStatus);242 uint8_t u8Data = ASMInU8(pThis->u32LptAddrStatus); 248 243 LogFlowFunc(("read from status port=%#x val=%#x\n", pThis->u32LptAddr, u8Data)); 249 244 pThis->u8ReadInStatus = u8Data; … … 254 249 * R0 mode function to set the direction of parallel port - 255 250 * operate in bidirectional mode or single direction. 251 * 256 252 * @returns VBox status code. 257 253 * @param pDrvIns Driver instance. … … 291 287 { 292 288 case DRVHOSTPARALLELR0OP_READ: 293 rc = drvR0HostParallelReqRead(pDrvIns , u64Arg);289 rc = drvR0HostParallelReqRead(pDrvIns); 294 290 break; 295 291 case DRVHOSTPARALLELR0OP_READSTATUS: 296 rc = drvR0HostParallelReqReadStatus(pDrvIns , u64Arg);292 rc = drvR0HostParallelReqReadStatus(pDrvIns); 297 293 break; 298 294 case DRVHOSTPARALLELR0OP_READCONTROL: 299 rc = drvR0HostParallelReqReadControl(pDrvIns , u64Arg);295 rc = drvR0HostParallelReqReadControl(pDrvIns); 300 296 break; 301 297 case DRVHOSTPARALLELR0OP_WRITE:
Note:
See TracChangeset
for help on using the changeset viewer.