- Timestamp:
- Apr 3, 2008 2:02:40 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 29260
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/IOMAll.cpp
r7601 r7724 33 33 #include <iprt/assert.h> 34 34 35 36 /*******************************************************************************37 * Global Variables *38 *******************************************************************************/39 40 /**41 * Array for fast recode of the operand size (1/2/4/8 bytes) to bit shift value.42 */43 static const unsigned g_aSize2Shift[] =44 {45 ~0, /* 0 - invalid */46 0, /* *1 == 2^0 */47 1, /* *2 == 2^1 */48 ~0, /* 3 - invalid */49 2, /* *4 == 2^2 */50 ~0, /* 5 - invalid */51 ~0, /* 6 - invalid */52 ~0, /* 7 - invalid */53 3 /* *8 == 2^3 */54 };55 56 /**57 * Macro for fast recode of the operand size (1/2/4/8 bytes) to bit shift value.58 */59 #define SIZE2SHIFT(cb) (g_aSize2Shift[cb])60 35 61 36 /** … … 716 691 * Reads an I/O port register. 717 692 * 718 * @returns Strict VBox status code. Informational status codes other than the one documented 693 * @returns Strict VBox status code. Informational status codes other than the one documented 719 694 * here are to be treated as internal failure. Use IOM_SUCCESS() to check for success. 720 695 * @retval VINF_SUCCESS Success. 721 * @retval VINF_EM_FIRST-VINF_EM_LAST Success with some exceptions (see IOM_SUCCESS()), the 696 * @retval VINF_EM_FIRST-VINF_EM_LAST Success with some exceptions (see IOM_SUCCESS()), the 722 697 * status code must be passed on to EM. 723 698 * @retval VINF_IOM_HC_IOPORT_READ Defer the read to ring-3. (R0/GC only) … … 859 834 * Reads the string buffer of an I/O port register. 860 835 * 861 * @returns Strict VBox status code. Informational status codes other than the one documented 836 * @returns Strict VBox status code. Informational status codes other than the one documented 862 837 * here are to be treated as internal failure. Use IOM_SUCCESS() to check for success. 863 838 * @retval VINF_SUCCESS Success. 864 * @retval VINF_EM_FIRST-VINF_EM_LAST Success with some exceptions (see IOM_SUCCESS()), the 839 * @retval VINF_EM_FIRST-VINF_EM_LAST Success with some exceptions (see IOM_SUCCESS()), the 865 840 * status code must be passed on to EM. 866 841 * @retval VINF_IOM_HC_IOPORT_READ Defer the read to ring-3. (R0/GC only) … … 876 851 #ifdef LOG_ENABLED 877 852 const RTGCUINTREG cTransfers = *pcTransfers; 878 #endif 853 #endif 879 854 #ifdef VBOX_WITH_STATISTICS 880 855 /* … … 985 960 * Writes to an I/O port register. 986 961 * 987 * @returns Strict VBox status code. Informational status codes other than the one documented 962 * @returns Strict VBox status code. Informational status codes other than the one documented 988 963 * here are to be treated as internal failure. Use IOM_SUCCESS() to check for success. 989 964 * @retval VINF_SUCCESS Success. 990 * @retval VINF_EM_FIRST-VINF_EM_LAST Success with some exceptions (see IOM_SUCCESS()), the 965 * @retval VINF_EM_FIRST-VINF_EM_LAST Success with some exceptions (see IOM_SUCCESS()), the 991 966 * status code must be passed on to EM. 992 967 * @retval VINF_IOM_HC_IOPORT_WRITE Defer the write to ring-3. (R0/GC only) … … 1106 1081 * Writes the string buffer of an I/O port register. 1107 1082 * 1108 * @returns Strict VBox status code. Informational status codes other than the one documented 1083 * @returns Strict VBox status code. Informational status codes other than the one documented 1109 1084 * here are to be treated as internal failure. Use IOM_SUCCESS() to check for success. 1110 1085 * @retval VINF_SUCCESS Success. 1111 * @retval VINF_EM_FIRST-VINF_EM_LAST Success with some exceptions (see IOM_SUCCESS()), the 1086 * @retval VINF_EM_FIRST-VINF_EM_LAST Success with some exceptions (see IOM_SUCCESS()), the 1112 1087 * status code must be passed on to EM. 1113 1088 * @retval VINF_IOM_HC_IOPORT_WRITE Defer the write to ring-3. (R0/GC only) … … 1123 1098 #ifdef LOG_ENABLED 1124 1099 const RTGCUINTREG cTransfers = *pcTransfers; 1125 #endif 1100 #endif 1126 1101 #ifdef VBOX_WITH_STATISTICS 1127 1102 /* … … 1232 1207 * level and I/O bitmap. 1233 1208 * 1234 * @returns Strict VBox status code. Informational status codes other than the one documented 1209 * @returns Strict VBox status code. Informational status codes other than the one documented 1235 1210 * here are to be treated as internal failure. 1236 1211 * @retval VINF_SUCCESS Success. … … 1327 1302 * IN <AL|AX|EAX>, <DX|imm16> 1328 1303 * 1329 * @returns Strict VBox status code. Informational status codes other than the one documented 1304 * @returns Strict VBox status code. Informational status codes other than the one documented 1330 1305 * here are to be treated as internal failure. Use IOM_SUCCESS() to check for success. 1331 1306 * @retval VINF_SUCCESS Success. 1332 * @retval VINF_EM_FIRST-VINF_EM_LAST Success with some exceptions (see IOM_SUCCESS()), the 1307 * @retval VINF_EM_FIRST-VINF_EM_LAST Success with some exceptions (see IOM_SUCCESS()), the 1333 1308 * status code must be passed on to EM. 1334 1309 * @retval VINF_IOM_HC_IOPORT_READ Defer the read to ring-3. (R0/GC only) … … 1386 1361 * OUT <DX|imm16>, <AL|AX|EAX> 1387 1362 * 1388 * @returns Strict VBox status code. Informational status codes other than the one documented 1363 * @returns Strict VBox status code. Informational status codes other than the one documented 1389 1364 * here are to be treated as internal failure. Use IOM_SUCCESS() to check for success. 1390 1365 * @retval VINF_SUCCESS Success. 1391 * @retval VINF_EM_FIRST-VINF_EM_LAST Success with some exceptions (see IOM_SUCCESS()), the 1366 * @retval VINF_EM_FIRST-VINF_EM_LAST Success with some exceptions (see IOM_SUCCESS()), the 1392 1367 * status code must be passed on to EM. 1393 1368 * @retval VINF_IOM_HC_IOPORT_WRITE Defer the write to ring-3. (R0/GC only)
Note:
See TracChangeset
for help on using the changeset viewer.