VirtualBox

Changeset 33142 in vbox for trunk/src/VBox/Devices/Bus


Ignore:
Timestamp:
Oct 14, 2010 5:25:09 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
66674
Message:

PCI: new bus implementation can be used with IDE controller too

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Bus/DevPciIch9.cpp

    r33127 r33142  
    415415    return VINF_SUCCESS;
    416416}
    417 
    418417
    419418static int ich9pciDataRead(PPCIGLOBALS pGlobals, uint32_t addr, int len, uint32_t *pu32)
     
    13531352static uint32_t ich9pciConfigRead(PPCIGLOBALS pGlobals, uint8_t uBus, uint8_t uDevFn, uint32_t addr, uint32_t len)
    13541353{
    1355     uint32_t u32Val;
     1354    uint32_t   u32Val = 0xffffffff;
    13561355    PciAddress aPciAddr;
    13571356
     
    18621861} PciSlotAssignments[] = {
    18631862    {
    1864         "piix3ide", 1, 1 // do we really need it?
    1865     },
    1866     {
    18671863        "lan",      25, 0 /* LAN controller */
    18681864    },
     
    18731869        "i82801",   30, 0 /* Host Controller */
    18741870    },
     1871    /**
     1872     *  Please note, that for devices being functions, like we do here, device 0
     1873     *  must be multifunction, i.e. have header type 0x80. Our LPC device is.
     1874     *  Alternative approach is to assign separate slot to each device.
     1875     */
    18751876    {
    18761877        "lpc",      31, 0 /* Low Pin Count bus */
    18771878    },
    18781879    {
     1880        "piix3ide", 31, 1 /* IDE controller */
     1881    },
     1882#if 0
     1883    {
    18791884        "ahci",     31, 2 /* SATA controller */
    18801885    },
     1886#endif
    18811887    {
    18821888        "smbus",    31, 3 /* System Management Bus */
     
    19391945     * Find device position
    19401946     */
    1941     if (iDev < 0)
     1947    if (iDev < 0 || !strcmp(pszName, "piix3ide"))
    19421948    {
    19431949        iDev = assignPosition(pBus, pPciDev, pszName);
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