TEMU  4.4
The Terma Emulator
PCIeHelper.h File Reference
#include "temu-c/Support/Attributes.h"
#include "temu-c/Bus/PCIExpress.h"
#include <stdint.h>
Include dependency graph for PCIeHelper.h:

Go to the source code of this file.

Functions

TEMU_API void temu_writePCIeConfigRegister (temu_PCIExpressDevice *devConf, uint32_t offset, uint32_t value)
 
TEMU_API temu_Propval temu_readPCIeConfigRegister (temu_PCIExpressDevice *DevConf, uint32_t offset)
 
TEMU_API void temu_pciExpressDeviceRegister (temu_Class *C)
 
TEMU_API void temu_pciExpressBridgeRegister (temu_Class *C)
 
TEMU_API void temu_pciExpressBusRegister (temu_Class *C)
 

Function Documentation

◆ temu_pciExpressBridgeRegister()

TEMU_API void temu_pciExpressBridgeRegister ( temu_Class C)

◆ temu_pciExpressBusRegister()

TEMU_API void temu_pciExpressBusRegister ( temu_Class C)

◆ temu_pciExpressDeviceRegister()

TEMU_API void temu_pciExpressDeviceRegister ( temu_Class C)

◆ temu_readPCIeConfigRegister()

TEMU_API temu_Propval temu_readPCIeConfigRegister ( temu_PCIExpressDevice DevConf,
uint32_t  offset 
)

Read register value from PCIe configuration

Parameters
DevConfPCIe configuration
offsetregister offset in memory map.
Returns
return register value.

◆ temu_writePCIeConfigRegister()

TEMU_API void temu_writePCIeConfigRegister ( temu_PCIExpressDevice devConf,
uint32_t  offset,
uint32_t  value 
)

Write value to PCIe config to the register with given offset.

Parameters
devConfPCIe configuration
offsetregister offset in memory map.
valuenew value fot the register