VirtualBox

Ignore:
Timestamp:
Nov 6, 2014 12:57:32 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
96812
Message:

EFI: don't define ins/outs functions but use <iprt/asm-amd64-x86.h> instead to keep it compiable on Windows

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/EFI/Firmware/PcAtChipsetPkg/PciHostBridgeDxe/PciRootBridgeIo.c

    r53251 r53252  
    1414
    1515#include "PciHostBridge.h"
     16#ifdef VBOX
     17# define IN_RING3
     18# include <iprt/asm-amd64-x86.h>
     19#endif
    1620
    1721typedef struct {
     
    10031007      case EfiPciWidthFifoUint8:
    10041008        if (Write)
    1005           IoWriteBuffer8((UINTN)Address, Buffer, Count);
     1009          ASMOutStrU8((RTIOPORT)Address, (const uint8_t*)Buffer, (size_t)Count);
    10061010        else
    1007           IoReadBuffer8((UINTN)Address, Buffer, Count);
     1011          ASMInStrU8((RTIOPORT)Address, (uint8_t*)Buffer, (size_t)Count);
    10081012        break;
    10091013      case EfiPciWidthFifoUint16:
    10101014        if (Write)
    1011           IoWriteBuffer16((UINTN)Address, Buffer, Count);
     1015          ASMOutStrU16((RTIOPORT)Address, (const uint16_t*)Buffer, (size_t)Count);
    10121016        else
    1013           IoReadBuffer16((UINTN)Address, Buffer, Count);
     1017          ASMInStrU16((RTIOPORT)Address, (uint16_t*)Buffer, (size_t)Count);
    10141018        break;
    10151019      case EfiPciWidthFifoUint32:
    10161020        if (Write)
    1017           IoWriteBuffer32((UINTN)Address, Buffer, Count);
     1021          ASMOutStrU32((RTIOPORT)Address, (const uint32_t*)Buffer, (size_t)Count);
    10181022        else
    1019           IoReadBuffer32((UINTN)Address, Buffer, Count);
     1023          ASMInStrU32((RTIOPORT)Address, (uint32_t*)Buffer, (size_t)Count);
    10201024        break;
    10211025      default:
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