VirtualBox

Changeset 16228 in vbox


Ignore:
Timestamp:
Jan 26, 2009 1:11:42 PM (16 years ago)
Author:
vboxsync
Message:

OVF: handle IDE controllers

Location:
trunk/src/VBox/Main
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ApplianceImpl.cpp

    r16224 r16228  
    125125{
    126126    uint32_t             idController;           // instance ID (Item/InstanceId); this gets referenced from HardDisk
    127     ControllerSystemType controllerSystem;       // @todo: figure out of OVF (IDE;SATA;SCSI)
    128     string               strControllerType;      // controller type (Item/ResourceSubType); e.g. "LsiLogic"
     127    ControllerSystemType controllerSystem;       // one of IDE, SATA, SCSI
     128    string               strControllerType;      // controller type (Item/ResourceSubType); e.g. "LsiLogic"; can be empty (esp. for IDE)
     129    string               strAddress;             // for IDE
     130    uint32_t             ulBusNumber;            // for IDE
     131
     132    HardDiskController()
     133        : idController(0),
     134          ulBusNumber(0)
     135    {
     136    }
    129137};
    130138
     
    585593                    break;
    586594
     595                    case OVFResourceType_IdeController:          // 5       IdeController
     596                    {
     597                        /*  <Item>
     598                                <rasd:Caption>ideController0</rasd:Caption>
     599                                <rasd:Description>IDE Controller</rasd:Description>
     600                                <rasd:InstanceId>5</rasd:InstanceId>
     601                                <rasd:ResourceType>5</rasd:ResourceType>
     602                                <rasd:Address>0</rasd:Address>
     603                                <rasd:BusNumber>0</rasd:BusNumber>
     604                            </Item> */
     605                        HardDiskController hdc;
     606                        hdc.idController = i.ulInstanceID;
     607                        hdc.controllerSystem = IDE;
     608                        hdc.strAddress = i.strAddress;
     609                        hdc.ulBusNumber = i.ulBusNumber;
     610
     611                        d.mapControllers[i.ulInstanceID] = hdc;
     612                    }
     613
    587614                    case OVFResourceType_ParallelScsiHba:        // 6       SCSI controller
    588615                    {
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r16222 r16228  
    28602860    <const name="Processor" value="3" />
    28612861    <const name="Memory" value="4" />
    2862     <const name="IdeCController" value="5" />
     2862    <const name="IdeController" value="5" />
    28632863    <const name="ParallelScsiHba" value="6" />
    28642864    <const name="FcHba" value="7" />
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