Changeset 92523 in vbox for trunk/include
- Timestamp:
- Nov 20, 2021 11:35:37 PM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 148398
- Location:
- trunk/include/VBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/VMMDevTesting.h
r92258 r92523 40 40 41 41 /** The base address of the MMIO range used for testing. 42 * This is intentionally put at the 2nd page above 1M so that it can be 43 * accessed from both real (!A20) and protected mode. */ 44 #define VMMDEV_TESTING_MMIO_BASE UINT32_C(0x00101000) 42 * @remarks This used to be at 0x101000 but moved to 0xdf000 so that it would 43 * work better with prototype NEM code. This also means enabling A20 44 * is not a requirement. */ 45 #define VMMDEV_TESTING_MMIO_BASE UINT32_C(0x000df000) 45 46 /** The size of the MMIO range used for testing. */ 46 47 #define VMMDEV_TESTING_MMIO_SIZE UINT32_C(0x00001000) … … 66 67 #define VMMDEV_TESTING_MMIO_READBACK_R3 (VMMDEV_TESTING_MMIO_BASE + VMMDEV_TESTING_MMIO_OFF_READBACK_R3) 67 68 68 /** The real mode selector to use. 69 * @remarks Requires that the A20 gate is enabled. */ 70 #define VMMDEV_TESTING_MMIO_RM_SEL 0xffff 69 /** The real mode selector to use. */ 70 #define VMMDEV_TESTING_MMIO_RM_SEL 0xdf00 71 71 /** Calculate the real mode offset of a MMIO register. */ 72 #define VMMDEV_TESTING_MMIO_RM_OFF(val) ((val) - 0xffff0)72 #define VMMDEV_TESTING_MMIO_RM_OFF(val) ((val) - VMMDEV_TESTING_MMIO_BASE) 73 73 /** Calculate the real mode offset of a MMIO register offset. */ 74 #define VMMDEV_TESTING_MMIO_RM_OFF2(off) ((off) + 16 + 0x1000)74 #define VMMDEV_TESTING_MMIO_RM_OFF2(off) (off) 75 75 76 76 /** The base port of the I/O range used for testing. */ -
trunk/include/VBox/VMMDevTesting.mac
r82968 r92523 29 29 %ifndef RT_WITHOUT_PRAGMA_ONCE 30 30 %endif 31 %define VMMDEV_TESTING_MMIO_BASE 0x00 10100031 %define VMMDEV_TESTING_MMIO_BASE 0x000df000 32 32 %define VMMDEV_TESTING_MMIO_SIZE 0x00001000 33 33 %define VMMDEV_TESTING_MMIO_OFF_NOP (0x000) … … 40 40 %define VMMDEV_TESTING_MMIO_READBACK (VMMDEV_TESTING_MMIO_BASE + VMMDEV_TESTING_MMIO_OFF_READBACK) 41 41 %define VMMDEV_TESTING_MMIO_READBACK_R3 (VMMDEV_TESTING_MMIO_BASE + VMMDEV_TESTING_MMIO_OFF_READBACK_R3) 42 %define VMMDEV_TESTING_MMIO_RM_SEL 0x ffff43 %define VMMDEV_TESTING_MMIO_RM_OFF(val) ((val) - 0xffff0)44 %define VMMDEV_TESTING_MMIO_RM_OFF2(off) ( (off) + 16 + 0x1000)42 %define VMMDEV_TESTING_MMIO_RM_SEL 0xdf00 43 %define VMMDEV_TESTING_MMIO_RM_OFF(val) ((val) - VMMDEV_TESTING_MMIO_BASE) 44 %define VMMDEV_TESTING_MMIO_RM_OFF2(off) (off) 45 45 %define VMMDEV_TESTING_IOPORT_BASE 0x0510 46 46 %define VMMDEV_TESTING_IOPORT_COUNT 0x0010
Note:
See TracChangeset
for help on using the changeset viewer.