VirtualBox

Ignore:
Timestamp:
Jan 7, 2009 10:00:53 PM (16 years ago)
Author:
vboxsync
Message:

AHCI/ATA: rework VPD handling code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/testcase/tstDeviceStructSizeGC.cpp

    r15710 r15846  
    698698    GEN_CHECK_OFF(ATADevState, pControllerR0);
    699699    GEN_CHECK_OFF(ATADevState, pControllerRC);
    700     GEN_CHECK_OFF(ATADevState, abSerialNumber);
    701     GEN_CHECK_OFF(ATADevState, abSerialNumber[19]);
    702     GEN_CHECK_OFF(ATADevState, abFirmwareRevision);
    703     GEN_CHECK_OFF(ATADevState, abFirmwareRevision[7]);
    704     GEN_CHECK_OFF(ATADevState, abModelNumber);
    705     GEN_CHECK_OFF(ATADevState, abModelNumber[39]);
     700    GEN_CHECK_OFF(ATADevState, achSerialNumber);
     701    GEN_CHECK_OFF(ATADevState, achSerialNumber[ATA_SERIAL_NUMBER_LENGTH]);
     702    GEN_CHECK_OFF(ATADevState, achFirmwareRevision);
     703    GEN_CHECK_OFF(ATADevState, achFirmwareRevision[ATA_FIRMWARE_REVISION_LENGTH]);
     704    GEN_CHECK_OFF(ATADevState, achModelNumber);
     705    GEN_CHECK_OFF(ATADevState, achModelNumber[ATA_MODEL_NUMBER_LENGTH]);
    706706    GEN_CHECK_SIZE(ATATransferRequest);
    707707    GEN_CHECK_OFF(ATATransferRequest, iIf);
     
    11431143    GEN_CHECK_OFF(AHCIPort, fNotificationSend);
    11441144    GEN_CHECK_OFF(AHCIPort, fPortReset);
    1145     GEN_CHECK_OFF(AHCIPort, abSerialNumber);
    1146     GEN_CHECK_OFF(AHCIPort, abSerialNumber[19]);
    1147     GEN_CHECK_OFF(AHCIPort, abFirmwareRevision);
    1148     GEN_CHECK_OFF(AHCIPort, abFirmwareRevision[7]);
    1149     GEN_CHECK_OFF(AHCIPort, abModelNumber);
    1150     GEN_CHECK_OFF(AHCIPort, abModelNumber[39]);
     1145    GEN_CHECK_OFF(AHCIPort, achSerialNumber);
     1146    GEN_CHECK_OFF(AHCIPort, achSerialNumber[AHCI_SERIAL_NUMBER_LENGTH]); /* One additional byte for the termination.*/
     1147    GEN_CHECK_OFF(AHCIPort, achFirmwareRevision);
     1148    GEN_CHECK_OFF(AHCIPort, achFirmwareRevision[AHCI_FIRMWARE_REVISION_LENGTH]); /* One additional byte for the termination.*/
     1149    GEN_CHECK_OFF(AHCIPort, achModelNumber);
     1150    GEN_CHECK_OFF(AHCIPort, achModelNumber[AHCI_MODEL_NUMBER_LENGTH]); /* One additional byte for the termination.*/
    11511151
    11521152    GEN_CHECK_SIZE(AHCI);
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