TEMU  4.4
The Terma Emulator
PCI.h File Reference
#include <assert.h>
#include <stdint.h>
#include <stdlib.h>
#include "temu-c/Bus/PCIDefines.h"
#include "temu-c/Memory/Memory.h"
#include "temu-c/Support/Logging.h"
#include "temu-c/Support/Objsys.h"
Include dependency graph for PCI.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  temu_PCIDeviceVTable
 
struct  temu_PCIConfig
 
struct  temu_PCIBusIface
 
struct  temu_PCIBridgeIface
 
struct  temu_PCIDeviceIface
 
struct  temu_PCIDevice
 

Macros

#define TEMU_PCI_CONFIG_BYTES   256
 
#define TEMU_PCIE_CONFIG_BYTES   4096
 
#define TEMU_PCI_CONFIG_WORDS   64
 
#define TEMU_PCIE_CONFIG_WORDS   1024
 
#define TEMU_PCI_BUS_IFACE_TYPE   "temu::PCIBusIface"
 
#define TEMU_PCI_BRIDGE_IFACE_TYPE   "temu::PCIBridgeIface"
 
#define TEMU_PCI_DEVICE_IFACE_TYPE   "temu::PCIDeviceIface"
 

Functions

TEMU_API void temu_pciSetConfig (temu_PCIConfig config, uint32_t offset, uint32_t size, uint32_t value)
 
TEMU_API uint32_t temu_pciGetConfig (temu_PCIConfig config, uint32_t offset, uint32_t size)
 

Macro Definition Documentation

◆ TEMU_PCI_BRIDGE_IFACE_TYPE

#define TEMU_PCI_BRIDGE_IFACE_TYPE   "temu::PCIBridgeIface"

◆ TEMU_PCI_BUS_IFACE_TYPE

#define TEMU_PCI_BUS_IFACE_TYPE   "temu::PCIBusIface"

◆ TEMU_PCI_CONFIG_BYTES

#define TEMU_PCI_CONFIG_BYTES   256

◆ TEMU_PCI_CONFIG_WORDS

#define TEMU_PCI_CONFIG_WORDS   64

◆ TEMU_PCI_DEVICE_IFACE_TYPE

#define TEMU_PCI_DEVICE_IFACE_TYPE   "temu::PCIDeviceIface"

◆ TEMU_PCIE_CONFIG_BYTES

#define TEMU_PCIE_CONFIG_BYTES   4096

◆ TEMU_PCIE_CONFIG_WORDS

#define TEMU_PCIE_CONFIG_WORDS   1024

Function Documentation

◆ temu_pciGetConfig()

TEMU_API uint32_t temu_pciGetConfig ( temu_PCIConfig  config,
uint32_t  offset,
uint32_t  size 
)

◆ temu_pciSetConfig()

TEMU_API void temu_pciSetConfig ( temu_PCIConfig  config,
uint32_t  offset,
uint32_t  size,
uint32_t  value 
)