Changeset 48046 in vbox for trunk/src/VBox/Devices/PC/DevDMA.cpp
- Timestamp:
- Aug 25, 2013 8:05:45 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/DevDMA.cpp
r46499 r48046 180 180 }; 181 181 182 /* DMA transfer types. */ 183 enum { 184 DTYPE_VERIFY, /* Verify transfer type. */ 185 DTYPE_WRITE, /* Write transfer type. */ 186 DTYPE_READ, /* Read transfer type. */ 187 DTYPE_ILLEGAL /* Undefined. */ 188 }; 189 182 190 /* Convert DMA channel number (0-7) to controller number (0-1). */ 183 191 #define DMACH2C(c) (c < 4 ? 0 : 1) … … 197 205 /* Test the auto-init bit of mode register. */ 198 206 #define IS_MODE_AI(c) ((c) & 0x10) 207 /* Extract the transfer type bits of mode register. */ 208 #define GET_MODE_XTYP(c)(((c) & 0x0c) >> 2) 199 209 200 210 /* Perform a master clear (reset) on a DMA controller. */ … … 702 712 703 713 LogFlow(("dmaWriteMemory: pThis=%p uChannel=%u pvBuffer=%p off=%u cbBlock=%u\n", pThis, uChannel, pvBuffer, off, cbBlock)); 714 if (GET_MODE_XTYP(ch->u8Mode) == DTYPE_VERIFY) 715 { 716 Log(("DMA verify transfer, ignoring write.\n")); 717 return cbBlock; 718 } 719 704 720 PDMCritSectEnter(pDevIns->pCritSectRoR3, VERR_IGNORED); 705 721
Note:
See TracChangeset
for help on using the changeset viewer.