VirtualBox

Changeset 80963 in vbox


Ignore:
Timestamp:
Sep 23, 2019 11:17:02 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
133550
Message:

DevPci*,PDM: Doxygen fixes. bugrefx:9218

Location:
trunk/src/VBox/Devices/Bus
Files:
2 edited

Legend:

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

    r80962 r80963  
    805805 * @callback_method_impl{FNIOMIOPORTNEWOUT, PCI address}
    806806 */
    807 static DECLCALLBACK(VBOXSTRICTRC) pciIOPortAddressWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb)
    808 {
    809     LogFunc(("Port=%#x u32=%#x cb=%d\n", Port, u32, cb));
    810     RT_NOREF2(Port, pvUser);
     807static DECLCALLBACK(VBOXSTRICTRC)
     808pciIOPortAddressWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT uPort, uint32_t u32, unsigned cb)
     809{
     810    LogFunc(("uPort=%#x u32=%#x cb=%d\n", uPort, u32, cb));
     811    RT_NOREF2(uPort, pvUser);
    811812    if (cb == 4)
    812813    {
     
    825826 * @callback_method_impl{FNIOMIOPORTNEWIN, PCI address}
    826827 */
    827 static DECLCALLBACK(VBOXSTRICTRC) pciIOPortAddressRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32, unsigned cb)
    828 {
    829     RT_NOREF2(Port, pvUser);
     828static DECLCALLBACK(VBOXSTRICTRC)
     829pciIOPortAddressRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT uPort, uint32_t *pu32, unsigned cb)
     830{
     831    RT_NOREF2(uPort, pvUser);
    830832    if (cb == 4)
    831833    {
     
    834836        *pu32 = pThis->uConfigReg;
    835837        PCI_UNLOCK(pDevIns);
    836         LogFunc(("Port=%#x cb=%d -> %#x\n", Port, cb, *pu32));
     838        LogFunc(("uPort=%#x cb=%d -> %#x\n", uPort, cb, *pu32));
    837839        return VINF_SUCCESS;
    838840    }
    839841    /* else: 440FX does "pass through to the bus" for other writes, what ever that means.
    840842     * Linux probes for cmd640 using byte writes/reads during ide init. We'll just ignore it. */
    841     LogFunc(("Port=%#x cb=%d VERR_IOM_IOPORT_UNUSED\n", Port, cb));
     843    LogFunc(("uPort=%#x cb=%d VERR_IOM_IOPORT_UNUSED\n", uPort, cb));
    842844    return VERR_IOM_IOPORT_UNUSED;
    843845}
     
    847849 * @callback_method_impl{FNIOMIOPORTNEWOUT, PCI data}
    848850 */
    849 static DECLCALLBACK(VBOXSTRICTRC) pciIOPortDataWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb)
    850 {
    851     LogFunc(("Port=%#x u32=%#x cb=%d\n", Port, u32, cb));
     851static DECLCALLBACK(VBOXSTRICTRC)
     852pciIOPortDataWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT uPort, uint32_t u32, unsigned cb)
     853{
     854    LogFunc(("uPort=%#x u32=%#x cb=%d\n", uPort, u32, cb));
    852855    NOREF(pvUser);
    853856    VBOXSTRICTRC rcStrict = VINF_SUCCESS;
    854     if (!(Port % cb))
     857    if (!(uPort % cb))
    855858    {
    856859        PCI_LOCK(pDevIns, VINF_IOM_R3_IOPORT_WRITE);
    857         rcStrict = pci_data_write(pDevIns, PDMINS_2_DATA(pDevIns, PDEVPCIROOT), Port, u32, cb);
     860        rcStrict = pci_data_write(pDevIns, PDMINS_2_DATA(pDevIns, PDEVPCIROOT), uPort, u32, cb);
    858861        PCI_UNLOCK(pDevIns);
    859862    }
    860863    else
    861         AssertMsgFailed(("Write to port %#x u32=%#x cb=%d\n", Port, u32, cb));
     864        AssertMsgFailed(("Write to port %#x u32=%#x cb=%d\n", uPort, u32, cb));
    862865    return rcStrict;
    863866}
     
    867870 * @callback_method_impl{FNIOMIOPORTNEWIN, PCI data}
    868871 */
    869 static DECLCALLBACK(VBOXSTRICTRC) pciIOPortDataRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32, unsigned cb)
     872static DECLCALLBACK(VBOXSTRICTRC)
     873pciIOPortDataRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT uPort, uint32_t *pu32, unsigned cb)
    870874{
    871875    NOREF(pvUser);
    872     if (!(Port % cb))
     876    if (!(uPort % cb))
    873877    {
    874878        PCI_LOCK(pDevIns, VINF_IOM_R3_IOPORT_READ);
    875         VBOXSTRICTRC rcStrict = pci_data_read(PDMINS_2_DATA(pDevIns, PDEVPCIROOT), Port, cb, pu32);
     879        VBOXSTRICTRC rcStrict = pci_data_read(PDMINS_2_DATA(pDevIns, PDEVPCIROOT), uPort, cb, pu32);
    876880        PCI_UNLOCK(pDevIns);
    877         LogFunc(("Port=%#x cb=%#x -> %#x (%Rrc)\n", Port, cb, *pu32, VBOXSTRICTRC_VAL(rcStrict)));
     881        LogFunc(("uPort=%#x cb=%#x -> %#x (%Rrc)\n", uPort, cb, *pu32, VBOXSTRICTRC_VAL(rcStrict)));
    878882        return rcStrict;
    879883    }
    880     AssertMsgFailed(("Read from port %#x cb=%d\n", Port, cb));
     884    AssertMsgFailed(("Read from port %#x cb=%d\n", uPort, cb));
    881885    return VERR_IOM_IOPORT_UNUSED;
    882886}
     
    888892 */
    889893static DECLCALLBACK(VBOXSTRICTRC)
    890 pciR3IOPortMagicPCIWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb)
    891 {
    892     RT_NOREF2(pvUser, Port);
    893     LogFunc(("Port=%#x u32=%#x cb=%d\n", Port, u32, cb));
     894pciR3IOPortMagicPCIWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT uPort, uint32_t u32, unsigned cb)
     895{
     896    RT_NOREF2(pvUser, uPort);
     897    LogFunc(("uPort=%#x u32=%#x cb=%d\n", uPort, u32, cb));
    894898    if (cb == 4)
    895899    {
    896         if (u32 == UINT32_C(19200509)) // Richard Adams
     900        if (u32 == UINT32_C(19200509)) // Richard Adams - Note! In decimal rather hex.
    897901        {
    898902            int rc = pciR3FakePCIBIOS(pDevIns);
     
    908912 */
    909913static DECLCALLBACK(VBOXSTRICTRC)
    910 pciR3IOPortMagicPCIRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32, unsigned cb)
    911 {
    912     RT_NOREF5(pDevIns, pvUser, Port, pu32, cb);
    913     LogFunc(("Port=%#x cb=%d VERR_IOM_IOPORT_UNUSED\n", Port, cb));
     914pciR3IOPortMagicPCIRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT uPort, uint32_t *pu32, unsigned cb)
     915{
     916    RT_NOREF5(pDevIns, pvUser, uPort, pu32, cb);
     917    LogFunc(("uPort=%#x cb=%d VERR_IOM_IOPORT_UNUSED\n", uPort, cb));
    914918    return VERR_IOM_IOPORT_UNUSED;
    915919}
  • trunk/src/VBox/Devices/Bus/DevPciIch9.cpp

    r80962 r80963  
    252252/**
    253253 * @callback_method_impl{FNIOMIOPORTNEWOUT,
    254  *                       Port I/O Handler for PCI address OUT operations.}
     254 *      Port I/O Handler for PCI address OUT operations.}
    255255 *
    256256 * Emulates writes to Configuration Address Port at 0CF8h for Configuration
     
    283283/**
    284284 * @callback_method_impl{FNIOMIOPORTNEWIN,
    285  *                       Port I/O Handler for PCI data IN operations.}
     285 *      Port I/O Handler for PCI data IN operations.}
    286286 *
    287287 * Emulates reads from Configuration Address Port at 0CF8h for Configuration
     
    363363/**
    364364 * @callback_method_impl{FNIOMIOPORTNEWOUT,
    365  *                       Port I/O Handler for PCI data OUT operations.
     365 *      Port I/O Handler for PCI data OUT operations.}
    366366 *
    367367 * Emulates writes to Configuration Data Port at 0CFCh for Configuration
     
    461461/**
    462462 * @callback_method_impl{FNIOMIOPORTNEWIN,
    463  *                       Port I/O Handler for PCI data IN operations.
     463 *      Port I/O Handler for PCI data IN operations.}
    464464 *
    465465 * Emulates reads from Configuration Data Port at 0CFCh for Configuration
     
    21092109 *
    21102110 * @returns Max subordinate bus number.
    2111  * @param   pPciRoot         Global device instance data used to generate unique bus numbers.
    2112  * @param   pBus             The PCI bus to initialize.
    2113  * @param   pbmUsed          Pointer to a 32-bit bitmap tracking which device
    2114  *                           (ranges) has been used.
    2115  * @param   uBusPrimary      The primary bus number the bus is connected to.
     2111 * @param   pDevIns         The device instance of the bus.
     2112 * @param   pPciRoot        Global device instance data used to generate unique bus numbers.
     2113 * @param   pBus            The PCI bus to initialize.
     2114 * @param   pbmUsed         Pointer to a 32-bit bitmap tracking which device
     2115 *                          (ranges) has been used.
     2116 * @param   uBusPrimary     The primary bus number the bus is connected to.
    21162117 */
    21172118static uint8_t ich9pciBiosInitBridgeTopology(PPDMDEVINS pDevIns, PDEVPCIROOT pPciRoot, PDEVPCIBUS pBus,
Note: See TracChangeset for help on using the changeset viewer.

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