GRLIB GRPCI2 Model
The GRPCI2 model is available in the GrPci2 plugin.
@GRPCI2 Reference
GRPCI2 Reference
Properties
Name | Type | Description |
---|---|---|
AHB2PCI |
uint32_t |
AHB to PCI mapping for PCI I/O |
AHBM2PCI |
[uint32_t; 16] |
DMA channel active |
BCIM |
uint32_t |
PCI master prefetch burst limit |
CTRL |
uint32_t |
Control register |
Class |
*void |
Class object |
Component |
*void |
Pointer to component object if part of component |
DMABASE |
uint32_t |
DMA descriptor base address |
DMACHAN |
uint32_t |
DMA channel active |
DMACTRL |
uint32_t |
GRPCI2 DMA control and status register |
LoggingFlags |
uint64_t |
Flags for logging info |
Name |
*char |
Object name |
PCI2AHB |
[uint32_t; 6] |
DMA channel active |
STATCAP |
uint32_t |
Status and Capability register |
TimeSource |
*void |
Time source object |
ioMem |
temu_IfaceRef/ <unknown> |
PCI I/O space object |
irqCtrl |
temu_IfaceRef/ <unknown> |
Upward interrupt controller (i.e. on AMBA bus) |
pciBus |
*void |
PCI bus object |
pciDevices |
temu_IfaceRefArray |
PCI devices |
pciMem |
temu_IfaceRef/ <unknown> |
PCI memory space object |
Interfaces
Name | Type | Description |
---|---|---|
ApbIface |
ApbIface |
APB P&P interface |
ConfigAccessIface |
MemAccessIface |
PCI config access interface. |
IrqIface |
IrqCtrlIface |
PCI IRQ interface |
MemAccessIface |
MemAccessIface |
Memory access interface (registers) |
PCIBridgeIface |
temu::PCIBridgeIface |
PCI bridge interface. |
Registers
Register support is currently experimental! |
Register Bank default
Register AHB2PCI
- Description
-
AHB to PCI mapping for PCI I/O
- Reset value
-
0x00000000
- Warm reset mask
-
0x00000000
Field | Mask | Reset | Description |
---|---|---|---|
- |
- |
- |
- |
Register AHBM2PCI
- Description
-
DMA channel active
- Reset value
-
0x00000000
- Warm reset mask
-
0x00000000
Field | Mask | Reset | Description |
---|---|---|---|
- |
- |
- |
- |
Register BCIM
- Description
-
PCI master prefetch burst limit
- Reset value
-
0x000000ff
- Warm reset mask
-
0xffff00ff
Field | Mask | Reset | Description |
---|---|---|---|
AHB_master_unmask |
|
|
Limit prefetch burst |
burst_length |
|
|
Max number of beats / burst |
Register CTRL
- Description
-
Control register
- Reset value
-
0x00000000
- Warm reset mask
-
0xefff0fff
Field | Mask | Reset | Description |
---|---|---|---|
RE |
|
|
Reset |
MR |
|
|
Master Reset |
TR |
|
|
Target Reset |
SI |
|
|
System Error Interrupt Enable |
PE |
|
|
Parity Error |
ER |
|
|
Master / Target Error |
EI |
|
|
Master / Target Interrupt |
BusNumber |
|
|
Bus number for config cycles |
DFA |
|
|
DMA fair arbitration |
IB |
|
|
Burst I/O cycles |
CB |
|
|
Burst config cycles |
DIF |
|
|
Device Interrupt Force |
DeviceINTMask |
|
|
Device interrupt mask |
HostINTMask |
|
|
Host interrupt mask |
Register DMABASE
- Description
-
DMA descriptor base address
- Reset value
-
0x00000000
- Warm reset mask
-
0x00000000
Field | Mask | Reset | Description |
---|---|---|---|
- |
- |
- |
- |
Register DMACHAN
- Description
-
DMA channel active
- Reset value
-
0x00000000
- Warm reset mask
-
0x00000000
Field | Mask | Reset | Description |
---|---|---|---|
- |
- |
- |
- |
Register DMACTRL
- Description
-
GRPCI2 DMA control and status register
- Reset value
-
0x80000000
- Warm reset mask
-
0x800fffff
Field | Mask | Reset | Description |
---|---|---|---|
SAFE |
|
|
Arming of control field updates |
CHIRQ |
|
|
Channel IRQ status |
MA |
|
|
Master abort |
TA |
|
|
Target abort |
PE |
|
|
Parity error |
AE |
|
|
AHB data error |
DE |
|
|
Descriptor error |
NumDMAChans |
|
|
Number of DMA channels |
ACTIVE |
|
|
DMA is active |
DIS |
|
|
DMA disable |
IE |
|
|
Interrupt enable |
EN |
|
|
DMA enable |
Register PCI2AHB
- Description
-
DMA channel active
- Reset value
-
0x00000000
- Warm reset mask
-
0x00000000
Field | Mask | Reset | Description |
---|---|---|---|
- |
- |
- |
- |
Register STATCAP
- Description
-
Status and Capability register
- Reset value
-
0x00000000
- Warm reset mask
-
0x003ff000
Field | Mask | Reset | Description |
---|---|---|---|
Host |
|
|
Core allowed ot act as system host |
MST |
|
|
Master implemented |
TAR |
|
|
Target implemented |
DMA |
|
|
DMA implemented |
DI |
|
|
Device drives PCI INTA |
HI |
|
|
Device samples PCI INTA..D |
IRQmode |
|
|
APB IRQ mode |
Trace |
|
|
PCI trace buffer implemented |
FH |
|
|
Fake device in system slot |
CFGDO |
|
|
PCI config access done |
CFGER |
|
|
Error during PCI config access |
CoreInterruptStatus |
|
|
Interrupt status |
HostInterruptStatus |
|
|
Host interrupt status |
FDEPTH |
|
|
Words in each FIFO |
FNUM |
|
|
Number of FIFOs |