VirtualBox

Changeset 7724 in vbox for trunk/src


Ignore:
Timestamp:
Apr 3, 2008 2:02:40 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
29260
Message:

removed unused globals.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/IOMAll.cpp

    r7601 r7724  
    3333#include <iprt/assert.h>
    3434
    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])
    6035
    6136/**
     
    716691 * Reads an I/O port register.
    717692 *
    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
    719694 *          here are to be treated as internal failure. Use IOM_SUCCESS() to check for success.
    720695 * @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
    722697 *                                      status code must be passed on to EM.
    723698 * @retval  VINF_IOM_HC_IOPORT_READ     Defer the read to ring-3. (R0/GC only)
     
    859834 * Reads the string buffer of an I/O port register.
    860835 *
    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
    862837 *          here are to be treated as internal failure. Use IOM_SUCCESS() to check for success.
    863838 * @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
    865840 *                                      status code must be passed on to EM.
    866841 * @retval  VINF_IOM_HC_IOPORT_READ     Defer the read to ring-3. (R0/GC only)
     
    876851#ifdef LOG_ENABLED
    877852    const RTGCUINTREG cTransfers = *pcTransfers;
    878 #endif 
     853#endif
    879854#ifdef VBOX_WITH_STATISTICS
    880855    /*
     
    985960 * Writes to an I/O port register.
    986961 *
    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
    988963 *          here are to be treated as internal failure. Use IOM_SUCCESS() to check for success.
    989964 * @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
    991966 *                                      status code must be passed on to EM.
    992967 * @retval  VINF_IOM_HC_IOPORT_WRITE    Defer the write to ring-3. (R0/GC only)
     
    11061081 * Writes the string buffer of an I/O port register.
    11071082 *
    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
    11091084 *          here are to be treated as internal failure. Use IOM_SUCCESS() to check for success.
    11101085 * @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
    11121087 *                                      status code must be passed on to EM.
    11131088 * @retval  VINF_IOM_HC_IOPORT_WRITE    Defer the write to ring-3. (R0/GC only)
     
    11231098#ifdef LOG_ENABLED
    11241099    const RTGCUINTREG cTransfers = *pcTransfers;
    1125 #endif 
     1100#endif
    11261101#ifdef VBOX_WITH_STATISTICS
    11271102    /*
     
    12321207 * level and I/O bitmap.
    12331208 *
    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
    12351210 *          here are to be treated as internal failure.
    12361211 * @retval  VINF_SUCCESS                Success.
     
    13271302 * IN <AL|AX|EAX>, <DX|imm16>
    13281303 *
    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
    13301305 *          here are to be treated as internal failure. Use IOM_SUCCESS() to check for success.
    13311306 * @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
    13331308 *                                      status code must be passed on to EM.
    13341309 * @retval  VINF_IOM_HC_IOPORT_READ     Defer the read to ring-3. (R0/GC only)
     
    13861361 * OUT <DX|imm16>, <AL|AX|EAX>
    13871362 *
    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
    13891364 *          here are to be treated as internal failure. Use IOM_SUCCESS() to check for success.
    13901365 * @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
    13921367 *                                      status code must be passed on to EM.
    13931368 * @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.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette