Difference between revisions of "Unit BCM2838"
(18 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
---- | ---- | ||
− | '''Ultibo Definitions specific to the Broadcom 2838 System on | + | '''Ultibo Definitions specific to the Broadcom 2838 System on Chip unit''' |
The BCM2838 is the SoC used by the Raspberry Pi models 4B/400/CM4, it is often also referred to as the BCM2711 but for consistency with the earlier models we use that number for the core driver unit BCM2711. | The BCM2838 is the SoC used by the Raspberry Pi models 4B/400/CM4, it is often also referred to as the BCM2711 but for consistency with the earlier models we use that number for the core driver unit BCM2711. | ||
Line 12: | Line 12: | ||
---- | ---- | ||
− | ''To be | + | |
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 specific constants''' <code> BCM2838_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_CPU_COUNT = 4;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 ARM physical to VC legacy IO mapping''' <code> BCM2838_VCIO_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_VCIO_ALIAS = $7E000000;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 ARM physical to VC legacy bus mapping''' <code> BCM2838_VCBUS_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_VCBUS_0_ALIAS = $00000000;</code> | ||
+ | | style="width: 50%;"|0 Alias - L1 and L2 cached | ||
+ | |- | ||
+ | | <code>BCM2838_VCBUS_4_ALIAS = $40000000;</code> | ||
+ | | 4 Alias - L2 cache coherent (non allocating) | ||
+ | |- | ||
+ | | <code>BCM2838_VCBUS_8_ALIAS = $80000000;</code> | ||
+ | | 8 Alias - L2 cached (only) | ||
+ | |- | ||
+ | | <code>BCM2838_VCBUS_C_ALIAS = $C0000000;</code> | ||
+ | | C Alias - Direct uncached (Suitable for RPi 4 Model B) | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 physical memory addresses of BCM2838 peripheral''' <code> BCM2838_PERIPHERALS_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_PERIPHERALS_BASE = $FE000000;</code> | ||
+ | | style="width: 50%;"|Mapped to VC legacy address 7E000000 | ||
+ | |- | ||
+ | | <code>BCM2838_PERIPHERALS_SIZE = SIZE_16M + SIZE_8M;</code> | ||
+ | | 24M | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 physical memory addresses of BCM2838 extended peripheral (GENET, PCIe)''' <code> BCM2838_EXT_PERIPHERALS_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_EXT_PERIPHERALS_BASE = $FC000000;</code> | ||
+ | | style="width: 50%;"|Mapped to VC legacy address 7C000000 | ||
+ | |- | ||
+ | | <code>BCM2838_EXT_PERIPHERALS_SIZE = SIZE_32M;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 physical memory address of BCM2838 PCIe address space''' <code> BCM2838_PCI_ADDRESS_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_PCI_ADDRESS_BASE = $600000000;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 address of PCI outbound address space (Mapped to Physical PCIe address space)''' <code> BCM2838_PCI_OUTBOUND_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_PCI_OUTBOUND_BASE = $F8000000;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>BCM2838_PCI_OUTBOUND_SIZE = SIZE_64M;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 physical memory address of BCM2838 PCIe DMA range''' <code> BCM2838_PCI_DMA_RANGE_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_PCI_DMA_RANGE_BASE = $400000000;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 address of PCI inbound address space''' <code> BCM2838_PCI_INBOUND_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_PCI_INBOUND_BASE = $00000000;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>BCM2838_PCI_INBOUND_SIZE = SIZE_4G;</code> | ||
+ | | Limited to 3GB on some revisions | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 system timer''' <code> BCM2838_SYSTEM_TIMER_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_SYSTEM_TIMER_REGS_BASE = BCM2838_PERIPHERALS_BASE + $3000;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 DMA controller''' <code> BCM2838_DMA* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|Channels 0 to 14 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_DMA0_REGS_BASE = BCM2838_PERIPHERALS_BASE + $7000;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>BCM2838_DMA1_REGS_BASE = BCM2838_PERIPHERALS_BASE + $7100;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA2_REGS_BASE = BCM2838_PERIPHERALS_BASE + $7200;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA3_REGS_BASE = BCM2838_PERIPHERALS_BASE + $7300;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_REGS_BASE = BCM2838_PERIPHERALS_BASE + $7400;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA5_REGS_BASE = BCM2838_PERIPHERALS_BASE + $7500;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA6_REGS_BASE = BCM2838_PERIPHERALS_BASE + $7600;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA7_REGS_BASE = BCM2838_PERIPHERALS_BASE + $7700;</code> | ||
+ | | Lite DMA engine | ||
+ | |- | ||
+ | | <code>BCM2838_DMA8_REGS_BASE = BCM2838_PERIPHERALS_BASE + $7800;</code> | ||
+ | | Lite DMA engine | ||
+ | |- | ||
+ | | <code>BCM2838_DMA9_REGS_BASE = BCM2838_PERIPHERALS_BASE + $7900;</code> | ||
+ | | Lite DMA engine | ||
+ | |- | ||
+ | | <code>BCM2838_DMA10_REGS_BASE = BCM2838_PERIPHERALS_BASE + $7A00;</code> | ||
+ | | Lite DMA engine | ||
+ | |- | ||
+ | | <code>BCM2838_DMA11_REGS_BASE = BCM2838_PERIPHERALS_BASE + $7B00;</code> | ||
+ | | 40bit DMA engine (DMA channel 11 is able to access the PCIe interface) | ||
+ | |- | ||
+ | | <code>BCM2838_DMA12_REGS_BASE = BCM2838_PERIPHERALS_BASE + $7C00;</code> | ||
+ | | 40bit DMA engine | ||
+ | |- | ||
+ | | <code>BCM2838_DMA13_REGS_BASE = BCM2838_PERIPHERALS_BASE + $7D00;</code> | ||
+ | | 40bit DMA engine | ||
+ | |- | ||
+ | | <code>BCM2838_DMA14_REGS_BASE = BCM2838_PERIPHERALS_BASE + $7E00;</code> | ||
+ | | 40bit DMA engine | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_INT_STATUS_BASE = BCM2838_PERIPHERALS_BASE + $7FE0;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_ENABLE_BASE = BCM2838_PERIPHERALS_BASE + $7FF0;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 ARM legacy interrupt controller''' <code> BCM2838_INTERRUPT_REGS_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_INTERRUPT_REGS_BASE = BCM2838_PERIPHERALS_BASE + $B200;</code> | ||
+ | | style="width: 50%;"|Note: Documentation states 0xB000 but the offsets begin at 0x200 so 0xB200 will be correct | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 ARM timer''' <code> BCM2838_TIMER_REGS_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_TIMER_REGS_BASE = BCM2838_PERIPHERALS_BASE + $B400;</code> | ||
+ | | style="width: 50%;"|Note: Documentation states 0xB000 but the offsets begin at 0x400 so 0xB400 will be correct | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 ARM doorbell (VCHIQ)''' <code> BCM2838_DOORBELL_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_DOORBELL_REGS_BASE = BCM2838_PERIPHERALS_BASE + $B840;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>BCM2838_VCHIQ_REGS_BASE = BCM2838_DOORBELL_REGS_BASE;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 ARM mailbox 0''' <code> BCM2838_MAILBOX0_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_MAILBOX0_REGS_BASE = BCM2838_PERIPHERALS_BASE + $B880;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 ARM mailbox 1''' <code> BCM2838_MAILBOX1_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_MAILBOX1_REGS_BASE = BCM2838_PERIPHERALS_BASE + $B8A0;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 power management, reset controller and watchdog''' <code> BCM2838_PM_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_PM_REGS_BASE = BCM2838_PERIPHERALS_BASE + $100000;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 clock management''' <code> BCM2838_CM_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_CM_REGS_BASE = BCM2838_PERIPHERALS_BASE + $101000;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 PCM clock''' <code> BCM2838_PCM_CLOCK_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_PCM_CLOCK_BASE = BCM2838_PERIPHERALS_BASE + $101098;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 random number generator''' <code> BCM2838_RNG_REGS_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_RNG_REGS_BASE = BCM2838_PERIPHERALS_BASE + $104000;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 GPIO''' <code> BCM2838_GPIO_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_GPIO_REGS_BASE = BCM2838_PERIPHERALS_BASE + $200000;</code> | ||
+ | | style="width: 50%;"|This is shown in BCM2711 ARM Peripherals as 0x7E215000 which is thought to be an error | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 UART0 (PL011)''' <code> BCM2838_PL011_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_REGS_BASE = BCM2838_PERIPHERALS_BASE + $201000;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>BCM2838_UART0_REGS_BASE = BCM2838_PL011_REGS_BASE;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 UART2 (PL011)''' <code> BCM2838_UART2_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_UART2_REGS_BASE = BCM2838_PERIPHERALS_BASE + $201400;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 UART3 (PL011)''' <code> BCM2838_UART3_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_UART3_REGS_BASE = BCM2838_PERIPHERALS_BASE + $201600;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 UART4 (PL011)''' <code> BCM2838_UART4_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_UART4_REGS_BASE = BCM2838_PERIPHERALS_BASE + $201800;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 UART5 (PL011)''' <code> BCM2838_UART5_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_UART5_REGS_BASE = BCM2838_PERIPHERALS_BASE + $201A00;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | |colspan="2"|<code>BCM2838_UART0_REGS_BASES:array[0..5] of LongWord = (BCM2838_UART0_REGS_BASE, 0, BCM2838_UART2_REGS_BASE, BCM2838_UART3_REGS_BASE, BCM2838_UART4_REGS_BASE, BCM2838_UART5_REGS_BASE);</code> | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 EMMC1 (SDHOST)''' <code> BCM2838_EMMC1_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_EMMC1_REGS_BASE = BCM2838_PERIPHERALS_BASE + $202000;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>BCM2838_SDHOST_REGS_BASE = BCM2838_EMMC1_REGS_BASE;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 PCM/I2S audio''' <code> BCM2838_PCM_REGS_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_PCM_REGS_BASE = BCM2838_PERIPHERALS_BASE + $203000;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 SPI0''' <code> BCM2838_SPI0_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_SPI0_REGS_BASE = BCM2838_PERIPHERALS_BASE + $204000;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 SPI3''' <code> BCM2838_SPI3_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_SPI3_REGS_BASE = BCM2838_PERIPHERALS_BASE + $204600;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 SPI4''' <code> BCM2838_SPI4_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_SPI4_REGS_BASE = BCM2838_PERIPHERALS_BASE + $204800;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 SPI5''' <code> BCM2838_SPI5_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_SPI5_REGS_BASE = BCM2838_PERIPHERALS_BASE + $204A00;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 SPI6''' <code> BCM2838_SPI6_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_SPI6_REGS_BASE = BCM2838_PERIPHERALS_BASE + $204C00;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | |colspan="2"|<code>BCM2838_SPI0_REGS_BASES:array[0..6] of LongWord = (BCM2838_SPI0_REGS_BASE, 0, 0, BCM2838_SPI3_REGS_BASE, BCM2838_SPI4_REGS_BASE, BCM2838_SPI5_REGS_BASE, BCM2838_SPI6_REGS_BASE);</code> | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 peripheral control''' <code> BCM2838_PACTL_CS* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_PACTL_CS_REGS_BASE = BCM2838_PERIPHERALS_BASE + $204E00;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 BSC0 (I2C0) (Broadcom Serial Controller)''' <code> BCM2838_BSC0_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_BSC0_REGS_BASE = BCM2838_PERIPHERALS_BASE + $205000;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>BCM2838_I2C0_REGS_BASE = BCM2838_BSC0_REGS_BASE;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 I2C3''' <code> BCM2838_I2C3_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_I2C3_REGS_BASE = BCM2838_PERIPHERALS_BASE + $205600;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 I2C4''' <code> BCM2838_I2C4_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_I2C4_REGS_BASE = BCM2838_PERIPHERALS_BASE + $205800;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 I2C5''' <code> BCM2838_I2C5_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_I2C5_REGS_BASE = BCM2838_PERIPHERALS_BASE + $205A00;</code> | ||
+ | | style="width: 50%;"|Note: This is shown in BCM2711 ARM Peripherals as 0x7E205A80 which is thought to be an error | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 I2C6''' <code> BCM2838_I2C6_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_I2C6_REGS_BASE = BCM2838_PERIPHERALS_BASE + $205C00;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 I2C7''' <code> BCM2838_I2C7_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|Note: I2C7 master is used dedicated with the HDMI interface and must not be used | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_I2C7_REGS_BASE = BCM2838_PERIPHERALS_BASE + $205E00;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 pixel valve''' <code> BCM2838_PIXELVALVE0_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_PIXELVALVE0_REGS_BASE = BCM2838_PERIPHERALS_BASE + $206000;</code> | ||
+ | | style="width: 50%;"|Pixel Valve 0 | ||
+ | |- | ||
+ | | <code>BCM2838_PIXELVALVE1_REGS_BASE = BCM2838_PERIPHERALS_BASE + $207000;</code> | ||
+ | | Pixel Valve 1 | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 DPI (Display Parallel Interface)''' <code> BCM2838_DPI_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_DPI_REGS_BASE = BCM2838_PERIPHERALS_BASE + $208000;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 DSI0 (Display Serial Interface)''' <code> BCM2838_DSI0_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_DSI0_REGS_BASE = BCM2838_PERIPHERALS_BASE + $209000;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''I2C/SPI slave DR (Data) register''' <code> BCM2838_I2CSPI_DR_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See Section 11.2 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_DR_RXFLEVEL_MASK = ($1F shl 27);</code> | ||
+ | | RX FIFO Level | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_DR_RXFLEVEL_SHIFT = 27;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_DR_TXFLEVEL_MASK = ($1F shl 22);</code> | ||
+ | | TX FIFO Level | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_DR_TXFLEVEL_SHIFT = 22;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_DR_RXBUSY = (1 shl 21);</code> | ||
+ | | Receive Busy | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_DR_TXFE = (1 shl 20);</code> | ||
+ | | TX FIFO Empty | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_DR_RXFF = (1 shl 19);</code> | ||
+ | | RX FIFO Full | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_DR_TXFF = (1 shl 18);</code> | ||
+ | | TX FIFO Full | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_DR_RXFE = (1 shl 17);</code> | ||
+ | | RX FIFO Empty | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_DR_TXBUSY = (1 shl 16);</code> | ||
+ | | Transmit Busy | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_DR_UE = (1 shl 9);</code> | ||
+ | | TX Underrun Error | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_DR_OE = (1 shl 8);</code> | ||
+ | | RX Overrun Error | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_DR_DATA_MASK = ($FF shl 0);</code> | ||
+ | | Received/Transferred data | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''I2C/SPI slave RSR (Status) register''' <code> BCM2838_I2CSPI_RSR_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See Section 11.2 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_RSR_UE = (1 shl 1);</code> | ||
+ | | TX Underrun Error | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_RSR_OE = (1 shl 0);</code> | ||
+ | | RX Overrun Error | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''I2C/SPI slave SLV (Slave) register''' <code> BCM2838_I2CSPI_SLV_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See Section 11.2 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_SLV_ADDR_MASK = ($7F shl 0);</code> | ||
+ | | I2C Slave Address | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''I2C/SPI slave CR (Control) register''' <code> BCM2838_I2CSPI_CR_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See Section 11.2 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_CR_INV_TXF = (1 shl 13);</code> | ||
+ | | Inverse TX status flags | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_CR_TESTFIFO = (1 shl 11);</code> | ||
+ | | TEST FIFO | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_CR_INV_RXF = (1 shl 10);</code> | ||
+ | | Inverse RX status flags | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_CR_RXE = (1 shl 9);</code> | ||
+ | | Receive Enable | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_CR_TXE = (1 shl 8);</code> | ||
+ | | Transmit Enable | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_CR_BRK = (1 shl 7);</code> | ||
+ | | Break current operation | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_CR_CPOL = (1 shl 4);</code> | ||
+ | | Clock Polarity | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_CR_CPHA = (1 shl 3);</code> | ||
+ | | Clock Phase | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_CR_I2C = (1 shl 2);</code> | ||
+ | | I2C Enable | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_CR_SPI = (1 shl 1);</code> | ||
+ | | SPI Enable | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_CR_EN = (1 shl 0);</code> | ||
+ | | Enable Device | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''I2C/SPI slave FR (Flags) register''' <code> BCM2838_I2CSPI_FR_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See Section 11.2 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_RXFLEVEL_MASK = ($1F shl 11);</code> | ||
+ | | RX FIFO Level | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_RXFLEVEL_SHIFT = 11;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_TXFLEVEL_MASK = ($1F shl 6);</code> | ||
+ | | TX FIFO Level | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_TXFLEVEL_SHIFT = 6;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_FR_RXBUSY = (1 shl 5);</code> | ||
+ | | Receive Busy | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_FR_TXFE = (1 shl 4);</code> | ||
+ | | TX FIFO Empty | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_FR_RXFF = (1 shl 3);</code> | ||
+ | | RX FIFO Full | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_FR_TXFF = (1 shl 2);</code> | ||
+ | | TX FIFO Full | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_FR_RXFE = (1 shl 1);</code> | ||
+ | | RX FIFO Empty | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_FR_TXBUSY = (1 shl 0);</code> | ||
+ | | Transmit Busy | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''I2C/SPI slave IFLS (Interrupt FIFO Level Select) register''' <code> BCM2838_I2CSPI_IFLS_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See Section 11.2 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_IFLS_RXIFLSEL_MASK = (7 shl 3);</code> | ||
+ | | RX Interrupt FIFO Level Select | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_IFLS_RXIFLSEL_SHIFT = 3;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_IFLS_RXIFLSEL1_8 = (0 shl 3);</code> | ||
+ | | 000 RX FIFO gets 1/8 full | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_IFLS_RXIFLSEL1_4 = (1 shl 3);</code> | ||
+ | | 001 RX FIFO gets 1/4 full | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_IFLS_RXIFLSEL1_2 = (2 shl 3);</code> | ||
+ | | 010 RX FIFO gets 1/2 full | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_IFLS_RXIFLSEL3_4 = (3 shl 3);</code> | ||
+ | | 011 RX FIFO gets 3/4 full | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_IFLS_RXIFLSEL7_8 = (4 shl 3);</code> | ||
+ | | 100 RX FIFO gets 7/8 full | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_IFLS_TXIFLSEL_MASK = (7 shl 0);</code> | ||
+ | | TX Interrupt FIFO Level Select | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_IFLS_TXIFLSEL_SHIFT = 0;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_IFLS_TXIFLSEL1_8 = (0 shl 0);</code> | ||
+ | | 000 TX FIFO gets 1/8 full | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_IFLS_TXIFLSEL1_4 = (1 shl 0);</code> | ||
+ | | 001 TX FIFO gets 1/4 full | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_IFLS_TXIFLSEL1_2 = (2 shl 0);</code> | ||
+ | | 010 TX FIFO gets 1/2 full | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_IFLS_TXIFLSEL3_4 = (3 shl 0);</code> | ||
+ | | 011 TX FIFO gets 3/4 full | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_IFLS_TXIFLSEL7_8 = (4 shl 0);</code> | ||
+ | | 100 TX FIFO gets 7/8 full | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''I2C/SPI slave IMSC (Interrupt Mask Set Clear) register''' <code> BCM2838_I2CSPI_IMSC_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See Section 11.2 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_IMSC_OEIM = (1 shl 3);</code> | ||
+ | | Overrun error interrupt mask | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_IMSC_BEIM = (1 shl 2);</code> | ||
+ | | Break error interrupt mask | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_IMSC_TXIM = (1 shl 1);</code> | ||
+ | | Transmit interrupt mask | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_IMSC_RXIM = (1 shl 0);</code> | ||
+ | | Receive interrupt mask | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''I2C/SPI slave RIS (Raw Interrupt Status) register''' <code> BCM2838_I2CSPI_RIS_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See Section 11.2 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_RIS_OERIS = (1 shl 3);</code> | ||
+ | | Overrun error interrupt status | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_RIS_BERIS = (1 shl 2);</code> | ||
+ | | Break error interrupt status | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_RIS_TXRIS = (1 shl 1);</code> | ||
+ | | Transmit interrupt status | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_RIS_RXRIS = (1 shl 0);</code> | ||
+ | | Receive interrupt status | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''I2C/SPI slave MIS (Masked Interrupt Status) register''' <code> BCM2838_I2CSPI_MIS_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See Section 11.2 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_MIS_OEMIS = (1 shl 3);</code> | ||
+ | | Overrun error masked interrupt status | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_MIS_BEMIS = (1 shl 2);</code> | ||
+ | | Break error masked interrupt status | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_MIS_TXMIS = (1 shl 1);</code> | ||
+ | | Transmit masked interrupt status | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_MIS_RXMIS = (1 shl 0);</code> | ||
+ | | Receive masked interrupt status | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''I2C/SPI slave ICR (Interrupt Clear Register) register''' <code> BCM2838_I2CSPI_ICR_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See Section 11.2 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_ICR_OEIC = (1 shl 3);</code> | ||
+ | | Overrun error interrupt clear | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_ICR_BEIC = (1 shl 2);</code> | ||
+ | | Break error interrupt clear | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_ICR_TXIC = (1 shl 1);</code> | ||
+ | | Transmit interrupt clear | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_ICR_RXIC = (1 shl 0);</code> | ||
+ | | Receive interrupt clear | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 PWM0 (Pulse Width Modulator)''' <code> BCM2838_PWM0_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_PWM0_REGS_BASE = BCM2838_PERIPHERALS_BASE + $20C000;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 PWM1 (Pulse Width Modulator)''' <code> BCM2838_PWM1_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_PWM1_REGS_BASE = BCM2838_PERIPHERALS_BASE + $20C800;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |colspan="2"|<code>BCM2838_PWM0_REGS_BASES:array[0..1] of LongWord = (BCM2838_PWM0_REGS_BASE, BCM2838_PWM1_REGS_BASE);</code> | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 I2C/SPI slave''' <code> BCM2838_I2CSPI_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_I2CSPI_REGS_BASE = BCM2838_PERIPHERALS_BASE + $214000;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 AUX (UART1, SPI1 and SPI2)''' <code> BCM2838_AUX_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_AUX_REGS_BASE = BCM2838_PERIPHERALS_BASE + $215000;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>BCM2838_UART1_REGS_BASE = BCM2838_PERIPHERALS_BASE + $215040;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_SPI1_REGS_BASE = BCM2838_PERIPHERALS_BASE + $215080;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_SPI2_REGS_BASE = BCM2838_PERIPHERALS_BASE + $2150C0;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 EMMC0 (SDHCI)''' <code> BCM2838_EMMC0_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_EMMC0_REGS_BASE = BCM2838_PERIPHERALS_BASE + $300000;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>BCM2838_SDHCI_REGS_BASE = BCM2838_EMMC0_REGS_BASE;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 EMMC2''' <code> BCM2838_EMMC2_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_EMMC2_REGS_BASE = BCM2838_PERIPHERALS_BASE + $340000;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 HVS''' <code> BCM2838_HVS_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_HVS_REGS_BASE = BCM2838_PERIPHERALS_BASE + $400000;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 SMI (Firmware KMS)''' <code> BCM2838_SMI_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_SMI_REGS_BASE = BCM2838_PERIPHERALS_BASE + $600000;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>BCM2838_FIRMWAREKMS_REGS_BASE = BCM2838_SMI_REGS_BASE;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 DSI1 (Display Serial Interface)''' <code> BCM2838_DSI1_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_DSI1_REGS_BASE = BCM2838_PERIPHERALS_BASE + $700000;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 CSI0 (Camera Serial Interface)''' <code> BCM2838_CSI0_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_CSI0_REGS_BASE = BCM2838_PERIPHERALS_BASE + $800000;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 CSI1 (Camera Serial Interface)''' <code> BCM2838_CSI1_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_CSI1_REGS_BASE = BCM2838_PERIPHERALS_BASE + $801000;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 BSC1 (I2C1) (Broadcom Serial Controller)''' <code> BCM2838_BSC1_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_BSC1_REGS_BASE = BCM2838_PERIPHERALS_BASE + $804000;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>BCM2838_I2C1_REGS_BASE = BCM2838_BSC1_REGS_BASE;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 BSC2 (I2C2) (Broadcom Serial Controller)''' <code> BCM2838_BSC2_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|Note: I2C2 master is used dedicated with the HDMI interface and must not be used | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_BSC2_REGS_BASE = BCM2838_PERIPHERALS_BASE + $805000;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>BCM2838_I2C2_REGS_BASE = BCM2838_BSC2_REGS_BASE;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"|<code>BCM2838_I2C0_REGS_BASES:array[0..7] of LongWord = (BCM2838_I2C0_REGS_BASE, BCM2838_I2C1_REGS_BASE, BCM2838_I2C2_REGS_BASE, BCM2838_I2C3_REGS_BASE, BCM2838_I2C4_REGS_BASE, BCM2838_I2C5_REGS_BASE, BCM2838_I2C6_REGS_BASE, BCM2838_I2C7_REGS_BASE);</code> | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 VEC''' <code> BCM2838_VEC_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_VEC_REGS_BASE = BCM2838_PERIPHERALS_BASE + $806000;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 pixel valve 2''' <code> BCM2838_PIXELVALVE2_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_PIXELVALVE2_REGS_BASE = BCM2838_PERIPHERALS_BASE + $807000;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 HDMI''' <code> BCM2838_HDMI_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_HDMI_REGS_BASE = BCM2838_PERIPHERALS_BASE + $902000;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 USB (Synopsys DesignWare Hi-Speed USB 2.0 On-The-Go Controller)''' <code> BCM2838_USB_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_USB_REGS_BASE = BCM2838_PERIPHERALS_BASE + $980000;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>BCM2838_DWCOTG_REGS_BASE = BCM2838_USB_REGS_BASE;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 XHCI (Additional on chip generic XHCI USB host controller)''' <code> BCM2838_XHCI_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_XHCI_REGS_BASE = BCM2838_PERIPHERALS_BASE + $9C0000;</code> | ||
+ | | style="width: 50%;"|This is separate to the VL805 XHCI controller | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 HEVC Decoder''' <code> BCM2838_HEVC_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_HEVC_REGS_BASE = BCM2838_PERIPHERALS_BASE + $B00000;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 ARGON''' <code> BCM2838_ARGON_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_ARGON_REGS_BASE = BCM2838_PERIPHERALS_BASE + $B10000;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 H264 decoder''' <code> BCM 2838_H264_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM 2838_H264_REGS_BASE = BCM2838_PERIPHERALS_BASE + $B20000;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 VP9 decoder''' <code> BCM2838_VP9_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_VP9_REGS_BASE = BCM2838_PERIPHERALS_BASE + $B30000;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 V3D''' <code> BCM2838_V3D_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_V3D_REGS_BASE = BCM2838_PERIPHERALS_BASE + $C04000;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 DMA controller''' <code> BCM2838_DMA15_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|Channel 15 Note: DMA15 is exclusively used by the VPU | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_DMA15_REGS_BASE = BCM2838_PERIPHERALS_BASE + $E05000;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 chip revision''' <code> BCM2838_CHIP_REVISION_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: https://elinux.org/The_Undocumented_Pi#BCM2711 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_CHIP_REVISION_BASE = BCM2838_EXT_PERIPHERALS_BASE + $404000;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 PCIe''' <code> BCM2838_PCIE_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_PCIE_REGS_BASE = BCM2838_EXT_PERIPHERALS_BASE + $1500000;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 GENET''' <code> BCM2838_GENET_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_GENET_REGS_BASE = BCM2838_EXT_PERIPHERALS_BASE + $1580000;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>BCM2838_GENET_MDIO_OFFSET = $0E14;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 thermal''' <code> BCM2838_THERMAL_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_THERMAL_REGS_BASE = BCM2838_EXT_PERIPHERALS_BASE + $15D2200;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 IRQ peripheral''' <code> BCM2838_IRQ_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|IRQ lines of BCM2838 peripherals | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_SPI_BASE = 32;</code> | ||
+ | | style="width: 50%;"|Added to the SPI ID in device tree to obtain the real ID | ||
+ | |- | ||
+ | | <code>BCM2838_PPI_BASE = 16;</code> | ||
+ | | Added to the PPI ID in device tree to obtain the real ID | ||
+ | |- | ||
+ | | <code>BCM2838_SGI_BASE = 0;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"|''ARM Generic Timer'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_TIMER0 = BCM2838_PPI_BASE + 13;</code> | ||
+ | | IRQ_TYPE_LEVEL_LOW / CPU_MASK_0 or CPU_MASK_1 or CPU_MASK_2 or CPU_MASK_3 (Core n PS timer IRQ) | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_TIMER1 = BCM2838_PPI_BASE + 14;</code> | ||
+ | | IRQ_TYPE_LEVEL_LOW / CPU_MASK_0 or CPU_MASK_1 or CPU_MASK_2 or CPU_MASK_3 (Core n PNS timer IRQ) | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_TIMER2 = BCM2838_PPI_BASE + 11;</code> | ||
+ | | IRQ_TYPE_LEVEL_LOW / CPU_MASK_0 or CPU_MASK_1 or CPU_MASK_2 or CPU_MASK_3 (Core n V timer IRQ) | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_TIMER3 = BCM2838_PPI_BASE + 10;</code> | ||
+ | | IRQ_TYPE_LEVEL_LOW / CPU_MASK_0 or CPU_MASK_1 or CPU_MASK_2 or CPU_MASK_3 (Core n HP timer IRQ) | ||
+ | |- | ||
+ | |colspan="2"|''Legacy IRQ/FIQ'' | ||
+ | |- | ||
+ | | <code>BCM2838_FIQ_LEGACY = BCM2838_PPI_BASE + 12;</code> | ||
+ | | Legacy FIQn | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_LEGACY = BCM2838_PPI_BASE + 15;</code> | ||
+ | | Legacy IRQn | ||
+ | |- | ||
+ | |colspan="2"|''ARM Mailbox IRQs (BCM2838_SPI_BASE + 0 to 15)'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_MAILBOX0_0 = BCM2838_SPI_BASE + 0;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH(Core 0) | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_MAILBOX1_0 = BCM2838_SPI_BASE + 1;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_MAILBOX2_0 = BCM2838_SPI_BASE + 2;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_MAILBOX3_0 = BCM2838_SPI_BASE + 3;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_MAILBOX0_1 = BCM2838_SPI_BASE + 4;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH (Core 1) | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_MAILBOX1_1 = BCM2838_SPI_BASE + 5;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_MAILBOX2_1 = BCM2838_SPI_BASE + 6;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_MAILBOX3_1 = BCM2838_SPI_BASE + 7;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_MAILBOX0_2 = BCM2838_SPI_BASE + 8;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH (Core 2) | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_MAILBOX1_2 = BCM2838_SPI_BASE + 9;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_MAILBOX2_2 = BCM2838_SPI_BASE + 10;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_MAILBOX3_2 = BCM2838_SPI_BASE + 11;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_MAILBOX0_3 = BCM2838_SPI_BASE + 12;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH (Core 3) | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_MAILBOX1_3 = BCM2838_SPI_BASE + 13;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_MAILBOX2_3 = BCM2838_SPI_BASE + 14;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_MAILBOX3_3 = BCM2838_SPI_BASE + 15;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | |colspan="2"|''ARM PMU'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_PMU0 = BCM2838_SPI_BASE + 16;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_PMU1 = BCM2838_SPI_BASE + 17;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_PMU2 = BCM2838_SPI_BASE + 18;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_PMU3 = BCM2838_SPI_BASE + 19;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | |colspan="2"|''AXI Quiet'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_LOCAL_AXIQUIET = BCM2838_SPI_BASE + 20;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | |colspan="2"|''ARM Local Timer'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_LOCAL_TIMER = BCM2838_SPI_BASE + 21;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | |colspan="2"|''AXI Error'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_LOCAL_AXIERR = BCM2838_SPI_BASE + 22;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH (TBD) | ||
+ | |- | ||
+ | |colspan="2"|''ARM peripheral IRQs (BCM2838_SPI_BASE + 32 to 47)'' | ||
+ | |- | ||
+ | |colspan="2"|''ARM Timer'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_ARM_TIMER = BCM2838_SPI_BASE + 32;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | |colspan="2"|''ARM Mailbox'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_ARM_MAILBOX = BCM2838_SPI_BASE + 33;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | |colspan="2"|''ARM Doorbell (VCHIQ)'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_ARM_DOORBELL0 = BCM2838_SPI_BASE + 34;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_ARM_DOORBELL1 = BCM2838_SPI_BASE + 35;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_VCHIQ = BCM2838_IRQ_ARM_DOORBELL0;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"|''ARM VPU Halted'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_ARM_VPU0HALTED = BCM2838_SPI_BASE + 36;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_ARM_VPU1HALTED = BCM2838_SPI_BASE + 37;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | |colspan="2"|''ARM Error'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_ARM_ADDRERROR = BCM2838_SPI_BASE + 38;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_ARM_AXIERROR = BCM2838_SPI_BASE + 39;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | |colspan="2"|''ARM Software Interrupt (SWI)'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_ARM_SWI0 = BCM2838_SPI_BASE + 40;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_ARM_SWI1 = BCM2838_SPI_BASE + 41;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_ARM_SWI2 = BCM2838_SPI_BASE + 42;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_ARM_SWI3 = BCM2838_SPI_BASE + 43;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_ARM_SWI4 = BCM2838_SPI_BASE + 44;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_ARM_SWI5 = BCM2838_SPI_BASE + 45;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_ARM_SWI6 = BCM2838_SPI_BASE + 46;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_ARM_SWI7 = BCM2838_SPI_BASE + 47;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | |colspan="2"|VC peripheral IRQs (BCM2838_SPI_BASE + 64 to 127) | ||
+ | |- | ||
+ | |colspan="2"|''System Timer'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_SYSTEM_TIMER_0 = BCM2838_SPI_BASE + 64;</code> | ||
+ | | Already used by the VideoCore GPU (Do not use) | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_SYSTEM_TIMER_1 = BCM2838_SPI_BASE + 65;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_SYSTEM_TIMER_2 = BCM2838_SPI_BASE + 66;</code> | ||
+ | | Already used by the VideoCore GPU (Do not use) | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_SYSTEM_TIMER_3 = BCM2838_SPI_BASE + 67;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"|''H264 Codec'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_H264_0 = BCM2838_SPI_BASE + 68;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_H264_1 = BCM2838_SPI_BASE + 69;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_H264_2 = BCM2838_SPI_BASE + 70;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | |colspan="2"|''JPEG'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_JPEG = BCM2838_SPI_BASE + 71;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | |colspan="2"|''ISP'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_ISP = BCM2838_SPI_BASE + 72;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | |colspan="2"|''USB (Synopsys DesignWare Hi-Speed USB 2.0 On-The-Go Controller)'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_USB = BCM2838_SPI_BASE + 73;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | |colspan="2"|''V3D'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_V3D = BCM2838_SPI_BASE + 74;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | |colspan="2"|''Transposer'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_TXP = BCM2838_SPI_BASE + 75;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | |colspan="2"|''Multicore Sync'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_MULTICORESYNC0 = BCM2838_SPI_BASE + 76;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_MULTICORESYNC1 = BCM2838_SPI_BASE + 77;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_MULTICORESYNC2 = BCM2838_SPI_BASE + 78;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_MULTICORESYNC3 = BCM2838_SPI_BASE + 79;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | |colspan="2"|''DMA'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_DMA0 = BCM2838_SPI_BASE + 80;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_DMA1 = BCM2838_SPI_BASE + 81;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_DMA2 = BCM2838_SPI_BASE + 82;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_DMA3 = BCM2838_SPI_BASE + 83;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_DMA4 = BCM2838_SPI_BASE + 84;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_DMA5 = BCM2838_SPI_BASE + 85;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_DMA6 = BCM2838_SPI_BASE + 86;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_DMA7 = BCM2838_SPI_BASE + 87;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_DMA8 = BCM2838_SPI_BASE + 87;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_DMA9 = BCM2838_SPI_BASE + 88;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_DMA10 = BCM2838_SPI_BASE + 88;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_DMA11 = BCM2838_SPI_BASE + 89;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_DMA12 = BCM2838_SPI_BASE + 90;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_DMA13 = BCM2838_SPI_BASE + 91;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_DMA14 = BCM2838_SPI_BASE + 92;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_DMA7_8 = BCM2838_IRQ_DMA7;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_DMA9_10 = BCM2838_IRQ_DMA9;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"|''AUX (UART1, SPI1 and SPI2)'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_AUX = BCM2838_SPI_BASE + 93;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_UART1 = BCM2838_IRQ_AUX;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_SPI1 = BCM2838_IRQ_AUX;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_SPI2 = BCM2838_IRQ_AUX;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"|''ARM'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_ARM = BCM2838_SPI_BASE + 94;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | |colspan="2"|''DMA'' Note: DMA15 is exclusively used by the VPU | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_DMA15 = BCM2838_SPI_BASE + 95;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | |colspan="2"|''HDMI CEC'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_HDMI_CEC = BCM2838_SPI_BASE + 96;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | |colspan="2"|''HVS'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_HVS = BCM2838_SPI_BASE + 97;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | |colspan="2"|''ARGON (RPIVID)'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_ARGON = BCM2838_SPI_BASE + 98;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_RPIVID = BCM2838_IRQ_ARGON;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"|''SDC'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_SDC = BCM2838_SPI_BASE + 99;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | |colspan="2"|''DSI0'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_DSI0 = BCM2838_SPI_BASE + 100;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | |colspan="2"|''Pixel Valve 2'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_PIXELVALVE2 = BCM2838_SPI_BASE + 101;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | |colspan="2"|''CSI0 (Camera Serial Interface)'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_CSI0 = BCM2838_SPI_BASE + 102;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | |colspan="2"|''CSI1 (Camera Serial Interface)'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_CSI1 = BCM2838_SPI_BASE + 103;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | |colspan="2"|''HDMI'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_HDMI_0 = BCM2838_SPI_BASE + 104;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_HDMI_1 = BCM2838_SPI_BASE + 105;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | |colspan="2"|''Pixel Valve 3'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_PIXELVALVE3 = BCM2838_SPI_BASE + 106;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | |colspan="2"|''I2C / SPI Slave'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_I2CSPI = BCM2838_SPI_BASE + 107;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | |colspan="2"|''DSI1'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_DSI1 = BCM2838_SPI_BASE + 108;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | |colspan="2"|''Pixel Valve 0'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_PIXELVALVE0 = BCM2838_SPI_BASE + 109;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | |colspan="2"|''Pixel Valve 1/4'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_PIXELVALVE1 = BCM2838_SPI_BASE + 110;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_PIXELVALVE4 = BCM2838_IRQ_PIXELVALVE1;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"|''CPR'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_CPR = BCM2838_SPI_BASE + 111;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | |colspan="2"|''SMI (Firmware KMS)'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_SMI = BCM2838_SPI_BASE + 112;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_FIRMWAREKMS = BCM2838_IRQ_SMI;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"|''GPIO'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_GPIO_0 = BCM2838_SPI_BASE + 113;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_GPIO_1 = BCM2838_SPI_BASE + 114;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_GPIO_2 = BCM2838_SPI_BASE + 115;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_GPIO_3 = BCM2838_SPI_BASE + 116;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_GPIO_ALL = BCM2838_IRQ_GPIO_3;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"|''BSC0 (I2C0) (Broadcom Serial Controller)'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_BSC0 = BCM2838_SPI_BASE + 117;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_I2C0 = BCM2838_IRQ_BSC0;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"|''BSC1 (I2C1) (Broadcom Serial Controller)'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_BSC1 = BCM2838_SPI_BASE + 117;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_I2C1 = BCM2838_IRQ_BSC1;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"|''BSC2 (I2C2) (Broadcom Serial Controller)'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_BSC2 = BCM2838_SPI_BASE + 117;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_I2C2 = BCM2838_IRQ_BSC2;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"|''I2C3'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_I2C3 = BCM2838_SPI_BASE + 117;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | |colspan="2"|''I2C4'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_I2C4 = BCM2838_SPI_BASE + 117;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | |colspan="2"|''I2C5'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_I2C5 = BCM2838_SPI_BASE + 117;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | |colspan="2"|''I2C6'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_I2C6 = BCM2838_SPI_BASE + 117;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | |colspan="2"|''I2C7'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_I2C7 = BCM2838_SPI_BASE + 117;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | |colspan="2"|<code>BCM2838_I2C0_IRQS:array[0..7] of LongWord = (BCM2838_IRQ_I2C0, BCM2838_IRQ_I2C1, BCM2838_IRQ_I2C2, BCM2838_IRQ_I2C3, BCM2838_IRQ_I2C4, BCM2838_IRQ_I2C5, BCM2838_IRQ_I2C6, BCM2838_IRQ_I2C7);</code> | ||
+ | |- | ||
+ | |colspan="2"|''SPI0'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_SPI0 = BCM2838_SPI_BASE + 118;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | |colspan="2"|''SPI3'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_SPI3 = BCM2838_SPI_BASE + 118;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | |colspan="2"|''SPI4'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_SPI4 = BCM2838_SPI_BASE + 118;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | |colspan="2"|''SPI5'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_SPI5 = BCM2838_SPI_BASE + 118;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | |colspan="2"|''SPI6'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_SPI6 = BCM2838_SPI_BASE + 118;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | |colspan="2"|<code>BCM2838_SPI0_IRQS:array[0..6] of LongWord = (BCM2838_IRQ_SPI0, 0, 0, BCM2838_IRQ_SPI3, BCM2838_IRQ_SPI4, BCM2838_IRQ_SPI5, BCM2838_IRQ_SPI6);</code> | ||
+ | |- | ||
+ | |colspan="2"|''I2S PCM sound'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_I2SPCM = BCM2838_SPI_BASE + 119;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | |colspan="2"|''EMMC1 (SDHOST)'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_EMMC1 = BCM2838_SPI_BASE + 120;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_SDHOST = BCM2838_IRQ_EMMC1;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"|''UART0 (PL011)'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_PL011 = BCM2838_SPI_BASE + 121;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_UART0 = BCM2838_IRQ_PL011;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"|''UART2 (PL011)'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_UART2 = BCM2838_SPI_BASE + 121;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | |colspan="2"|''UART3 (PL011)'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_UART3 = BCM2838_SPI_BASE + 121;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | |colspan="2"|''UART4 (PL011)'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_UART4 = BCM2838_SPI_BASE + 121;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | |colspan="2"|''UART5 (PL011)'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_UART5 = BCM2838_SPI_BASE + 121;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | |colspan="2"|<code>BCM2838_UART0_IRQS:array[0..5] of LongWord = (BCM2838_IRQ_UART0, 0, BCM2838_IRQ_UART2, BCM2838_IRQ_UART3, BCM2838_IRQ_UART4, BCM2838_IRQ_UART5);</code> | ||
+ | |- | ||
+ | |colspan="2"|''ETH_PCIe L2'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_ETH_PCIE = BCM2838_SPI_BASE + 122;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | |colspan="2"|''VEC'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_VEC = BCM2838_SPI_BASE + 123;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | |colspan="2"|''CPG'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_CPG = BCM2838_SPI_BASE + 124;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | |colspan="2"|''Random Number Generator'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_RNG = BCM2838_SPI_BASE + 125;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | |colspan="2"|''EMMC0 (SDHCI)'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_EMMC0 = BCM2838_SPI_BASE + 126;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_SDHCI = BCM2838_IRQ_EMMC0;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"|''EMMC2 (SDHCI)'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_EMMC2 = BCM2838_SPI_BASE + 126;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | |colspan="2"|''ETH_PCIe Secure'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_ETH_PCIE_SEC = BCM2838_SPI_BASE + 127;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | |colspan="2"|ETH_PCIe L2 IRQs (BCM2838_SPI_BASE + 128 to 184) | ||
+ | |- | ||
+ | |colspan="2"|''Thermal (AVS)'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_THERMAL = BCM2838_SPI_BASE + 137;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | |colspan="2"|''PCIe'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_PCIE_INTA = BCM2838_SPI_BASE + 143;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_PCIE_INTB = BCM2838_SPI_BASE + 144;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_PCIE_INTC = BCM2838_SPI_BASE + 145;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_PCIE_INTD = BCM2838_SPI_BASE + 146;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_PCIE_MSI = BCM2838_SPI_BASE + 148;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | |colspan="2"|''GENET'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_GENET_0 = BCM2838_SPI_BASE + 157;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_GENET_1 = BCM2838_SPI_BASE + 158;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH | ||
+ | |- | ||
+ | |colspan="2"|''XHCI (Additional on chip generic XHCI USB host controller)'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_XHCI = BCM2838_SPI_BASE + 176;</code> | ||
+ | | IRQ_TYPE_LEVEL_HIGH (This is separate to the VL805 XHCI controller) | ||
+ | |- | ||
+ | |colspan="2"|''Number of shared IRQs'' | ||
+ | |- | ||
+ | | <code>BCM2838_SHARED_IRQ_COUNT = 988;</code> | ||
+ | | SPI 32-1019 | ||
+ | |- | ||
+ | |colspan="2"|''Number of private IRQs'' | ||
+ | |- | ||
+ | | <code>BCM2838_PRIVATE_IRQ_COUNT = 16;</code> | ||
+ | | PPI 16-31 | ||
+ | |- | ||
+ | |colspan="2"|''Number of software IRQs'' | ||
+ | |- | ||
+ | | <code>BCM2838_SOFTWARE_IRQ_COUNT = 16;</code> | ||
+ | | SGI 0-15 | ||
+ | |- | ||
+ | |colspan="2"|''Number of reserved IRQs'' | ||
+ | |- | ||
+ | | <code>BCM2838_RESERVED_IRQ_COUNT = 4;</code> | ||
+ | | ID 1020-1023 | ||
+ | |- | ||
+ | |colspan="2"|''Total number of IRQs available'' | ||
+ | |- | ||
+ | |colspan="2"|<code>BCM2838_IRQ_COUNT = BCM2838_SHARED_IRQ_COUNT + BCM2838_PRIVATE_IRQ_COUNT + BCM2838_SOFTWARE_IRQ_COUNT + BCM2838_RESERVED_IRQ_COUNT;</code> | ||
+ | |- | ||
+ | |colspan="2"|''Total number of FIQs available'' | ||
+ | |- | ||
+ | | <code>BCM2838_FIQ_COUNT = BCM2838_IRQ_COUNT;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 system timer frequency''' <code> BCM2838_SYSTEM_TIMER_BCM2838_SYSTEM_TIMER_FREQUENCY* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_SYSTEM_TIMER_FREQUENCY = 1000000;</code> | ||
+ | | style="width: 50%;"|Default clock frequency of the BCM2838 System Timer (1MHz) | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 system timer control/status''' <code> BCM2838_SYSTEM_TIMER_CS_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Section 12 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_SYSTEM_TIMER_CS_0 = (1 shl 0);</code> | ||
+ | | style="width: 50%;"|Already used by the VideoCore GPU (Do not use) | ||
+ | |- | ||
+ | | <code>BCM2838_SYSTEM_TIMER_CS_1 = (1 shl 1);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_SYSTEM_TIMER_CS_2 = (1 shl 2);</code> | ||
+ | | Already used by the VideoCore GPU (Do not use) | ||
+ | |- | ||
+ | | <code>BCM2838_SYSTEM_TIMER_CS_3 = (1 shl 3);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 DMA control/status''' <code> BCM2838_DMA_CS_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Section 4 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_CS_ACTIVE = (1 shl 0);</code> | ||
+ | | style="width: 50%;"|Activate the DMA (This bit enables the DMA. The DMA will start if this bit is set and the CB_ADDR is non zero. The DMA transfer can be paused and resumed by clearing, then setting it again.) | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_CS_END = (1 shl 1);</code> | ||
+ | | DMA End Flag (Set when the transfer described by the current control block is complete. Write 1 to clear.) | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_CS_INT = (1 shl 2);</code> | ||
+ | | Interrupt Status (This is set when the transfer for the CB ends and INTEN is set to 1. Write 1 to clear.) | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_CS_DREQ = (1 shl 3);</code> | ||
+ | | DREQ State (Indicates the state of the selected DREQ (Data Request) signal, ie. the DREQ selected by the PERMAP field of the transfer info.) | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_CS_PAUSED = (1 shl 4);</code> | ||
+ | | DMA Paused State (Indicates if the DMA is currently paused and not transferring data) | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_CS_DREQ_PAUSED = (1 shl 5);</code> | ||
+ | | DMA Paused by DREQ State (Indicates if the DMA is currently paused and not transferring data due to the DREQ being inactive) | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_CS_WAITING_FOR_OUTSTANDING_WRITES = (1 shl 6);</code> | ||
+ | | DMA is Waiting for the Last Write to be Received (Indicates if the DMA is currently waiting for any outstanding writes to be received, and is not transferring data.) | ||
+ | |- | ||
+ | |colspan="2"|''Bit 7 Reserved - Write as 0, read as don't care'' | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_CS_ERROR = (1 shl 8);</code> | ||
+ | | DMA Error (Indicates if the DMA has detected an error) | ||
+ | |- | ||
+ | |-|colspan="2"|''Bits 9:15 Reserved - Write as 0, read as don't care'' | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_CS_PRIORITY = ($F shl 16);</code> | ||
+ | | AXI Priority Level (Sets the priority of normal AXI bus transactions. Zero is the lowest priority.) | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_CS_PANIC_PRIORITY = ($F shl 20);</code> | ||
+ | | AXI Panic Priority Level (Sets the priority of panicking AXI bus transactions) | ||
+ | |- | ||
+ | |colspan="2"|''Bits 24:27 Reserved - Write as 0, read as don't care'' | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_CS_WAIT_FOR_OUTSTANDING_WRITES = (1 shl 28);</code> | ||
+ | | Wait for outstanding writes (When set to 1, the DMA will keep a tally of the AXI writes going out and the write responses coming in.) | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_CS_DISDEBUG = (1 shl 29);</code> | ||
+ | | Disable debug pause signal (When set to 1, the DMA will not stop when the debug pause signal is asserted.) | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_CS_ABORT = (1 shl 30);</code> | ||
+ | | Abort DMA (Writing a 1 to this bit will abort the current DMA CB. The DMA will load the next CB and attempt to continue. The bit cannot be read, and will self clear.) | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_CS_RESET = (1 shl 31);</code> | ||
+ | | DMA Channel Reset (Writing a 1 to this bit will reset the DMA. The bit cannot be read, and will self clear.) | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_CS_PRIORITY_SHIFT = 16;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_CS_PANIC_PRIORITY_SHIFT = 20;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_CS_PRIORITY_DEFAULT = 0;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_CS_PRIORITY_MAX = 15;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 DMA transfer information''' <code> BCM2838_DMA_TI_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Section 4 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_TI_INTEN = (1 shl 0);</code> | ||
+ | | style="width: 50%;"|Interrupt Enable (1 = Generate an interrupt when the transfer described by the current Control Block completes) | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_TI_2DMODE = (1 shl 1);</code> | ||
+ | | 2D Mode (1 = 2D mode interpret the TXFR_LEN register as YLENGTH number of transfers each of XLENGTH, and add the strides to the address after each transfer.) | ||
+ | |- | ||
+ | |colspan="2"|''Bit 2 Reserved - Write as 0, read as don't care'' | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_TI_WAIT_RESP = (1 shl 3);</code> | ||
+ | | Wait for a Write Response (When set this makes the DMA wait until it receives the AXI write response for each write. This ensures that multiple writes cannot get stacked in the AXI bus pipeline.) | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_TI_DEST_INC = (1 shl 4);</code> | ||
+ | | Destination Address Increment (1 = Destination address increments after each write. The address will increment by 4, if DEST_WIDTH=0 else by 32.) | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_TI_DEST_WIDTH = (1 shl 5);</code> | ||
+ | | Destination Transfer Width (1 = Use 128-bit destination write width. 0 = Use 32-bit destination write width.) | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_TI_DEST_DREQ = (1 shl 6);</code> | ||
+ | | Control Destination Writes with DREQ (1 = The DREQ selected by PERMAP will gate the destination writes) | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_TI_DEST_IGNORE = (1 shl 7);</code> | ||
+ | | Ignore Writes (1 = Do not perform destination writes. 0 = Write data to destination.) | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_TI_SRC_INC = (1 shl 8);</code> | ||
+ | | Source Address Increment (1 = Source address increments after each read. The address will increment by 4, if S_WIDTH=0 else by 32.) | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_TI_SRC_WIDTH = (1 shl 9);</code> | ||
+ | | Source Transfer Width (1 = Use 128-bit source read width. 0 = Use 32-bit source read width.) | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_TI_SRC_DREQ = (1 shl 10);</code> | ||
+ | | Control Source Reads with DREQ (1 = The DREQ selected by PERMAP will gate the source reads) | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_TI_SRC_IGNORE = (1 shl 11);</code> | ||
+ | | Ignore Reads (1 = Do not perform source reads. In addition, destination writes will zero all the write strobes. This is used for fast cache fill operations.) | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_TI_BURST_LENGTH = ($F shl 12);</code> | ||
+ | | Burst Transfer Length (Indicates the burst length of the DMA transfers) | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_TI_PERMAP = ($1F shl 16);</code> | ||
+ | | Peripheral Mapping (Indicates the peripheral number (1-31) whose ready signal shall be used to control the rate of the transfers) | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_TI_WAITS = ($3E shl 21);</code> | ||
+ | | Add Wait Cycles (This slows down the DMA throughput by setting the number of dummy cycles burnt after each DMA read or write operation is completed) | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_TI_NO_WIDE_BURSTS = (1 shl 26);</code> | ||
+ | | Don't Do wide writes as a 2 beat burst (This prevents the DMA from issuing wide writes as 2 beat AXI bursts. This is an inefficient access mode, so the default is to use the bursts.) | ||
+ | |- | ||
+ | |colspan="2"|''Bits 27:31 Reserved - Write as 0, read as don't care'' | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | |colspan="2"|Note: BCM2838_DMA_TI_2DMODE, BCM2838_DMA_TI_DEST_IGNORE, BCM2838_DMA_TI_SRC_IGNORE and BCM2838_DMA_TI_NO_WIDE_BURSTS not available on DMA Lite channels | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_TI_PERMAP_SHIFT = 16;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_TI_BURST_LENGTH_SHIFT = 12;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_TI_BURST_LENGTH_DEFAULT = 0;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code> BCM2838_DMA_TI_BURST_LENGTH_MAX = 15;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 DMA transfer length ''' <code> BCM2838_DMA_TXFR_LEN_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Section 4 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_TXFR_LEN_XLENGTH = ($FFFF shl 0);</code> | ||
+ | | style="width: 50%;"|Transfer Length in bytes | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_TXFR_LEN_YLENGTH = ($3FFF shl 16);</code> | ||
+ | | When in 2D mode, This is the Y transfer length, indicating how many xlength transfers are performed. When in normal linear mode this becomes the top bits of the XLENGTH. | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | |colspan="2"|Note: BCM2838_DMA_TXFR_LEN_YLENGTH not available on DMA Lite channels | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 DMA 2D stride ''' <code> BCM2838_DMA_STRIDE_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Section 4 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_STRIDE_S_STRIDE = ($FFFF shl 0);</code> | ||
+ | | style="width: 50%;"|Destination Stride (2D Mode) (Signed (2 s complement) byte increment to apply to the destination address at the end of each row in 2D mode) | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_STRIDE_D_STRIDE = ($FFFF shl 16);</code> | ||
+ | | Source Stride (2D Mode) (Signed (2 s complement) byte increment to apply to the source address at the end of each row in 2D mode) | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | |colspan="2"|Note: BCM2838_DMA_STRIDE_S_STRIDE and BCM2838_DMA_STRIDE_D_STRIDE not available on DMA Lite channels | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 DMA debug''' <code> BCM2838_DMA_DEBUG_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Section 4 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_DEBUG_READ_LAST_NOT_SET_ERROR = (1 shl 0);</code> | ||
+ | | style="width: 50%;"|Read Last Not Set Error | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_DEBUG_FIFO_ERROR = (1 shl 1);</code> | ||
+ | | Fifo Error | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_DEBUG_READ_ERROR = (1 shl 2);</code> | ||
+ | | Slave Read Response Error | ||
+ | |- | ||
+ | |colspan="2"|''Bit 3 Reserved - Write as 0, read as don't care'' | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_DEBUG_OUTSTANDING_WRITES = ($F shl 4);</code> | ||
+ | | DMA Outstanding Writes Counter | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_DEBUG_DMA_ID = ($FF shl 8);</code> | ||
+ | | DMA ID | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_DEBUG_DMA_STATE = ($1FF shl 16);</code> | ||
+ | | DMA State Machine State | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_DEBUG_VERSION = (7 shl 25);</code> | ||
+ | | DMA Version | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_DEBUG_LITE = (1 shl 28);</code> | ||
+ | | DMA Lite | ||
+ | |- | ||
+ | |colspan="2"|''Bits 29:31 Reserved - Write as 0, read as don't care'' | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 DMA4 control/status''' <code> BCM2838_DMA4_CS_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Section 4 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_CS_ACTIVE = (1 shl 0);</code> | ||
+ | | style="width: 50%;"|Activate the DMA4 (This bit enables the DMA4 to start transferring data) | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_CS_END = (1 shl 1);</code> | ||
+ | | End Flag (Set when the transfer described by the current Control Block is complete) | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_CS_INT = (1 shl 2);</code> | ||
+ | | Interrupt Status (If interrupts are enabled (INTEN is set to 1) the interrupt is set when the transfer for the current CB is completed) | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_CS_DREQ = (1 shl 3);</code> | ||
+ | | DREQ State (Indicates the state of the selected DREQ (Data Request) signal) | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_CS_RD_PAUSED = (1 shl 4);</code> | ||
+ | | DMA read Paused State (Indicates that the DMA4 is currently paused and not reading data) | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_CS_WR_PAUSED = (1 shl 5);</code> | ||
+ | | DMA Write Paused State (Indicates that the DMA4 is currently paused and not writing data) | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_CS_DREQ_STOPS_DMA = (1 shl 6);</code> | ||
+ | | DMA Paused by DREQ State (This indicates that the DMA4 is currently paused and not transferring data due to the selected DREQ being inactive) | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_CS_WAITING_FOR_OUTSTANDING_WRITES = (1 shl 7);</code> | ||
+ | | The DMA4 is Waiting for all the Write Response to be returned | ||
+ | |- | ||
+ | |colspan="2"|''Bits 8:9 Reserved'' | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_CS_ERROR = (1 shl 10);</code> | ||
+ | | DMA Error (Indicates if the DMA4 has detected an error) | ||
+ | |- | ||
+ | |colspan="2"|''Bits 11:15 Reserved'' | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_CS_QOS_MASK = ($F shl 16);</code> | ||
+ | | AXI QOS Level (Sets the QOS level of normal AXI bus transactions) | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_CS_QOS_DEFAULT = (0 shl 16);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_CS_PANIC_QOS_MASK = ($F shl 20);</code> | ||
+ | | AXI Panic QOS Level (Sets the QOS level of AXI bus transactions when the DMA4 is panicking) | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_CS_PANIC_QOS_DEFAULT = (0 shl 20);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_CS_DMA_BUSY = (1 shl 24);</code> | ||
+ | | Indicates the DMA4 is BUSY (This indicates that the DMA4 is operating or waiting for outstanding data or otherwise in use) | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_CS_OUTSTANDING_TRANSACTIONS = (1 shl 25);</code> | ||
+ | | Indicates that there are outstanding AXI transfers, either outstanding read data or outstanding write responses. | ||
+ | |- | ||
+ | |colspan="2"|''Bits 26:27 Reserved'' | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_CS_WAIT_FOR_OUTSTANDING_WRITES = (1 shl 28);</code> | ||
+ | | Wait for outstanding writes (The DMA4 keeps a tally of the AXI writes requests going out and the write responses coming in) | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_CS_DISDEBUG = (1 shl 29);</code> | ||
+ | | Disable Debug Pause Signal (When set to 1, the DMA4 will not pause when the debug pause signal is asserted.) | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_CS_ABORT = (1 shl 30);</code> | ||
+ | | Abort DMA (Writing a 1 to this bit will cleanly abort the current DMA transfer. The abort will cause the DMA4 to zero its length counters and thus it will complete the current transfer and wait until all outstanding bus activity has finished) | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_CS_HALT = (1 shl 31);</code> | ||
+ | | Halt DMA (Writing a 1 to this bit will cleanly halt the current DMA transfer. The halt will cause the DMA4 to zero its length counters and thus it will complete the current transfer and wait until all outstanding bus activity has finished.) | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 DMA4 control block address ''' <code> BCM2838_DMA4_CB_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Section 4 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_CB_ADDR_MASK = $0000001FFFFFFFE0;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_CB_ADDR_SHIFT = 5;</code> | ||
+ | | Write Address shr 5 to the register | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 DMA4 debug register''' <code> BCM2838_DMA4_DEBUG_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Section 4 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_DEBUG_WRITE_ERROR = (1 shl 0);</code> | ||
+ | | style="width: 50%;"|Slave Write Response Error | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_DEBUG_FIFO_ERROR = (1 shl 1);</code> | ||
+ | | FIFO Error | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_DEBUG_READ_ERROR = (1 shl 2);</code> | ||
+ | | Slave Read Response Error | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_DEBUG_READ_CB_ERROR = (1 shl 3);</code> | ||
+ | | Slave Read Response Error During Control Block Read | ||
+ | |- | ||
+ | |colspan="2"|''Bits 4:7 Reserved'' | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_DEBUG_INT_ON_ERROR = (1 shl 8);</code> | ||
+ | | Generate an interrupt if an error is detected | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_DEBUG_HALT_ON_ERROR = (1 shl 9);</code> | ||
+ | | Instruct the DMA4 to HALT if it detects an error | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_DEBUG_ABORT_ON_ERROR = (1 shl 10);</code> | ||
+ | | Instruct the DMA4 to ABORT if it detects an error | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_DEBUG_DISABLE_CLK_GATE = (1 shl 11);</code> | ||
+ | | Disable the clock gating logic | ||
+ | |- | ||
+ | |colspan="2"|''Bits 12:13 Reserved'' | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_DEBUG_R_STATE_MASK = ($F shl 14);</code> | ||
+ | | Read State Machine State (Returns the value of the DMA4 engines read state machine) | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_DEBUG_R_IDLE = (0 shl 14);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_DEBUG_R_WAIT_CB_DATA = (1 shl 14);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_DEBUG_R_CALC = (2 shl 14);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_DEBUG_R_READ4K = (3 shl 14);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_DEBUG_R_READING = (4 shl 14);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_DEBUG_R_READFIFO_FULL = (5 shl 14);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_DEBUG_R_WAIT_WRITE_COMPLETE = (6 shl 14);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_DEBUG_W_STATE_MASK = ($F shl 18);</code> | ||
+ | | Write State Machine State (Returns the value of the DMA4 engines write state machine) | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_DEBUG_W_IDLE = (0 shl 18);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_DEBUG_W_PRELOAD = (1 shl 18);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_DEBUG_W_CALC = (2 shl 18);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_DEBUG_W_WRITE4K = (3 shl 18);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_DEBUG_W_READFIFO_EMPTY = (4 shl 18);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_DEBUG_W_WAIT_OUTSTANDING = (5 shl 18);</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"|''Bit 22 Reserved'' | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_DEBUG_RESET = (1 shl 23);</code> | ||
+ | | DMA Reset (This is a hard reset of the DMA4 state machine and certain internal registers) | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_DEBUG_ID_MASK = ($F shl 24);</code> | ||
+ | | ID (Returns the ID of this DMA4. This is also used as the AXI subid.) | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_DEBUG_VERSION_MASK = ($F shl 28);</code> | ||
+ | | DMA Version (DMA version number, indicating control bit field changes.) | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 DMA4 transfer information''' <code> BCM2838_DMA4_TI_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Section 4 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_TI_INTEN = (1 shl 0);</code> | ||
+ | | style="width: 50%;"|Interrupt Enable | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_TI_TDMODE = (1 shl 1);</code> | ||
+ | | 2D Mode (Perform a 2D transfer instead of a normal linear transfer. In 2D mode the DMA4 will interpret the length field as an X and a Y length. It will execute Y+1 transfers each of length X.) | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_TI_WAIT_RESP = (1 shl 2);</code> | ||
+ | | Wait for a Write Response (When set this makes the DMA4 wait until it receives the AXI write response for each write) | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_TI_WAIT_RD_RESP = (1 shl 3);</code> | ||
+ | | Wait for a Read Response (When set this makes the DMA4 wait until it receives all the data from each read) | ||
+ | |- | ||
+ | |colspan="2"|''Bits 4:8 Reserved'' | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_TI_PERMAP_MASK = ($1F shl 9);</code> | ||
+ | | Peripheral Mapping (Indicates the DREQ of selected peripheral (1-31)) | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_TI_PERMAP_SHIFT = 9;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_TI_S_DREQ = (1 shl 14);</code> | ||
+ | | Control Source Reads with DREQ (This is used when reading from a peripheral that has a DREQ flow control available) | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_TI_D_DREQ = (1 shl 15);</code> | ||
+ | | Control Destination Writes with DREQ (This is used when writing to a peripheral that has a DREQ flow control available to control the data flow) | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_TI_S_WAITS_MASK = ($FF shl 16);</code> | ||
+ | | Read Wait Cycles (This slows down the DMA throughput by setting the number of dummy cycles burnt before each DMA AXI read operation is started) | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_TI_S_WAITS_DEFAULT = (0 shl 16);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_TI_D_WAITS_MASK = ($FF shl 24);</code> | ||
+ | | Write Wait Cycles (This slows down the DMA throughput by setting the number of dummy cycles before each AXI Write operation is started) | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_TI_D_WAITS_DEFAULT = (0 shl 24);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 DMA4 source address ''' <code> BCM2838_DMA4_SRC_ADDR_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Section 4 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_SRC_ADDR_MASK = $00000000FFFFFFFF;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 DMA4 source information ''' <code> BCM2838_DMA4_SRCI_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Section 4 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_SRCI_ADDR_MASK = ($FF shl 0);</code> | ||
+ | | style="width: 50%;"|High Bits of the Source Address [40:32] | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_SRCI_BURST_LENGTH_MASK = ($F shl 8);</code> | ||
+ | | Burst Transfer Length | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_SRCI_BURST_LENGTH_SHIFT = 8;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_SRCI_BURST_LENGTH_DEFAULT = (0 shl 8);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_SRCI_BURST_LENGTH_MAX = (15 shl 8);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_SRCI_INC = (1 shl 12);</code> | ||
+ | | Increment the Source Address | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_SRCI_SIZE_MASK = (3 shl 13);</code> | ||
+ | | Source Transfer Width (The DMA4 will perform all AXI source reads with this AXI transfer width) | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_SRCI_SIZE_256 = (3 shl 13);</code> | ||
+ | | Note: On the BCM2711 the width cannot be set larger than 128 | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_SRCI_SIZE_128 = (2 shl 13);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_SRCI_SIZE_64 = (1 shl 13);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_SRCI_SIZE_32 = (0 shl 13);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_SRCI_IGNORE = (1 shl 15);</code> | ||
+ | | Ignore Reads (The DMA4 will perform a normal transfer except that it will not produce any reads. The DMA4 will write zero data.) | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_SRCI_STRIDE = ($FFFF shl 16);</code> | ||
+ | | Source Stride (This is only used in 2D transfer mode (TDMODE)) | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 DMA4 dest address ''' <code> BCM2838_DMA4_DEST_ADDR_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Section 4 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_DEST_ADDR_MASK = $00000000FFFFFFFF;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 DMA4 dest information''' <code> BCM2838_DMA4_DESTI_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Section 4 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_DESTI_ADDR_MASK = ($FF shl 0);</code> | ||
+ | | style="width: 50%;"|High Bits of the Destination Address [40:32] | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_DESTI_BURST_LENGTH_MASK = ($F shl 8);</code> | ||
+ | | Burst Transfer Length | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_DESTI_BURST_LENGTH_SHIFT = 8;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_DESTI_BURST_LENGTH_DEFAULT = (0 shl 8);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_DESTI_BURST_LENGTH_MAX = (15 shl 8);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_DESTI_INC = (1 shl 12);</code> | ||
+ | | Destination Address Increment | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_DESTI_SIZE_MASK = (3 shl 13);</code> | ||
+ | | Destination Transfer Width (The DMA4 will perform all AXI destination writes with this AXI transfer width) | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_DESTI_SIZE_256 = (3 shl 13);</code> | ||
+ | | Note: On the BCM2711 the width cannot be set larger than 128 | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_DESTI_SIZE_128 = (2 shl 13);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_DESTI_SIZE_64 = (1 shl 13);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_DESTI_SIZE_32 = (0 shl 13);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_DESTI_IGNORE = (1 shl 15);</code> | ||
+ | | Ignore Destination Writes | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_DESTI_STRIDE = ($FFFF shl 16);</code> | ||
+ | | Destination Stride (This is only used in 2D transfer mode (TDMODE)) | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 DMA4 transfer length''' <code> BCM2838_DMA4_LEN_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Section 4 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_LEN_XLENGTH_MASK = ($FFFF shl 0);</code> | ||
+ | | style="width: 50%;"|Transfer Length in bytes | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_LEN_YLENGTH_MASK = ($3FFF shl 16);</code> | ||
+ | | When in 2D mode, This is the Y transfer length, indicating how many xlength transfers are performed. When in normal linear mode this becomes the top bits of the XLENGTH. | ||
+ | |- | ||
+ | |colspan="2"|''Bits 30:31 Reserved'' | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 DMA4 next control block address''' <code> BCM2838_DMA4_NEXT_CB_ * </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Section 4 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_NEXT_CB_ADDR_MASK = $0000001FFFFFFFE0;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_NEXT_CB_ADDR_SHIFT = 5;</code> | ||
+ | | Write Address shr 5 to the register | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 DMA4 Debug''' <code> BCM2838_DMA4_DEBUG2_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Section 4 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_DEBUG2_OUTSTANDING_WRITES_MASK = ($1FF shl 0);</code> | ||
+ | | style="width: 50%;"|Outstanding Write Response Count | ||
+ | |- | ||
+ | |colspan="2"|''Bits 9:15 Reserved'' | ||
+ | |- | ||
+ | | <code>BCM2838_DMA4_DEBUG2_OUTSTANDING_READS_MASK = ($1FF shl 16);</code> | ||
+ | | Outstanding read Words Count | ||
+ | |- | ||
+ | |colspan="2"|''Bits 25:31 Reserved'' | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 DMA engine interrupt status''' <code> BCM2838_DMA_INT_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Section 4 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_INT_STATUS_0 = (1 shl 0);</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_INT_STATUS_1 = (1 shl 1);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_INT_STATUS_2 = (1 shl 2);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_INT_STATUS_3 = (1 shl 3);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_INT_STATUS_4 = (1 shl 4);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_INT_STATUS_5 = (1 shl 5);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_INT_STATUS_6 = (1 shl 6);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_INT_STATUS_7 = (1 shl 7);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_INT_STATUS_8 = (1 shl 8);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_INT_STATUS_9 = (1 shl 9);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_INT_STATUS_10 = (1 shl 10);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_INT_STATUS_11 = (1 shl 11);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_INT_STATUS_12 = (1 shl 12);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_INT_STATUS_13 = (1 shl 13);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_INT_STATUS_14 = (1 shl 14);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_INT_STATUS_15 = (1 shl 15);</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"|''Bits 16:31 Reserved'' | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 DMA engine enable''' <code> BCM2838_DMA_ENABLE_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Section 4 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_ENABLE_0 = (1 shl 0);</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_ENABLE_1 = (1 shl 1);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_ENABLE_2 = (1 shl 2);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_ENABLE_3 = (1 shl 3);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_ENABLE_4 = (1 shl 4);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_ENABLE_5 = (1 shl 5);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_ENABLE_6 = (1 shl 6);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_ENABLE_7 = (1 shl 7);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_ENABLE_8 = (1 shl 8);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_ENABLE_9 = (1 shl 9);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_ENABLE_10 = (1 shl 10);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_ENABLE_11 = (1 shl 11);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_ENABLE_12 = (1 shl 12);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_ENABLE_13 = (1 shl 13);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_ENABLE_14 = (1 shl 14);</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"|''Bits 15:23 Reserved'' | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_PAGE_MASK = ($F shl 24);</code> | ||
+ | | Set the 1G SDRAM ram page that the 30-bit DMA engines (DMA0-6) will access when addressing the 1G uncached range C000_0000->ffff_ffff | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_PAGE_DEFAULT = (0 shl 24);</code> | ||
+ | | E.g. setting this to 1 will mean that when the DMA writes to C000_0000 (uncached) the final address in SDRAM will be 4000_0000 ( page<<30 | addr[29:0] ) | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_PAGELITE_MASK = ($F shl 28);</code> | ||
+ | | Set the 1G SDRAM ram page that the DMA Lite engines (DMA7-10) will access when addressing the 1G uncached range C000_0000->ffff_ffff | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_PAGELITE_DEFAULT = (0 shl 28);</code> | ||
+ | | E.g. setting this to 1 will mean that when the DMA writes to C000_0000 (uncached) the final address in SDRAM will be 4000_0000 ( pagelite<<30 | addr[29:0] ) | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 DMA engine DREQ peripheral''' <code> BCM2838_DMA_DREQ_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Section 4 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_DREQ_NONE = 0;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_DREQ_DSI0 = 1;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_DREQ_PWM1 = 1;</code> | ||
+ | | The alternate DREQs are available by changing the DMA_CNTRL_MUX bits in the PACTL_CS register | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_DREQ_PCMTX = 2;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_DREQ_PCMRX = 3;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_DREQ_SMI = 4;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_DREQ_PWM0 = 5;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_DREQ_SPI0TX = 6;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_DREQ_SPI0RX = 7;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_DREQ_BSCSPITX = 8;</code> | ||
+ | | BSC/SPI Slave | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_DREQ_BSCSPIRX = 9;</code> | ||
+ | | BSC/SPI Slave | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_DREQ_HDMI0 = 10;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_DREQ_EMMC0 = 11;</code> | ||
+ | | SDHCI | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_DREQ_UART0TX = 12;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_DREQ_EMMC1 = 13;</code> | ||
+ | | SDHOST | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_DREQ_UART0RX = 14;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_DREQ_DSI1 = 15;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_DREQ_SPI1TX = 16;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_DREQ_HDMI1 = 17;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_DREQ_SPI1RX = 18;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_DREQ_UART3TX = 19;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_DREQ_SPI4TX = 19;</code> | ||
+ | | The alternate DREQs are available by changing the DMA_CNTRL_MUX bits in the PACTL_CS register | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_DREQ_UART3RX = 20;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_DREQ_SPI4RX = 20;</code> | ||
+ | | The alternate DREQs are available by changing the DMA_CNTRL_MUX bits in the PACTL_CS register | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_DREQ_UART5TX = 21;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_DREQ_SPI5TX = 21;</code> | ||
+ | | The alternate DREQs are available by changing the DMA_CNTRL_MUX bits in the PACTL_CS register | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_DREQ_UART5RX = 22;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_DREQ_SPI5RX = 22;</code> | ||
+ | | The alternate DREQs are available by changing the DMA_CNTRL_MUX bits in the PACTL_CS register | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_DREQ_SPI6TX = 23;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_DREQ_SCALER_FIFO0 = 24;</code> | ||
+ | | Scaler FIFO 0 & SMI (The SMI element can be disabled by setting the SMI_DISABLE bit in the DMA_DREQ_CONTROL register) | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_DREQ_SCALER_FIFO1 = 25;</code> | ||
+ | | Scaler FIFO 0 & SMI (The SMI element can be disabled by setting the SMI_DISABLE bit in the DMA_DREQ_CONTROL register) | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_DREQ_SCALER_FIFO2 = 26;</code> | ||
+ | | Scaler FIFO 0 & SMI (The SMI element can be disabled by setting the SMI_DISABLE bit in the DMA_DREQ_CONTROL register) | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_DREQ_SPI6RX = 27;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_DREQ_UART2TX = 28;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_DREQ_UART2RX = 29;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_DREQ_UART4TX = 30;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_DMA_DREQ_UART4RX = 31;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 BSC (I2C0/1/2) control''' <code> BCM2838_BSC_C_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Section 3.2 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_BSC_C_I2CEN = (1 shl 15);</code> | ||
+ | | style="width: 50%;"|I2C Enable (0 = BSC controller is disabled / 1 = BSC controller is enabled) | ||
+ | |- | ||
+ | | <code>BCM2838_BSC_C_INTR = (1 shl 10);</code> | ||
+ | | INTR Interrupt on RX (0 = Don t generate interrupts on RXR condition / 1 = Generate interrupt while RXR = 1) | ||
+ | |- | ||
+ | | <code>BCM2838_BSC_C_INTT = (1 shl 9);</code> | ||
+ | | INTT Interrupt on TX (0 = Don t generate interrupts on TXW condition / 1 = Generate interrupt while TXW = 1) | ||
+ | |- | ||
+ | | <code>BCM2838_BSC_C_INTD = (1 shl 8);</code> | ||
+ | | INTD Interrupt on DONE (0 = Don t generate interrupts on DONE condition / 1 = Generate interrupt while DONE = 1) | ||
+ | |- | ||
+ | | <code>BCM2838_BSC_C_ST = (1 shl 7);</code> | ||
+ | | ST Start Transfer (0 = No action / 1 = Start a new transfer. One shot operation. Read back as 0) | ||
+ | |- | ||
+ | | <code>BCM2838_BSC_C_CLEAR = (1 shl 5);</code> | ||
+ | | CLEAR FIFO Clear (00 = No action / x1 = Clear FIFO. One shot operation / 1x = Clear FIFO. One shot operation) | ||
+ | |- | ||
+ | | <code>BCM2838_BSC_C_READ = (1 shl 0);</code> | ||
+ | | READ Read Transfer (0 = Write Packet Transfer / 1 = Read Packet Transfer) | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 BSC (I2C0/1/2) status''' <code> BCM2838_BSC_S_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Section 3.2 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_BSC_S_CLKT = (1 shl 9);</code> | ||
+ | | style="width: 50%;"|CLKT Clock Stretch Timeout (0 = No errors detected. 1 = Slave has held the SCL signal low (clock stretching) for longer and that specified in the I2CCLKT register Cleared by writing 1 to the field.) | ||
+ | |- | ||
+ | | <code>BCM2838_BSC_S_ERR = (1 shl 8);</code> | ||
+ | | ERR ACK Error (0 = No errors detected. 1 = Slave has not acknowledged its address. Cleared by writing 1 to the field.) | ||
+ | |- | ||
+ | | <code>BCM2838_BSC_S_RXF = (1 shl 7);</code> | ||
+ | | RXF - FIFO Full (0 = FIFO is not full. 1 = FIFO is full. If a read is underway, no further serial data will be received until data is read from FIFO.) | ||
+ | |- | ||
+ | | <code>BCM2838_BSC_S_TXE = (1 shl 6);</code> | ||
+ | | TXE - FIFO Empty (0 = FIFO is not empty. 1 = FIFO is empty. If a write is underway, no further serial data can be transmitted until data is written to the FIFO.) | ||
+ | |- | ||
+ | | <code>BCM2838_BSC_S_RXD = (1 shl 5);</code> | ||
+ | | RXD - FIFO contains Data (0 = FIFO is empty. 1 = FIFO contains at least 1 byte. Cleared by reading sufficient data from FIFO.) | ||
+ | |- | ||
+ | | <code>BCM2838_BSC_S_TXD = (1 shl 4);</code> | ||
+ | | TXD - FIFO can accept Data (0 = FIFO is full. The FIFO cannot accept more data. 1 = FIFO has space for at least 1 byte.) | ||
+ | |- | ||
+ | | <code>BCM2838_BSC_S_RXR = (1 shl 3);</code> | ||
+ | | RXR - FIFO needs Reading (full) (0 = FIFO is less than full and a read is underway. 1 = FIFO is or more full and a read is underway. Cleared by reading sufficient data from the FIFO.) | ||
+ | |- | ||
+ | | <code>BCM2838_BSC_S_TXW = (1 shl 2);</code> | ||
+ | | TXW - FIFO needs Writing (full) (0 = FIFO is at least full and a write is underway (or sufficient data to send). 1 = FIFO is less then full and a write is underway. Cleared by writing sufficient data to the FIFO.) | ||
+ | |- | ||
+ | | <code>BCM2838_BSC_S_DONE = (1 shl 1);</code> | ||
+ | | DONE Transfer Done (0 = Transfer not completed. 1 = Transfer complete. Cleared by writing 1 to the field.) | ||
+ | |- | ||
+ | | <code>BCM2838_BSC_S_TA = (1 shl 0);</code> | ||
+ | | TA Transfer Active (0 = Transfer not active. 1 = Transfer active.) | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 BSC (I2C0/1/2) data length''' <code> BCM2838_BSC_DLEN_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Section 3.2 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_BSC_DLEN_MASK = $FFFF;</code> | ||
+ | | style="width: 50%;"|Data Length. (Writing to DLEN specifies the number of bytes to be transmitted/received. Reading from DLEN when TA = 1 or DONE = 1, returns the number of bytes still to be transmitted or received.) | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 BSC (I2C0/1/2) slave address''' <code> BCM2838_BSC_A_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Section 3.2 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_BSC_A_MASK = $7F;</code> | ||
+ | | style="width: 50%;"|Slave Address | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 BSC (I2C0/1/2) data FIFO''' <code> BCM2838_BSC_FIFO_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Section 3.2 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_BSC_FIFO_MASK = $FF;</code> | ||
+ | | style="width: 50%;"|Writes to the register write transmit data to the FIFO. Reads from register reads received data from the FIFO. | ||
+ | |- | ||
+ | | <code>BCM2838_BSC_FIFO_SIZE = 16;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 BSC (I2C0/1/2) clock divider''' <code> BCM2838_BSC_CDIV_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Section 3.2 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_BSC_CDIV_MASK = $FFFF;</code> | ||
+ | | style="width: 50%;"|Clock Divider (SCL = core clock / CDIV) (CDIV is always rounded down to an even number) | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 BSC (I2C0/1/2) data delay''' <code> BCM2838_BSC_DEL_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Section 3.2 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_BSC_DEL_FEDL_MASK = ($FFFF shl 16);</code> | ||
+ | | style="width: 50%;"|FEDL Falling Edge Delay (Number of core clock cycles to wait after the falling edge of SCL before outputting next bit of data) | ||
+ | |- | ||
+ | | <code>BCM2838_BSC_DEL_REDL_MASK = ($FFFF shl 0);</code> | ||
+ | | REDL Rising Edge Delay (Number of core clock cycles to wait after the rising edge of SCL before reading the next bit of data) | ||
+ | |- | ||
+ | | <code>BCM2838_BSC_DEL_FEDL_SHIFT = 16;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_BSC_DEL_REDL_SHIFT = 0;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 BSC (I2C0/1/2) clock stretch timeout''' <code> BCM2838_BSC_CLKT_TOUT_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Section 3.2 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_BSC_CLKT_TOUT_MASK = $FFFF;</code> | ||
+ | | style="width: 50%;"|TOUT Clock Stretch Timeout Value (Number of SCL clock cycles to wait after the rising edge of SCL before deciding that the slave is not responding) | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 SPI0''' <code> BCM2838_SPI0_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Section 10.5 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_SPI0_CS_LEN_LONG = (1 shl 25);</code> | ||
+ | | style="width: 50%;"|Enable Long data word in Lossi mode if DMA_LEN is set (0 = writing to the FIFO will write a single byte / 1 = writing to the FIFO will write a 32 bit word) | ||
+ | |- | ||
+ | | <code>BCM2838_SPI0_CS_DMA_LEN = (1 shl 24);</code> | ||
+ | | Enable DMA mode in Lossi mode | ||
+ | |- | ||
+ | | <code>BCM2838_SPI0_CS_CSPOL2 = (1 shl 23);</code> | ||
+ | | Chip Select 2 Polarity (0 = Chip select is active low / 1 = Chip select is active high) | ||
+ | |- | ||
+ | | <code>BCM2838_SPI0_CS_CSPOL1 = (1 shl 22);</code> | ||
+ | | Chip Select 1 Polarity (0 = Chip select is active low / 1 = Chip select is active high) | ||
+ | |- | ||
+ | | <code>BCM2838_SPI0_CS_CSPOL0 = (1 shl 21);</code> | ||
+ | | Chip Select 0 Polarity (0 = Chip select is active low / 1 = Chip select is active high) | ||
+ | |- | ||
+ | | <code>BCM2838_SPI0_CS_RXF = (1 shl 20);</code> | ||
+ | | RXF - RX FIFO Full (0 = RXFIFO is not full / 1 = RX FIFO is full. No further serial data will be sent/received until data is read from FIFO.) | ||
+ | |- | ||
+ | | <code>BCM2838_SPI0_CS_RXR = (1 shl 19);</code> | ||
+ | | RXR RX FIFO needs Reading (full) (0 = RX FIFO is less than full (or not active TA = 0) / 1 = RX FIFO is or more full. Cleared by reading sufficient data from the RX FIFO or setting TA to 0.) | ||
+ | |- | ||
+ | | <code>BCM2838_SPI0_CS_TXD = (1 shl 18);</code> | ||
+ | | TXD TX FIFO can accept Data (0 = TX FIFO is full and so cannot accept more data / 1 = TX FIFO has space for at least 1 byte) | ||
+ | |- | ||
+ | | <code>BCM2838_SPI0_CS_RXD = (1 shl 17);</code> | ||
+ | | RXD RX FIFO contains Data (0 = RX FIFO is empty / 1 = RX FIFO contains at least 1 byte) | ||
+ | |- | ||
+ | | <code>BCM2838_SPI0_CS_DONE = (1 shl 16);</code> | ||
+ | | DONE Transfer Done (0 = Transfer is in progress (or not active TA = 0) / 1 = Transfer is complete. Cleared by writing more data to the TX FIFO or setting TA to 0.) | ||
+ | |- | ||
+ | | <code>BCM2838_SPI0_CS_TE_EN = (1 shl 15);</code> | ||
+ | | Unused | ||
+ | |- | ||
+ | | <code>BCM2838_SPI0_CS_LMONO = (1 shl 14);</code> | ||
+ | | Unused | ||
+ | |- | ||
+ | | <code>BCM2838_SPI0_CS_LEN = (1 shl 13);</code> | ||
+ | | LEN LoSSI enable (0 = The serial interface will behave as an SPI master / 1 = The serial interface will behave as a LoSSI master) | ||
+ | |- | ||
+ | | <code>BCM2838_SPI0_CS_REN = (1 shl 12);</code> | ||
+ | | REN Read Enable. If this bit is set, the SPI peripheral will be able to send data to this device (0 = We intend to write to the SPI peripheral / 1 = We intend to read from the SPI peripheral) | ||
+ | |- | ||
+ | | <code>BCM2838_SPI0_CS_ADCS = (1 shl 11);</code> | ||
+ | | ADCS Automatically Deassert Chip Select (0 = Don t automatically deassert chip select at the end of a DMA transfer chip select is manually controlled by software / 1 = Automatically deassert chip select at the end of a DMA transfer as determined by SPIDLEN) | ||
+ | |- | ||
+ | | <code>BCM2838_SPI0_CS_INTR = (1 shl 10);</code> | ||
+ | | INTR Interrupt on RXR (0 = Don t generate interrupts on RX FIFO condition / 1 = Generate interrupt while RXR = 1) | ||
+ | |- | ||
+ | | <code>BCM2838_SPI0_CS_INTD = (1 shl 9);</code> | ||
+ | | INTD Interrupt on Done (0 = Don t generate interrupt on transfer complete / 1 = Generate interrupt when DONE = 1) | ||
+ | |- | ||
+ | | <code>BCM2838_SPI0_CS_DMAEN = (1 shl 8);</code> | ||
+ | | DMAEN DMA Enable (0 = No DMA requests will be issued / 1 = Enable DMA operation. Peripheral generates data requests. These will be taken in four-byte words until the SPIDLEN has been reached. | ||
+ | |- | ||
+ | | <code>BCM2838_SPI0_CS_TA = (1 shl 7);</code> | ||
+ | | Transfer Active (0 = Transfer not active / 1 = Transfer active) | ||
+ | |- | ||
+ | | <code>BCM2838_SPI0_CS_CSPOL = (1 shl 6);</code> | ||
+ | | Chip Select Polarity (0 = Chip select lines are active low / 1 = Chip select lines are active high | ||
+ | |- | ||
+ | | <code>BCM2838_SPI0_CS_CLEAR_RX = (1 shl 5);</code> | ||
+ | | CLEAR FIFO Clear (00 = No action / x1 = Clear TX FIFO. One shot operation / 1x = Clear RX FIFO. One shot operation.) | ||
+ | |- | ||
+ | | <code>BCM2838_SPI0_CS_CLEAR_TX = (1 shl 4);</code> | ||
+ | | As above | ||
+ | |- | ||
+ | | <code>BCM2838_SPI0_CS_CPOL = (1 shl 3);</code> | ||
+ | | Clock Polarity (0 = Rest state of clock = low / 1 = Rest state of clock = high) | ||
+ | |- | ||
+ | | <code>BCM2838_SPI0_CS_CPHA = (1 shl 2);</code> | ||
+ | | Clock Phase (0 = First SCLK transition at middle of data bit / 1 = First SCLK transition at beginning of data bit) | ||
+ | |- | ||
+ | | <code>BCM2838_SPI0_CS_CS_0 = (0 shl 0);</code> | ||
+ | | Chip Select (00 = Chip select 0 / 01 = Chip select 1 / 10 = Chip select 2 / 11 = Reserved | ||
+ | |- | ||
+ | | <code>BCM2838_SPI0_CS_CS_1 = (1 shl 0);</code> | ||
+ | | As above | ||
+ | |- | ||
+ | | <code>BCM2838_SPI0_CS_CS_2 = (2 shl 0);</code> | ||
+ | | As above | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_SPI0_CS_CS_MASK = (3 shl 0);</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_SPI0_FIFO_DMA_DATA = $FFFFFFFF;</code> | ||
+ | | DMA Mode (DMAEN set) If TA is clear, the first 32-bit write to this register will control SPIDLEN and SPICS. Subsequent reads and writes will be taken as four-byte data words to be read/written to the FIFOs. | ||
+ | |- | ||
+ | | <code>BCM2838_SPI0_FIFO_IRQ_DATA = $000000FF;</code> | ||
+ | | Poll/Interrupt Mode (DMAEN clear, TA set) Writes to the register write bytes to TX FIFO. Reads from register read bytes from the RX FIFO. | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_SPI0_CLK_CDIV = $0000FFFF;</code> | ||
+ | | Clock Divider (SCLK = Core Clock / CDIV) If CDIV is set to 0, the divisor is 65536. The divisor must be a multiple of 2. Odd numbers rounded down. The maximum SPI clock rate is of the APB clock. | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_SPI0_DLEN_LEN = $0000FFFF;</code> | ||
+ | | Data Length. The number of bytes to transfer. This field is only valid for DMA mode (DMAEN set) and controls how many bytes to transmit (and therefore receive). | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_SPI0_LTOH_TOH = $0000000F;</code> | ||
+ | | This sets the Output Hold delay in APB clocks (A value of 0 causes a 1 clock delay) | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_SPI0_DC_RPANIC = ($FF shl 24);</code> | ||
+ | | DMA Read Panic Threshold (Generate the Panic signal to the RX DMA engine whenever the RX FIFO level is greater than this amount) | ||
+ | |- | ||
+ | | <code>BCM2838_SPI0_DC_RDREQ = ($FF shl 16);</code> | ||
+ | | DMA Read Request Threshold (Generate A DREQ to the RX DMA engine whenever the RX FIFO level is greater than this amount) (RX DREQ is also generated if thetransfer has finished but the RXFIFO isn't empty) | ||
+ | |- | ||
+ | | <code>BCM2838_SPI0_DC_TPANIC = ($FF shl 8);</code> | ||
+ | | DMA Write Panic Threshold (Generate the Panic signal to the TX DMA engine whenever the TX FIFO level is less than or equal to this amount) | ||
+ | |- | ||
+ | | <code>BCM2838_SPI0_DC_TDREQ = ($FF shl 0);</code> | ||
+ | | DMA Write Request Threshold (Generate a DREQ signal to the TX DMA engine whenever the TX FIFO level is less than or equal to this amount) | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 I2C/SPI Slave register'''</div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Section 11.2 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 AUX (UART1, SPI1 and SPI2) register'''</div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Section 2.1 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 PCM/I2S register'''</div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Section 8.8 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 PWM control ''' <code> BCM2838_PWM_CTL_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Section 9.6 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_PWM_CTL_MSEN2 = (1 shl 15);</code> | ||
+ | | style="width: 50%;"|Channel 2 M/S Enable (0: PWM algorithm is used / 1: M/S transmission is used) | ||
+ | |- | ||
+ | |colspan="2"|''Bit 14 Reserved - Write as 0, read as don't care'' | ||
+ | |- | ||
+ | | <code>BCM2838_PWM_CTL_USEF2 = (1 shl 13);</code> | ||
+ | | Channel 2 Use Fifo (0: Data register is transmitted / 1: Fifo is used for transmission) | ||
+ | |- | ||
+ | | <code>BCM2838_PWM_CTL_POLA2 = (1 shl 12);</code> | ||
+ | | Channel 2 Polarity (0 : 0=low 1=high / 1: 1=low 0=high) | ||
+ | |- | ||
+ | | <code>BCM2838_PWM_CTL_SBIT2 = (1 shl 11);</code> | ||
+ | | Channel 2 Silence Bit (Defines the state of the output when no transmission takes place) | ||
+ | |- | ||
+ | | <code>BCM2838_PWM_CTL_RPTL2 = (1 shl 10);</code> | ||
+ | | Channel 2 Repeat Last Data (0: Transmission interrupts when FIFO is empty / 1: Last data in FIFO is transmitted repeatedly until FIFO is not empty) | ||
+ | |- | ||
+ | | <code>BCM2838_PWM_CTL_MODE2 = (1 shl 9);</code> | ||
+ | | Channel 2 Mode (0: PWM mode / 1: Serialiser mode) | ||
+ | |- | ||
+ | | <code>BCM2838_PWM_CTL_PWEN2 = (1 shl 8);</code> | ||
+ | | Channel 2 Enable (0: Channel is disabled / 1: Channel is enabled) | ||
+ | |- | ||
+ | | <code>BCM2838_PWM_CTL_MSEN1 = (1 shl 7);</code> | ||
+ | | Channel 1 M/S Enable (0: PWM algorithm is used / 1: M/S transmission is used) | ||
+ | |- | ||
+ | | <code>BCM2838_PWM_CTL_CLRF1 = (1 shl 6);</code> | ||
+ | | Clear Fifo (1: Clears FIFO / 0: Has no effect) (This is a single shot operation. This bit always reads 0.) | ||
+ | |- | ||
+ | | <code>BCM2838_PWM_CTL_USEF1 = (1 shl 5);</code> | ||
+ | | Channel 1 Use Fifo (0: Data register is transmitted / 1: Fifo is used for transmission) | ||
+ | |- | ||
+ | | <code>BCM2838_PWM_CTL_POLA1 = (1 shl 4);</code> | ||
+ | | Channel 1 Polarity (0 : 0=low 1=high / 1: 1=low 0=high) | ||
+ | |- | ||
+ | | <code>BCM2838_PWM_CTL_SBIT1 = (1 shl 3);</code> | ||
+ | | Channel 1 Silence Bit (Defines the state of the output when no transmission takes place) | ||
+ | |- | ||
+ | | <code>BCM2838_PWM_CTL_RPTL1 = (1 shl 2);</code> | ||
+ | | Channel 1 Repeat Last Data (0: Transmission interrupts when FIFO is empty / 1: Last data in FIFO is transmitted repeatedly until FIFO is not empty) | ||
+ | |- | ||
+ | | <code>BCM2838_PWM_CTL_MODE1 = (1 shl 1);</code> | ||
+ | | Channel 1 Mode (0: PWM mode / 1: Serialiser mode) | ||
+ | |- | ||
+ | | <code>BCM2838_PWM_CTL_PWEN1 = (1 shl 0);</code> | ||
+ | | Channel 1 Enable (0: Channel is disabled / 1: Channel is enabled) | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 PWM status''' <code> BCM2838_PWM_STA_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Section 9.6 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_PWM_STA_STA4 = (1 shl 12);</code> | ||
+ | | style="width: 50%;"|Channel 4 State | ||
+ | |- | ||
+ | | <code>BCM2838_PWM_STA_STA3 = (1 shl 11);</code> | ||
+ | | Channel 3 State | ||
+ | |- | ||
+ | | <code>BCM2838_PWM_STA_STA2 = (1 shl 10);</code> | ||
+ | | Channel 2 State | ||
+ | |- | ||
+ | | <code>BCM2838_PWM_STA_STA1 = (1 shl 9);</code> | ||
+ | | Channel 1 State | ||
+ | |- | ||
+ | | <code>BCM2838_PWM_STA_BERR = (1 shl 8);</code> | ||
+ | | Bus Error Flag | ||
+ | |- | ||
+ | | <code>BCM2838_PWM_STA_GAPO4 = (1 shl 7);</code> | ||
+ | | Channel 4 Gap Occurred Flag | ||
+ | |- | ||
+ | | <code>BCM2838_PWM_STA_GAPO3 = (1 shl 6);</code> | ||
+ | | Channel 3 Gap Occurred Flag | ||
+ | |- | ||
+ | | <code>BCM2838_PWM_STA_GAPO2 = (1 shl 5);</code> | ||
+ | | Channel 2 Gap Occurred Flag | ||
+ | |- | ||
+ | | <code>BCM2838_PWM_STA_GAPO1 = (1 shl 4);</code> | ||
+ | | Channel 1 Gap Occurred Flag | ||
+ | |- | ||
+ | | <code>BCM2838_PWM_STA_RERR1 = (1 shl 3);</code> | ||
+ | | Fifo Read Error Flag | ||
+ | |- | ||
+ | | <code>BCM2838_PWM_STA_WERR1 = (1 shl 2);</code> | ||
+ | | Fifo Write Error Flag | ||
+ | |- | ||
+ | | <code>BCM2838_PWM_STA_EMPT1 = (1 shl 1);</code> | ||
+ | | Fifo Empty Flag | ||
+ | |- | ||
+ | | <code>BCM2838_PWM_STA_FULL1 = (1 shl 0);</code> | ||
+ | | Fifo Full Flag | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 PWM DMA configuration''' <code> BCM2838_PWM_DMAC_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Section 9.6 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_PWM_DMAC_ENAB = (1 shl 31);</code> | ||
+ | | style="width: 50%;"|DMA Enable (0: DMA disabled / 1: DMA enabled) | ||
+ | |- | ||
+ | | <code>BCM2838_PWM_DMAC_PANIC = ($FF shl 8);</code> | ||
+ | | DMA Threshold for PANIC signal (Default: 0x7) | ||
+ | |- | ||
+ | | <code>BCM2838_PWM_DMAC_DREQ = ($FF shl 0);</code> | ||
+ | | DMA Threshold for DREQ signal (Default: 0x7) | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 Pulse Width Modulator (PWM)''' <code> BCM2838_PWM_ * </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_PWM_CTL = $00000000;</code> | ||
+ | | style="width: 50%;"|PWM Control | ||
+ | |- | ||
+ | | <code>BCM2838_PWM_STA = $00000004;</code> | ||
+ | | PWM Status | ||
+ | |- | ||
+ | | <code>BCM2838_PWM_DMAC = $00000008;</code> | ||
+ | | PWM DMA Configuration | ||
+ | |- | ||
+ | | <code>BCM2838_PWM_RNG1 = $00000010;</code> | ||
+ | | PWM Channel 1 Range | ||
+ | |- | ||
+ | | <code>BCM2838_PWM_DAT1 = $00000014;</code> | ||
+ | | PWM Channel 1 Data | ||
+ | |- | ||
+ | | <code>BCM2838_PWM_FIF1 = $00000018;</code> | ||
+ | | PWM FIFO Input | ||
+ | |- | ||
+ | | <code>BCM2838_PWM_RNG2 = $00000020;</code> | ||
+ | | PWM Channel 2 Range | ||
+ | |- | ||
+ | | <code>BCM2838_PWM_DAT2 = $00000024;</code> | ||
+ | | PWM Channel 2 Data | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 PL011 UART data ''' <code> BCM2838_PL011_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Section 13.4 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_DR_OE = (1 shl 11);</code> | ||
+ | | style="width: 50%;"|Overrun error | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_DR_BE = (1 shl 10);</code> | ||
+ | | Break error | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_DR_PE = (1 shl 9);</code> | ||
+ | | Parity error | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_DR_FE = (1 shl 8);</code> | ||
+ | | Framing error | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_DR_DATA = ($FF shl 0);</code> | ||
+ | | Receive / Transmit data | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_DR_ERROR = BCM2838_PL011_DR_OE or BCM2838_PL011_DR_BE or BCM2838_PL011_DR_PE or BCM2838_PL011_DR_FE;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 PL011 UART receive status/error clear''' <code> BCM2838_PL011_RSRECR_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Section 13.4 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_RSRECR_OE = (1 shl 3);</code> | ||
+ | | style="width: 50%;"|Overrun error | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_RSRECR_BE = (1 shl 2);</code> | ||
+ | | Break error | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_RSRECR_PE = (1 shl 1);</code> | ||
+ | | Parity error | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_RSRECR_FE = (1 shl 0);</code> | ||
+ | | Framing error | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 PL011 UART flag''' <code> BCM2838_PL011_FR_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Section 13.4 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_FR_RI = (1 shl 8);</code> | ||
+ | | style="width: 50%;"|Unsupported, write zero, read as don't care | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_FR_TXFE = (1 shl 7);</code> | ||
+ | | Transmit FIFO empty | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_FR_RXFF = (1 shl 6);</code> | ||
+ | | Receive FIFO full | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_FR_TXFF = (1 shl 5);</code> | ||
+ | | Transmit FIFO full | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_FR_RXFE = (1 shl 4);</code> | ||
+ | | Receive FIFO empty | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_FR_BUSY = (1 shl 3);</code> | ||
+ | | UART busy | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_FR_DCD = (1 shl 2);</code> | ||
+ | | Unsupported, write zero, read as don't care | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_FR_DSR = (1 shl 1);</code> | ||
+ | | Unsupported, write zero, read as don't care | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_FR_CTS = (1 shl 0);</code> | ||
+ | | Clear to send (This bit is the complement of the UART clear to send, nUARTCTS, modem status input. That is, the bit is 1 when nUARTCTS is LOW.) | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 PL011 UART IrDA'''</div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Section 13.4 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | |colspan="2"|''This register is disabled, writing to it has no effect and reading returns 0'' | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 PL011 UART integer baud rate divisor ''' <code> BCM2838_PL011_IBRD_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_IBRD_MASK = ($FFFF shl 0);</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 PL011 UART fractional baud rate divisor''' <code> BCM2838_PL011_FBRD_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Section 13.4 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_FBRD_MASK = ($3F shl 0);</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 PL011 UART line control''' <code> BCM2838_PL011_LCRH_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Section 13.4 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_LCRH_SPS = (1 shl 7);</code> | ||
+ | | style="width: 50%;"|Stick parity select | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_LCRH_WLEN = (3 shl 5);</code> | ||
+ | | Word length | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_LCRH_WLEN8 = (3 shl 5);</code> | ||
+ | | 8 bits | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_LCRH_WLEN7 = (2 shl 5);</code> | ||
+ | | 7 bits | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_LCRH_WLEN6 = (1 shl 5);</code> | ||
+ | | 6 bits | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_LCRH_WLEN5 = (0 shl 5);</code> | ||
+ | | 5 bits | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_LCRH_FEN = (1 shl 4);</code> | ||
+ | | Enable FIFOs | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_LCRH_STP2 = (1 shl 3);</code> | ||
+ | | Two stop bits select | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_LCRH_EPS = (1 shl 2);</code> | ||
+ | | Even parity select (0 = odd parity / 1 = even parity) | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_LCRH_PEN = (1 shl 1);</code> | ||
+ | | Parity enable | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_LCRH_BRK = (1 shl 0);</code> | ||
+ | | Send break | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 PL011 UART control''' <code> BCM2838_PL011_CR_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Section 13.4 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_CR_CTSEN = (1 shl 15);</code> | ||
+ | | style="width: 50%;"|CTS hardware flow control enable (If this bit is set to 1 data is only transmitted when the nUARTCTS signal is asserted) | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_CR_RTSEN = (1 shl 14);</code> | ||
+ | | RTS hardware flow control enable (If this bit is set to 1 data is only requested when there is space in the receive FIFO for it to be received) | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_CR_OUT2 = (1 shl 13);</code> | ||
+ | | Unsupported, write zero, read as don't care | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_CR_OUT1 = (1 shl 12);</code> | ||
+ | | Unsupported, write zero, read as don't care | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_CR_RTS = (1 shl 11);</code> | ||
+ | | Request to send (This bit is the complement of the UART request to send, nUARTRTS, modem status output. That is, when the bit is programmed to a 1 then nUARTRTS is LOW.) | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_CR_DTR = (1 shl 10);</code> | ||
+ | | Unsupported, write zero, read as don't care | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_CR_RXE = (1 shl 9);</code> | ||
+ | | Receive enable | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_CR_TXE = (1 shl 8);</code> | ||
+ | | Transmit enable | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_CR_LBE = (1 shl 7);</code> | ||
+ | | Loopback enable | ||
+ | |- | ||
+ | |colspan="2"|''Bits 6:3 Reserved - Write as 0, read as don't care'' | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_CR_SIRLP = (1 shl 2);</code> | ||
+ | | Unsupported, write zero, read as don't care | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_CR_SIREN = (1 shl 1);</code> | ||
+ | | Unsupported, write zero, read as don't care | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_CR_UARTEN = (1 shl 0);</code> | ||
+ | | UART enable | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 PL011 UART interrupt FIFO level select''' <code> BCM2838_PL011_IFLS_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Section 13.4 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_IFLS_RXIFPSEL = (7 shl 9);</code> | ||
+ | | style="width: 50%;"|Unsupported, write zero, read as don't care | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_IFLS_TXIFPSEL = (7 shl 6);</code> | ||
+ | | Unsupported, write zero, read as don't care | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_IFLS_RXIFLSEL = (7 shl 3);</code> | ||
+ | | Receive interrupt FIFO level select | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_IFLS_RXIFLSEL1_8 = (0 shl 3);</code> | ||
+ | | b000 = Receive FIFO becomes >= 1/8 full | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_IFLS_RXIFLSEL1_4 = (1 shl 3);</code> | ||
+ | | b001 = Receive FIFO becomes >= 1/4 full | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_IFLS_RXIFLSEL1_2 = (2 shl 3);</code> | ||
+ | | b010 = Receive FIFO becomes >= 1/2 full | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_IFLS_RXIFLSEL3_4 = (3 shl 3);</code> | ||
+ | | b011 = Receive FIFO becomes >= 3/4 full | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_IFLS_RXIFLSEL7_8 = (4 shl 3);</code> | ||
+ | | b100 = Receive FIFO becomes >= 7/8 full | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_IFLS_TXIFLSEL = (7 shl 0);</code> | ||
+ | | Transmit interrupt FIFO level select | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_IFLS_TXIFLSEL1_8 = (0 shl 0);</code> | ||
+ | | b000 = Transmit FIFO becomes <= 1/8 full | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_IFLS_TXIFLSEL1_4 = (1 shl 0);</code> | ||
+ | | b001 = Transmit FIFO becomes <= 1/4 full | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_IFLS_TXIFLSEL1_2 = (2 shl 0);</code> | ||
+ | | b010 = Transmit FIFO becomes <= 1/2 full | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_IFLS_TXIFLSEL3_4 = (3 shl 0);</code> | ||
+ | | b011 = Transmit FIFO becomes <= 3/4 full | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_IFLS_TXIFLSEL7_8 = (4 shl 0);</code> | ||
+ | | b100 = Transmit FIFO becomes <= 7/8 full | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 PL011 UART interrupt mask set/clear''' <code> BCM2838_PL011_IMSC_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Section 13.4 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_IMSC_OEIM = (1 shl 10);</code> | ||
+ | | style="width: 50%;"|Overrun error interrupt mask | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_IMSC_BEIM = (1 shl 9);</code> | ||
+ | | Break error interrupt mask | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_IMSC_PEIM = (1 shl 8);</code> | ||
+ | | Parity error interrupt mask | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_IMSC_FEIM = (1 shl 7);</code> | ||
+ | | Framing error interrupt mask | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_IMSC_RTIM = (1 shl 6);</code> | ||
+ | | Receive timeout interrupt mask | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_IMSC_TXIM = (1 shl 5);</code> | ||
+ | | Transmit interrupt mask | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_IMSC_RXIM = (1 shl 4);</code> | ||
+ | | Receive interrupt mask | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_IMSC_DSRMIM = (1 shl 3);</code> | ||
+ | | Unsupported, write zero, read as don't care | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_IMSC_DCDMIM = (1 shl 2);</code> | ||
+ | | Unsupported, write zero, read as don't care | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_IMSC_CTSMIM = (1 shl 1);</code> | ||
+ | | nUARTCTS modem interrupt mask | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_IMSC_RIMIM = (1 shl 0);</code> | ||
+ | | Unsupported, write zero, read as don't care | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 PL011 UART raw interrupt status''' <code> BCM2838_PL011_RIS_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Section 13.4 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_RIS_OERIS = (1 shl 10);</code> | ||
+ | | style="width: 50%;"|Overrun error interrupt status | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_RIS_BERIS = (1 shl 9);</code> | ||
+ | | Break error interrupt status | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_RIS_PERIS = (1 shl 8);</code> | ||
+ | | Parity error interrupt status | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_RIS_FERIS = (1 shl 7);</code> | ||
+ | | Framing error interrupt status | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_RIS_RTRIS = (1 shl 6);</code> | ||
+ | | Receive timeout interrupt status | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_RIS_TXRIS = (1 shl 5);</code> | ||
+ | | Transmit interrupt status | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_RIS_RXRIS = (1 shl 4);</code> | ||
+ | | Receive interrupt status | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_RIS_DSRMRIS = (1 shl 3);</code> | ||
+ | | Unsupported, write zero, read as don't care | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_RIS_DCDMRIS = (1 shl 2);</code> | ||
+ | | Unsupported, write zero, read as don't care | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_RIS_CTSMRIS = (1 shl 1);</code> | ||
+ | | nUARTCTS modem interrupt status | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_RIS_RIMRIS = (1 shl 0);</code> | ||
+ | | Unsupported, write zero, read as don't care | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 PL011 UART masked interrupt status''' <code> BCM2838_PL011_MIS_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Section 13.4 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_MIS_OEMIS = (1 shl 10);</code> | ||
+ | | style="width: 50%;"|Overrun error masked interrupt status | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_MIS_BEMIS = (1 shl 9);</code> | ||
+ | | Break error masked interrupt status | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_MIS_PEMIS = (1 shl 8);</code> | ||
+ | | Parity error masked interrupt status | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_MIS_FEMIS = (1 shl 7);</code> | ||
+ | | Framing error masked interrupt status | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_MIS_RTMIS = (1 shl 6);</code> | ||
+ | | Receive timeout masked interrupt status | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_MIS_TXMIS = (1 shl 5);</code> | ||
+ | | Transmit masked interrupt status | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_MIS_RXMIS = (1 shl 4);</code> | ||
+ | | Receive masked interrupt status | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_MIS_DSRMMIS = (1 shl 3);</code> | ||
+ | | Unsupported, write zero, read as don't care | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_MIS_DCDMMIS = (1 shl 2);</code> | ||
+ | | Unsupported, write zero, read as don't care | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_MIS_CTSMMIS = (1 shl 1);</code> | ||
+ | | nUARTCTS modem masked interrupt status | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_MIS_RIMMIS = (1 shl 0);</code> | ||
+ | | Unsupported, write zero, read as don't care | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 PL011 UART interrupt clear''' <code> BCM2838_PL011_ICR_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Section 13.4 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_ICR_OEIC = (1 shl 10);</code> | ||
+ | | style="width: 50%;"|Overrun error interrupt clear | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_ICR_BEIC = (1 shl 9);</code> | ||
+ | | Break error interrupt clear | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_ICR_PEIC = (1 shl 8);</code> | ||
+ | | Parity error interrupt clear | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_ICR_FEIC = (1 shl 7);</code> | ||
+ | | Framing error interrupt clear | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_ICR_RTIC = (1 shl 6);</code> | ||
+ | | Receive timeout interrupt clear | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_ICR_TXIC = (1 shl 5);</code> | ||
+ | | Transmit interrupt clear | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_ICR_RXIC = (1 shl 4);</code> | ||
+ | | Receive interrupt clear | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_ICR_DSRMIC = (1 shl 3);</code> | ||
+ | | Unsupported, write zero, read as don't care | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_ICR_DCDMIC = (1 shl 2);</code> | ||
+ | | Unsupported, write zero, read as don't care | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_ICR_CTSMIC = (1 shl 1);</code> | ||
+ | | nUARTCTS modem interrupt clear | ||
+ | |- | ||
+ | | <code>BCM2838_PL011_ICR_RIMIC = (1 shl 0);</code> | ||
+ | | Unsupported, write zero, read as don't care | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 PL011 UART DMA control'''</div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Section 13.4 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | |colspan="2"|''This register is disabled, writing to it has no effect and reading returns 0'' | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 PL011 UART test control'''</div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Section 13.4 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 PL011 UART integration test input'''</div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Section 13.4 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 PL011 UART integration test output'''</div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Section 13.4 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 PL011 UART test data'''</div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Section 13.4 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 ARM legacy interrupt controller''' <code> BCM2838_ARM_INTERRUPT_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_IRQ0_PENDING0 = $00000000;</code> | ||
+ | | style="width: 50%;"|ARM Core 0 IRQ Enabled Interrupt Pending bits [31:0] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_IRQ0_PENDING1 = $00000004;</code> | ||
+ | | ARM Core 0 IRQ Enabled Interrupt pending bits [63:32] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_IRQ0_PENDING2 = $00000008;</code> | ||
+ | | ARM Core 0 IRQ Enabled Interrupt pending bits [79:64] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_IRQ0_SET_EN_0 = $00000010;</code> | ||
+ | | Write to Set ARM Core 0 IRQ enable bits [31:0] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_IRQ0_SET_EN_1 = $00000014;</code> | ||
+ | | Write to Set ARM Core 0 IRQ enable bits [63:32] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_IRQ0_SET_EN_2 = $00000018;</code> | ||
+ | | Write to Set ARM Core 0 IRQ enable bits [79:64] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_IRQ0_CLR_EN_0 = $00000020;</code> | ||
+ | | Write to Clear ARM Core 0 IRQ enable bits [31:0] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_IRQ0_CLR_EN_1 = $00000024;</code> | ||
+ | | Write to Clear ARM Core 0 IRQ enable bits [63:32] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_IRQ0_CLR_EN_2 = $00000028;</code> | ||
+ | | Write to Clear ARM Core 0 IRQ enable bits [79:64] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_IRQ_STATUS0 = $00000030;</code> | ||
+ | | Interrupt Line bits [31:0] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_IRQ_STATUS1 = $00000034;</code> | ||
+ | | Interrupt Line bits [63:32] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_IRQ_STATUS2 = $00000038;</code> | ||
+ | | Interrupt Line bits [79:64] | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_IRQ1_PENDING0 = $00000040;</code> | ||
+ | | ARM Core 1 IRQ Enabled Interrupt pending bits [31:0] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_IRQ1_PENDING1 = $00000044;</code> | ||
+ | | ARM Core 1 IRQ Enabled Interrupt pending bits [63:32] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_IRQ1_PENDING2 = $00000048;</code> | ||
+ | | ARM Core 1 IRQ Enabled Interrupt pending bits [79:64] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_IRQ1_SET_EN_0 = $00000050;</code> | ||
+ | | Write to Set ARM Core 1 IRQ enable bits [31:0] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_IRQ1_SET_EN_1 = $00000054;</code> | ||
+ | | Write to Set ARM Core 1 IRQ enable bits [63:32] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_IRQ1_SET_EN_2 = $00000058;</code> | ||
+ | | Write to Set ARM Core 1 IRQ enable bits [79:64] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_IRQ1_CLR_EN_0 = $00000060;</code> | ||
+ | | Write to Clear ARM Core 1 IRQ enable bits [31:0] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_IRQ1_CLR_EN_1 = $00000064;</code> | ||
+ | | Write to Clear ARM Core 1 IRQ enable bits [63:32] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_IRQ1_CLR_EN_2 = $00000068;</code> | ||
+ | | Write to Clear ARM Core 1 IRQ enable bits [79:64] | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_IRQ2_PENDING0 = $00000080;</code> | ||
+ | | ARM Core 2 IRQ Enabled Interrupt pending bits [31:0] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_IRQ2_PENDING1 = $00000084;</code> | ||
+ | | ARM Core 2 IRQ Enabled Interrupt pending bits [63:32] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_IRQ2_PENDING2 = $00000088;</code> | ||
+ | | ARM Core 2 IRQ Enabled Interrupt pending bits [79:64] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_IRQ2_SET_EN_0 = $00000090;</code> | ||
+ | | Write to Set ARM Core 2 IRQ enable bits [31:0] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_IRQ2_SET_EN_1 = $00000094;</code> | ||
+ | | Write to Set ARM Core 2 IRQ enable bits [63:32] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_IRQ2_SET_EN_2 = $00000098;</code> | ||
+ | | Write to Set ARM Core 2 IRQ enable bits [79:64] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_IRQ2_CLR_EN_0 = $000000A0;</code> | ||
+ | | Write to Clear ARM Core 2 IRQ enable bits [31:0] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_IRQ2_CLR_EN_1 = $000000A4;</code> | ||
+ | | Write to Clear ARM Core 2 IRQ enable bits [63:32] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_IRQ2_CLR_EN_2 = $000000A8;</code> | ||
+ | | Write to Clear ARM Core 2 IRQ enable bits [79:64] | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_IRQ3_PENDING0 = $000000C0;</code> | ||
+ | | ARM Core 3 IRQ Enabled Interrupt pending bits [31:0] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_IRQ3_PENDING1 = $000000C4;</code> | ||
+ | | ARM Core 3 IRQ Enabled Interrupt pending bits [63:32] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_IRQ3_PENDING2 = $000000C8;</code> | ||
+ | | ARM Core 3 IRQ Enabled Interrupt pending bits [79:64] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_IRQ3_SET_EN_0 = $000000D0;</code> | ||
+ | | Write to Set ARM Core 3 IRQ enable bits [31:0] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_IRQ3_SET_EN_1 = $000000D4;</code> | ||
+ | | Write to Set ARM Core 3 IRQ enable bits [63:32] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_IRQ3_SET_EN_2 = $000000D8;</code> | ||
+ | | Write to Set ARM Core 3 IRQ enable bits [79:64] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_IRQ3_CLR_EN_0 = $000000E0;</code> | ||
+ | | Write to Clear ARM Core 3 IRQ enable bits [31:0] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_IRQ3_CLR_EN_1 = $000000E4;</code> | ||
+ | | Write to Clear ARM Core 3 IRQ enable bits [63:32] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_IRQ3_CLR_EN_2 = $000000E8;</code> | ||
+ | | Write to Clear ARM Core 3 IRQ enable bits [79:64] | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_FIQ0_PENDING0 = $00000100;</code> | ||
+ | | ARM Core 0 FIQ Enabled Interrupt pending bits [31:0] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_FIQ0_PENDING1 = $00000104;</code> | ||
+ | | ARM Core 0 FIQ Enabled Interrupt pending bits [63:32] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_FIQ0_PENDING2 = $00000108;</code> | ||
+ | | ARM Core 0 FIQ Enabled Interrupt pending bits [79:64] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_FIQ0_SET_EN_0 = $00000110;</code> | ||
+ | | Write to Set ARM Core 0 FIQ enable bits [31:0] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_FIQ0_SET_EN_1 = $00000114;</code> | ||
+ | | Write to Set ARM Core 0 FIQ enable bits [63:32] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_FIQ0_SET_EN_2 = $00000118;</code> | ||
+ | | Write to Set ARM Core 0 FIQ enable bits [79:64] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_FIQ0_CLR_EN_0 = $00000120;</code> | ||
+ | | Write to Clear ARM Core 0 FIQ enable bits [31:0] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_FIQ0_CLR_EN_1 = $00000124;</code> | ||
+ | | Write to Clear ARM Core 0 FIQ enable bits [63:32] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_FIQ0_CLR_EN_2 = $00000128;</code> | ||
+ | | Write to Clear ARM Core 0 FIQ enable bits [79:64] | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_FIQ1_PENDING0 = $00000140;</code> | ||
+ | | ARM Core 1 FIQ Enabled Interrupt pending bits [31:0] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_FIQ1_PENDING1 = $00000144;</code> | ||
+ | | ARM Core 1 FIQ Enabled Interrupt pending bits [63:32] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_FIQ1_PENDING2 = $00000148;</code> | ||
+ | | ARM Core 1 FIQ Enabled Interrupt pending bits [79:64] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_FIQ1_SET_EN_0 = $00000150;</code> | ||
+ | | Write to Set ARM Core 1 FIQ enable bits [31:0] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_FIQ1_SET_EN_1 = $00000154;</code> | ||
+ | | Write to Set ARM Core 1 FIQ enable bits [63:32] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_FIQ1_SET_EN_2 = $00000158;</code> | ||
+ | | Write to Set ARM Core 1 FIQ enable bits [79:64] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_FIQ1_CLR_EN_0 = $00000160;</code> | ||
+ | | Write to Clear ARM Core 1 FIQ enable bits [31:0] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_FIQ1_CLR_EN_1 = $00000164;</code> | ||
+ | | Write to Clear ARM Core 1 FIQ enable bits [63:32] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_FIQ1_CLR_EN_2 = $00000168;</code> | ||
+ | | Write to Clear ARM Core 1 FIQ enable bits [79:64] | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_FIQ2_PENDING0 = $00000180;</code> | ||
+ | | ARM Core 2 FIQ Enabled Interrupt pending bits [31:0] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_FIQ2_PENDING1 = $00000184;</code> | ||
+ | | ARM Core 2 FIQ Enabled Interrupt pending bits [63:32] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_FIQ2_PENDING2 = $00000188;</code> | ||
+ | | ARM Core 2 FIQ Enabled Interrupt pending bits [79:64] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_FIQ2_SET_EN_0 = $00000190;</code> | ||
+ | | Write to Set ARM Core 2 FIQ enable bits [31:0] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_FIQ2_SET_EN_1 = $00000194;</code> | ||
+ | | Write to Set ARM Core 2 FIQ enable bits [63:32] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_FIQ2_SET_EN_2 = $00000198;</code> | ||
+ | | Write to Set ARM Core 2 FIQ enable bits [79:64] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_FIQ2_CLR_EN_0 = $000001A0;</code> | ||
+ | | Write to Clear ARM Core 2 FIQ enable bits [31:0] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_FIQ2_CLR_EN_1 = $000001A4;</code> | ||
+ | | Write to Clear ARM Core 2 FIQ enable bits [63:32] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_FIQ2_CLR_EN_2 = $000001A8;</code> | ||
+ | | Write to Clear ARM Core 2 FIQ enable bits [79:64] | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_FIQ3_PENDING0 = $000001C0;</code> | ||
+ | | ARM Core 3 FIQ Enabled Interrupt pending bits [31:0] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_FIQ3_PENDING1 = $000001C4;</code> | ||
+ | | ARM Core 3 FIQ Enabled Interrupt pending bits [63:32] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_FIQ3_PENDING2 = $000001C8;</code> | ||
+ | | ARM Core 3 FIQ Enabled Interrupt pending bits [79:64] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_FIQ3_SET_EN_0 = $000001D0;</code> | ||
+ | | Write to Set ARM Core 3 FIQ enable bits [31:0] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_FIQ3_SET_EN_1 = $000001D4;</code> | ||
+ | | Write to Set ARM Core 3 FIQ enable bits [63:32] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_FIQ3_SET_EN_2 = $000001D8;</code> | ||
+ | | Write to Set ARM Core 3 FIQ enable bits [79:64] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_FIQ3_CLR_EN_0 = $000001E0;</code> | ||
+ | | Write to Clear ARM Core 3 FIQ enable bits [31:0] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_FIQ3_CLR_EN_1 = $000001E4;</code> | ||
+ | | Write to Clear ARM Core 3 FIQ enable bits [63:32] | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_FIQ3_CLR_EN_2 = $000001E8;</code> | ||
+ | | Write to Clear ARM Core 3 FIQ enable bits [79:64] | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_SWIRQ_SET = $000001F0;</code> | ||
+ | | Write to Set Software Interrupt sources | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_SWIRQ_CLEAR = $000001F4;</code> | ||
+ | | Write to Clear Software Interrupt sources | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_CORE_OFFSET = BCM2838_ARM_INTERRUPT_IRQ1_PENDING0 - BCM2838_ARM_INTERRUPT_IRQ0_PENDING0;</code> | ||
+ | | Offset between Core registers | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_INTERRUPT_FIQ_OFFSET = BCM2838_ARM_INTERRUPT_FIQ0_PENDING0 - BCM2838_ARM_INTERRUPT_IRQ0_PENDING0;</code> | ||
+ | | Offset betwwen IRQ and FIQ registers | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 ARM timer''' <code> BCM2838_ARM_TIMER_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Section 14.2 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_TIMER_CONTROL_COUNTER_PRESCALE = ($FF shl 16);</code> | ||
+ | | style="width: 50%;"|Free running counter pre-scaler (Freq is sys_clk/(prescale+1)) | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_TIMER_CONTROL_COUNTER_ENABLED = (1 shl 9);</code> | ||
+ | | 0 : Free running counter Disabled / 1 : Free running counter Enabled | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_TIMER_CONTROL_DEBUG_HALT = (1 shl 8);</code> | ||
+ | | 0 : Timers keeps running if ARM is in debug halted mode / 1 : Timers halted if ARM is in debug halted mode | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_TIMER_CONTROL_TIMER_ENABLED = (1 shl 7);</code> | ||
+ | | 0 : Timer disabled / 1 : Timer enabled | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_TIMER_CONTROL_INT_ENABLED = (1 shl 5);</code> | ||
+ | | 0 : Timer interrupt disabled / 1 : Timer interrupt enabled | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_TIMER_CONTROL_PRESCALE = (3 shl 2);</code> | ||
+ | | Pre-scale bits: 00 : pre-scale is clock / 1 (No pre-scale) / 01 : pre-scale is clock / 16 / 10 : pre-scale is clock / 256 / 11 : pre-scale is clock / 1 | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_TIMER_CONTROL_32BIT = (1 shl 1);</code> | ||
+ | | 0 : 16-bit counters / 1 : 32-bit counter | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_TIMER_CONTROL_ONESHOT = (1 shl 0);</code> | ||
+ | | 0 = wrapping mode (default) / 1 = one-shot mode (Not supported by BCM2838) | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_TIMER_RAW_IRQ_PENDING = (1 shl 0);</code> | ||
+ | | 0 : The interrupt pending bits is clear / 1 : The interrupt pending bit is set | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_TIMER_MASKED_IRQ_PENDING = (1 shl 0);</code> | ||
+ | | 0 : Interrupt line not asserted / 1 :Interrupt line is asserted, (the interrupt pending and the interrupt enable bit are set) | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_TIMER_PREDIVIDER_MASK = ($3FF shl 0);</code> | ||
+ | | Pre-divider value (timer_clock = apb_clock/(pre_divider+1)) | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 power management, reset controller and watchdog''' <code> BCM2838_PM_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_PM_PASSWORD = $5A000000;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_PM_RSTC_WRCFG_CLR = $FFFFFFCF;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_PM_RSTC_WRCFG_SET= $00000030;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_PM_RSTC_WRCFG_FULL_RESET = $00000020;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_PM_RSTC_RESET = $00000102;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_PM_RSTS_HADPOR_SET = $00001000;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_PM_RSTS_HADSRH_SET = $00000400;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_PM_RSTS_HADSRF_SET = $00000200;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_PM_RSTS_HADSRQ_SET = $00000100;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_PM_RSTS_HADWRH_SET = $00000040;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_PM_RSTS_HADWRF_SET = $00000020;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_PM_RSTS_HADWRQ_SET = $00000010;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_PM_RSTS_HADDRH_SET = $00000004;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_PM_RSTS_HADDRF_SET = $00000002;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_PM_RSTS_HADDRQ_SET = $00000001;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_PM_RSTS_RASPBERRYPI_HALT = $00000555;</code> | ||
+ | | Special value to tell the Raspberry Pi firmware not to reboot, sets Boot Partition to 63 (0x3f). | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_PM_WDOG_RESET = $00000000;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_PM_WDOG_TIME_MASK = $000FFFFF;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_PM_WDOG_TICKS_PER_SECOND = (1 shl 16);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_PM_WDOG_TICKS_PER_MILLISECOND = (BCM2838_PM_WDOG_TICKS_PER_SECOND div 1000);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 random number generator''' <code> BCM2838_RNG_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_RNG_CTRL_OFFSET = $00;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>BCM2838_RNG_CTRL_RNG_RBGEN_MASK = $00001FFF;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_RNG_CTRL_RNG_RBGEN_ENABLE = $00000001;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_RNG_CTRL_RNG_RBGEN_DISABLE = $00000000;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_RNG_CTRL_RNG_DIV_CTRL_SHIFT = 13;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_RNG_SOFT_RESET_OFFSET = $04;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_RNG_SOFT_RESET = $00000001;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_RBG_SOFT_RESET_OFFSET = $08;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_RBG_SOFT_RESET = $00000001;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_RNG_TOTAL_BIT_COUNT_OFFSET = $0C;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_RNG_TOTAL_BIT_COUNT_THRESHOLD_OFFSET = $10;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_RNG_INT_STATUS_OFFSET = $18;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_RNG_INT_STATUS_MASTER_FAIL_LOCKOUT_IRQ_MASK = $80000000;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_RNG_INT_STATUS_STARTUP_TRANSITIONS_MET_IRQ_MASK = $00020000;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_RNG_INT_STATUS_NIST_FAIL_IRQ_MASK = $00000020;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_RNG_INT_STATUS_TOTAL_BITS_COUNT_IRQ_MASK = $00000001;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_RNG_INT_ENABLE_OFFSET = $1C;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_RNG_FIFO_DATA_OFFSET = $20;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_RNG_FIFO_COUNT_OFFSET = $24;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_RNG_FIFO_COUNT_RNG_FIFO_COUNT_MASK = $000000FF;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_RNG_FIFO_COUNT_RNG_FIFO_THRESHOLD_SHIFT = 8;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 clock management ''' <code> BCM2838_CM_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Section 6 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_CM_PASSWORD = $5A000000;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 clock manager control''' <code> BCM2838_CM_CTL_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Section 6.3 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_CM_CTL_MASH_0 = (0 shl 9);</code> | ||
+ | | style="width: 50%;"|MASH control - 0 = integer division | ||
+ | |- | ||
+ | | <code>BCM2838_CM_CTL_MASH_1 = (1 shl 9);</code> | ||
+ | | MASH control - 1 = 1-stage MASH (equivalent to non-MASH dividers) | ||
+ | |- | ||
+ | | <code>BCM2838_CM_CTL_MASH_2 = (2 shl 9);</code> | ||
+ | | MASH control - 2 = 2-stage MASH | ||
+ | |- | ||
+ | | <code>BCM2838_CM_CTL_MASH_3 = (3 shl 9);</code> | ||
+ | | MASH control - 3 = 3-stage MASH (To avoid lock-ups and glitches do not change this control while BUSY=1 and do not change this control at the same time as asserting ENAB) | ||
+ | |- | ||
+ | | <code>BCM2838_CM_CTL_FLIP = (1 shl 8);</code> | ||
+ | | MASH control - Invert the clock generator output (To avoid output glitches do not switch this control while BUSY=1) | ||
+ | |- | ||
+ | | <code>BCM2838_CM_CTL_BUSY = (1 shl 7);</code> | ||
+ | | Clock generator is running (To avoid glitches and lock-ups, clock sources and setups must not be changed while this flag is set) | ||
+ | |- | ||
+ | | <code>BCM2838_CM_CTL_GATE = (1 shl 6);</code> | ||
+ | | Unused | ||
+ | |- | ||
+ | | <code>BCM2838_CM_CTL_KILL = (1 shl 5);</code> | ||
+ | | Kill the clock generator (0 = no action / 1 = stop and reset the clock generator) (This is intended for test/debug only) | ||
+ | |- | ||
+ | | <code>BCM2838_CM_CTL_ENAB = (1 shl 4);</code> | ||
+ | | Enable the clock generator | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_CM_CTL_SRC_GND = (0 shl 0);</code> | ||
+ | | Clock source - 0 Hz GND | ||
+ | |- | ||
+ | | <code>BCM2838_CM_CTL_SRC_OSC = (1 shl 0);</code> | ||
+ | | Clock source - 54 MHz Oscillator | ||
+ | |- | ||
+ | | <code>BCM2838_CM_CTL_SRC_TESTDEBUG0 = (2 shl 0);</code> | ||
+ | | Clock source - 0 Hz Testdebug0 | ||
+ | |- | ||
+ | | <code>BCM2838_CM_CTL_SRC_TESTDEBUG1 = (3 shl 0);</code> | ||
+ | | Clock source - 0 Hz Testdebug1 | ||
+ | |- | ||
+ | | <code>BCM2838_CM_CTL_SRC_PLLA = (4 shl 0);</code> | ||
+ | | Clock source - 0 Hz PLLA | ||
+ | |- | ||
+ | | <code>BCM2838_CM_CTL_SRC_PLLC = (5 shl 0);</code> | ||
+ | | Clock source - 1000 MHz PLLC (changes with overclock settings) | ||
+ | |- | ||
+ | | <code>BCM2838_CM_CTL_SRC_PLLD = (6 shl 0);</code> | ||
+ | | Clock source - 750 MHz PLLD | ||
+ | |- | ||
+ | | <code>BCM2838_CM_CTL_SRC_HDMI = (7 shl 0);</code> | ||
+ | | Clock source - Unused | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 clock manager divisor''' <code> BCM2838_CM_DIV_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Section 6.3 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_CM_DIV_INT_MASK = $00FFF000;</code> | ||
+ | | style="width: 50%;"|Integer part of divisor (This value has a minimum limit determined by the MASH setting) (To avoid lock-ups and glitches do not change this control while BUSY=1) | ||
+ | |- | ||
+ | | <code>BCM2838_CM_DIV_FRAC_MASK = $00000FFF;</code> | ||
+ | | Fractional part of divisor (To avoid lock-ups and glitches do not change this control while BUSY=1) | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 clock manager ''' <code> BCM2838_CM_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_CM_GNRICCTL = $00000000;</code> | ||
+ | | style="width: 50%;"|Generic Clock Control | ||
+ | |- | ||
+ | | <code>BCM2838_CM_GNRICDIV = $00000004;</code> | ||
+ | | Generic Clock Divisor | ||
+ | |- | ||
+ | | <code>BCM2838_CM_VPUCTL = $00000008;</code> | ||
+ | | VPU Clock Control | ||
+ | |- | ||
+ | | <code>BCM2838_CM_VPUDIV = $0000000C;</code> | ||
+ | | VPU Clock Divisor | ||
+ | |- | ||
+ | | <code>BCM2838_CM_SYSCTL = $00000010;</code> | ||
+ | | System Clock Control | ||
+ | |- | ||
+ | | <code>BCM2838_CM_SYSDIV = $00000014;</code> | ||
+ | | System Clock Divisor | ||
+ | |- | ||
+ | | <code>BCM2838_CM_PERIACTL = $00000018;</code> | ||
+ | | PERIA Clock Control | ||
+ | |- | ||
+ | | <code>BCM2838_CM_PERIADIV = $0000001C;</code> | ||
+ | | PERIA Clock Divisor | ||
+ | |- | ||
+ | | <code>BCM2838_CM_PERIICTL = $00000020;</code> | ||
+ | | PERII Clock Control | ||
+ | |- | ||
+ | | <code>BCM2838_CM_PERIIDIV = $00000024;</code> | ||
+ | | PERII Clock Divisor | ||
+ | |- | ||
+ | | <code>BCM2838_CM_H264CTL = $00000028;</code> | ||
+ | | H264 Clock Control | ||
+ | |- | ||
+ | | <code>BCM2838_CM_H264DIV = $0000002C;</code> | ||
+ | | H264 Clock Divisor | ||
+ | |- | ||
+ | | <code>BCM2838_CM_ISPCTL = $00000030;</code> | ||
+ | | ISP Clock Control | ||
+ | |- | ||
+ | | <code>BCM2838_CM_ISPDIV = $00000034;</code> | ||
+ | | ISP Clock Divisor | ||
+ | |- | ||
+ | | <code>BCM2838_CM_V3DCTL = $00000038;</code> | ||
+ | | V3D Clock Control | ||
+ | |- | ||
+ | | <code>BCM2838_CM_V3DDIV = $0000003C;</code> | ||
+ | | V3D Clock Divisor | ||
+ | |- | ||
+ | | <code>BCM2838_CM_CAM0CTL = $00000040;</code> | ||
+ | | Camera 0 Clock Control | ||
+ | |- | ||
+ | | <code>BCM2838_CM_CAM0DIV = $00000044;</code> | ||
+ | | Camera 0 Clock Divisor | ||
+ | |- | ||
+ | | <code>BCM2838_CM_CAM1CTL = $00000048;</code> | ||
+ | | Camera 1 Clock Control | ||
+ | |- | ||
+ | | <code>BCM2838_CM_CAM1DIV = $0000004C;</code> | ||
+ | | Camera 1 Clock Divisor | ||
+ | |- | ||
+ | | <code>BCM2838_CM_CCP2CTL = $00000050;</code> | ||
+ | | CCP2 Clock Control | ||
+ | |- | ||
+ | | <code>BCM2838_CM_CCP2DIV = $00000054;</code> | ||
+ | | CCP2 Clock Divisor | ||
+ | |- | ||
+ | | <code>BCM2838_CM_DSI0ECTL = $00000058;</code> | ||
+ | | DSI0E Clock Control | ||
+ | |- | ||
+ | | <code>BCM2838_CM_DSI0EDIV = $0000005C;</code> | ||
+ | | DSI0E Clock Divisor | ||
+ | |- | ||
+ | | <code>BCM2838_CM_DSI0PCTL = $00000060;</code> | ||
+ | | DSI0P Clock Control | ||
+ | |- | ||
+ | | <code>BCM2838_CM_DSI0PDIV = $00000064;</code> | ||
+ | | DSI0P Clock Divisor | ||
+ | |- | ||
+ | | <code>BCM2838_CM_DPICTL = $00000068;</code> | ||
+ | | DPI Clock Control | ||
+ | |- | ||
+ | | <code>BCM2838_CM_DPIDIV = $0000006C;</code> | ||
+ | | DPI Clock Divisor | ||
+ | |- | ||
+ | | <code>BCM2838_CM_GP0CTL = $00000070;</code> | ||
+ | | General Purpose 0 Clock Control | ||
+ | |- | ||
+ | | <code>BCM2838_CM_GP0DIV = $00000074;</code> | ||
+ | | General Purpose 0 Clock Divisor | ||
+ | |- | ||
+ | | <code>BCM2838_CM_GP1CTL = $00000078;</code> | ||
+ | | General Purpose 1 Clock Control | ||
+ | |- | ||
+ | | <code>BCM2838_CM_GP1DIV = $0000007C;</code> | ||
+ | | General Purpose 1 Clock Divisor | ||
+ | |- | ||
+ | | <code>BCM2838_CM_GP2CTL = $00000080;</code> | ||
+ | | General Purpose 2 Clock Control | ||
+ | |- | ||
+ | | <code>BCM2838_CM_GP2DIV = $00000084;</code> | ||
+ | | General Purpose 2 Clock Divisor | ||
+ | |- | ||
+ | | <code>BCM2838_CM_HSMCTL = $00000088;</code> | ||
+ | | HSM Clock Control | ||
+ | |- | ||
+ | | <code>BCM2838_CM_HSMDIV = $0000008C;</code> | ||
+ | | HSM Clock Divisor | ||
+ | |- | ||
+ | | <code>BCM2838_CM_OTPCTL = $00000090;</code> | ||
+ | | OTP Clock Control | ||
+ | |- | ||
+ | | <code>BCM2838_CM_OTPDIV = $00000094;</code> | ||
+ | | OTP Clock Divisor | ||
+ | |- | ||
+ | | <code>BCM2838_CM_PCMCTL = $00000098;</code> | ||
+ | | PCM / I2S Clock Control | ||
+ | |- | ||
+ | | <code>BCM2838_CM_PCMDIV = $0000009C;</code> | ||
+ | | PCM / I2S Clock Divisor | ||
+ | |- | ||
+ | | <code>BCM2838_CM_PWMCTL = $000000A0;</code> | ||
+ | | PWM Clock Control | ||
+ | |- | ||
+ | | <code>BCM2838_CM_PWMDIV = $000000A4;</code> | ||
+ | | PWM Clock Divisor | ||
+ | |- | ||
+ | | <code>BCM2838_CM_SLIMCTL = $000000A8;</code> | ||
+ | | SLIM Clock Control | ||
+ | |- | ||
+ | | <code>BCM2838_CM_SLIMDIV = $000000AC;</code> | ||
+ | | SLIM Clock Divisor | ||
+ | |- | ||
+ | | <code>BCM2838_CM_SMICTL = $000000B0;</code> | ||
+ | | SMI Clock Control | ||
+ | |- | ||
+ | | <code>BCM2838_CM_SMIDIV = $000000B4;</code> | ||
+ | | SMI Clock Divisor | ||
+ | |- | ||
+ | | <code>BCM2838_CM_TCNTCTL = $000000C0;</code> | ||
+ | | TCNT Clock Control | ||
+ | |- | ||
+ | | <code>BCM2838_CM_TCNTDIV = $000000C4;</code> | ||
+ | | TCNT Clock Divisor | ||
+ | |- | ||
+ | | <code>BCM2838_CM_TECCTL = $000000C8;</code> | ||
+ | | TEC Clock Control | ||
+ | |- | ||
+ | | <code>BCM2838_CM_TECDIV = $000000CC;</code> | ||
+ | | TEC Clock Divisor | ||
+ | |- | ||
+ | | <code>BCM2838_CM_TD0CTL = $000000D0;</code> | ||
+ | | TD0 Clock Control | ||
+ | |- | ||
+ | | <code>BCM2838_CM_TD0DIV = $000000D4;</code> | ||
+ | | TD0 Clock Divisor | ||
+ | |- | ||
+ | | <code>BCM2838_CM_TD1CTL = $000000D8;</code> | ||
+ | | TD1 Clock Control | ||
+ | |- | ||
+ | | <code>BCM2838_CM_TD1DIV = $000000DC;</code> | ||
+ | | TD1 Clock Divisor | ||
+ | |- | ||
+ | | <code>BCM2838_CM_TSENSCTL = $000000E0;</code> | ||
+ | | TSENS Clock Control | ||
+ | |- | ||
+ | | <code>BCM2838_CM_TSENSDIV = $000000E4;</code> | ||
+ | | TSENS Clock Divisor | ||
+ | |- | ||
+ | | <code>BCM2838_CM_TIMERCTL = $000000E8;</code> | ||
+ | | Timer Clock Control | ||
+ | |- | ||
+ | | <code>BCM2838_CM_TIMERDIV = $000000EC;</code> | ||
+ | | Timer Clock Divisor | ||
+ | |- | ||
+ | | <code>BCM2838_CM_UARTCTL = $000000F0;</code> | ||
+ | | UART Clock Control | ||
+ | |- | ||
+ | | <code>BCM2838_CM_UARTDIV = $000000F4;</code> | ||
+ | | UART Clock Divisor | ||
+ | |- | ||
+ | | <code>BCM2838_CM_VECCTL = $000000F8;</code> | ||
+ | | VEC Clock Control | ||
+ | |- | ||
+ | | <code>BCM2838_CM_VECDIV = $000000FC;</code> | ||
+ | | VEC Clock Divisor | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_CM_OSCCOUNT = $00000100;</code> | ||
+ | | Oscillator Count | ||
+ | |- | ||
+ | | <code>BCM2838_CM_PLLA = $00000104;</code> | ||
+ | | PLLA | ||
+ | |- | ||
+ | | <code>BCM2838_CM_PLLC = $00000108;</code> | ||
+ | | PLLC | ||
+ | |- | ||
+ | | <code>BCM2838_CM_PLLD = $0000010C;</code> | ||
+ | | PLLD | ||
+ | |- | ||
+ | | <code>BCM2838_CM_PLLH = $00000110;</code> | ||
+ | | PLLH | ||
+ | |- | ||
+ | | <code>BCM2838_CM_LOCK = $00000114;</code> | ||
+ | | Lock | ||
+ | |- | ||
+ | | <code>BCM2838_CM_EVENT = $00000118;</code> | ||
+ | | Event | ||
+ | |- | ||
+ | | <code>BCM2838_CM_INTEN = $00000118;</code> | ||
+ | | INTEN | ||
+ | |- | ||
+ | | <code>BCM2838_CM_DSI0HSCK = $00000120;</code> | ||
+ | | DSI0HSCK | ||
+ | |- | ||
+ | | <code>BCM2838_CM_CKSM = $00000124;</code> | ||
+ | | CKSM | ||
+ | |- | ||
+ | | <code>BCM2838_CM_OSCFREQI = $00000128;</code> | ||
+ | | Oscillator Frequency Integer | ||
+ | |- | ||
+ | | <code>BCM2838_CM_OSCFREQF = $0000012C;</code> | ||
+ | | Oscillator Frequency Fraction | ||
+ | |- | ||
+ | | <code>BCM2838_CM_PLLTCTL = $00000130;</code> | ||
+ | | PLLT Control | ||
+ | |- | ||
+ | | <code>BCM2838_CM_PLLTCNT0 = $00000134;</code> | ||
+ | | PLLT0 Count | ||
+ | |- | ||
+ | | <code>BCM2838_CM_PLLTCNT1 = $00000138;</code> | ||
+ | | PLLT1 Count | ||
+ | |- | ||
+ | | <code>BCM2838_CM_PLLTCNT2 = $0000013C;</code> | ||
+ | | PLLT2 Count | ||
+ | |- | ||
+ | | <code>BCM2838_CM_PLLTCNT3 = $00000140;</code> | ||
+ | | PLLT3 Count | ||
+ | |- | ||
+ | | <code>BCM2838_CM_TDCLKEN = $00000144;</code> | ||
+ | | TD Clock Enable | ||
+ | |- | ||
+ | | <code>BCM2838_CM_BURSTCTL = $00000148;</code> | ||
+ | | Burst Control | ||
+ | |- | ||
+ | | <code>BCM2838_CM_BURSTCNT = $0000014C;</code> | ||
+ | | Burst Count | ||
+ | |- | ||
+ | | <code>BCM2838_CM_DSI1ECTL = $00000158;</code> | ||
+ | | DSI1E Clock Control | ||
+ | |- | ||
+ | | <code>BCM2838_CM_DSI1EDIV = $0000015C;</code> | ||
+ | | DSI1E Clock Divisor | ||
+ | |- | ||
+ | | <code>BCM2838_CM_DSI1PCTL = $00000160;</code> | ||
+ | | DSI1P Clock Control | ||
+ | |- | ||
+ | | <code>BCM2838_CM_DSI1PDIV = $00000164;</code> | ||
+ | | DSI1P Clock Divisor | ||
+ | |- | ||
+ | | <code>BCM2838_CM_DFTCTL = $00000168;</code> | ||
+ | | DFT Clock Control | ||
+ | |- | ||
+ | | <code>BCM2838_CM_DFTDIV = $0000016C;</code> | ||
+ | | DFT Clock Divisor | ||
+ | |- | ||
+ | | <code>BCM2838_CM_PLLB = $00000170;</code> | ||
+ | | PLLB | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_CM_PULSECTL = $00000190;</code> | ||
+ | | Pulse Clock Control | ||
+ | |- | ||
+ | | <code>BCM2838_CM_PULSEDIV = $00000194;</code> | ||
+ | | Pulse Clock Divisor | ||
+ | |- | ||
+ | | <code>BCM2838_CM_SDCCTL = $000001A8;</code> | ||
+ | | SDC Clock Control | ||
+ | |- | ||
+ | | <code>BCM2838_CM_SDCDIV = $000001AC;</code> | ||
+ | | SDC Clock Divisor | ||
+ | |- | ||
+ | | <code>BCM2838_CM_ARMCTL = $000001B0;</code> | ||
+ | | ARM Clock Control | ||
+ | |- | ||
+ | | <code>BCM2838_CM_ARMDIV = $000001B4;</code> | ||
+ | | ARM Clock Divisor | ||
+ | |- | ||
+ | | <code>BCM2838_CM_AVEOCTL = $000001B8;</code> | ||
+ | | AVEO Clock Control | ||
+ | |- | ||
+ | | <code>BCM2838_CM_AVEODIV = $000001BC;</code> | ||
+ | | AVEO Clock Divisor | ||
+ | |- | ||
+ | | <code>BCM2838_CM_EMMCCTL = $000001C0;</code> | ||
+ | | EMMC Clock Control | ||
+ | |- | ||
+ | | <code>BCM2838_CM_EMMCDIV = $000001C4;</code> | ||
+ | | EMMC Clock Divisor | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 mailbox''' <code> BCM2838_MAILBOX_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_MAILBOX_0 = 0;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>BCM2838_MAILBOX_1 = 1;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 mailbox 0 channel''' <code> BCM2838_MAILBOX0_CHANNEL_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: https://github.com/raspberrypi/firmware/wiki/Mailboxes | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_MAILBOX0_CHANNEL_POWER_MGMT = 0;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>BCM2838_MAILBOX0_CHANNEL_FRAMEBUFFER = 1;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MAILBOX0_CHANNEL_UART = 2;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MAILBOX0_CHANNEL_VCHIQ = 3;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MAILBOX0_CHANNEL_LEDS = 4;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MAILBOX0_CHANNEL_BUTTONS = 5;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MAILBOX0_CHANNEL_TOUCHSCREEN = 6;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MAILBOX0_CHANNEL_UNKNOWN = 7;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MAILBOX0_CHANNEL_PROPERTYTAGS_ARMVC = 8;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MAILBOX0_CHANNEL_PROPERTYTAGS_VCARM = 9;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 mailbox 1 channel''' <code> BCM2838_MAILBOX_*_MASK* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: https://github.com/raspberrypi/firmware/wiki/Mailboxes | ||
+ | |- | ||
+ | |colspan="2"|Currently unknown | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | |colspan="2"|''The BCM2838 mailboxes pass 28-bit messages (The low 4 bits of the 32-bit value are used to specify the channel)'' | ||
+ | |- | ||
+ | | <code>BCM2838_MAILBOX_CHANNEL_MASK = $0000000F;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>BCM2838_MAILBOX_DATA_MASK = $FFFFFFF0;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 mailbox status flag''' <code> BCM2838_MAILBOX_STATUS_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_MAILBOX_STATUS_FULL = $80000000;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>BCM2838_MAILBOX_STATUS_EMPTY = $40000000;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 mailbox configuration flag''' <code> BCM2838_MAILBOX_CONFIG_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_MAILBOX_CONFIG_IRQENABLE = $00000001;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 mailbox property tag''' <code> BCM2838_MBOX_TAG_GET_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: https://github.com/raspberrypi/firmware/wiki/Mailbox-property-interface or \include\soc\bcm2835\raspberrypi-firmware.h | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | |colspan="2"|''VideoCore'' | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_GET_FIRMWARE_REV = $00000001;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |colspan="2"|''Hardware'' | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_GET_BOARD_MODEL = $00010001;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_GET_BOARD_REV = $00010002;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_GET_MAC_ADDRESS = $00010003;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_GET_BOARD_SERIAL = $00010004;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_GET_ARM_MEMORY = $00010005;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_GET_VC_MEMORY = $00010006;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_GET_CLOCKS = $00010007;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"|''Shared Resource Management'' | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_GET_POWER_STATE = $00020001;</code> | ||
+ | | Response indicates current state | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_GET_TIMING = $00020002;</code> | ||
+ | | Response indicates wait time required after turning a device on before power is stable | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_SET_POWER_STATE = $00028001;</code> | ||
+ | | Response indicates new state, with/without waiting for the power to become stable. | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_GET_CLOCK_STATE = $00030001;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_SET_CLOCK_STATE = $00038001;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_GET_CLOCK_RATE = $00030002;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_SET_CLOCK_RATE = $00038002;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_GET_CLOCK_MAX_RATE = $00030004;</code> | ||
+ | | Return the maximum supported clock rate for the given clock. Clocks should not be set higher than this. | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_GET_CLOCK_MIN_RATE = $00030007;</code> | ||
+ | | Return the minimum supported clock rate for the given clock. This may be used when idle. | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_GET_TURBO = $00030009;</code> | ||
+ | | Get the turbo state for index id. id should be 0. level will be zero for non-turbo and one for turbo. | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_SET_TURBO = $00038009;</code> | ||
+ | | Set the turbo state for index id. id should be zero. level will be zero for non-turbo and one for turbo. This will cause GPU clocks to be set to maximum when enabled and minimum when disabled. | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_GET_STC = $0003000b;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"|''Voltage'' | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_GET_VOLTAGE = $00030003;</code> | ||
+ | | The voltage value may be clamped to the supported range. A value of 0x80000000 means the id was not valid. | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_SET_VOLTAGE = $00038003;</code> | ||
+ | | The voltage value may be clamped to the supported range. A value of 0x80000000 means the id was not valid. | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_GET_MAX_VOLTAGE = $00030005;</code> | ||
+ | | Return the maximum supported voltage rate for the given id. Voltages should not be set higher than this. | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_GET_MIN_VOLTAGE = $00030008;</code> | ||
+ | | Return the minimum supported voltage rate for the given id. This may be used when idle. | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_GET_TEMP = $00030006;</code> | ||
+ | | Return the temperature of the SoC in thousandths of a degree C. id should be zero. | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_GET_MAX_TEMP = $0003000a;</code> | ||
+ | | Return the maximum safe temperature of the SoC in thousandths of a degree C. id should be zero. Overclock may be disabled above this temperature. | ||
+ | |- | ||
+ | |colspan="2"|''GPU'' | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_ALLOCATE_MEMORY = $0003000c;</code> | ||
+ | | Allocates contiguous memory on the GPU. size and alignment are in bytes. | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_LOCK_MEMORY = $0003000d;</code> | ||
+ | | Lock buffer in place, and return a bus address. Must be done before memory can be accessed. | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_UNLOCK_MEMORY = $0003000e;</code> | ||
+ | | Unlock buffer. It retains contents, but may move. Needs to be locked before next use. status=0 is success. | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_RELEASE_MEMORY = $0003000f;</code> | ||
+ | | Free the memory buffer. status=0 is success. | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_EXECUTE_CODE = $00030010;</code> | ||
+ | | Calls the function at given (bus) address and with arguments given. E.g. r0 = fn(r0, r1, r2, r3, r4, r5); It blocks until call completes | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_EXECUTE_QPU = $00030011;</code> | ||
+ | | Execute an assembled block of code using one or more Quad Processing Units (QPUs) | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_ENABLE_QPU = $00030012;</code> | ||
+ | | Enable the Quad Processing Units (QPUs) | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_GET_DISPMANX_HANDLE = $00030014;</code> | ||
+ | | Gets the mem_handle associated with a created dispmanx resource. This can be locked and the memory directly written from the arm to avoid having to copy the image data to GPU. | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_GET_EDID_BLOCK = $00030020;</code> | ||
+ | | This reads the specified EDID block from attached HDMI/DVI device. There will always be at least one block of 128 bytes, but there may be additional blocks. You should keep requesting blocks (starting from 0) until the status returned is non-zero. | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_GET_CUSTOMER_OTP = $00030021;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_SET_CUSTOMER_OTP = $00038021;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_GET_DOMAIN_STATE = $00030030;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_SET_DOMAIN_STATE = $00038030;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_GET_GPIO_STATE = $00030041;</code> | ||
+ | | Get the current state of a GPIO expander pin | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_SET_GPIO_STATE = $00038041;</code> | ||
+ | | Set the current state of a GPIO expander pin | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_SET_SDHOST_CLOCK = $00038042;</code> | ||
+ | | Tell the firmware the SD Host clock setting so it will be adjusted for changes in core frequency | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_GET_GPIO_CONFIG = $00030043;</code> | ||
+ | | Get the current configuration of a GPIO expander pin | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_SET_GPIO_CONFIG = $00038043;</code> | ||
+ | | Set the current configuration of a GPIO expander pin | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_GET_THROTTLED = $00030046;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_GET_CLOCK_MEASURED = $00030047;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_GET_PERIPH_REG = $00030045;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_SET_PERIPH_REG = $00038045;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_GET_POE_HAT_VAL = $00030049;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_SET_POE_HAT_VAL = $00038049;;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_NOTIFY_REBOOT = $00030048;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_NOTIFY_XHCI_RESET = $00030058;;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_GET_BOOT_MODE = $0003005b;</code> | ||
+ | | Get the boot mode that was used by the firmware to load the kernel (1 = SD, 4 = MSD etc) | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_GET_REBOOT_FLAGS = $00030064;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_SET_REBOOT_FLAGS = $00038064;;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_NOTIFY_DISPLAY_DONE = $00030066;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"|''Frame Buffer'' | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_ALLOCATE_BUFFER = $00040001;</code> | ||
+ | | If the requested alignment is unsupported then the current base and size (which may be 0 if not allocated) is returned and no change occurs | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_RELEASE_BUFFER = $00048001;</code> | ||
+ | | Releases and disables the frame buffer | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_SET_BLANK_SCREEN = $00040002;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_TEST_BLANK_SCREEN = $00044002;</code> | ||
+ | | Previously BCM2838_MBOX_TAG_TST_BLANK_SCREEN | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_GET_PHYSICAL_W_H = $00040003;</code> | ||
+ | | Note that the "physical (display)" size is the size of the allocated buffer in memory, not the resolution of the video signal sent to the display device. | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_TEST_PHYSICAL_W_H = $00044003;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_SET_PHYSICAL_W_H = $00048003;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_GET_VIRTUAL_W_H = $00040004;</code> | ||
+ | | Note that the "virtual (buffer)" size is the portion of buffer that is sent to the display device, not the resolution the buffer itself. This may be smaller than the allocated buffer size in order to implement panning. | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_TEST_VIRTUAL_W_H = $00044004;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_SET_VIRTUAL_W_H = $00048004;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_GET_DEPTH = $00040005;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_TEST_DEPTH = $00044005;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_SET_DEPTH = $00048005;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_GET_PIXEL_ORDER = $00040006;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_TEST_PIXEL_ORDER = $00044006;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_SET_PIXEL_ORDER = $00048006;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_GET_ALPHA_MODE = $00040007;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_TEST_ALPHA_MODE = $00044007;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_SET_ALPHA_MODE = $00048007;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_GET_PITCH = $00040008;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_TEST_PITCH = $00044008;</code> | ||
+ | | Previously BCM2838_MBOX_TAG_TST_PITCH | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_SET_PITCH = $00048008;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_GET_VIRTUAL_OFFSET = $00040009;</code> | ||
+ | | Offset of physical display window within virtual buffer | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_TEST_VIRTUAL_OFFSET = $00044009;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_SET_VIRTUAL_OFFSET = $00048009;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_GET_OVERSCAN = $0004000a;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_TEST_OVERSCAN = $0004400a;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_SET_OVERSCAN = $0004800a;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_GET_PALETTE = $0004000b;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_TEST_PALETTE = $0004400b;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_SET_PALETTE = $0004800b;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_GET_LAYER = $0004000c;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_TEST_LAYER = $0004400c;</code> | ||
+ | | Previously BCM2838_MBOX_TAG_TST_LAYER | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_SET_LAYER = $0004800c;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_GET_TRANSFORM = $0004000d;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_TEST_TRANSFORM = $0004400d;</code> | ||
+ | | Previously BCM2838_MBOX_TAG_TST_TRANSFORM | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_SET_TRANSFORM = $0004800d;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_TEST_VSYNC = $0004400e;</code> | ||
+ | | Previously BCM2838_MBOX_TAG_TST_VSYNC | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_SET_VSYNC = $0004800e;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_SET_BACKLIGHT = $0004800f;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_GET_TOUCHBUF = $0004000f;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_SET_TOUCHBUF = $0004801f;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_GET_GPIOVIRTBUF = $00040010;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_SET_GPIOVIRTBUF = $00048020;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_GET_DISPLAY_ID = $00040016;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_SET_DISPLAY_NUM = $00048013;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_GET_NUM_DISPLAYS = $00040013;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_GET_DISPLAY_SETTINGS = $00040014;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_SET_PLANE = $00048015;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_GET_DISPLAY_TIMING = $00040017;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_SET_TIMING = $00048017;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_GET_DISPLAY_CFG = $00040018;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_SET_DISPLAY_POWER = $00048019;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_SET_CURSOR_INFO = $00008010;</code> | ||
+ | | 00008011 These were reversed in the documentation, see Linux \include\soc\bcm2835\raspberrypi-firmware.h | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_SET_CURSOR_STATE = $00008011;</code> | ||
+ | | 00008010 | ||
+ | |- | ||
+ | |colspan="2"|''VCHIQ'' | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_VCHIQ_INIT = $00048010;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"|''Config'' | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_GET_COMMAND_LINE = $00050001;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"|''Shared Resource Management'' | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_GET_DMA_CHANNELS = $00060001;</code> | ||
+ | | Caller assumes that the VC has enabled all the usable DMA channels | ||
+ | |- | ||
+ | |colspan="2"|''End'' | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_END = $00000000;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 mailbox board revision value''' <code> BCM2838_BOARD_REV_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: http://elinux.org/RPi_HardwareHistory | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_BOARD_REV_2B_1 = $00A01041;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>BCM2838_BOARD_REV_2B_2 = $00A21041;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_BOARD_REV_2B_3 = $00A22042;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_BOARD_REV_3B_1 = $00A02082;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_BOARD_REV_3B_2 = $00A22082;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_BOARD_REV_3B_3 = $00A32082;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_BOARD_REV_CM3_1 = $00A020A0;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_BOARD_REV_CM3_2 = $00A220A0;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_BOARD_REV_MASK = $00FFFFFF;</code> | ||
+ | | Mask off the warranty bit | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 mailbox board revision''' <code> BCM2838_BOARD_REVISION_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: https://www.raspberrypi.org/documentation/hardware/raspberrypi/revision-codes/README.md | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_BOARD_REVISION_PCB_MASK = ($F shl 0);</code> | ||
+ | | style="width: 50%;"|PCB Revision Number | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_BOARD_REVISION_MODEL_MASK = ($FF shl 4);</code> | ||
+ | | Model Number | ||
+ | |- | ||
+ | | <code>BCM2838_BOARD_REVISION_MODEL_A = (0 shl 4);</code> | ||
+ | | Model A (Cannot occur on BCM2838) | ||
+ | |- | ||
+ | | <code>BCM2838_BOARD_REVISION_MODEL_B = (1 shl 4);</code> | ||
+ | | Model B (Cannot occur on BCM2838) | ||
+ | |- | ||
+ | | <code>BCM2838_BOARD_REVISION_MODEL_APLUS = (2 shl 4);</code> | ||
+ | | Model A+ (Cannot occur on BCM2838) | ||
+ | |- | ||
+ | | <code>BCM2838_BOARD_REVISION_MODEL_BPLUS = (3 shl 4);</code> | ||
+ | | Model B+ (Cannot occur on BCM2838) | ||
+ | |- | ||
+ | | <code>BCM2838_BOARD_REVISION_MODEL_2B = (4 shl 4);</code> | ||
+ | | Model 2B (Cannot occur on BCM2838) | ||
+ | |- | ||
+ | | <code>BCM2838_BOARD_REVISION_MODEL_ALPHA = (5 shl 4);</code> | ||
+ | | Unknown | ||
+ | |- | ||
+ | | <code>BCM2838_BOARD_REVISION_MODEL_COMPUTE = (6 shl 4);</code> | ||
+ | | Compute Module (Cannot occur on BCM2838) | ||
+ | |- | ||
+ | | <code>BCM2838_BOARD_REVISION_MODEL_UNKNOWN = (7 shl 4);</code> | ||
+ | | Unknown | ||
+ | |- | ||
+ | | <code>BCM2838_BOARD_REVISION_MODEL_3B = (8 shl 4);</code> | ||
+ | | Model 3B (Cannot occur on BCM2838) | ||
+ | |- | ||
+ | | <code>BCM2838_BOARD_REVISION_MODEL_ZERO = (9 shl 4);</code> | ||
+ | | Model Zero (Cannot occur on BCM2838) | ||
+ | |- | ||
+ | | <code>BCM2838_BOARD_REVISION_MODEL_COMPUTE3 = (10 shl 4);</code> | ||
+ | | Compute Module 3 (Cannot occur on BCM2838) | ||
+ | |- | ||
+ | | <code>BCM2838_BOARD_REVISION_MODEL_UNKNOWN_2 = (11 shl 4);</code> | ||
+ | | Unknown | ||
+ | |- | ||
+ | | <code>BCM2838_BOARD_REVISION_MODEL_ZERO_W = (12 shl 4);</code> | ||
+ | | Model Zero W (Cannot occur on BCM2838) | ||
+ | |- | ||
+ | | <code>BCM2838_BOARD_REVISION_MODEL_3BPLUS = (13 shl 4);</code> | ||
+ | | Model 3B+ (Cannot occur on BCM2838) | ||
+ | |- | ||
+ | | <code>BCM2838_BOARD_REVISION_MODEL_3APLUS = (14 shl 4);</code> | ||
+ | | Model 3A+ (Cannot occur on BCM2838) | ||
+ | |- | ||
+ | | <code>BCM2838_BOARD_REVISION_MODEL_COMPUTE3PLUS = (16 shl 4);</code> | ||
+ | | Compute Module 3+ (Cannot occur on BCM2838) | ||
+ | |- | ||
+ | | <code>BCM2838_BOARD_REVISION_MODEL_4B = (17 shl 4);</code> | ||
+ | | Model 4B | ||
+ | |- | ||
+ | | <code>BCM2838_BOARD_REVISION_MODEL_ZERO2_W = (18 shl 4);</code> | ||
+ | | Model Zero 2 W (Cannot occur on BCM2838) | ||
+ | |- | ||
+ | | <code>BCM2838_BOARD_REVISION_MODEL_400 = (19 shl 4);</code> | ||
+ | | Pi 400 | ||
+ | |- | ||
+ | | <code>BCM2838_BOARD_REVISION_MODEL_CM4 = (20 shl 4);</code> | ||
+ | | Compute Module 4 | ||
+ | |- | ||
+ | | <code>BCM2838_BOARD_REVISION_MODEL_CM4S = (21 shl 4);</code> | ||
+ | | Compute Module 4S | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_BOARD_REVISION_PROCESSOR_MASK = ($F shl 12);</code> | ||
+ | | Processor Type | ||
+ | |- | ||
+ | | <code>BCM2838_BOARD_REVISION_PROCESSOR_BCM2835 = (0 shl 12);</code> | ||
+ | | BCM2835 (Cannot occur on BCM2838) | ||
+ | |- | ||
+ | | <code>BCM2838_BOARD_REVISION_PROCESSOR_BCM2836 = (1 shl 12);</code> | ||
+ | | BCM2836 | ||
+ | |- | ||
+ | | <code>BCM2838_BOARD_REVISION_PROCESSOR_BCM2837 = (2 shl 12);</code> | ||
+ | | BCM2837 | ||
+ | |- | ||
+ | | <code>BCM2838_BOARD_REVISION_PROCESSOR_BCM2838 = (3 shl 12);</code> | ||
+ | | BCM2838 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_BOARD_REVISION_MANUFACTURER_MASK = ($F shl 16);</code> | ||
+ | | Manufacturer | ||
+ | |- | ||
+ | | <code>BCM2838_BOARD_REVISION_MANUFACTURER_SONY = (0 shl 16);</code> | ||
+ | | Sony | ||
+ | |- | ||
+ | | <code>BCM2838_BOARD_REVISION_MANUFACTURER_EGOMAN = (1 shl 16);</code> | ||
+ | | Egoman | ||
+ | |- | ||
+ | | <code>BCM2838_BOARD_REVISION_MANUFACTURER_EMBEST = (2 shl 16);</code> | ||
+ | | Embest | ||
+ | |- | ||
+ | | <code>BCM2838_BOARD_REVISION_MANUFACTURER_SONY_JAPAN = (3 shl 16);</code> | ||
+ | | Sony (Japan) | ||
+ | |- | ||
+ | | <code>BCM2838_BOARD_REVISION_MANUFACTURER_EMBEST2 = (4 shl 16);</code> | ||
+ | | Embest | ||
+ | |- | ||
+ | | <code>BCM2838_BOARD_REVISION_MANUFACTURER_STADIUM = (5 shl 16);</code> | ||
+ | | Stadium | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_BOARD_REVISION_MEMORY_MASK = ($7 shl 20);</code> | ||
+ | | Memory Size | ||
+ | |- | ||
+ | | <code>BCM2838_BOARD_REVISION_MEMORY_256M = (0 shl 20);</code> | ||
+ | | 256M | ||
+ | |- | ||
+ | | <code>BCM2838_BOARD_REVISION_MEMORY_512M = (1 shl 20);</code> | ||
+ | | 512M | ||
+ | |- | ||
+ | | <code>BCM2838_BOARD_REVISION_MEMORY_1024M = (2 shl 20);</code> | ||
+ | | 1024M | ||
+ | |- | ||
+ | | <code>BCM2838_BOARD_REVISION_MEMORY_2048M = (3 shl 20);</code> | ||
+ | | 2048M | ||
+ | |- | ||
+ | | <code>BCM2838_BOARD_REVISION_MEMORY_4096M = (4 shl 20);</code> | ||
+ | | 4096M | ||
+ | |- | ||
+ | | <code>BCM2838_BOARD_REVISION_MEMORY_8192M = (5 shl 20);</code> | ||
+ | | 8192M | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_BOARD_REVISION_ENCODED_FLAG = (1 shl 23);</code> | ||
+ | | Encoded Flag, if set then revision uses this encoding. | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_BOARD_REVISION_MASK = $00FFFFFF;</code> | ||
+ | | Mask off the warranty bits | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 mailbox tag power state device''' <code> BCM2838_MBOX_POWER_DEVID_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_POWER_DEVID_SDHCI = 0;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_POWER_DEVID_UART0 = 1;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_POWER_DEVID_UART1 = 2;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_POWER_DEVID_USB_HCD = 3;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_POWER_DEVID_I2C0 = 4;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_POWER_DEVID_I2C1 = 5;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_POWER_DEVID_I2C2 = 6;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_POWER_DEVID_SPI = 7;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_POWER_DEVID_CCP2TX = 8;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_POWER_DEVID_UNKNOWN = $FFFFFFFF;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 mailbox tag power state request''' <code> BCM2838_MBOX_SET_POWER_STATE_REQ_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_SET_POWER_STATE_REQ_OFF = (0 shl 0);</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_SET_POWER_STATE_REQ_ON = (1 shl 0);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_SET_POWER_STATE_REQ_WAIT = (1 shl 1);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 mailbox tag power state response''' <code> BCM2838_MBOX_POWER_STATE_RESP_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_POWER_STATE_RESP_OFF = (0 shl 0);</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_POWER_STATE_RESP_ON = (1 shl 0);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_POWER_STATE_RESP_NODEV = (1 shl 1);</code> | ||
+ | | Device doesn't exist | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 mailbox tag clock state/rate id''' <code> BCM2838_MBOX_CLOCK_ID_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_CLOCK_ID_RESERVED = 0;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_CLOCK_ID_EMMC = 1;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_CLOCK_ID_UART = 2;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_CLOCK_ID_ARM = 3;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_CLOCK_ID_CORE = 4;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_CLOCK_ID_V3D = 5;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_CLOCK_ID_H264 = 6;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_CLOCK_ID_ISP = 7;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_CLOCK_ID_SDRAM = 8;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_CLOCK_ID_PIXEL = 9;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_CLOCK_ID_PWM = 10;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_CLOCK_ID_HEVC = 11;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_CLOCK_ID_EMMC2 = 12;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_CLOCK_ID_M2MC = 13;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_CLOCK_ID_PIXEL_BVB = 14;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_CLOCK_ID_UNKNOWN = $FFFFFFFF;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 mailbox tag clock state request''' <code> BCM2838_MBOX_SET_CLOCK_STATE__REQ_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_SET_CLOCK_STATE_REQ_OFF = (0 shl 0);</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_SET_CLOCK_STATE_REQ_ON = (1 shl 0);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_SET_CLOCK_STATE_REQ_NOCLOCK = (1 shl 1);</code> | ||
+ | | Clock doesn't exist | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 mailbox tag clock state response''' <code> BCM2838_MBOX_CLOCK_STATE_RESP_ * </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_CLOCK_STATE_RESP_OFF = (0 shl 0);</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_CLOCK_STATE_RESP_ON = (1 shl 0);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_CLOCK_STATE_RESP_NOCLOCK = (1 shl 1);</code> | ||
+ | | Clock doesn't exist | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 mailbox tag clock rate turbo''' <code> BCM2838_MBOX_CLOCK_RATE_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_CLOCK_RATE_REQ_SKIP_TURBO = (1 shl 0);</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 mailbox tag voltage id''' <code> BCM2838_MBOX_VOLTAGE_ID_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_VOLTAGE_ID_RESERVED = $00000000;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_VOLTAGE_ID_CORE = $00000001;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_VOLTAGE_ID_SDRAM_C = $00000002;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_VOLTAGE_ID_SDRAM_P = $00000003;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_VOLTAGE_ID_SDRAM_I = $00000004;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 mailbox tag voltage''' <code> BCM2838_MBOX_VOLTAGE_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_VOLTAGE_INVALID = $80000000;</code> | ||
+ | | style="width: 50%;"|A value of 0x80000000 means the id was not valid | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 mailbox tag temperature id''' <code> BCM2838_MBOX_TEMP_ID_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TEMP_ID_SOC = 0;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 mailbox display id''' <code> BCM2838_MBOX_DISPLAY_ID_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|Note: These are compatible with the DISPMANX_ID_* values | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_DISPLAY_ID_MAIN_LCD = 0;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_DISPLAY_ID_AUX_LCD = 1;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_DISPLAY_ID_HDMI0 = 2;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_DISPLAY_ID_SDTV = 3;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_DISPLAY_ID_FORCE_LCD = 4;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_DISPLAY_ID_FORCE_TV = 5;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_DISPLAY_ID_FORCE_OTHER = 6;</code> | ||
+ | | Non-default display | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_DISPLAY_ID_HDMI1 = 7;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_DISPLAY_ID_FORCE_TV2 = 8;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 mailbox tag memory flag''' <code> BCM2838_MBOX_MEM_FLAG_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_MEM_FLAG_DISCARDABLE = (1 shl 0);</code> | ||
+ | | style="width: 50%;"|Can be resized to 0 at any time. Use for cached data. | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_MEM_FLAG_NORMAL = (0 shl 2);</code> | ||
+ | | Normal allocating alias. Don't use from ARM. | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_MEM_FLAG_DIRECT = (1 shl 2);</code> | ||
+ | | 0xC alias uncached | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_MEM_FLAG_COHERENT = (2 shl 2);</code> | ||
+ | | 0x8 alias. Non-allocating in L2 but coherent | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_MEM_FLAG_L1_NONALLOCATING = (BCM2838_MBOX_MEM_FLAG_DIRECT or BCM2838_MBOX_MEM_FLAG_COHERENT);</code> | ||
+ | | Allocating in L2 | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_MEM_FLAG_ZERO = (1 shl 4);</code> | ||
+ | | Initialise buffer to all zeros | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_MEM_FLAG_NO_INIT = (1 shl 5);</code> | ||
+ | | Don't initialise (default is initialise to all ones) | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_MEM_FLAG_HINT_PERMALOCK = (1 shl 6);</code> | ||
+ | | Likely to be locked for long periods of time | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 mailbox tag blank screen''' <code> BCM2838_MBOX_BLANK_SCREEN_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_BLANK_SCREEN_REQ_ON = (1 shl 0);</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 mailbox tag pixel order''' <code> BCM2838_MBOX_PIXEL_ORDER_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_PIXEL_ORDER_BGR = 0;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_PIXEL_ORDER_RGB = 1;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 mailbox tag alpha mode''' <code> BCM2838_MBOX_ALPHA_MODE_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_ALPHA_MODE_0_OPAQUE = 0;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_ALPHA_MODE_0_TRANSPARENT = 1;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_ALPHA_MODE_IGNORED = 2;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 mailbox tag palette''' <code> BCM2838_MBOX_PALETTE_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_PALETTE_INVALID = $00000001;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 mailbox tag cursor state''' <code> BCM2838_MBOX_CURSOR_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_CURSOR_INVISIBLE = 0;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_CURSOR_VISIBLE = 1;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 mailbox tag cursor state flag''' <code> BCM2838_MBOX_CURSOR_STATE_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_CURSOR_STATE_DISPLAY_COORDS = (0 shl 0);</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_CURSOR_STATE_FRAMEBUFFER_COORDS = (1 shl 0);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 mailbox tag cursor''' <code> BCM2838_MBOX_CURSOR_INVALID* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_CURSOR_INVALID = $00000001;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 mailbox request/response''' <code> BCM2838_MBOX_REQUEST_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_REQUEST_CODE = $00000000;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_RESPONSE_CODE_SUCCESS = $80000000;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_RESPONSE_CODE_ERROR = $80000001;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 mailbox tag request/response''' <code> BCM2838_MBOX_TAG_REQUEST_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_REQUEST_CODE = $00000000;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>BCM2838_MBOX_TAG_RESPONSE_CODE = $80000000;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 GPIO''' <code> BCM2838_GPIO_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_GPIO_PIN_COUNT = 58;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>BCM2838_GPIO_BANK_COUNT = 2;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_GPIO_SIGNATURE = $6770696F;</code> | ||
+ | | The ASCII value 'GPIO' returned when reading from a write only register | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 virtual GPIO''' <code> BCM2838_VIRTUAL_GPIO_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_VIRTUAL_GPIO_PIN_COUNT = 2;</code> | ||
+ | | style="width: 50%;"|Raspberry Pi 4B only | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 function select register''' <code> BCM2838_GP* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_GPFSEL0 = $00000000;</code> | ||
+ | | style="width: 50%;"|GPIO Function Select 0 | ||
+ | |- | ||
+ | | <code>BCM2838_GPFSEL1 = $00000004;</code> | ||
+ | | GPIO Function Select 1 | ||
+ | |- | ||
+ | | <code>BCM2838_GPFSEL2 = $00000008;</code> | ||
+ | | GPIO Function Select 2 | ||
+ | |- | ||
+ | | <code>BCM2838_GPFSEL3 = $0000000C;</code> | ||
+ | | GPIO Function Select 3 | ||
+ | |- | ||
+ | | <code>BCM2838_GPFSEL4 = $00000010;</code> | ||
+ | | GPIO Function Select 4 | ||
+ | |- | ||
+ | | <code>BCM2838_GPFSEL5 = $00000014;</code> | ||
+ | | GPIO Function Select 5 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | |colspan="2"|''Pin Output Set Registers'' | ||
+ | |- | ||
+ | | <code>BCM2838_GPSET0 = $0000001C;</code> | ||
+ | | GPIO Pin Output Set 0 | ||
+ | |- | ||
+ | | <code>BCM2838_GPSET1 = $00000020;</code> | ||
+ | | GPIO Pin Output Set 1 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | |colspan="2"|''Pin Output Clear Registers'' | ||
+ | |- | ||
+ | | <code>BCM2838_GPCLR0 = $00000028;</code> | ||
+ | | GPIO Pin Output Clear 0 | ||
+ | |- | ||
+ | | <code>BCM2838_GPCLR1 = $0000002C;</code> | ||
+ | | GPIO Pin Output Clear 1 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | |colspan="2"|''Pin Level Registers'' | ||
+ | |- | ||
+ | | <code>BCM2838_GPLEV0 = $00000034;</code> | ||
+ | | GPIO Pin Level 0 | ||
+ | |- | ||
+ | | <code>BCM2838_GPLEV1 = $00000038;</code> | ||
+ | | GPIO Pin Level 1 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | |colspan="2"|''Pin Event Detect Status Registers'' | ||
+ | |- | ||
+ | | <code>BCM2838_GPEDS0 = $00000040;</code> | ||
+ | | GPIO Pin Event Detect Status 0 | ||
+ | |- | ||
+ | | <code>BCM2838_GPEDS1 = $00000044;</code> | ||
+ | | GPIO Pin Event Detect Status 1 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | |colspan="2"|''Pin Rising Edge Detect Enable Registers'' | ||
+ | |- | ||
+ | | <code>BCM2838_GPREN0 = $0000004c;</code> | ||
+ | | GPIO Pin Rising Edge Detect Enable 0 | ||
+ | |- | ||
+ | | <code>BCM2838_GPREN1 = $00000050;</code> | ||
+ | | GPIO Pin Rising Edge Detect Enable 1 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | |colspan="2"|''Pin Falling Edge Detect Enable Registers'' | ||
+ | |- | ||
+ | | <code>BCM2838_GPFEN0 = $00000058;</code> | ||
+ | | GPIO Pin Falling Edge Detect Enable 0 | ||
+ | |- | ||
+ | | <code>BCM2838_GPFEN1 = $0000005c;</code> | ||
+ | | GPIO Pin Falling Edge Detect Enable 1 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | |colspan="2"|''Pin High Detect Enable Registers'' | ||
+ | |- | ||
+ | | <code>BCM2838_GPHEN0 = $00000064;</code> | ||
+ | | GPIO Pin High Detect Enable 0 | ||
+ | |- | ||
+ | | <code>BCM2838_GPHEN1 = $00000068;</code> | ||
+ | | GPIO Pin High Detect Enable 1 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | |colspan="2"|''Pin Low Detect Enable Registers'' | ||
+ | |- | ||
+ | | <code>BCM2838_GPLEN0 = $00000070;</code> | ||
+ | | GPIO Pin Low Detect Enable 0 | ||
+ | |- | ||
+ | | <code>BCM2838_GPLEN1 = $00000074;</code> | ||
+ | | GPIO Pin Low Detect Enable 1 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | |colspan="2"|''Pin Async. Rising Edge Detect Registers'' | ||
+ | |- | ||
+ | | <code>BCM2838_GPAREN0 = $0000007c;</code> | ||
+ | | GPIO Pin Async. Rising Edge Detect 0 | ||
+ | |- | ||
+ | | <code>BCM2838_GPAREN1 = $00000080;</code> | ||
+ | | GPIO Pin Async. Rising Edge Detect 1 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | |colspan="2"|''Pin Async. Falling Edge Detect Registers'' | ||
+ | |- | ||
+ | | <code>BCM2838_GPAFEN0 = $00000088;</code> | ||
+ | | GPIO Pin Async. Falling Edge Detect 0 | ||
+ | |- | ||
+ | | <code>BCM2838_GPAFEN1 = $0000008c;</code> | ||
+ | | GPIO Pin Async. Falling Edge Detect 1 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | |colspan="2"|''Pin Mux Register (See: https://github.com/raspberrypi/documentation/issues/1209)'' | ||
+ | |- | ||
+ | | <code>BCM2838_GPPINMUX = $000000D0;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | |colspan="2"|''Pin Pull-up/down Mode Registers'' | ||
+ | |- | ||
+ | | <code>BCM2838_GPPUD0 = $000000E4;</code> | ||
+ | | GPIO Pin Pull-up/down Mode 0 | ||
+ | |- | ||
+ | | <code>BCM2838_GPPUD1 = $000000E8;</code> | ||
+ | | GPIO Pin Pull-up/down Mode 1 | ||
+ | |- | ||
+ | | <code>BCM2838_GPPUD2 = $000000EC;</code> | ||
+ | | GPIO Pin Pull-up/down Mode 2 | ||
+ | |- | ||
+ | | <code>BCM2838_GPPUD3 = $000000F0;</code> | ||
+ | | GPIO Pin Pull-up/down Mode 3 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | |colspan="2"|''Function Select Mask'' | ||
+ | |- | ||
+ | | <code>BCM2838_GPFSEL_MASK = 7;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | |colspan="2"|''Function Select Values'' | ||
+ | |- | ||
+ | | <code>BCM2838_GPFSEL_IN = 0;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_GPFSEL_OUT = 1;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_GPFSEL_ALT0 = 4;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_GPFSEL_ALT1 = 5;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_GPFSEL_ALT2 = 6;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_GPFSEL_ALT3 = 7;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_GPFSEL_ALT4 = 3;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_GPFSEL_ALT5 = 2;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | |colspan="2"|''Pin Output Set Mask'' | ||
+ | |- | ||
+ | | <code>BCM2838_GPSET_MASK = 1;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | |colspan="2"|''Pin Output Clear Mask'' | ||
+ | |- | ||
+ | | <code>BCM2838_GPCLR_MASK = 1;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | |colspan="2"|''Pin Level Mask'' | ||
+ | |- | ||
+ | | <code>BCM2838_GPLEV_MASK = 1;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | |colspan="2"|''Pin Event Detect Status Mask'' | ||
+ | |- | ||
+ | | <code>BCM2838_GPEDS_MASK = 1;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | |colspan="2"|''Pin Rising Edge Detect Enable Mask'' | ||
+ | |- | ||
+ | | <code>BCM2838_GPREN_MASK = 1;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | |colspan="2"|''Pin Falling Edge Detect Enable Mask'' | ||
+ | |- | ||
+ | | <code>BCM2838_GPFEN_MASK = 1;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | |colspan="2"|''Pin High Detect Enable Mask'' | ||
+ | |- | ||
+ | | <code>BCM2838_GPHEN_MASK = 1;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | |colspan="2"|''Pin Low Detect Enable Mask'' | ||
+ | |- | ||
+ | | <code>BCM2838_GPLEN_MASK = 1;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | |colspan="2"|''Pin Async. Rising Edge Detect Mask'' | ||
+ | |- | ||
+ | | <code>BCM2838_GPAREN_MASK = 1;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | |colspan="2"|''Pin Async. Falling Edge Detect Mask'' | ||
+ | |- | ||
+ | | <code>BCM2838_GPAFEN_MASK = 1;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | |colspan="2"|''Pull-up/down Mode Mask'' | ||
+ | |- | ||
+ | | <code>BCM2838_GPPUD_MASK = 3;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | |colspan="2"|''Pull-up/down Mode Values'' | ||
+ | |- | ||
+ | | <code>BCM2838_GPPUD_NONE = 0;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_GPPUD_UP = 1;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_GPPUD_DOWN = 2;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | |colspan="2"|''Pin Mux Values'' | ||
+ | |- | ||
+ | | <code>BCM2838_GPPINMUX_RGMII_PHY_GPIO = 1;</code> | ||
+ | | If set enables the RGMII PHY signals onto GPIOs 46+ | ||
+ | |- | ||
+ | | <code>BCM2838_GPPINMUX_LEGACY_EMMC = 2;</code> | ||
+ | | If set legacy EMMC controller (Arasan SD) is connected to the SD card socket | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 ARM local''' <code> BCM2838_ARM_LOCAL_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_BASE = $FF800000;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_SIZE = SIZE_8M;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 ARM local peripheral''' <code> BCM2838_ARM_*_REGS_ BASE* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: BCM2711 ARM Peripherals | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_REGS_BASE = (BCM2838_ARM_LOCAL_BASE + $0000);</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | |colspan="2"|''GICv2'' | ||
+ | |- | ||
+ | | <code>BCM2838_GICDIST_REGS_BASE = BCM2838_ARM_LOCAL_BASE + $41000;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_GICCPU_REGS_BASE = BCM2838_ARM_LOCAL_BASE + $42000;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 IRQ local ARM peripheral ''' <code> BCM2838_IRQ_LOCAL_ARM_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: BCM2711 ARM Peripherals | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | |colspan="2"|''ARM Generic Timers'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_LOCAL_ARM_CNTPSIRQ = BCM2838_IRQ_TIMER0;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_LOCAL_ARM_CNTPNSIRQ = BCM2838_IRQ_TIMER1;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_LOCAL_ARM_CNTVIRQ = BCM2838_IRQ_TIMER2;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_LOCAL_ARM_CNTHPIRQ = BCM2838_IRQ_TIMER3;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"|''ARM Malboxes0-3'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_LOCAL_ARM_MAILBOX0:array[0..BCM2838_CPU_COUNT - 1] of LongWord = (BCM2838_IRQ_MAILBOX0_0, BCM2838_IRQ_MAILBOX0_1, BCM2838_IRQ_MAILBOX0_2, BCM2838_IRQ_MAILBOX0_3);</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_LOCAL_ARM_MAILBOX1:array[0..BCM2838_CPU_COUNT - 1] of LongWord = (BCM2838_IRQ_MAILBOX1_0, BCM2838_IRQ_MAILBOX1_1, BCM2838_IRQ_MAILBOX1_2, BCM2838_IRQ_MAILBOX1_3);</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_LOCAL_ARM_MAILBOX2:array[0..BCM2838_CPU_COUNT - 1] of LongWord = (BCM2838_IRQ_MAILBOX2_0, BCM2838_IRQ_MAILBOX2_1, BCM2838_IRQ_MAILBOX2_2, BCM2838_IRQ_MAILBOX2_3);</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_LOCAL_ARM_MAILBOX3:array[0..BCM2838_CPU_COUNT - 1] of LongWord = (BCM2838_IRQ_MAILBOX3_0, BCM2838_IRQ_MAILBOX3_1, BCM2838_IRQ_MAILBOX3_2, BCM2838_IRQ_MAILBOX3_3);</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"|''ARM Performance Monitoring'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_LOCAL_ARM_PMU:array[0..BCM2838_CPU_COUNT - 1] of LongWord = (BCM2838_IRQ_PMU0, BCM2838_IRQ_PMU1, BCM2838_IRQ_PMU2, BCM2838_IRQ_PMU3);</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"|''AXI Outstanding'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_LOCAL_ARM_AXIQUIET = BCM2838_IRQ_LOCAL_AXIQUIET;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"|''ARM Local Timer'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_LOCAL_ARM_TIMER = BCM2838_IRQ_LOCAL_TIMER;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"|''AXI Error'' | ||
+ | |- | ||
+ | | <code>BCM2838_IRQ_LOCAL_ARM_AXIERR = BCM2838_IRQ_LOCAL_AXIERR;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 ARM local control''' <code> BCM2838_ARM_LOCAL_CONTROL_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Table 103 ARM_CONTROL register | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_CONTROL_AXIERRIRQ_DIS = (1 shl 6);</code> | ||
+ | | style="width: 50%;"|Masks the AXI Error interrupt | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_CONTROL_AXIERRIRQ_EN = (0 shl 6);</code> | ||
+ | | Enables the AXI Error interrupt | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_CONTROL_APB_CLOCK = (1 shl 7);</code> | ||
+ | | 64-bit Core timer runs from the APB clock | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_CONTROL_CRYSTAL_CLOCK = (0 shl 7);</code> | ||
+ | | 64-bit Core timer runs from the Crystal clock | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_CONTROL_INCREMENT_2 = (1 shl 8);</code> | ||
+ | | 64-bit Core timer increments by 2 | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_CONTROL_INCREMENT_1 = (0 shl 8);</code> | ||
+ | | 64-bit Core timer increments by 1 | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 ARM local core interrupt routing''' <code> BCM2838_ARM_LOCAL_AXI_ERR_ * </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Table 104 CORE_IRQ_CONTROL Register | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_AXI_ERR_INT_ROUTING_IRQ0 = (0 shl 4);</code> | ||
+ | | style="width: 50%;"|AXI_ERR IRQ goes to IRQ input of core 0 | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_AXI_ERR_INT_ROUTING_IRQ1 = (1 shl 4);</code> | ||
+ | | AXI_ERR IRQ goes to IRQ input of core 1 | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_AXI_ERR_INT_ROUTING_IRQ2 = (2 shl 4);</code> | ||
+ | | AXI_ERR IRQ goes to IRQ input of core 2 | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_AXI_ERR_INT_ROUTING_IRQ3 = (3 shl 4);</code> | ||
+ | | AXI_ERR IRQ goes to IRQ input of core 3 | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_AXI_ERR_INT_ROUTING_FIQ0 = (4 shl 4); </code> | ||
+ | | AXI_ERR FIQ goes to FIQ input of core 0 | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_AXI_ERR_INT_ROUTING_FIQ1 = (5 shl 4);</code> | ||
+ | | AXI_ERR FIQ goes to FIQ input of core 1 | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_AXI_ERR_INT_ROUTING_FIQ2 = (6 shl 4);</code> | ||
+ | | AXI_ERR FIQ goes to FIQ input of core 2 | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_AXI_ERR_INT_ROUTING_FIQ3 = (7 shl 4);</code> | ||
+ | | AXI_ERR FIQ goes to FIQ input of core 3 | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_AXI_ERR_INT_ROUTING_MASK = (7 shl 4);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_AXI_ERR_INT_ROUTING_SHIFT = 4;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 ARM local PM interrupt routing set/clear ''' <code> BCM2838_ARM_LOCAL_PM_INT_ROUTING_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Table 105/106 PMU_CONTROL_SET/CLR Register | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_PM_INT_ROUTING_IRQ0 = (1 shl 0);</code> | ||
+ | | style="width: 50%;"|Core 0 PM IRQ Enable (This bit is only valid if bit 4 is clear otherwise it is ignored) | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_PM_INT_ROUTING_IRQ1 = (1 shl 1);</code> | ||
+ | | Core 1 PM IRQ Enable (This bit is only valid if bit 5 is clear otherwise it is ignored) | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_PM_INT_ROUTING_IRQ2 = (1 shl 2);</code> | ||
+ | | Core 2 PM IRQ Enable (This bit is only valid if bit 6 is clear otherwise it is ignored) | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_PM_INT_ROUTING_IRQ3 = (1 shl 3);</code> | ||
+ | | Core 3 PM IRQ Enable (This bit is only valid if bit 7 is clear otherwise it is ignored) | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_PM_INT_ROUTING_FIQ0 = (1 shl 4);</code> | ||
+ | | Core 0 PM FIQ Enable (If set, this bit overrides the IRQ bit 0) | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_PM_INT_ROUTING_FIQ1 = (1 shl 5);</code> | ||
+ | | Core 1 PM FIQ Enable (If set, this bit overrides the IRQ bit 1) | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_PM_INT_ROUTING_FIQ2 = (1 shl 6);</code> | ||
+ | | Core 2 PM FIQ Enable (If set, this bit overrides the IRQ bit 2) | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_PM_INT_ROUTING_FIQ3 = (1 shl 7);</code> | ||
+ | | Core 3 PM FIQ Enable (If set, this bit overrides the IRQ bit 3) | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 ARM local peripheral interrupt routing''' <code> BCM2838_ARM_LOCAL_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Table 107 PERI_IRQ_ROUTE0 Register | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_PERIPHERAL_WRITE_MASKS = ($01 shl 24);</code> | ||
+ | | style="width: 50%;"|This field must be written with 0x01, otherwise changes to LOCAL_TIMER_IRQ will be ignored. | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_TIMER_INT_ROUTING_IRQ0 = (0 shl 0);</code> | ||
+ | | Local timer interrupt goes to Core 0 IRQ | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_TIMER_INT_ROUTING_IRQ1 = (1 shl 0);</code> | ||
+ | | Local timer interrupt goes to Core 1 IRQ | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_TIMER_INT_ROUTING_IRQ2 = (2 shl 0);</code> | ||
+ | | Local timer interrupt goes to Core 2 IRQ | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_TIMER_INT_ROUTING_IRQ3 = (3 shl 0);</code> | ||
+ | | Local timer interrupt goes to Core 3 IRQ | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_TIMER_INT_ROUTING_FIQ0 = (4 shl 0);</code> | ||
+ | | Local timer interrupt goes to Core 0 FIQ | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_TIMER_INT_ROUTING_FIQ1 = (5 shl 0);</code> | ||
+ | | Local timer interrupt goes to Core 1 FIQ | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_TIMER_INT_ROUTING_FIQ2 = (6 shl 0);</code> | ||
+ | | Local timer interrupt goes to Core 2 FIQ | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_TIMER_INT_ROUTING_FIQ3 = (7 shl 0);</code> | ||
+ | | Local timer interrupt goes to Core 3 FIQ | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_TIMER_INT_ROUTING_MASK = (7 shl 0);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_TIMER_INT_ROUTING_SHIFT = 0;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 ARM local AXI outstanding count''' <code> BCM2838_ARM_LOCAL_AXI_COUNT_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_AXI_COUNT_READ_MASK = ($3FF shl 0);</code> | ||
+ | | style="width: 50%;"|Outstanding reads counter | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_AXI_COUNT_WRITE_MASK = ($3FF shl 16);</code> | ||
+ | | Outstanding writes counter | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 ARM local AXI outstanding IRQ ''' <code> BCM2838_ARM_LOCAL_AXI_QUIET_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Table 108 AXI_QUIET_TIME Register | ||
+ | |- | ||
+ | |colspan="2"|Core 0 Only | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_AXI_QUIET_IRQ_ENABLE = (1 shl 20);</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_AXI_QUIET_IRQ_TIMEOUT = ($FFFFF shl 0);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 ARM local timer control''' <code> BCM2838_ARM_LOCAL_TIMER_CONTROL_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Table 109 LOCAL_TIMER_CONTROL Register | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_TIMER_CONTROL_INT_STATUS = (1 shl 31);</code> | ||
+ | | style="width: 50%;"|Interrupt flag (Read Only) | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_TIMER_CONTROL_INT_ENABLE = (1 shl 29);</code> | ||
+ | | Interrupt enable (1= enabled) | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_TIMER_CONTROL_ENABLE = (1 shl 28);</code> | ||
+ | | Timer enable (1 = enabled) | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_TIMER_CONTROL_VALUE_MASK = ($0FFFFFFF shl 0);</code> | ||
+ | | Re-load value | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 ARM local timer clear reload''' <code> BCM2838_ARM_LOCAL_TIMER_CLEAR_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Table 110 LOCAL_TIMER_IRQ Register | ||
+ | |- | ||
+ | |colspan="2"|Write Only | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_TIMER_CLEAR_INT = (1 shl 31);</code> | ||
+ | | style="width: 50%;"|Interrupt flag clear when written as 1 (Write Only) | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_TIMER_CLEAR_RELOAD = (1 shl 30);</code> | ||
+ | | Local timer reloaded when written as 1 (Write Only) | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 ARM local timer interrupt control''' <code> BCM2838_ARM_LOCAL_TIMER_INT_CONTROL_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Table 111 TIMER_CNTRL0, TIMER_CNTRL1, TIMER_CNTRL2 & TIMER_CNTRL3 Registers | ||
+ | |- | ||
+ | |colspan="2"|Note: These are the ARM Generic Timers (See ARM Architecture Reference Manual) | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_TIMER_INT_CONTROL_CNTPSIRQ = (1 shl 0);</code> | ||
+ | | style="width: 50%;"|Physical Secure Timer IRQ Enable (This bit is only valid if bit 4 is clear otherwise it is ignored) | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_TIMER_INT_CONTROL_CNTPNSIRQ = (1 shl 1);</code> | ||
+ | | Physical Non Secure Timer IRQ Enable (This bit is only valid if bit 5 is clear otherwise it is ignored) | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_TIMER_INT_CONTROL_CNTHPIRQ = (1 shl 2);</code> | ||
+ | | Hypervisor Timer IRQ Enable (This bit is only valid if bit 6 is clear otherwise it is ignored) | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_TIMER_INT_CONTROL_CNTVIRQ = (1 shl 3);</code> | ||
+ | | Virtual Timer IRQ Enable (This bit is only valid if bit 7 is clear otherwise it is ignored) | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_TIMER_INT_CONTROL_CNTPSFIQ = (1 shl 4);</code> | ||
+ | | Physical Secure Timer FIQ Enable (If set, this bit overrides the IRQ bit 0) | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_TIMER_INT_CONTROL_CNTPNSFIQ = (1 shl 5);</code> | ||
+ | | Physical Non Secure Timer FIQ Enable (If set, this bit overrides the IRQ bit 1) | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_TIMER_INT_CONTROL_CNTHPFIQ = (1 shl 6);</code> | ||
+ | | Hypervisor Timer FIQ Enable (If set, this bit overrides the IRQ bit 2) | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_TIMER_INT_CONTROL_CNTVFIQ = (1 shl 7);</code> | ||
+ | | Virtual Timer FIQ Enable (If set, this bit overrides the IRQ bit 3) | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 ARM local mailbox interrupt control''' <code> BCM2838_ARM_LOCAL_MAILBOX_INT_CONTROL_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Table 112 MAILBOX_CNTRL0, MAILBOX_CNTRL1, MAILBOX_CNTRL2 & MAILBOX_CNTRL3 Registers | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_MAILBOX_INT_CONTROL_MAILBOX0IRQ = (1 shl 0);</code> | ||
+ | | style="width: 50%;"|Mailbox-0 IRQ Enable (This bit is only valid if bit 4 is clear otherwise it is ignored) | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_MAILBOX_INT_CONTROL_MAILBOX1IRQ = (1 shl 1);</code> | ||
+ | | Mailbox-1 IRQ Enable (This bit is only valid if bit 5 is clear otherwise it is ignored) | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_MAILBOX_INT_CONTROL_MAILBOX2IRQ = (1 shl 2);</code> | ||
+ | | Mailbox-2 IRQ Enable (This bit is only valid if bit 6 is clear otherwise it is ignored) | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_MAILBOX_INT_CONTROL_MAILBOX3IRQ = (1 shl 3);</code> | ||
+ | | Mailbox-3 IRQ Enable (This bit is only valid if bit 7 is clear otherwise it is ignored) | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_MAILBOX_INT_CONTROL_MAILBOX0FIQ = (1 shl 0);</code> | ||
+ | | Mailbox-0 FIQ Enable (If set, this bit overrides the IRQ bit 0) | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_MAILBOX_INT_CONTROL_MAILBOX1FIQ = (1 shl 0);</code> | ||
+ | | Mailbox-1 FIQ Enable (If set, this bit overrides the IRQ bit 1) | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_MAILBOX_INT_CONTROL_MAILBOX2FIQ = (1 shl 0);</code> | ||
+ | | Mailbox-2 FIQ Enable (If set, this bit overrides the IRQ bit 2) | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_MAILBOX_INT_CONTROL_MAILBOX3FIQ = (1 shl 0);</code> | ||
+ | | Mailbox-3 FIQ Enable (If set, this bit overrides the IRQ bit 3) | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 ARM local IRQ source''' <code> BCM2838_ARM_LOCAL_IRQ_SOURCE_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Table 113 IRQ_SOURCE0, IRQ_SOURCE1, IRQ_SOURCE2 & IRQ_SOURCE3 Registers | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_IRQ_SOURCE_CNTPSIRQ = (1 shl 0);</code> | ||
+ | | style="width: 50%;"|Physical Secure Timer Interrupt | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_IRQ_SOURCE_CNTPNSIRQ = (1 shl 1);</code> | ||
+ | | Physical Non Secure Timer Interrupt | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_IRQ_SOURCE_CNTHPIRQ = (1 shl 2);</code> | ||
+ | | Hypervisor Timer Interrupt | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_IRQ_SOURCE_CNTVIRQ = (1 shl 3);</code> | ||
+ | | Virtual Timer Interrupt | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_IRQ_SOURCE_MAILBOX0 = (1 shl 4);</code> | ||
+ | | Mailbox 0 Interrupt | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_IRQ_SOURCE_MAILBOX1 = (1 shl 5);</code> | ||
+ | | Mailbox 1 Interrupt | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_IRQ_SOURCE_MAILBOX2 = (1 shl 6);</code> | ||
+ | | Mailbox 2 Interrupt | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_IRQ_SOURCE_MAILBOX3 = (1 shl 7);</code> | ||
+ | | Mailbox 3 Interrupt | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_IRQ_SOURCE_GPU = (1 shl 8);</code> | ||
+ | | VideoCore Interrupt | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_IRQ_SOURCE_PMU = (1 shl 9);</code> | ||
+ | | Performance Monitor Interrupt | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_IRQ_SOURCE_AXI_QUIET = (1 shl 10);</code> | ||
+ | | AXI Outstanding Interrupt (Core 0 Only) | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_IRQ_SOURCE_TIMER = (1 shl 11);</code> | ||
+ | | Local Timer Interrupt | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_IRQ_SOURCE_AXI_ERR = (1 shl 30);</code> | ||
+ | | AXI error, as reported by the ARM L2 cache | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''BCM2838 ARM local FIQ source''' <code> BCM2838_ARM_LOCAL_FIQ_SOURCE_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: Table 114 FIQ_SOURCE0, FIQ_SOURCE1, FIQ_SOURCE2 & FIQ_SOURCE3 Registers | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_FIQ_SOURCE_CNTPSIRQ = (1 shl 0);</code> | ||
+ | | style="width: 50%;"|Physical Secure Timer Fast Interrupt | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_FIQ_SOURCE_CNTPNSIRQ = (1 shl 1);</code> | ||
+ | | Physical Non Secure Timer Fast Interrupt | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_FIQ_SOURCE_CNTHPIRQ = (1 shl 2);</code> | ||
+ | | Hypervisor Timer Fast Interrupt | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_FIQ_SOURCE_CNTVIRQ = (1 shl 3);</code> | ||
+ | | Virtual Timer Fast Interrupt | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_FIQ_SOURCE_MAILBOX0 = (1 shl 4);</code> | ||
+ | | Mailbox 0 Fast Interrupt | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_FIQ_SOURCE_MAILBOX1 = (1 shl 5);</code> | ||
+ | | Mailbox 1 Fast Interrupt | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_FIQ_SOURCE_MAILBOX2 = (1 shl 6);</code> | ||
+ | | Mailbox 2 Fast Interrupt | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_FIQ_SOURCE_MAILBOX3 = (1 shl 7);</code> | ||
+ | | Mailbox 3 Fast Interrupt | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_FIQ_SOURCE_GPU = (1 shl 8);</code> | ||
+ | | VideoCore Fast Interrupt | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_FIQ_SOURCE_PMU = (1 shl 9);</code> | ||
+ | | Performance Monitor Fast Interrupt | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_FIQ_SOURCE_TIMER = (1 shl 11);</code> | ||
+ | | Local Timer Fast Interrupt | ||
+ | |- | ||
+ | | <code>BCM2838_ARM_LOCAL_FIQ_SOURCE_AXI_ERR = (1 shl 30);</code> | ||
+ | | AXI error, as reported by the ARM L2 cache | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
=== Type definitions === | === Type definitions === | ||
---- | ---- | ||
− | '' | + | |
+ | '''BCM2838 system timer registers''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838SystemTimerRegisters = ^TBCM2838SystemTimerRegisters;</code> | ||
+ | |||
+ | <code>TBCM2838SystemTimerRegisters = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|Note: Layout of the BCM2838 System Timer registers | ||
+ | |- | ||
+ | | <code>CS:LongWord;</code> | ||
+ | | style="width: 50%;"|System Timer Control/Status | ||
+ | |- | ||
+ | | <code>CLO:LongWord;</code> | ||
+ | | System Timer Counter Lower 32 bits | ||
+ | |- | ||
+ | | <code>CHI:LongWord;</code> | ||
+ | | System Timer Counter Higher 32 bits | ||
+ | |- | ||
+ | | <code>C0:LongWord;</code> | ||
+ | | System Timer Compare 0. Already used by the VideoCore GPU (Do not use) | ||
+ | |- | ||
+ | | <code>C1:LongWord;</code> | ||
+ | | System Timer Compare 1 | ||
+ | |- | ||
+ | | <code>C2:LongWord;</code> | ||
+ | | System Timer Compare 2. Already used by the VideoCore GPU (Do not use) | ||
+ | |- | ||
+ | | <code>C3:LongWord;</code> | ||
+ | | System Timer Compare 3 | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 DMA channel registers''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838DMARegisters = ^TBCM2838DMARegisters;</code> | ||
+ | |||
+ | <code>TBCM2838DMARegisters = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|Note: Layout of the BCM2838 DMA Channel registers | ||
+ | |- | ||
+ | | <code>CS:LongWord;</code> | ||
+ | | style="width: 50%;"|DMA Channel Control and Status | ||
+ | |- | ||
+ | | <code>CONBLK_AD:LongWord;</code> | ||
+ | | DMA Channel Control Block Address | ||
+ | |- | ||
+ | | <code>TI:LongWord;</code> | ||
+ | | DMA Channel CB Word 0 (Transfer Information) | ||
+ | |- | ||
+ | | <code>SOURCE_AD:LongWord;</code> | ||
+ | | DMA Channel CB Word 1 (Source Address) | ||
+ | |- | ||
+ | | <code>DEST_AD:LongWord;</code> | ||
+ | | DMA Channel CB Word 2 (Destination Address) | ||
+ | |- | ||
+ | | <code>TXFR_LEN:LongWord;</code> | ||
+ | | DMA Channel CB Word 3 (Transfer Length) | ||
+ | |- | ||
+ | | <code>STRIDE:LongWord;</code> | ||
+ | | DMA Channel CB Word 4 (2D Mode Stride) (Not applicable to Lite channels) | ||
+ | |- | ||
+ | | <code>NEXTCONBK:LongWord;</code> | ||
+ | | DMA Channel CB Word 5 (Next Control Block Address) | ||
+ | |- | ||
+ | | <code>DEBUG:LongWord;</code> | ||
+ | | DMA Channel Debug | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 DMA40 channel registers''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838DMA40Registers = ^TBCM2838DMA40Registers;</code> | ||
+ | |||
+ | <code>TBCM2838DMA40Registers = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|Note: Layout of the BCM2838 DMA40 Channel registers | ||
+ | |- | ||
+ | | <code>CS:LongWord; {DMA Channel Control and Status</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>CB:LongWord; {DMA Channel Control Block Address</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved1:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>DEBUG:LongWord;</code> | ||
+ | | DMA Channel Debug | ||
+ | |- | ||
+ | | <code>TI:LongWord;</code> | ||
+ | | DMA Channel CB Word 0 (Transfer Information) | ||
+ | |- | ||
+ | | <code>SRC:LongWord;</code> | ||
+ | | DMA Channel CB Word 1 (Source Address) | ||
+ | |- | ||
+ | | <code>SRCI:LongWord;</code> | ||
+ | | DMA Channel CB Word 2 (Source Information) | ||
+ | |- | ||
+ | | <code>DEST:LongWord;</code> | ||
+ | | DMA Channel CB Word 3 (Destination Address) | ||
+ | |- | ||
+ | | <code>DESTI:LongWord;</code> | ||
+ | | DMA Channel CB Word 4 (Destination Information) | ||
+ | |- | ||
+ | | <code>LEN:LongWord;</code> | ||
+ | | DMA Channel CB Word 5 (Transfer Length) | ||
+ | |- | ||
+ | | <code>NEXT_CB:LongWord;</code> | ||
+ | | DMA Channel CB Word 6 (Next Control Block Address) | ||
+ | |- | ||
+ | | <code>DEBUG2:LongWord;</code> | ||
+ | | DMA Channel Debug | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 DMA control block structure''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838DMAControlBlock = ^TBCM2838DMAControlBlock;</code> | ||
+ | |||
+ | <code>TBCM2838DMAControlBlock = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|Note: Layout of BCM2838 DMA Control Block structure. Must be 32byte (256bit) aligned. | ||
+ | |- | ||
+ | | <code>TransferInformation:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>SourceAddress:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>DestinationAddress:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>TransferLength:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>ModeStride:LongWord;</code> | ||
+ | | Not applicable to Lite channels | ||
+ | |- | ||
+ | | <code>NextControlBlockAddress:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved1:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved2:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 DMA40 control block structure''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838DMA40ControlBlock = ^TBCM2838DMA40ControlBlock;</code> | ||
+ | |||
+ | <code>TBCM2838DMA40ControlBlock = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|Note: Layout of BCM2838 DMA40 Control Block structure. Must be 32byte (256bit) aligned. | ||
+ | |- | ||
+ | | <code>TransferInformation:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>SourceAddress:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>SourceInformation:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>DestinationAddress:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>DestinationInformation:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>TransferLength:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>NextControlBlockAddress:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved1:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 BSC (I2C) registers''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838BSCRegisters = ^TBCM2838BSCRegisters;</code> | ||
+ | |||
+ | <code>TBCM2838BSCRegisters = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|Note: Layout of the BCM2838 BSC (I2C) registers | ||
+ | |- | ||
+ | | <code>C:LongWord;</code> | ||
+ | | style="width: 50%;"|Control | ||
+ | |- | ||
+ | | <code>S:LongWord;</code> | ||
+ | | Status | ||
+ | |- | ||
+ | | <code>DLEN:LongWord;</code> | ||
+ | | Data Length | ||
+ | |- | ||
+ | | <code>A:LongWord;</code> | ||
+ | | Slave Address | ||
+ | |- | ||
+ | | <code>FIFO:LongWord;</code> | ||
+ | | Data FIFO | ||
+ | |- | ||
+ | | <code>CDIV:LongWord;</code> | ||
+ | | Clock Divider | ||
+ | |- | ||
+ | | <code>DEL:LongWord;</code> | ||
+ | | Data Delay | ||
+ | |- | ||
+ | | <code>CLKT:LongWord;</code> | ||
+ | | Clock Stretch Timeout | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 SPI0 registers''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838SPI0Registers = ^TBCM2838SPI0Registers;</code> | ||
+ | |||
+ | <code>TBCM2838SPI0Registers = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|Note: Layout of the BCM2838 SPI0 registers | ||
+ | |- | ||
+ | | <code>CS:LongWord;</code> | ||
+ | | style="width: 50%;"|SPI Master Control and Status | ||
+ | |- | ||
+ | | <code>FIFO:LongWord;</code> | ||
+ | | SPI Master TX and RX FIFOs | ||
+ | |- | ||
+ | | <code>CLK:LongWord;</code> | ||
+ | | SPI Master Clock Divider | ||
+ | |- | ||
+ | | <code>DLEN:LongWord;</code> | ||
+ | | SPI Master Data Length | ||
+ | |- | ||
+ | | <code>LTOH:LongWord;</code> | ||
+ | | SPI LOSSI mode TOH | ||
+ | |- | ||
+ | | <code>DC:LongWord;</code> | ||
+ | | SPI DMA DREQ Controls | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 I2C/SPI slave registers''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838I2CSPIRegisters = ^TBCM2838I2CSPIRegisters;</code> | ||
+ | |||
+ | <code>TBCM2838I2CSPIRegisters = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|Note: Layout of the BCM2838 I2C/SPI Slave registers | ||
+ | |- | ||
+ | | <code>DR:LongWord;</code> | ||
+ | | style="width: 50%;"|Data Register | ||
+ | |- | ||
+ | | <code>RSR:LongWord;</code> | ||
+ | | Operation status register and error clear register | ||
+ | |- | ||
+ | | <code>SLV:LongWord;</code> | ||
+ | | I2C SPI Address Register holds the I2C slave address value | ||
+ | |- | ||
+ | | <code>CR:LongWord;</code> | ||
+ | | Control register is used to configure the I2C or SPI operation | ||
+ | |- | ||
+ | | <code>FR:LongWord;</code> | ||
+ | | Flag register | ||
+ | |- | ||
+ | | <code>IFLS:LongWord;</code> | ||
+ | | Interrupt fifo level select register | ||
+ | |- | ||
+ | | <code>IMSC:LongWord;</code> | ||
+ | | Interrupt Mask Set Clear Register | ||
+ | |- | ||
+ | | <code>RIS:LongWord;</code> | ||
+ | | Raw Interrupt Status Register | ||
+ | |- | ||
+ | | <code>MIS:LongWord;</code> | ||
+ | | Masked Interrupt Status Register | ||
+ | |- | ||
+ | | <code>ICR:LongWord;</code> | ||
+ | | Interrupt Clear Register | ||
+ | |- | ||
+ | | <code>DMACR:LongWord;</code> | ||
+ | | DMA Control Register | ||
+ | |- | ||
+ | | <code>TDR:LongWord;</code> | ||
+ | | FIFO Test Data Register | ||
+ | |- | ||
+ | | <code>GPUSTAT:LongWord;</code> | ||
+ | | GPU Status Register | ||
+ | |- | ||
+ | | <code>HCTRL:LongWord;</code> | ||
+ | | Host Control Register | ||
+ | |- | ||
+ | | <code>DEBUG1:LongWord;</code> | ||
+ | | I2C Debug Register | ||
+ | |- | ||
+ | | <code>DEBUG2:LongWord;</code> | ||
+ | | SPI Debug Register | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 AUX (UART1, SPI1 and SPI2) registers''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838AUXRegisters = ^TBCM2838AUXRegisters;</code> | ||
+ | |||
+ | <code>TBCM2838AUXRegisters = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|Note: Layout of the BCM2838 AUX (UART1, SPI1 and SPI2) registers | ||
+ | |- | ||
+ | | <code>AUX_IRQ:LongWord;</code> | ||
+ | | style="width: 50%;"|Auxiliary Interrupt status | ||
+ | |- | ||
+ | | <code>AUX_ENABLE:LongWord;</code> | ||
+ | | Auxiliary enables | ||
+ | |- | ||
+ | | <code>Reserved01:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved02:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved03:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved04:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved05:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved06:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved07:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved08:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved09:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved0A:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved0B:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved0C:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved0D:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved0E:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>AUX_MU_IO:LongWord;</code> | ||
+ | | Mini Uart I/O Data | ||
+ | |- | ||
+ | | <code>AUX_MU_IER:LongWord;</code> | ||
+ | | Mini Uart Interrupt Enable | ||
+ | |- | ||
+ | | <code>AUX_MU_IIR:LongWord;</code> | ||
+ | | Mini Uart Interrupt Identify | ||
+ | |- | ||
+ | | <code>AUX_MU_LCR:LongWord;</code> | ||
+ | | Mini Uart Line Control | ||
+ | |- | ||
+ | | <code>AUX_MU_MCR:LongWord;</code> | ||
+ | | Mini Uart Modem Control | ||
+ | |- | ||
+ | | <code>AUX_MU_LSR:LongWord;</code> | ||
+ | | Mini Uart Line Status | ||
+ | |- | ||
+ | | <code>AUX_MU_MSR:LongWord;</code> | ||
+ | | Mini Uart Modem Status | ||
+ | |- | ||
+ | | <code>AUX_MU_SCRATCH:LongWord;</code> | ||
+ | | Mini Uart Scratch | ||
+ | |- | ||
+ | | <code>AUX_MU_CNTL:LongWord;</code> | ||
+ | | Mini Uart Extra Control | ||
+ | |- | ||
+ | | <code>AUX_MU_STAT:LongWord;</code> | ||
+ | | Mini Uart Extra Status | ||
+ | |- | ||
+ | | <code>AUX_MU_BAUD:LongWord;</code> | ||
+ | | Mini Uart Baudrate | ||
+ | |- | ||
+ | | <code>Reserved11:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved12:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved13:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved14:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved15:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>AUX_SPI1_CNTL0:LongWord;</code> | ||
+ | | SPI 1 Control register 0 | ||
+ | |- | ||
+ | | <code>AUX_SPI1_CNTL1:LongWord;</code> | ||
+ | | SPI 1 Control register 1 | ||
+ | |- | ||
+ | | <code>AUX_SPI1_STAT:LongWord;</code> | ||
+ | | SPI 1 Status | ||
+ | |- | ||
+ | | <code>Reserved21:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>AUX_SPI1_IO:LongWord;</code> | ||
+ | | SPI 1 Data | ||
+ | |- | ||
+ | | <code>AUX_SPI1_PEEK:LongWord;</code> | ||
+ | | SPI 1 Peek | ||
+ | |- | ||
+ | | <code>Reserved31:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved32:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved33:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved34:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved35:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved36:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved37:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved38:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved39:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved3A:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>AUX_SPI2_CNTL0:LongWord;</code> | ||
+ | | SPI 2 Control register 0 | ||
+ | |- | ||
+ | | <code>AUX_SPI2_CNTL1:LongWord;</code> | ||
+ | | SPI 2 Control register 1 | ||
+ | |- | ||
+ | | <code>AUX_SPI2_STAT:LongWord;</code> | ||
+ | | SPI 2 Status | ||
+ | |- | ||
+ | | <code>Reserved40:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>AUX_SPI2_IO:LongWord;</code> | ||
+ | | SPI 2 Data | ||
+ | |- | ||
+ | | <code>AUX_SPI2_PEEK:LongWord;</code> | ||
+ | | SPI 2 Peek | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 PCM/I2S registers''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838PCMRegisters = ^TBCM2838PCMRegisters;</code> | ||
+ | |||
+ | <code>TBCM2838PCMRegisters = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|Note: Layout of the BCM2838 PCM/I2S registers | ||
+ | |- | ||
+ | | <code>CS_A:LongWord;</code> | ||
+ | | style="width: 50%;"|PCM Control and Status | ||
+ | |- | ||
+ | | <code>FIFO_A:LongWord;</code> | ||
+ | | PCM FIFO Data | ||
+ | |- | ||
+ | | <code>MODE_A:LongWord;</code> | ||
+ | | PCM Mode | ||
+ | |- | ||
+ | | <code>RXC_A:LongWord;</code> | ||
+ | | PCM Receive Configuration | ||
+ | |- | ||
+ | | <code>TXC_A:LongWord;</code> | ||
+ | | PCM Transmit Configuration | ||
+ | |- | ||
+ | | <code>DREQ_A:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>INTEN_A:LongWord;</code> | ||
+ | | PCM Interrupt Enables | ||
+ | |- | ||
+ | | <code>INTSTC_A:LongWord;</code> | ||
+ | | PCM Interrupt Status & Clear | ||
+ | |- | ||
+ | | <code>GRAY:LongWord;</code> | ||
+ | | PCM Gray Mode Control | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 pulse width modulator (PWM) registers''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838PWMRegisters = ^TBCM2838PWMRegisters;</code> | ||
+ | |||
+ | <code>TBCM2838PWMRegisters = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|Note: Layout of the BCM2838 Pulse Width Modulator (PWM) registers | ||
+ | |- | ||
+ | | <code>CTL:LongWord;</code> | ||
+ | | style="width: 50%;"|PWM Control | ||
+ | |- | ||
+ | | <code>STA:LongWord;</code> | ||
+ | | PWM Status | ||
+ | |- | ||
+ | | <code>DMAC:LongWord;</code> | ||
+ | | PWM DMA Configuration | ||
+ | |- | ||
+ | | <code>Reserved1:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>RNG1:LongWord;</code> | ||
+ | | PWM Channel 1 Range | ||
+ | |- | ||
+ | | <code>DAT1:LongWord;</code> | ||
+ | | PWM Channel 1 Data | ||
+ | |- | ||
+ | | <code>FIF1:LongWord;</code> | ||
+ | | PWM FIFO Input | ||
+ | |- | ||
+ | | <code>Reserved2:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>RNG2:LongWord;</code> | ||
+ | | PWM Channel 2 Range | ||
+ | |- | ||
+ | | <code>DAT2:LongWord;</code> | ||
+ | | PWM Channel 2 Data | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 PL011 UART registers''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838PL011Registers = ^TBCM2838PL011Registers;</code> | ||
+ | |||
+ | <code>TBCM2838PL011Registers = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|Note: Layout of the BCM2838 PL011 UART registers | ||
+ | |- | ||
+ | | <code>DR:LongWord;</code> | ||
+ | | style="width: 50%;"|Data Register | ||
+ | |- | ||
+ | | <code>RSRECR:LongWord;</code> | ||
+ | | Receive Status Register / Error Clear Register | ||
+ | |- | ||
+ | | <code>Reserved01:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved02:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved03:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved04:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>FR:LongWord;</code> | ||
+ | | Flag register | ||
+ | |- | ||
+ | | <code>Reserved05:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>ILPR:LongWord;</code> | ||
+ | | Not in use | ||
+ | |- | ||
+ | | <code>IBRD:LongWord;</code> | ||
+ | | Integer Baud rate divisor | ||
+ | |- | ||
+ | | <code>FBRD:LongWord;</code> | ||
+ | | Fractional Baud rate divisor | ||
+ | |- | ||
+ | | <code>LCRH:LongWord;</code> | ||
+ | | Line Control register | ||
+ | |- | ||
+ | | <code>CR:LongWord;</code> | ||
+ | | Control register | ||
+ | |- | ||
+ | | <code>IFLS:LongWord;</code> | ||
+ | | Interrupt FIFO Level Select Register | ||
+ | |- | ||
+ | | <code>IMSC:LongWord;</code> | ||
+ | | Interrupt Mask Set Clear Register | ||
+ | |- | ||
+ | | <code>RIS:LongWord;</code> | ||
+ | | Raw Interrupt Status Register | ||
+ | |- | ||
+ | | <code>MIS:LongWord;</code> | ||
+ | | Masked Interrupt Status Register | ||
+ | |- | ||
+ | | <code>ICR:LongWord;</code> | ||
+ | | Interrupt Clear Register | ||
+ | |- | ||
+ | | <code>DMACR:LongWord;</code> | ||
+ | | DMA Control Register | ||
+ | |- | ||
+ | | <code>Reserved11:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved12:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved13:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved14:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved15:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved16:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved17:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved18:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved19:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved1A:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved1B:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved1C:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved1D:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>ITCR:LongWord;</code> | ||
+ | | Test Control Register | ||
+ | |- | ||
+ | | <code>ITIP:LongWord;</code> | ||
+ | | Integration Test Input Register | ||
+ | |- | ||
+ | | <code>ITOP:LongWord;</code> | ||
+ | | Integration Test Output Register | ||
+ | |- | ||
+ | | <code>TDR:LongWord;</code> | ||
+ | | Test Data Register | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 ARM timer registers''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838ARMTimerRegisters = ^TBCM2838ARMTimerRegisters;</code> | ||
+ | |||
+ | <code>TBCM2838ARMTimerRegisters = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|Note: Layout of the BCM2838 ARM Timer registers | ||
+ | |- | ||
+ | | <code>Load:LongWord;</code> | ||
+ | | style="width: 50%;"|Timer Load register | ||
+ | |- | ||
+ | | <code>Value:LongWord;</code> | ||
+ | | Timer Value register | ||
+ | |- | ||
+ | | <code>Control:LongWord;</code> | ||
+ | | Timer control register | ||
+ | |- | ||
+ | | <code>IRQClear:LongWord;</code> | ||
+ | | Timer IRQ clear register | ||
+ | |- | ||
+ | | <code>RawIRQ:LongWord;</code> | ||
+ | | Timer Raw IRQ register | ||
+ | |- | ||
+ | | <code>MaskedIRQ:LongWord;</code> | ||
+ | | Timer Masked IRQ register | ||
+ | |- | ||
+ | | <code>Reload:LongWord;</code> | ||
+ | | Timer Reload register | ||
+ | |- | ||
+ | | <code>Predivider:LongWord;</code> | ||
+ | | The timer pre-divider register | ||
+ | |- | ||
+ | | <code>Counter:LongWord;</code> | ||
+ | | Free running counter | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 power management watchdog registers''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838PMWatchdogRegisters = ^TBCM2838PMWatchdogRegisters;</code> | ||
+ | |||
+ | <code>TBCM2838PMWatchdogRegisters = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|Note: Layout of the BCM2838 Power Management Watchdog registers | ||
+ | |- | ||
+ | | <code>Reserved1:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>Reserved2:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved3:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved4:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved5:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved6:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved7:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>RSTC:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>RSTS:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>WDOG:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 random number generator registers''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838RNGRegisters = ^TBCM2838RNGRegisters;</code> | ||
+ | |||
+ | <code>TBCM2838RNGRegisters = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|Note: Layout of the BCM2838 Random Number Generator registers | ||
+ | |- | ||
+ | | <code>Control:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>SoftResetRNG:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>SoftResetRBG:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>TotalBitCount:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>TBCThreshold:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved1:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>IntStatus:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>IntEnable:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>FIFOData:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>FIFOCount:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 GPIO registers''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838GPIORegisters = ^TBCM2838GPIORegisters;</code> | ||
+ | |||
+ | <code>TBCM2838GPIORegisters = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|Note: Layout of the BCM2838 GPIO registers | ||
+ | |- | ||
+ | | <code>GPFSEL0:LongWord;</code> | ||
+ | | style="width: 50%;"|GPIO Function Select 0 | ||
+ | |- | ||
+ | | <code>GPFSEL1:LongWord;</code> | ||
+ | | GPIO Function Select 1 | ||
+ | |- | ||
+ | | <code>GPFSEL2:LongWord;</code> | ||
+ | | GPIO Function Select 2 | ||
+ | |- | ||
+ | | <code>GPFSEL3:LongWord;</code> | ||
+ | | GPIO Function Select 3 | ||
+ | |- | ||
+ | | <code>GPFSEL4:LongWord;</code> | ||
+ | | GPIO Function Select 4 | ||
+ | |- | ||
+ | | <code>GPFSEL5:LongWord;</code> | ||
+ | | GPIO Function Select 5 | ||
+ | |- | ||
+ | | <code>Reserved1:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>GPSET0:LongWord;</code> | ||
+ | | GPIO Pin Output Set 0 | ||
+ | |- | ||
+ | | <code>GPSET1:LongWord;</code> | ||
+ | | GPIO Pin Output Set 1 | ||
+ | |- | ||
+ | | <code>Reserved2:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>GPCLR0:LongWord;</code> | ||
+ | | GPIO Pin Output Clear 0 | ||
+ | |- | ||
+ | | <code>GPCLR1:LongWord;</code> | ||
+ | | GPIO Pin Output Clear 1 | ||
+ | |- | ||
+ | | <code>Reserved3:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>GPLEV0:LongWord;</code> | ||
+ | | GPIO Pin Level 0 | ||
+ | |- | ||
+ | | <code>GPLEV1:LongWord;</code> | ||
+ | | GPIO Pin Level 1 | ||
+ | |- | ||
+ | | <code>Reserved4:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>GPEDS0:LongWord;</code> | ||
+ | | GPIO Pin Event Detect Status 0 | ||
+ | |- | ||
+ | | <code>GPEDS1:LongWord;</code> | ||
+ | | GPIO Pin Event Detect Status 1 | ||
+ | |- | ||
+ | | <code>Reserved5:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>GPREN0:LongWord;</code> | ||
+ | | GPIO Pin Rising Edge Detect Enable 0 | ||
+ | |- | ||
+ | | <code>GPREN1:LongWord;</code> | ||
+ | | GPIO Pin Rising Edge Detect Enable 1 | ||
+ | |- | ||
+ | | <code>Reserved6:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>GPFEN0:LongWord;</code> | ||
+ | | GPIO Pin Falling Edge Detect Enable 0 | ||
+ | |- | ||
+ | | <code>GPFEN1:LongWord;</code> | ||
+ | | GPIO Pin Falling Edge Detect Enable 1 | ||
+ | |- | ||
+ | | <code>Reserved7:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>GPHEN0:LongWord;</code> | ||
+ | | GPIO Pin High Detect Enable 0 | ||
+ | |- | ||
+ | | <code>GPHEN1:LongWord;</code> | ||
+ | | GPIO Pin High Detect Enable 1 | ||
+ | |- | ||
+ | | <code>Reserved8:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>GPLEN0:LongWord;</code> | ||
+ | | GPIO Pin Low Detect Enable 0 | ||
+ | |- | ||
+ | | <code>GPLEN1:LongWord;</code> | ||
+ | | GPIO Pin Low Detect Enable 1 | ||
+ | |- | ||
+ | | <code>Reserved9:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>GPAREN0:LongWord;</code> | ||
+ | | GPIO Pin Async. Rising Edge Detect 0 | ||
+ | |- | ||
+ | | <code>GPAREN1:LongWord;</code> | ||
+ | | GPIO Pin Async. Rising Edge Detect 1 | ||
+ | |- | ||
+ | | <code>Reserved10:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>GPAFEN0:LongWord;</code> | ||
+ | | GPIO Pin Async. Falling Edge Detect 0 | ||
+ | |- | ||
+ | | <code>GPAFEN1:LongWord;</code> | ||
+ | | GPIO Pin Async. Falling Edge Detect 1 | ||
+ | |- | ||
+ | | <code>Reserved11:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved12:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved13:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved14:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved15:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved16:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved17:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved18:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved19:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved20:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved21:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved22:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved23:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved24:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved25:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved26:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved27:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved28:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved29:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved30:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Reserved31:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>GPPUD0:LongWord;</code> | ||
+ | | GPIO Pin Pull-up/down Mode 0 | ||
+ | |- | ||
+ | | <code>GPPUD1:LongWord;</code> | ||
+ | | GPIO Pin Pull-up/down Mode 1 | ||
+ | |- | ||
+ | | <code>GPPUD2:LongWord;</code> | ||
+ | | GPIO Pin Pull-up/down Mode 2 | ||
+ | |- | ||
+ | | <code>GPPUD3:LongWord;</code> | ||
+ | | GPIO Pin Pull-up/down Mode 3 | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox0 registers''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838Mailbox0Registers = ^TBCM2838Mailbox0Registers;</code> | ||
+ | |||
+ | <code>TBCM2838Mailbox0Registers = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|Note: Layout of the BCM2838 Mailbox0 registers (See https://github.com/raspberrypi/firmware/wiki/Mailboxes) | ||
+ | |- | ||
+ | | <code>Read:LongWord;</code> | ||
+ | | style="width: 50%;"|Offset 0x00 (The read register for mailbox 0) | ||
+ | |- | ||
+ | | <code>Reserved1:LongWord;</code> | ||
+ | | Offset 0x04 | ||
+ | |- | ||
+ | | <code>Reserved2:LongWord;</code> | ||
+ | | Offset 0x08 | ||
+ | |- | ||
+ | | <code>Reserved3:LongWord;</code> | ||
+ | | Offset 0x0C | ||
+ | |- | ||
+ | | <code>Peek:LongWord;</code> | ||
+ | | Offset 0x10 (Read from the mailbox without removing data from it) | ||
+ | |- | ||
+ | | <code>Sender:LongWord;</code> | ||
+ | | Offset 0x14 (Sender ID (bottom 2 bits only)) | ||
+ | |- | ||
+ | | <code>Status:LongWord;</code> | ||
+ | | Offset 0x18 (The status register for mailbox 0) | ||
+ | |- | ||
+ | | <code>Config:LongWord;</code> | ||
+ | | Offset 0x1C (The configuration register for mailbox 0) | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox1 registers''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838Mailbox1Registers = ^TBCM2838Mailbox1Registers;</code> | ||
+ | |||
+ | <code>TBCM2838Mailbox1Registers = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|Note: Layout of the BCM2838 Mailbox1 registers (See https://github.com/raspberrypi/firmware/wiki/Mailboxes) | ||
+ | |- | ||
+ | | <code>Write:LongWord;</code> | ||
+ | | style="width: 50%;"|Offset 0x00 (The write register for mailbox 0) (Also the read register for mailbox 1) | ||
+ | |- | ||
+ | | <code>Reserved1:LongWord;</code> | ||
+ | | Offset 0x04 | ||
+ | |- | ||
+ | | <code>Reserved2:LongWord;</code> | ||
+ | | Offset 0x08 | ||
+ | |- | ||
+ | | <code>Reserved3:LongWord;</code> | ||
+ | | Offset 0x0C | ||
+ | |- | ||
+ | | <code>Reserved4:LongWord;</code> | ||
+ | | Offset 0x10 | ||
+ | |- | ||
+ | | <code>Reserved5:LongWord;</code> | ||
+ | | Offset 0x14 | ||
+ | |- | ||
+ | | <code>Status:LongWord;</code> | ||
+ | | Offset 0x18 (The status register for mailbox 1) | ||
+ | |- | ||
+ | | <code>Config:LongWord;</code> | ||
+ | | Offset 0x1C (The configuration register for mailbox 1) | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox framebuffer request''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxFramebuffer = ^TBCM2838MailboxFramebuffer;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxFramebuffer = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|Note: Layout of the BCM2838 Mailbox Framebuffer request (This structure must be 16 byte aligned when passed to the GPU) | ||
+ | |- | ||
+ | | <code>PhysicalWidth:LongWord;</code> | ||
+ | | style="width: 50%;"|Requested width of Physical Framebuffer | ||
+ | |- | ||
+ | | <code>PhysicalHeight:LongWord;</code> | ||
+ | | Requested height of Physical Framebuffer | ||
+ | |- | ||
+ | | <code>VirtualWidth:LongWord;</code> | ||
+ | | Requested width of Virtual Display | ||
+ | |- | ||
+ | | <code>VirtualHeight:LongWord;</code> | ||
+ | | Requested height of Virtual Display | ||
+ | |- | ||
+ | | <code>Pitch:LongWord;</code> | ||
+ | | Zero on request, Number of Bytes per Row in response | ||
+ | |- | ||
+ | | <code>Depth:LongWord;</code> | ||
+ | | Requested Colour Depth in Bits per Pixel | ||
+ | |- | ||
+ | | <code>OffsetX:LongWord;</code> | ||
+ | | Requested X offset of Virtual Framebuffer | ||
+ | |- | ||
+ | | <code>OffsetY:LongWord;</code> | ||
+ | | Requested Y offset of Virtual Framebuffer | ||
+ | |- | ||
+ | | <code>Address:LongWord;</code> | ||
+ | | Framebuffer address (Zero on request, Failure if zero in response) | ||
+ | |- | ||
+ | | <code>Size:LongWord;</code> | ||
+ | | Framebuffer size (Zero on request, Size in bytes in response) | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox header property tags''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxHeader = ^TBCM2838MailboxHeader;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxHeader = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|Note: Layout of the BCM2838 Mailbox Property tags (These structures must be 16 byte aligned when passed to the GPU) | ||
+ | |- | ||
+ | |colspan="2"|''Header'' | ||
+ | |- | ||
+ | | <code>Size:LongWord;</code> | ||
+ | | style="width: 50%;"|Total buffer size in bytes (including the header values, the end tag and padding) | ||
+ | |- | ||
+ | | <code>Code:LongWord;</code> | ||
+ | | Request/response code | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox footer property tags''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxFooter = ^TBCM2838MailboxFooter;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxFooter = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|Note: Layout of the BCM2838 Mailbox Property tags (These structures must be 16 byte aligned when passed to the GPU) | ||
+ | |- | ||
+ | |colspan="2"|''Footer'' | ||
+ | |- | ||
+ | | <code>Tag:LongWord;</code> | ||
+ | | style="width: 50%;"|BCM2838_MBOX_TAG_END | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag header''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagHeader = ^TBCM2838MailboxTagHeader;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagHeader = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|Note: Layout of the BCM2838 Mailbox Property tags (These structures must be 16 byte aligned when passed to the GPU) | ||
+ | |- | ||
+ | |colspan="2"|''Tag Header'' | ||
+ | |- | ||
+ | | <code>Tag:LongWord;</code> | ||
+ | | style="width: 50%;"|Tag identifier | ||
+ | |- | ||
+ | | <code>Size:LongWord;</code> | ||
+ | | Value buffer size in bytes | ||
+ | |- | ||
+ | | <code>Length:LongWord;</code> | ||
+ | | 1 bit (MSB) request/response indicator (0=request, 1=response), 31 bits (LSB) value length in bytes | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag no request''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagNoRequest = ^TBCM2838MailboxTagNoRequest;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagNoRequest = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Tag No Request'' | ||
+ | |- | ||
+ | | | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag no response''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagNoResponse = ^TBCM2838MailboxTagNoResponse;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagNoResponse = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Tag No Response'' | ||
+ | |- | ||
+ | | | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag firmware revision response''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagFirmwareRevisionResponse = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Get Firmware Revision'' | ||
+ | |- | ||
+ | | <code>Revision:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get firmware revision''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagGetFirmwareRevision = ^TBCM2838MailboxTagGetFirmwareRevision;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetFirmwareRevision = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagNoRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagFirmwareRevisionResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag board model response''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagBoardModelResponse = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Get Board Model'' | ||
+ | |- | ||
+ | | <code>Model:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get board model''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagGetBoardModel = ^TBCM2838MailboxTagGetBoardModel;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetBoardModel = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagNoRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagBoardModelResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag board revision response''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagBoardRevisionResponse = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Get Board Revision'' | ||
+ | |- | ||
+ | | <code>Revision:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get board revision''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagGetBoardRevision = ^TBCM2838MailboxTagGetBoardRevision;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetBoardRevision = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagNoRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagBoardRevisionResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag MAC address response''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagMACAddressResponse = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Get MAC Address'' | ||
+ | |- | ||
+ | | <code>MAC:array[0..5] of Byte;</code> | ||
+ | | style="width: 50%;"|MAC address in network byte order | ||
+ | |- | ||
+ | | <code>Padding:Word;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get MAC address''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagGetMACAddress = ^TBCM2838MailboxTagGetMACAddress;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetMACAddress = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagNoRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagMACAddressResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag board serial response''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagBoardSerialResponse = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Get Board Serial'' | ||
+ | |- | ||
+ | | <code>Serial:Int64;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get board serial''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagGetBoardSerial = ^TBCM2838MailboxTagGetBoardSerial;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetBoardSerial = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagNoRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagBoardSerialResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag ARM memory response''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagARMMemoryResponse = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Get ARM Memory'' | ||
+ | |- | ||
+ | | <code>Address:LongWord;</code> | ||
+ | | style="width: 50%;"|Base address in bytes | ||
+ | |- | ||
+ | | <code>Size:LongWord;</code> | ||
+ | | Size in bytes | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get ARM memory''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagGetARMMemory = ^TBCM2838MailboxTagGetARMMemory;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetARMMemory = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagNoRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagARMMemoryResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag VC memory response''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagVCMemoryResponse = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Get VC Memory'' | ||
+ | |- | ||
+ | | <code>Address:LongWord;</code> | ||
+ | | style="width: 50%;"|Base address in bytes | ||
+ | |- | ||
+ | | <code>Size:LongWord;</code> | ||
+ | | Size in bytes | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get VC memory''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagGetVCMemory = ^TBCM2838MailboxTagGetVCMemory;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetVCMemory = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagNoRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagVCMemoryResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag clock response''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagClockResponse = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Get Clocks'' | ||
+ | |- | ||
+ | | <code>ParentId:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>ClockId:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag clocks response''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagClocksResponse = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Clocks:array[0..255] of TBCM2838MailboxTagClockResponse;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get clocks''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagGetClocks = ^TBCM2838MailboxTagGetClocks;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetClocks = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagNoRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagClocksResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get power state request''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetPowerStateRequest = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Get Power State'' | ||
+ | |- | ||
+ | | <code>DeviceId:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag power state response''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagPowerStateResponse = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>DeviceId:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>State:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get power state''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagGetPowerState = ^TBCM2838MailboxTagGetPowerState;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetPowerState = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagGetPowerStateRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagPowerStateResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag timing request''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagTimingRequest = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Get Timing'' | ||
+ | |- | ||
+ | | <code>DeviceId:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag timing response''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagTimingResponse = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>DeviceId:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>Wait:LongWord;</code> | ||
+ | | Enable wait time in microseconds | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get timing''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagGetTiming = ^TBCM2838MailboxTagGetTiming;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetTiming = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagTimingRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagTimingResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag set power state request''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagSetPowerStateRequest = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Set Power State'' | ||
+ | |- | ||
+ | | <code>DeviceId:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>State:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag set power state''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagSetPowerState = ^TBCM2838MailboxTagSetPowerState;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagSetPowerState = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagSetPowerStateRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagPowerStateResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get clock state request''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetClockStateRequest = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Get Clock State'' | ||
+ | |- | ||
+ | | <code>ClockId:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag clock state response''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagClockStateResponse = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>ClockId:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>State:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get clock state''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagGetClockState = ^TBCM2838MailboxTagGetClockState;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetClockState = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagGetClockStateRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagClockStateResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag set clock state request''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagSetClockStateRequest = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Set Clock State'' | ||
+ | |- | ||
+ | | <code>ClockId:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>State:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag set clock state''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagSetClockState = ^TBCM2838MailboxTagSetClockState;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagSetClockState = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagSetClockStateRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagClockStateResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get clock rate request''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetClockRateRequest = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Get Clock Rate'' | ||
+ | |- | ||
+ | | <code>ClockId:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag clock rate response''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagClockRateResponse = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>ClockId:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>Rate:LongWord;</code> | ||
+ | | In Hz | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get clock rate''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagGetClockRate = ^TBCM2838MailboxTagGetClockRate;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetClockRate = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagGetClockRateRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagClockRateResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag set clock rate request''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagSetClockRateRequest = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Set Clock Rate'' | ||
+ | |- | ||
+ | | <code>ClockId:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>Rate:LongWord;</code> | ||
+ | | In Hz | ||
+ | |- | ||
+ | | <code>SkipTurbo:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag set clock rate''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagSetClockRate = ^TBCM2838MailboxTagSetClockRate;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagSetClockRate = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagSetClockRateRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagClockRateResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get clock max rate request''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetClockMaxRateRequest = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Get Clock Max Rate'' | ||
+ | |- | ||
+ | | <code>ClockId:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get clock max rate response''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetClockMaxRateResponse = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>ClockId:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>Rate:LongWord;</code> | ||
+ | | In Hz | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get clock max rate''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagGetClockMaxRate = ^TBCM2838MailboxTagGetClockMaxRate;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetClockMaxRate = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagGetClockMaxRateRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagGetClockMaxRateResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get clock min rate''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagGetClockMinRate = ^TBCM2838MailboxTagGetClockMinRate;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetClockMinRate = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Get Clock Min Rate'' | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagGetClockMaxRateRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagGetClockMaxRateResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get turbo request''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetTurboRequest = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Get Turbo'' | ||
+ | |- | ||
+ | | <code>Id:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag turbo response''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagTurboResponse = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Id:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>Level:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get turbo''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagGetTurbo = ^TBCM2838MailboxTagGetTurbo;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetTurbo = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagGetTurboRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagTurboResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag set turbo request''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagSetTurboRequest = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Set Turbo'' | ||
+ | |- | ||
+ | | <code>Id:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>Level:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag set turbo''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagSetTurbo = ^TBCM2838MailboxTagSetTurbo;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagSetTurbo = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagSetTurboRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagTurboResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get voltage request''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetVoltageRequest = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Get Voltage'' | ||
+ | |- | ||
+ | | <code>VoltageId:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag voltage response''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagVoltageResponse = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>VoltageId:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>Value:LongWord;</code> | ||
+ | | Offset from 1.2V in units of 0.025V | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get voltage''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagGetVoltage = ^TBCM2838MailboxTagGetVoltage;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetVoltage = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagGetVoltageRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagVoltageResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag set voltage request''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagSetVoltageRequest = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Set Voltage'' | ||
+ | |- | ||
+ | | <code>VoltageId:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>Value:LongWord;</code> | ||
+ | | Offset from 1.2V in units of 0.025V | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag set voltage''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagSetVoltage = ^TBCM2838MailboxTagSetVoltage;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagSetVoltage = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagSetVoltageRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagVoltageResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get max voltage''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagGetMaxVoltage = ^TBCM2838MailboxTagGetMaxVoltage;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetMaxVoltage = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Get Max Voltage'' | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagGetVoltageRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagVoltageResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get min voltage''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagGetMinVoltage = ^TBCM2838MailboxTagGetMinVoltage;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetMinVoltage = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Get Min Voltage'' | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagGetVoltageRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagVoltageResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag temperature request''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagTemperatureRequest = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Get Temperature'' | ||
+ | |- | ||
+ | | <code>TemperatureId:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag temperature response''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagTemperatureResponse = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>TemperatureId:LongWord;</code> | ||
+ | | style="width: 50%;"|Should be zero | ||
+ | |- | ||
+ | | <code>Temperature:LongWord;</code> | ||
+ | | Return the temperature of the SoC in thousandths of a degree C | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get temperature''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagGetTemperature = ^TBCM2838MailboxTagGetTemperature;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetTemperature = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagTemperatureRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagTemperatureResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get max temperature''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagGetMaxTemperature = ^TBCM2838MailboxTagGetMaxTemperature;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetMaxTemperature = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Get Max Temp'' | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagTemperatureRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagTemperatureResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag allocate memory request''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagAllocateMemoryRequest = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Allocate Memory'' | ||
+ | |- | ||
+ | | <code>Size:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>Alignment:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Flags:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag allocate memory response''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagAllocateMemoryResponse = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Handle:THandle;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag allocate memory''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagAllocateMemory = ^TBCM2838MailboxTagAllocateMemory;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagAllocateMemory = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagAllocateMemoryRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagAllocateMemoryResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag lock memory request''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagLockMemoryRequest = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Lock Memory'' | ||
+ | |- | ||
+ | | <code>Handle:THandle;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag lock memory response''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagLockMemoryResponse = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Address:LongWord;</code> | ||
+ | | style="width: 50%;"|Bus Address | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag lock memory''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagLockMemory = ^TBCM2838MailboxTagLockMemory;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagLockMemory = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagLockMemoryRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagLockMemoryResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag unlock memory response''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagUnlockMemoryResponse = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Unlock Memory'' | ||
+ | |- | ||
+ | | <code>Status:LongWord;</code> | ||
+ | | style="width: 50%;"|0 is Success | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag unlock memory''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagUnlockMemory = ^TBCM2838MailboxTagUnlockMemory;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagUnlockMemory = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagLockMemoryRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagUnlockMemoryResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag release memory''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagReleaseMemory = ^TBCM2838MailboxTagReleaseMemory;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagReleaseMemory = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Release Memory'' | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagLockMemoryRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagUnlockMemoryResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag execute code request''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagExecuteCodeRequest = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Execute Code'' | ||
+ | |- | ||
+ | | <code>Address:Pointer;</code> | ||
+ | | style="width: 50%;"|Bus Address | ||
+ | |- | ||
+ | | <code>R0:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>R1:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>R2:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>R3:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>R4:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>R5:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag execute code response''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagExecuteCodeResponse = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>R0:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag execute code''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagExecuteCode = ^TBCM2838MailboxTagExecuteCode;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagExecuteCode = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagExecuteCodeRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagExecuteCodeResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag execute QPU request''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagExecuteQPURequest = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Execute QPU'' | ||
+ | |- | ||
+ | | <code>NumQPUs:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>Control:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>NoFlush:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Timeout:LongWord;</code> | ||
+ | | Milliseconds | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag execute QPU response''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagExecuteQPUResponse = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Status:LongWord;</code> | ||
+ | | style="width: 50%;"|0 is Success / 0x80000000 is Timeout | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag execute QPU''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagExecuteQPU = ^TBCM2838MailboxTagExecuteQPU;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagExecuteQPU = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagExecuteQPURequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagExecuteQPUResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag enable QPU request''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagEnableQPURequest = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Enable QPU'' | ||
+ | |- | ||
+ | | <code>Enable:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag enable QPU response''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagEnableQPUResponse = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Status:LongWord;</code> | ||
+ | | style="width: 50%;"|0 is Success | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag enable QPU''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagEnableQPU = ^TBCM2838MailboxTagEnableQPU;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagEnableQPU = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagEnableQPURequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagEnableQPUResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get dispmanx handle request''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetDispmanxHandleRequest = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Get Dispmanx Handle'' | ||
+ | |- | ||
+ | | <code>Resource:THandle;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get dispmanx handle response''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetDispmanxHandleResponse = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Status:LongWord;</code> | ||
+ | | style="width: 50%;"|0 is Success | ||
+ | |- | ||
+ | | <code>Memory:THandle;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get dispmanx handle''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagGetDispmanxHandle = ^TBCM2838MailboxTagGetDispmanxHandle;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetDispmanxHandle = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagGetDispmanxHandleRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagGetDispmanxHandleResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get EDID block request''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetEDIDBlockRequest = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Get EDID Block'' | ||
+ | |- | ||
+ | | <code>Block:LongWord;</code> | ||
+ | | style="width: 50%;"|Starting from 0 | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get EDID block response''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetEDIDBlockResponse = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Block:LongWord;</code> | ||
+ | | style="width: 50%;"|Starting from 0 | ||
+ | |- | ||
+ | | <code>Status:LongWord;</code> | ||
+ | | 0 is Success | ||
+ | |- | ||
+ | | <code>EDID:array[0..127] of Byte;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get EDID block''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagGetEDIDBlock = ^TBCM2838MailboxTagGetEDIDBlock;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetEDIDBlock = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagGetEDIDBlockRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagGetEDIDBlockResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag GPIO state request''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGPIOStateRequest = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Get GPIO State'' | ||
+ | |- | ||
+ | | <code>GPIO:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>State:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag GPIO state response''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGPIOStateResponse = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>GPIO:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>State:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get GPIO state''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagGetGPIOState = ^TBCM2838MailboxTagGetGPIOState;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetGPIOState = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagGPIOStateRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagGPIOStateResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag set GPIO state''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagSetGPIOState = ^TBCM2838MailboxTagSetGPIOState;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagSetGPIOState = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Set GPIO State'' | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagGPIOStateRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagGPIOStateResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get GPIO config request''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetGPIOConfigRequest = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Get GPIO Config'' | ||
+ | |- | ||
+ | | <code>GPIO:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>Direction:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Polarity:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Terminator:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>PullUp:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get GPIO config response''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetGPIOConfigResponse = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>GPIO:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>Direction:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Polarity:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Terminator:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>PullUp:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get GPIO config''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagGetGPIOConfig = ^TBCM2838MailboxTagGetGPIOConfig;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetGPIOConfig = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagGetGPIOConfigRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagGetGPIOConfigResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag set GPIO config request''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagSetGPIOConfigRequest = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Set GPIO Config'' | ||
+ | |- | ||
+ | | <code>GPIO:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>Direction:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Polarity:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Terminator:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>PullUp:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>State:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag set GPIO config response''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagSetGPIOConfigResponse = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>GPIO:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>Direction:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Polarity:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Terminator:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>PullUp:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>State:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag set GPIO config''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagSetGPIOConfig = ^TBCM2838MailboxTagSetGPIOConfig;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagSetGPIOConfig = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagSetGPIOConfigRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagSetGPIOConfigResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get throttled request''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetThrottledRequest = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Get Throttled'' | ||
+ | |- | ||
+ | | <code>Value:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get throttled response''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetThrottledResponse = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Value:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get throttled''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagGetThrottled = ^TBCM2838MailboxTagGetThrottled;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetThrottled = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagGetThrottledRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagGetThrottledResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get boot mode response''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetBootModeResponse = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>BootMode:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>SignedBoot:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get boot mode''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagGetBootMode = ^TBCM2838MailboxTagGetBootMode;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetBootMode = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagNoRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagGetBootModeResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag allocate buffer request''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagAllocateBufferRequest = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Allocate Buffer'' | ||
+ | |- | ||
+ | | <code>Alignment:LongWord;</code> | ||
+ | | style="width: 50%;"|Bytes | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag allocate buffer response''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagAllocateBufferResponse = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Address:LongWord;</code> | ||
+ | | style="width: 50%;"|Base Address in Bytes | ||
+ | |- | ||
+ | | <code>Size:LongWord;</code> | ||
+ | | Size in Bytes | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag allocate buffer''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagAllocateBuffer = ^TBCM2838MailboxTagAllocateBuffer;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagAllocateBuffer = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagAllocateBufferRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagAllocateBufferResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag release buffer''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagReleaseBuffer = ^TBCM2838MailboxTagReleaseBuffer;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagReleaseBuffer = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Release Buffer'' | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagNoRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagNoResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag blank screen request''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagBlankScreenRequest = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Blank Screen'' | ||
+ | |- | ||
+ | | <code>State:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag blank screen response''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagBlankScreenResponse = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>State:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag blank screen''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagBlankScreen = ^TBCM2838MailboxTagBlankScreen;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagBlankScreen = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagBlankScreenRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagBlankScreenResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag physical request''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagPhysicalRequest = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Get Physical'' | ||
+ | |- | ||
+ | | <code>Width:LongWord;</code> | ||
+ | | style="width: 50%;"|Pixels | ||
+ | |- | ||
+ | | <code>Height:Longword;</code> | ||
+ | | Pixels | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag physical response''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagPhysicalResponse = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Width:LongWord;</code> | ||
+ | | style="width: 50%;"|Pixels | ||
+ | |- | ||
+ | | <code>Height:Longword;</code> | ||
+ | | Pixels | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get physical''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagGetPhysical = ^TBCM2838MailboxTagGetPhysical;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetPhysical = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagNoRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagPhysicalResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag test physical''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagTestPhysical = ^TBCM2838MailboxTagTestPhysical;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagTestPhysical = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Test Physical'' | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagPhysicalRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagPhysicalResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag set physical''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagSetPhysical = ^TBCM2838MailboxTagSetPhysical;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagSetPhysical = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Set Physical'' | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagPhysicalRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagPhysicalResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag virtual request''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagVirtualRequest = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Get Virtual'' | ||
+ | |- | ||
+ | | <code>Width:LongWord;</code> | ||
+ | | style="width: 50%;"|Pixels | ||
+ | |- | ||
+ | | <code>Height:Longword;</code> | ||
+ | | Pixels | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag virtual response''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagVirtualResponse = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Width:LongWord;</code> | ||
+ | | style="width: 50%;"|Pixels | ||
+ | |- | ||
+ | | <code>Height:Longword;</code> | ||
+ | | Pixels | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get virtual''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagGetVirtual = ^TBCM2838MailboxTagGetVirtual;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetVirtual = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagNoRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagVirtualResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag test virtual''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagTestVirtual = ^TBCM2838MailboxTagTestVirtual;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagTestVirtual = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Test Virtual'' | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagVirtualRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagVirtualResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag set virtual''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagSetVirtual = ^TBCM2838MailboxTagSetVirtual;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagSetVirtual = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Set Virtual'' | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagVirtualRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagVirtualResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag depth request''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagDepthRequest = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Get Depth'' | ||
+ | |- | ||
+ | | <code>Depth:LongWord;</code> | ||
+ | | style="width: 50%;"|Bits per pixel | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag depth response''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagDepthResponse = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Depth:LongWord;</code> | ||
+ | | style="width: 50%;"|Bits per pixel | ||
+ | |- | ||
+ | |||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get depth''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagGetDepth = ^TBCM2838MailboxTagGetDepth;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetDepth = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagNoRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagDepthResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag test depth''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagTestDepth = ^TBCM2838MailboxTagTestDepth;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagTestDepth = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Test Depth'' | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagDepthRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagDepthResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag set depth''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagSetDepth = ^TBCM2838MailboxTagSetDepth;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagSetDepth = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Set Depth'' | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagDepthRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagDepthResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag pixel order request''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagPixelOrderRequest = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Get Pixel Order'' | ||
+ | |- | ||
+ | | <code>Order:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag pixel order response''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagPixelOrderResponse = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Order:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get pixel order''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagGetPixelOrder = ^TBCM2838MailboxTagGetPixelOrder;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetPixelOrder = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagNoRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagPixelOrderResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag test pixel order''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagTestPixelOrder = ^TBCM2838MailboxTagTestPixelOrder;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagTestPixelOrder = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Test Pixel Order'' | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagPixelOrderRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagPixelOrderResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag set pixel order''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagSetPixelOrder = ^TBCM2838MailboxTagSetPixelOrder;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagSetPixelOrder = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Set Pixel Order'' | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagPixelOrderRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagPixelOrderResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag alpha mode request''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagAlphaModeRequest = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Get Alpha Mode'' | ||
+ | |- | ||
+ | | <code>Mode:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag alpha mode response''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagAlphaModeResponse = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Mode:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get alpha mode''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagGetAlphaMode = ^TBCM2838MailboxTagGetAlphaMode;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetAlphaMode = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagNoRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagAlphaModeResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag test alpha mode''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagTestAlphaMode = ^TBCM2838MailboxTagTestAlphaMode;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagTestAlphaMode = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Test Alpha Mode'' | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagAlphaModeRequest);</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagAlphaModeResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag set alpha mode''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagSetAlphaMode = ^TBCM2838MailboxTagSetAlphaMode;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagSetAlphaMode = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Set Alpha Mode'' | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagAlphaModeRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagAlphaModeResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag pitch response''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagPitchResponse = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Get Pitch'' | ||
+ | |- | ||
+ | | <code>Pitch:LongWord;</code> | ||
+ | | style="width: 50%;"|Bytes per line | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get pitch''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagGetPitch = ^TBCM2838MailboxTagGetPitch;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetPitch = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagNoRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagPitchResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag virtual offset request''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagVirtualOffsetRequest = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Get Virtual Offset'' | ||
+ | |- | ||
+ | | <code>X:LongWord;</code> | ||
+ | | style="width: 50%;"|Pixels | ||
+ | |- | ||
+ | | <code>Y:LongWord;</code> | ||
+ | | Pixels | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag virtual offset response''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagVirtualOffsetResponse = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>X:LongWord;</code> | ||
+ | | style="width: 50%;"|Pixels | ||
+ | |- | ||
+ | | <code>Y:LongWord;</code> | ||
+ | | Pixels | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get virtual offset''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagGetVirtualOffset = ^TBCM2838MailboxTagGetVirtualOffset;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetVirtualOffset = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagNoRequest);</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagVirtualOffsetResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag test virtual offset''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagTestVirtualOffset = ^TBCM2838MailboxTagTestVirtualOffset;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagTestVirtualOffset = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Test Virtual Offset'' | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagVirtualOffsetRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagVirtualOffsetResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag set virtual offset''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagSetVirtualOffset = ^TBCM2838MailboxTagSetVirtualOffset;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagSetVirtualOffset = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Set Virtual Offset'' | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagVirtualOffsetRequest);</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagVirtualOffsetResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag overscan request''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagOverscanRequest = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Get Overscan'' | ||
+ | |- | ||
+ | | <code>Top:LongWord;</code> | ||
+ | | style="width: 50%;"|Pixels | ||
+ | |- | ||
+ | | <code>Bottom:LongWord;</code> | ||
+ | | Pixels | ||
+ | |- | ||
+ | | <code>Left:LongWord;</code> | ||
+ | | Pixels | ||
+ | |- | ||
+ | | <code>Right:LongWord;</code> | ||
+ | | Pixels | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag overscan response''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagOverscanResponse = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Top:LongWord;</code> | ||
+ | | style="width: 50%;"|Pixels | ||
+ | |- | ||
+ | | <code>Bottom:LongWord;</code> | ||
+ | | Pixels | ||
+ | |- | ||
+ | | <code>Left:LongWord;</code> | ||
+ | | Pixels | ||
+ | |- | ||
+ | | <code>Right:LongWord;</code> | ||
+ | | Pixels | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get overscan''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagGetOverscan = ^TBCM2838MailboxTagGetOverscan;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetOverscan = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagNoRequest);</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagOverscanResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag test overscan''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagTestOverscan = ^TBCM2838MailboxTagTestOverscan;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagTestOverscan = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Test Overscan'' | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagOverscanRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagOverscanResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag set overscan''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagSetOverscan = ^TBCM2838MailboxTagSetOverscan;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagSetOverscan = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Set Overscan'' | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagOverscanRequest);</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagOverscanResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get palette response''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetPaletteResponse = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Get Palette'' | ||
+ | |- | ||
+ | | <code>Values:array[0..255] of LongWord;</code> | ||
+ | | style="width: 50%;"|RGBA Palette Values | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get palette''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagGetPalette = ^TBCM2838MailboxTagGetPalette;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetPalette = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagNoRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagGetPaletteResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag palette request''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagPaletteRequest = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Test Palette'' | ||
+ | |- | ||
+ | | <code>Offset:LongWord;</code> | ||
+ | | style="width: 50%;"|First palette index to set (0-255) | ||
+ | |- | ||
+ | | <code>Length:LongWord;</code> | ||
+ | | Number of palette entries to set (1-256) | ||
+ | |- | ||
+ | | <code>Values:array[0..255] of LongWord;</code> | ||
+ | | RGBA Palette Values | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag palette response''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagPaletteResponse = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Status:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag test palette''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagTestPalette = ^TBCM2838MailboxTagTestPalette;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagTestPalette = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagPaletteRequest);</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagPaletteResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag set palette''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagSetPalette = ^TBCM2838MailboxTagSetPalette;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagSetPalette = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Set Palette'' | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagPaletteRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagPaletteResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag layer request''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagLayerRequest = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Get Layer'' | ||
+ | |- | ||
+ | | <code>Layer:LongInt;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag layer response''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagLayerResponse = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Layer:LongInt;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get layer''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagGetLayer = ^TBCM2838MailboxTagGetLayer;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetLayer = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagNoRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagLayerResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag test layer''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagTestLayer = ^TBCM2838MailboxTagTestLayer;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagTestLayer = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Test Layer'' | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagLayerRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagLayerResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag set layer''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagSetLayer = ^TBCM2838MailboxTagSetLayer;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagSetLayer = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Set Layer'' | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagLayerRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagLayerResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get touch response''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetTouchResponse = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Get Touch Buffer'' | ||
+ | |- | ||
+ | | <code>Address:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get touch''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagGetTouch = ^TBCM2838MailboxTagGetTouch;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetTouch = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagNoRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagGetTouchResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag set touch request''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagSetTouchRequest = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Set Touch Buffer'' | ||
+ | |- | ||
+ | | <code>Address:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag set touch response''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagSetTouchResponse = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Status:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag set touch''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagSetTouch = ^TBCM2838MailboxTagSetTouch;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagSetTouch = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagSetTouchRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagSetTouchResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get virtual GPIO response''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetVirtualGPIOResponse = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Get Virtual GPIO Buffer'' | ||
+ | |- | ||
+ | | <code>Address:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get virtual GPIO''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagGetVirtualGPIO = ^TBCM2838MailboxTagGetVirtualGPIO;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetVirtualGPIO = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagNoRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagGetVirtualGPIOResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag set virtual GPIO request''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagSetVirtualGPIORequest = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Set Virtual GPIO Buffer'' | ||
+ | |- | ||
+ | | <code>Address:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag set virtual GPIO response''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2876MailboxTagSetVirtualGPIOResponse = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Status:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag set virtual GPIO''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagSetVirtualGPIO = ^TBCM2838MailboxTagSetVirtualGPIO;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagSetVirtualGPIO = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagSetVirtualGPIORequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2876MailboxTagSetVirtualGPIOResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag test vsync''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagTestVsync = ^TBCM2838MailboxTagTestVsync;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagTestVsync = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Test Vsync'' | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagNoRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagNoResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag set vsync''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagSetVsync = ^TBCM2838MailboxTagSetVsync;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagSetVsync = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Set Vsync'' | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagNoRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagNoResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag set backlight request''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagSetBacklightRequest = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Set Backlight'' | ||
+ | |- | ||
+ | | <code>Brightness:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag set backlight response''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagSetBacklightResponse = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Brightness:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag set backlight''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagSetBacklight = ^TBCM2838MailboxTagSetBacklight;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagSetBacklight = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagSetBacklightRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagSetBacklightResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get display id request''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetDisplayIdRequest = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Get Display Id'' | ||
+ | |- | ||
+ | | <code>DisplayNum:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get display id response''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetDisplayIdResponse = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>DisplayId:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get display id''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagGetDisplayId = ^TBCM2838MailboxTagGetDisplayId;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetDisplayId = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagGetDisplayIdRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagGetDisplayIdResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag set display number request''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagSetDisplayNumRequest = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Set Display Num'' | ||
+ | |- | ||
+ | | <code>DisplayNum:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag set display number response''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagSetDisplayNumResponse = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>DisplayNum:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag set display number''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagSetDisplayNum = ^TBCM2838MailboxTagSetDisplayNum;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagSetDisplayNum = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagSetDisplayNumRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagSetDisplayNumResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get number displays request''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetNumDisplaysRequest = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Get Num Displays'' | ||
+ | |- | ||
+ | | <code>NumDisplays:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get number displays response''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetNumDisplaysResponse = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>NumDisplays:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get number displays''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagGetNumDisplays = ^TBCM2838MailboxTagGetNumDisplays;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetNumDisplays = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagGetNumDisplaysRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagGetNumDisplaysResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get display settings request''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetDisplaySettingsRequest = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Get Display Settings'' | ||
+ | |- | ||
+ | | <code>DisplayNum:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>Width:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Height:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Depth:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Pitch:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>VirtualWidth:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>VirtualHeight:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>VirtualWidthOffset:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>VirtualHeightOffset:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BusAddress:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get display settings response''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetDisplaySettingsResponse = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>DisplayNum:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>Width:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Height:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Depth:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Pitch:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>VirtualWidth:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>VirtualHeight:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>VirtualWidthOffset:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>VirtualHeightOffset:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>BusAddress:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get display settings''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagGetDisplaySettings = ^TBCM2838MailboxTagGetDisplaySettings;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetDisplaySettings = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagGetDisplaySettingsRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagGetDisplaySettingsResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag set cursor info request''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagSetCursorInfoRequest = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Set Cursor Info'' | ||
+ | |- | ||
+ | | <code>Width:LongWord;</code> | ||
+ | | style="width: 50%;"|Pixels | ||
+ | |- | ||
+ | | <code>Height:LongWord;</code> | ||
+ | | Pixels | ||
+ | |- | ||
+ | | <code>Reserved:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Pixels:Pointer;</code> | ||
+ | | Format is 32bpp (ARGB) (Width and Height should be >= 16 and (Width * Height) <= 64) | ||
+ | |- | ||
+ | | <code>HotspotX:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>HotspotY:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag cursor response''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagCursorResponse = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Status:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag set cursor info''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagSetCursorInfo = ^TBCM2838MailboxTagSetCursorInfo;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagSetCursorInfo = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagSetCursorInfoRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagCursorResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag set cursor state request''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagSetCursorStateRequest = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Set Cursor State'' | ||
+ | |- | ||
+ | | <code>Enable:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>X:LongWord;</code> | ||
+ | | Pixels | ||
+ | |- | ||
+ | | <code>Y:LongWord;</code> | ||
+ | | Pixels | ||
+ | |- | ||
+ | | <code>Flags:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag set cursor state''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagSetCursorState = ^TBCM2838MailboxTagSetCursorState;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagSetCursorState = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagSetCursorStateRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagCursorResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag VCHIQ init request''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagVCHIQInitRequest = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''VCHIQ Init'' | ||
+ | |- | ||
+ | | <code>Address:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag VCHIQ init response''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagVCHIQInitResponse = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Status:LongWord;</code> | ||
+ | | style="width: 50%;"|0 is Success | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag VCHIQ init''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagVCHIQInit = ^TBCM2838MailboxTagVCHIQInit;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagVCHIQInit = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagVCHIQInitRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagVCHIQInitResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag command line response''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagCommandLineResponse = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Get Command Line'' | ||
+ | |- | ||
+ | | <code>CommandLine:array[0..1023] of Char;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get command line''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagGetCommandLine = ^TBCM2838MailboxTagGetCommandLine;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetCommandLine = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagNoRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagCommandLineResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag DMA channels response''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | |||
+ | <code>TBCM2838MailboxTagDMAChannelsResponse = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Get DMA Channels'' | ||
+ | |- | ||
+ | | <code>Channels:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag get DMA channels''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagGetDMAChannels = ^TBCM2838MailboxTagGetDMAChannels;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagGetDMAChannels = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Header:TBCM2838MailboxTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Request:TBCM2838MailboxTagNoRequest);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Response:TBCM2838MailboxTagDMAChannelsResponse);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag create buffer''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagCreateBuffer = ^TBCM2838MailboxTagCreateBuffer;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagCreateBuffer = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|Note: A combination tag to allocate and configure a framebuffer in one request | ||
+ | |- | ||
+ | |colspan="2"|''Create Buffer'' | ||
+ | |- | ||
+ | | <code>Physical:TBCM2838MailboxTagSetPhysical;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>Vertual:TBCM2838MailboxTagSetVirtual;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Depth:TBCM2838MailboxTagSetDepth;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Order:TBCM2838MailboxTagSetPixelOrder;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Mode:TBCM2838MailboxTagSetAlphaMode;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Offset:TBCM2838MailboxTagSetVirtualOffset;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Overscan:TBCM2838MailboxTagSetOverscan;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Allocate:TBCM2838MailboxTagAllocateBuffer;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Pitch:TBCM2838MailboxTagGetPitch;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 mailbox tag query buffer''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838MailboxTagQueryBuffer = ^TBCM2838MailboxTagQueryBuffer;</code> | ||
+ | |||
+ | <code>TBCM2838MailboxTagQueryBuffer = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|Note: A combination tag to query all framebuffer properties in one request | ||
+ | |- | ||
+ | |colspan="2"|''Query Buffer'' | ||
+ | |- | ||
+ | | <code>Physical:TBCM2838MailboxTagGetPhysical;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>Vertual:TBCM2838MailboxTagGetVirtual;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Depth:TBCM2838MailboxTagGetDepth;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Order:TBCM2838MailboxTagGetPixelOrder;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Mode:TBCM2838MailboxTagGetAlphaMode;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Offset:TBCM2838MailboxTagGetVirtualOffset;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Overscan:TBCM2838MailboxTagGetOverscan;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Pitch:TBCM2838MailboxTagGetPitch;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 ARM local mailbox write registers''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838ARMLocalMailboxWriteRegisters = ^TBCM2838ARMLocalMailboxWriteRegisters;</code> | ||
+ | |||
+ | <code>TBCM2838ARMLocalMailboxWriteRegisters = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|Note: BCM2838 ARM local structures (See: BCM2711 ARM Peripherals) | ||
+ | |- | ||
+ | | <code>Mailbox0Write:LongWord;</code> | ||
+ | | style="width: 50%;"|Mailbox 0 write-set (WO) | ||
+ | |- | ||
+ | | <code>Mailbox1Write:LongWord;</code> | ||
+ | | Mailbox 1 write-set (WO) | ||
+ | |- | ||
+ | | <code>Mailbox2Write:LongWord;</code> | ||
+ | | Mailbox 2 write-set (WO) | ||
+ | |- | ||
+ | | <code>Mailbox3Write:LongWord;</code> | ||
+ | | Mailbox 3 write-set (WO) | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 ARM local mailbox read clear registers''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838ARMLocalMailboxReadClearRegisters = ^TBCM2838ARMLocalMailboxReadClearRegisters;</code> | ||
+ | |||
+ | <code>TBCM2838ARMLocalMailboxReadClearRegisters = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Mailbox0ReadClear:LongWord;</code> | ||
+ | | style="width: 50%;"|Mailbox 0 read & write-high-to-clear | ||
+ | |- | ||
+ | | <code>Mailbox1ReadClear:LongWord;</code> | ||
+ | | Mailbox 1 read & write-high-to-clear | ||
+ | |- | ||
+ | | <code>Mailbox2ReadClear:LongWord;</code> | ||
+ | | Mailbox 2 read & write-high-to-clear | ||
+ | |- | ||
+ | | <code>Mailbox3ReadClear:LongWord;</code> | ||
+ | | Mailbox 3 read & write-high-to-clear | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 ARM local registers''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838ARMLocalRegisters = ^TBCM2838ARMLocalRegisters;</code> | ||
+ | |||
+ | <code>TBCM2838ARMLocalRegisters = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Control:LongWord;</code> | ||
+ | | style="width: 50%;"|Control register $0000 | ||
+ | |- | ||
+ | | <code>Reserved1:LongWord;</code> | ||
+ | | Unused $0004 | ||
+ | |- | ||
+ | | <code>CoreTimerPrescaler:LongWord;</code> | ||
+ | | Core timer prescaler $0008 | ||
+ | |- | ||
+ | | <code>CoreInterruptRouting:LongWord;</code> | ||
+ | | Core Interrupts routing $000C | ||
+ | |- | ||
+ | | <code>PMInterruptRoutingSet:LongWord;</code> | ||
+ | | Performance Monitor Interrupts routing-set $0010 | ||
+ | |- | ||
+ | | <code>PMInterruptRoutingClear:LongWord;</code> | ||
+ | | Performance Monitor Interrupts routing-clear $0014 | ||
+ | |- | ||
+ | | <code>Reserved2:LongWord;</code> | ||
+ | | Unused $0018 | ||
+ | |- | ||
+ | | <code>CoreTimerLow:LongWord;</code> | ||
+ | | Core timer access LS 32 bits $001C | ||
+ | |- | ||
+ | | <code>CoreTimerHigh:LongWord;</code> | ||
+ | | Core timer access MS 32 bits $0020 | ||
+ | |- | ||
+ | | <code>PeripheralIntRouting0:LongWord;</code> | ||
+ | | Peripheral Interrupts 0-7 routing (1 to 7 Unused) $0024 | ||
+ | |- | ||
+ | | <code>PeripheralIntRouting1:LongWord;</code> | ||
+ | | Peripheral Interrupts 8-15 routing (Unused) $0028 | ||
+ | |- | ||
+ | | <code>AXIOutstandingCount:LongWord;</code> | ||
+ | | AXI outstanding counters $002C | ||
+ | |- | ||
+ | | <code>AXIOutstandingIRQ:LongWord;</code> | ||
+ | | AXI outstanding IRQ $0030 | ||
+ | |- | ||
+ | | <code>LocalTimerControl:LongWord;</code> | ||
+ | | Local timer control & status $0034 | ||
+ | |- | ||
+ | | <code>LocalTimerClearReload:LongWord;</code> | ||
+ | | Local timer IRQ clear & reload $0038 | ||
+ | |- | ||
+ | | <code>Reserved3:LongWord;</code> | ||
+ | | Unused $003C | ||
+ | |- | ||
+ | | <code>TimersIntControl:array[0..BCM2838_CPU_COUNT - 1] of LongWord;</code> | ||
+ | | Core0-3 Timers Interrupt control $0040-004C | ||
+ | |- | ||
+ | | <code>MailboxIntControl:array[0..BCM2838_CPU_COUNT - 1] of LongWord;</code> | ||
+ | | Core0-3 Mailboxes Interrupt control $0050-005C | ||
+ | |- | ||
+ | | <code>IRQSource:array[0..BCM2838_CPU_COUNT - 1] of LongWord;</code> | ||
+ | | Core0-3 IRQ Source $0060-006C | ||
+ | |- | ||
+ | | <code>FIQSource:array[0..BCM2838_CPU_COUNT - 1] of LongWord;</code> | ||
+ | | Core0-3 FIQ Source $0070-007C | ||
+ | |- | ||
+ | | <code>MailboxWrite:array[0..BCM2838_CPU_COUNT - 1] of TBCM2838ARMLocalMailboxWriteRegisters;</code> | ||
+ | | Core0-3 Mailbox 0-3 write-set (WO) $0080-00BC | ||
+ | |- | ||
+ | | <code>MailboxReadClear:array[0..BCM2838_CPU_COUNT - 1] of TBCM2838ARMLocalMailboxReadClearRegisters;</code> | ||
+ | | Core0-3 Mailbox 0-3 read & write-high-to-clear $00C0-00FC | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''BCM2838 virtual GPIO buffer''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PBCM2838VirtualGPIOBuffer = ^TBCM2838VirtualGPIOBuffer;</code> | ||
+ | |||
+ | <code>TBCM2838VirtualGPIOBuffer = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Buffer:Pointer;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>Address:PtrUInt;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>CachedBuffer:LongBool;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>EnableDisable:array[0..BCM2838_VIRTUAL_GPIO_PIN_COUNT - 1] of LongWord;</code> | ||
+ | | Two packed 16-bit counts of enabled and disabled / Allows host to detect a brief enable that was missed | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
=== Public variables === | === Public variables === | ||
---- | ---- | ||
− | '' | + | ''None defined'' |
=== Function declarations === | === Function declarations === | ||
---- | ---- | ||
− | '' | + | ''None defined'' |
Return to [[Unit_Reference|Unit Reference]] | Return to [[Unit_Reference|Unit Reference]] |
Latest revision as of 00:45, 24 May 2023
Return to Unit Reference
Description
Ultibo Definitions specific to the Broadcom 2838 System on Chip unit
The BCM2838 is the SoC used by the Raspberry Pi models 4B/400/CM4, it is often also referred to as the BCM2711 but for consistency with the earlier models we use that number for the core driver unit BCM2711.
Constants
BCM2838_*
BCM2838_CPU_COUNT = 4;
|
BCM2838_VCIO_*
BCM2838_VCIO_ALIAS = $7E000000;
|
BCM2838_VCBUS_*
BCM2838_VCBUS_0_ALIAS = $00000000;
|
0 Alias - L1 and L2 cached |
BCM2838_VCBUS_4_ALIAS = $40000000;
|
4 Alias - L2 cache coherent (non allocating) |
BCM2838_VCBUS_8_ALIAS = $80000000;
|
8 Alias - L2 cached (only) |
BCM2838_VCBUS_C_ALIAS = $C0000000;
|
C Alias - Direct uncached (Suitable for RPi 4 Model B) |
BCM2838_PERIPHERALS_*
BCM2838_PERIPHERALS_BASE = $FE000000;
|
Mapped to VC legacy address 7E000000 |
BCM2838_PERIPHERALS_SIZE = SIZE_16M + SIZE_8M;
|
24M |
BCM2838_EXT_PERIPHERALS_*
BCM2838_EXT_PERIPHERALS_BASE = $FC000000;
|
Mapped to VC legacy address 7C000000 |
BCM2838_EXT_PERIPHERALS_SIZE = SIZE_32M;
|
BCM2838_PCI_ADDRESS_*
BCM2838_PCI_ADDRESS_BASE = $600000000;
|
BCM2838_PCI_OUTBOUND_*
BCM2838_PCI_OUTBOUND_BASE = $F8000000;
|
|
BCM2838_PCI_OUTBOUND_SIZE = SIZE_64M;
|
BCM2838_PCI_DMA_RANGE_*
BCM2838_PCI_DMA_RANGE_BASE = $400000000;
|
BCM2838_PCI_INBOUND_*
BCM2838_PCI_INBOUND_BASE = $00000000;
|
|
BCM2838_PCI_INBOUND_SIZE = SIZE_4G;
|
Limited to 3GB on some revisions |
BCM2838_SYSTEM_TIMER_*
BCM2838_SYSTEM_TIMER_REGS_BASE = BCM2838_PERIPHERALS_BASE + $3000;
|
BCM2838_DMA*
Channels 0 to 14 | |
BCM2838_DMA0_REGS_BASE = BCM2838_PERIPHERALS_BASE + $7000;
|
|
BCM2838_DMA1_REGS_BASE = BCM2838_PERIPHERALS_BASE + $7100;
|
|
BCM2838_DMA2_REGS_BASE = BCM2838_PERIPHERALS_BASE + $7200;
|
|
BCM2838_DMA3_REGS_BASE = BCM2838_PERIPHERALS_BASE + $7300;
|
|
BCM2838_DMA4_REGS_BASE = BCM2838_PERIPHERALS_BASE + $7400;
|
|
BCM2838_DMA5_REGS_BASE = BCM2838_PERIPHERALS_BASE + $7500;
|
|
BCM2838_DMA6_REGS_BASE = BCM2838_PERIPHERALS_BASE + $7600;
|
|
BCM2838_DMA7_REGS_BASE = BCM2838_PERIPHERALS_BASE + $7700;
|
Lite DMA engine |
BCM2838_DMA8_REGS_BASE = BCM2838_PERIPHERALS_BASE + $7800;
|
Lite DMA engine |
BCM2838_DMA9_REGS_BASE = BCM2838_PERIPHERALS_BASE + $7900;
|
Lite DMA engine |
BCM2838_DMA10_REGS_BASE = BCM2838_PERIPHERALS_BASE + $7A00;
|
Lite DMA engine |
BCM2838_DMA11_REGS_BASE = BCM2838_PERIPHERALS_BASE + $7B00;
|
40bit DMA engine (DMA channel 11 is able to access the PCIe interface) |
BCM2838_DMA12_REGS_BASE = BCM2838_PERIPHERALS_BASE + $7C00;
|
40bit DMA engine |
BCM2838_DMA13_REGS_BASE = BCM2838_PERIPHERALS_BASE + $7D00;
|
40bit DMA engine |
BCM2838_DMA14_REGS_BASE = BCM2838_PERIPHERALS_BASE + $7E00;
|
40bit DMA engine |
BCM2838_DMA_INT_STATUS_BASE = BCM2838_PERIPHERALS_BASE + $7FE0;
|
|
BCM2838_DMA_ENABLE_BASE = BCM2838_PERIPHERALS_BASE + $7FF0;
|
BCM2838_INTERRUPT_REGS_*
BCM2838_INTERRUPT_REGS_BASE = BCM2838_PERIPHERALS_BASE + $B200;
|
Note: Documentation states 0xB000 but the offsets begin at 0x200 so 0xB200 will be correct |
BCM2838_TIMER_REGS_*
BCM2838_TIMER_REGS_BASE = BCM2838_PERIPHERALS_BASE + $B400;
|
Note: Documentation states 0xB000 but the offsets begin at 0x400 so 0xB400 will be correct |
BCM2838_DOORBELL_*
BCM2838_DOORBELL_REGS_BASE = BCM2838_PERIPHERALS_BASE + $B840;
|
|
BCM2838_VCHIQ_REGS_BASE = BCM2838_DOORBELL_REGS_BASE;
|
BCM2838_MAILBOX0_*
BCM2838_MAILBOX0_REGS_BASE = BCM2838_PERIPHERALS_BASE + $B880;
|
BCM2838_MAILBOX1_*
BCM2838_MAILBOX1_REGS_BASE = BCM2838_PERIPHERALS_BASE + $B8A0;
|
BCM2838_PM_*
BCM2838_PM_REGS_BASE = BCM2838_PERIPHERALS_BASE + $100000;
|
BCM2838_CM_*
BCM2838_CM_REGS_BASE = BCM2838_PERIPHERALS_BASE + $101000;
|
BCM2838_PCM_CLOCK_*
BCM2838_PCM_CLOCK_BASE = BCM2838_PERIPHERALS_BASE + $101098;
|
BCM2838_RNG_REGS_*
BCM2838_RNG_REGS_BASE = BCM2838_PERIPHERALS_BASE + $104000;
|
BCM2838_GPIO_*
BCM2838_GPIO_REGS_BASE = BCM2838_PERIPHERALS_BASE + $200000;
|
This is shown in BCM2711 ARM Peripherals as 0x7E215000 which is thought to be an error |
BCM2838_PL011_*
BCM2838_PL011_REGS_BASE = BCM2838_PERIPHERALS_BASE + $201000;
|
|
BCM2838_UART0_REGS_BASE = BCM2838_PL011_REGS_BASE;
|
BCM2838_UART2_*
BCM2838_UART2_REGS_BASE = BCM2838_PERIPHERALS_BASE + $201400;
|
BCM2838_UART3_*
BCM2838_UART3_REGS_BASE = BCM2838_PERIPHERALS_BASE + $201600;
|
BCM2838_UART4_*
BCM2838_UART4_REGS_BASE = BCM2838_PERIPHERALS_BASE + $201800;
|
BCM2838_UART5_*
BCM2838_UART5_REGS_BASE = BCM2838_PERIPHERALS_BASE + $201A00;
|
|
BCM2838_UART0_REGS_BASES:array[0..5] of LongWord = (BCM2838_UART0_REGS_BASE, 0, BCM2838_UART2_REGS_BASE, BCM2838_UART3_REGS_BASE, BCM2838_UART4_REGS_BASE, BCM2838_UART5_REGS_BASE);
|
BCM2838_EMMC1_*
BCM2838_EMMC1_REGS_BASE = BCM2838_PERIPHERALS_BASE + $202000;
|
|
BCM2838_SDHOST_REGS_BASE = BCM2838_EMMC1_REGS_BASE;
|
BCM2838_PCM_REGS_*
BCM2838_PCM_REGS_BASE = BCM2838_PERIPHERALS_BASE + $203000;
|
BCM2838_SPI0_*
BCM2838_SPI0_REGS_BASE = BCM2838_PERIPHERALS_BASE + $204000;
|
BCM2838_SPI3_*
BCM2838_SPI3_REGS_BASE = BCM2838_PERIPHERALS_BASE + $204600;
|
BCM2838_SPI4_*
BCM2838_SPI4_REGS_BASE = BCM2838_PERIPHERALS_BASE + $204800;
|
BCM2838_SPI5_*
BCM2838_SPI5_REGS_BASE = BCM2838_PERIPHERALS_BASE + $204A00;
|
BCM2838_SPI6_*
BCM2838_SPI6_REGS_BASE = BCM2838_PERIPHERALS_BASE + $204C00;
|
|
BCM2838_SPI0_REGS_BASES:array[0..6] of LongWord = (BCM2838_SPI0_REGS_BASE, 0, 0, BCM2838_SPI3_REGS_BASE, BCM2838_SPI4_REGS_BASE, BCM2838_SPI5_REGS_BASE, BCM2838_SPI6_REGS_BASE);
|
BCM2838_PACTL_CS*
BCM2838_PACTL_CS_REGS_BASE = BCM2838_PERIPHERALS_BASE + $204E00;
|
BCM2838_BSC0_*
BCM2838_BSC0_REGS_BASE = BCM2838_PERIPHERALS_BASE + $205000;
|
|
BCM2838_I2C0_REGS_BASE = BCM2838_BSC0_REGS_BASE;
|
BCM2838_I2C3_*
BCM2838_I2C3_REGS_BASE = BCM2838_PERIPHERALS_BASE + $205600;
|
BCM2838_I2C4_*
BCM2838_I2C4_REGS_BASE = BCM2838_PERIPHERALS_BASE + $205800;
|
BCM2838_I2C5_*
BCM2838_I2C5_REGS_BASE = BCM2838_PERIPHERALS_BASE + $205A00;
|
Note: This is shown in BCM2711 ARM Peripherals as 0x7E205A80 which is thought to be an error |
BCM2838_I2C6_*
BCM2838_I2C6_REGS_BASE = BCM2838_PERIPHERALS_BASE + $205C00;
|
BCM2838_I2C7_*
Note: I2C7 master is used dedicated with the HDMI interface and must not be used | |
BCM2838_I2C7_REGS_BASE = BCM2838_PERIPHERALS_BASE + $205E00;
|
BCM2838_PIXELVALVE0_*
BCM2838_PIXELVALVE0_REGS_BASE = BCM2838_PERIPHERALS_BASE + $206000;
|
Pixel Valve 0 |
BCM2838_PIXELVALVE1_REGS_BASE = BCM2838_PERIPHERALS_BASE + $207000;
|
Pixel Valve 1 |
BCM2838_DPI_*
BCM2838_DPI_REGS_BASE = BCM2838_PERIPHERALS_BASE + $208000;
|
BCM2838_DSI0_*
BCM2838_DSI0_REGS_BASE = BCM2838_PERIPHERALS_BASE + $209000;
|
BCM2838_I2CSPI_DR_*
See Section 11.2 | |
BCM2838_I2CSPI_DR_RXFLEVEL_MASK = ($1F shl 27);
|
RX FIFO Level |
BCM2838_I2CSPI_DR_RXFLEVEL_SHIFT = 27;
|
|
BCM2838_I2CSPI_DR_TXFLEVEL_MASK = ($1F shl 22);
|
TX FIFO Level |
BCM2838_I2CSPI_DR_TXFLEVEL_SHIFT = 22;
|
|
BCM2838_I2CSPI_DR_RXBUSY = (1 shl 21);
|
Receive Busy |
BCM2838_I2CSPI_DR_TXFE = (1 shl 20);
|
TX FIFO Empty |
BCM2838_I2CSPI_DR_RXFF = (1 shl 19);
|
RX FIFO Full |
BCM2838_I2CSPI_DR_TXFF = (1 shl 18);
|
TX FIFO Full |
BCM2838_I2CSPI_DR_RXFE = (1 shl 17);
|
RX FIFO Empty |
BCM2838_I2CSPI_DR_TXBUSY = (1 shl 16);
|
Transmit Busy |
BCM2838_I2CSPI_DR_UE = (1 shl 9);
|
TX Underrun Error |
BCM2838_I2CSPI_DR_OE = (1 shl 8);
|
RX Overrun Error |
BCM2838_I2CSPI_DR_DATA_MASK = ($FF shl 0);
|
Received/Transferred data |
BCM2838_I2CSPI_RSR_*
See Section 11.2 | |
BCM2838_I2CSPI_RSR_UE = (1 shl 1);
|
TX Underrun Error |
BCM2838_I2CSPI_RSR_OE = (1 shl 0);
|
RX Overrun Error |
BCM2838_I2CSPI_SLV_*
See Section 11.2 | |
BCM2838_I2CSPI_SLV_ADDR_MASK = ($7F shl 0);
|
I2C Slave Address |
BCM2838_I2CSPI_CR_*
See Section 11.2 | |
BCM2838_I2CSPI_CR_INV_TXF = (1 shl 13);
|
Inverse TX status flags |
BCM2838_I2CSPI_CR_TESTFIFO = (1 shl 11);
|
TEST FIFO |
BCM2838_I2CSPI_CR_INV_RXF = (1 shl 10);
|
Inverse RX status flags |
BCM2838_I2CSPI_CR_RXE = (1 shl 9);
|
Receive Enable |
BCM2838_I2CSPI_CR_TXE = (1 shl 8);
|
Transmit Enable |
BCM2838_I2CSPI_CR_BRK = (1 shl 7);
|
Break current operation |
BCM2838_I2CSPI_CR_CPOL = (1 shl 4);
|
Clock Polarity |
BCM2838_I2CSPI_CR_CPHA = (1 shl 3);
|
Clock Phase |
BCM2838_I2CSPI_CR_I2C = (1 shl 2);
|
I2C Enable |
BCM2838_I2CSPI_CR_SPI = (1 shl 1);
|
SPI Enable |
BCM2838_I2CSPI_CR_EN = (1 shl 0);
|
Enable Device |
BCM2838_I2CSPI_FR_*
See Section 11.2 | |
BCM2838_I2CSPI_RXFLEVEL_MASK = ($1F shl 11);
|
RX FIFO Level |
BCM2838_I2CSPI_RXFLEVEL_SHIFT = 11;
|
|
BCM2838_I2CSPI_TXFLEVEL_MASK = ($1F shl 6);
|
TX FIFO Level |
BCM2838_I2CSPI_TXFLEVEL_SHIFT = 6;
|
|
BCM2838_I2CSPI_FR_RXBUSY = (1 shl 5);
|
Receive Busy |
BCM2838_I2CSPI_FR_TXFE = (1 shl 4);
|
TX FIFO Empty |
BCM2838_I2CSPI_FR_RXFF = (1 shl 3);
|
RX FIFO Full |
BCM2838_I2CSPI_FR_TXFF = (1 shl 2);
|
TX FIFO Full |
BCM2838_I2CSPI_FR_RXFE = (1 shl 1);
|
RX FIFO Empty |
BCM2838_I2CSPI_FR_TXBUSY = (1 shl 0);
|
Transmit Busy |
BCM2838_I2CSPI_IFLS_*
See Section 11.2 | |
BCM2838_I2CSPI_IFLS_RXIFLSEL_MASK = (7 shl 3);
|
RX Interrupt FIFO Level Select |
BCM2838_I2CSPI_IFLS_RXIFLSEL_SHIFT = 3;
|
|
BCM2838_I2CSPI_IFLS_RXIFLSEL1_8 = (0 shl 3);
|
000 RX FIFO gets 1/8 full |
BCM2838_I2CSPI_IFLS_RXIFLSEL1_4 = (1 shl 3);
|
001 RX FIFO gets 1/4 full |
BCM2838_I2CSPI_IFLS_RXIFLSEL1_2 = (2 shl 3);
|
010 RX FIFO gets 1/2 full |
BCM2838_I2CSPI_IFLS_RXIFLSEL3_4 = (3 shl 3);
|
011 RX FIFO gets 3/4 full |
BCM2838_I2CSPI_IFLS_RXIFLSEL7_8 = (4 shl 3);
|
100 RX FIFO gets 7/8 full |
BCM2838_I2CSPI_IFLS_TXIFLSEL_MASK = (7 shl 0);
|
TX Interrupt FIFO Level Select |
BCM2838_I2CSPI_IFLS_TXIFLSEL_SHIFT = 0;
|
|
BCM2838_I2CSPI_IFLS_TXIFLSEL1_8 = (0 shl 0);
|
000 TX FIFO gets 1/8 full |
BCM2838_I2CSPI_IFLS_TXIFLSEL1_4 = (1 shl 0);
|
001 TX FIFO gets 1/4 full |
BCM2838_I2CSPI_IFLS_TXIFLSEL1_2 = (2 shl 0);
|
010 TX FIFO gets 1/2 full |
BCM2838_I2CSPI_IFLS_TXIFLSEL3_4 = (3 shl 0);
|
011 TX FIFO gets 3/4 full |
BCM2838_I2CSPI_IFLS_TXIFLSEL7_8 = (4 shl 0);
|
100 TX FIFO gets 7/8 full |
BCM2838_I2CSPI_IMSC_*
See Section 11.2 | |
BCM2838_I2CSPI_IMSC_OEIM = (1 shl 3);
|
Overrun error interrupt mask |
BCM2838_I2CSPI_IMSC_BEIM = (1 shl 2);
|
Break error interrupt mask |
BCM2838_I2CSPI_IMSC_TXIM = (1 shl 1);
|
Transmit interrupt mask |
BCM2838_I2CSPI_IMSC_RXIM = (1 shl 0);
|
Receive interrupt mask |
BCM2838_I2CSPI_RIS_*
See Section 11.2 | |
BCM2838_I2CSPI_RIS_OERIS = (1 shl 3);
|
Overrun error interrupt status |
BCM2838_I2CSPI_RIS_BERIS = (1 shl 2);
|
Break error interrupt status |
BCM2838_I2CSPI_RIS_TXRIS = (1 shl 1);
|
Transmit interrupt status |
BCM2838_I2CSPI_RIS_RXRIS = (1 shl 0);
|
Receive interrupt status |
BCM2838_I2CSPI_MIS_*
See Section 11.2 | |
BCM2838_I2CSPI_MIS_OEMIS = (1 shl 3);
|
Overrun error masked interrupt status |
BCM2838_I2CSPI_MIS_BEMIS = (1 shl 2);
|
Break error masked interrupt status |
BCM2838_I2CSPI_MIS_TXMIS = (1 shl 1);
|
Transmit masked interrupt status |
BCM2838_I2CSPI_MIS_RXMIS = (1 shl 0);
|
Receive masked interrupt status |
BCM2838_I2CSPI_ICR_*
See Section 11.2 | |
BCM2838_I2CSPI_ICR_OEIC = (1 shl 3);
|
Overrun error interrupt clear |
BCM2838_I2CSPI_ICR_BEIC = (1 shl 2);
|
Break error interrupt clear |
BCM2838_I2CSPI_ICR_TXIC = (1 shl 1);
|
Transmit interrupt clear |
BCM2838_I2CSPI_ICR_RXIC = (1 shl 0);
|
Receive interrupt clear |
BCM2838_PWM0_*
BCM2838_PWM0_REGS_BASE = BCM2838_PERIPHERALS_BASE + $20C000;
|
BCM2838_PWM1_*
BCM2838_PWM1_REGS_BASE = BCM2838_PERIPHERALS_BASE + $20C800;
|
|
BCM2838_PWM0_REGS_BASES:array[0..1] of LongWord = (BCM2838_PWM0_REGS_BASE, BCM2838_PWM1_REGS_BASE);
|
BCM2838_I2CSPI_*
BCM2838_I2CSPI_REGS_BASE = BCM2838_PERIPHERALS_BASE + $214000;
|
BCM2838_AUX_*
BCM2838_AUX_REGS_BASE = BCM2838_PERIPHERALS_BASE + $215000;
|
|
BCM2838_UART1_REGS_BASE = BCM2838_PERIPHERALS_BASE + $215040;
|
|
BCM2838_SPI1_REGS_BASE = BCM2838_PERIPHERALS_BASE + $215080;
|
|
BCM2838_SPI2_REGS_BASE = BCM2838_PERIPHERALS_BASE + $2150C0;
|
BCM2838_EMMC0_*
BCM2838_EMMC0_REGS_BASE = BCM2838_PERIPHERALS_BASE + $300000;
|
|
BCM2838_SDHCI_REGS_BASE = BCM2838_EMMC0_REGS_BASE;
|
BCM2838_EMMC2_*
BCM2838_EMMC2_REGS_BASE = BCM2838_PERIPHERALS_BASE + $340000;
|
BCM2838_HVS_*
BCM2838_HVS_REGS_BASE = BCM2838_PERIPHERALS_BASE + $400000;
|
BCM2838_SMI_*
BCM2838_SMI_REGS_BASE = BCM2838_PERIPHERALS_BASE + $600000;
|
|
BCM2838_FIRMWAREKMS_REGS_BASE = BCM2838_SMI_REGS_BASE;
|
BCM2838_DSI1_*
BCM2838_DSI1_REGS_BASE = BCM2838_PERIPHERALS_BASE + $700000;
|
BCM2838_CSI0_*
BCM2838_CSI0_REGS_BASE = BCM2838_PERIPHERALS_BASE + $800000;
|
BCM2838_CSI1_*
BCM2838_CSI1_REGS_BASE = BCM2838_PERIPHERALS_BASE + $801000;
|
BCM2838_BSC1_*
BCM2838_BSC1_REGS_BASE = BCM2838_PERIPHERALS_BASE + $804000;
|
|
BCM2838_I2C1_REGS_BASE = BCM2838_BSC1_REGS_BASE;
|
BCM2838_BSC2_*
Note: I2C2 master is used dedicated with the HDMI interface and must not be used | |
BCM2838_BSC2_REGS_BASE = BCM2838_PERIPHERALS_BASE + $805000;
|
|
BCM2838_I2C2_REGS_BASE = BCM2838_BSC2_REGS_BASE;
|
|
BCM2838_I2C0_REGS_BASES:array[0..7] of LongWord = (BCM2838_I2C0_REGS_BASE, BCM2838_I2C1_REGS_BASE, BCM2838_I2C2_REGS_BASE, BCM2838_I2C3_REGS_BASE, BCM2838_I2C4_REGS_BASE, BCM2838_I2C5_REGS_BASE, BCM2838_I2C6_REGS_BASE, BCM2838_I2C7_REGS_BASE);
|
BCM2838_VEC_*
BCM2838_VEC_REGS_BASE = BCM2838_PERIPHERALS_BASE + $806000;
|
BCM2838_PIXELVALVE2_*
BCM2838_PIXELVALVE2_REGS_BASE = BCM2838_PERIPHERALS_BASE + $807000;
|
BCM2838_HDMI_*
BCM2838_HDMI_REGS_BASE = BCM2838_PERIPHERALS_BASE + $902000;
|
BCM2838_USB_*
BCM2838_USB_REGS_BASE = BCM2838_PERIPHERALS_BASE + $980000;
|
|
BCM2838_DWCOTG_REGS_BASE = BCM2838_USB_REGS_BASE;
|
BCM2838_XHCI_*
BCM2838_XHCI_REGS_BASE = BCM2838_PERIPHERALS_BASE + $9C0000;
|
This is separate to the VL805 XHCI controller |
BCM2838_HEVC_*
BCM2838_HEVC_REGS_BASE = BCM2838_PERIPHERALS_BASE + $B00000;
|
BCM2838_ARGON_*
BCM2838_ARGON_REGS_BASE = BCM2838_PERIPHERALS_BASE + $B10000;
|
BCM 2838_H264_*
BCM 2838_H264_REGS_BASE = BCM2838_PERIPHERALS_BASE + $B20000;
|
BCM2838_VP9_*
BCM2838_VP9_REGS_BASE = BCM2838_PERIPHERALS_BASE + $B30000;
|
BCM2838_V3D_*
BCM2838_V3D_REGS_BASE = BCM2838_PERIPHERALS_BASE + $C04000;
|
BCM2838_DMA15_*
Channel 15 Note: DMA15 is exclusively used by the VPU | |
BCM2838_DMA15_REGS_BASE = BCM2838_PERIPHERALS_BASE + $E05000;
|
BCM2838_CHIP_REVISION_*
See: https://elinux.org/The_Undocumented_Pi#BCM2711 | |
BCM2838_CHIP_REVISION_BASE = BCM2838_EXT_PERIPHERALS_BASE + $404000;
|
BCM2838_PCIE_*
BCM2838_PCIE_REGS_BASE = BCM2838_EXT_PERIPHERALS_BASE + $1500000;
|
BCM2838_GENET_*
BCM2838_GENET_REGS_BASE = BCM2838_EXT_PERIPHERALS_BASE + $1580000;
|
|
BCM2838_GENET_MDIO_OFFSET = $0E14;
|
BCM2838_THERMAL_*
BCM2838_THERMAL_REGS_BASE = BCM2838_EXT_PERIPHERALS_BASE + $15D2200;
|
BCM2838_IRQ_*
IRQ lines of BCM2838 peripherals | |
BCM2838_SPI_BASE = 32;
|
Added to the SPI ID in device tree to obtain the real ID |
BCM2838_PPI_BASE = 16;
|
Added to the PPI ID in device tree to obtain the real ID |
BCM2838_SGI_BASE = 0;
|
|
ARM Generic Timer | |
BCM2838_IRQ_TIMER0 = BCM2838_PPI_BASE + 13;
|
IRQ_TYPE_LEVEL_LOW / CPU_MASK_0 or CPU_MASK_1 or CPU_MASK_2 or CPU_MASK_3 (Core n PS timer IRQ) |
BCM2838_IRQ_TIMER1 = BCM2838_PPI_BASE + 14;
|
IRQ_TYPE_LEVEL_LOW / CPU_MASK_0 or CPU_MASK_1 or CPU_MASK_2 or CPU_MASK_3 (Core n PNS timer IRQ) |
BCM2838_IRQ_TIMER2 = BCM2838_PPI_BASE + 11;
|
IRQ_TYPE_LEVEL_LOW / CPU_MASK_0 or CPU_MASK_1 or CPU_MASK_2 or CPU_MASK_3 (Core n V timer IRQ) |
BCM2838_IRQ_TIMER3 = BCM2838_PPI_BASE + 10;
|
IRQ_TYPE_LEVEL_LOW / CPU_MASK_0 or CPU_MASK_1 or CPU_MASK_2 or CPU_MASK_3 (Core n HP timer IRQ) |
Legacy IRQ/FIQ | |
BCM2838_FIQ_LEGACY = BCM2838_PPI_BASE + 12;
|
Legacy FIQn |
BCM2838_IRQ_LEGACY = BCM2838_PPI_BASE + 15;
|
Legacy IRQn |
ARM Mailbox IRQs (BCM2838_SPI_BASE + 0 to 15) | |
BCM2838_IRQ_MAILBOX0_0 = BCM2838_SPI_BASE + 0;
|
IRQ_TYPE_LEVEL_HIGH(Core 0) |
BCM2838_IRQ_MAILBOX1_0 = BCM2838_SPI_BASE + 1;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_MAILBOX2_0 = BCM2838_SPI_BASE + 2;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_MAILBOX3_0 = BCM2838_SPI_BASE + 3;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_MAILBOX0_1 = BCM2838_SPI_BASE + 4;
|
IRQ_TYPE_LEVEL_HIGH (Core 1) |
BCM2838_IRQ_MAILBOX1_1 = BCM2838_SPI_BASE + 5;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_MAILBOX2_1 = BCM2838_SPI_BASE + 6;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_MAILBOX3_1 = BCM2838_SPI_BASE + 7;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_MAILBOX0_2 = BCM2838_SPI_BASE + 8;
|
IRQ_TYPE_LEVEL_HIGH (Core 2) |
BCM2838_IRQ_MAILBOX1_2 = BCM2838_SPI_BASE + 9;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_MAILBOX2_2 = BCM2838_SPI_BASE + 10;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_MAILBOX3_2 = BCM2838_SPI_BASE + 11;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_MAILBOX0_3 = BCM2838_SPI_BASE + 12;
|
IRQ_TYPE_LEVEL_HIGH (Core 3) |
BCM2838_IRQ_MAILBOX1_3 = BCM2838_SPI_BASE + 13;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_MAILBOX2_3 = BCM2838_SPI_BASE + 14;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_MAILBOX3_3 = BCM2838_SPI_BASE + 15;
|
IRQ_TYPE_LEVEL_HIGH |
ARM PMU | |
BCM2838_IRQ_PMU0 = BCM2838_SPI_BASE + 16;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_PMU1 = BCM2838_SPI_BASE + 17;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_PMU2 = BCM2838_SPI_BASE + 18;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_PMU3 = BCM2838_SPI_BASE + 19;
|
IRQ_TYPE_LEVEL_HIGH |
AXI Quiet | |
BCM2838_IRQ_LOCAL_AXIQUIET = BCM2838_SPI_BASE + 20;
|
IRQ_TYPE_LEVEL_HIGH |
ARM Local Timer | |
BCM2838_IRQ_LOCAL_TIMER = BCM2838_SPI_BASE + 21;
|
IRQ_TYPE_LEVEL_HIGH |
AXI Error | |
BCM2838_IRQ_LOCAL_AXIERR = BCM2838_SPI_BASE + 22;
|
IRQ_TYPE_LEVEL_HIGH (TBD) |
ARM peripheral IRQs (BCM2838_SPI_BASE + 32 to 47) | |
ARM Timer | |
BCM2838_IRQ_ARM_TIMER = BCM2838_SPI_BASE + 32;
|
IRQ_TYPE_LEVEL_HIGH |
ARM Mailbox | |
BCM2838_IRQ_ARM_MAILBOX = BCM2838_SPI_BASE + 33;
|
IRQ_TYPE_LEVEL_HIGH |
ARM Doorbell (VCHIQ) | |
BCM2838_IRQ_ARM_DOORBELL0 = BCM2838_SPI_BASE + 34;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_ARM_DOORBELL1 = BCM2838_SPI_BASE + 35;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_VCHIQ = BCM2838_IRQ_ARM_DOORBELL0;
|
|
ARM VPU Halted | |
BCM2838_IRQ_ARM_VPU0HALTED = BCM2838_SPI_BASE + 36;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_ARM_VPU1HALTED = BCM2838_SPI_BASE + 37;
|
IRQ_TYPE_LEVEL_HIGH |
ARM Error | |
BCM2838_IRQ_ARM_ADDRERROR = BCM2838_SPI_BASE + 38;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_ARM_AXIERROR = BCM2838_SPI_BASE + 39;
|
IRQ_TYPE_LEVEL_HIGH |
ARM Software Interrupt (SWI) | |
BCM2838_IRQ_ARM_SWI0 = BCM2838_SPI_BASE + 40;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_ARM_SWI1 = BCM2838_SPI_BASE + 41;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_ARM_SWI2 = BCM2838_SPI_BASE + 42;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_ARM_SWI3 = BCM2838_SPI_BASE + 43;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_ARM_SWI4 = BCM2838_SPI_BASE + 44;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_ARM_SWI5 = BCM2838_SPI_BASE + 45;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_ARM_SWI6 = BCM2838_SPI_BASE + 46;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_ARM_SWI7 = BCM2838_SPI_BASE + 47;
|
IRQ_TYPE_LEVEL_HIGH |
VC peripheral IRQs (BCM2838_SPI_BASE + 64 to 127) | |
System Timer | |
BCM2838_IRQ_SYSTEM_TIMER_0 = BCM2838_SPI_BASE + 64;
|
Already used by the VideoCore GPU (Do not use) |
BCM2838_IRQ_SYSTEM_TIMER_1 = BCM2838_SPI_BASE + 65;
|
|
BCM2838_IRQ_SYSTEM_TIMER_2 = BCM2838_SPI_BASE + 66;
|
Already used by the VideoCore GPU (Do not use) |
BCM2838_IRQ_SYSTEM_TIMER_3 = BCM2838_SPI_BASE + 67;
|
|
H264 Codec | |
BCM2838_IRQ_H264_0 = BCM2838_SPI_BASE + 68;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_H264_1 = BCM2838_SPI_BASE + 69;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_H264_2 = BCM2838_SPI_BASE + 70;
|
IRQ_TYPE_LEVEL_HIGH |
JPEG | |
BCM2838_IRQ_JPEG = BCM2838_SPI_BASE + 71;
|
IRQ_TYPE_LEVEL_HIGH |
ISP | |
BCM2838_IRQ_ISP = BCM2838_SPI_BASE + 72;
|
IRQ_TYPE_LEVEL_HIGH |
USB (Synopsys DesignWare Hi-Speed USB 2.0 On-The-Go Controller) | |
BCM2838_IRQ_USB = BCM2838_SPI_BASE + 73;
|
IRQ_TYPE_LEVEL_HIGH |
V3D | |
BCM2838_IRQ_V3D = BCM2838_SPI_BASE + 74;
|
IRQ_TYPE_LEVEL_HIGH |
Transposer | |
BCM2838_IRQ_TXP = BCM2838_SPI_BASE + 75;
|
IRQ_TYPE_LEVEL_HIGH |
Multicore Sync | |
BCM2838_IRQ_MULTICORESYNC0 = BCM2838_SPI_BASE + 76;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_MULTICORESYNC1 = BCM2838_SPI_BASE + 77;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_MULTICORESYNC2 = BCM2838_SPI_BASE + 78;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_MULTICORESYNC3 = BCM2838_SPI_BASE + 79;
|
IRQ_TYPE_LEVEL_HIGH |
DMA | |
BCM2838_IRQ_DMA0 = BCM2838_SPI_BASE + 80;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_DMA1 = BCM2838_SPI_BASE + 81;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_DMA2 = BCM2838_SPI_BASE + 82;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_DMA3 = BCM2838_SPI_BASE + 83;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_DMA4 = BCM2838_SPI_BASE + 84;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_DMA5 = BCM2838_SPI_BASE + 85;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_DMA6 = BCM2838_SPI_BASE + 86;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_DMA7 = BCM2838_SPI_BASE + 87;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_DMA8 = BCM2838_SPI_BASE + 87;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_DMA9 = BCM2838_SPI_BASE + 88;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_DMA10 = BCM2838_SPI_BASE + 88;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_DMA11 = BCM2838_SPI_BASE + 89;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_DMA12 = BCM2838_SPI_BASE + 90;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_DMA13 = BCM2838_SPI_BASE + 91;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_DMA14 = BCM2838_SPI_BASE + 92;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_DMA7_8 = BCM2838_IRQ_DMA7;
|
|
BCM2838_IRQ_DMA9_10 = BCM2838_IRQ_DMA9;
|
|
AUX (UART1, SPI1 and SPI2) | |
BCM2838_IRQ_AUX = BCM2838_SPI_BASE + 93;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_UART1 = BCM2838_IRQ_AUX;
|
|
BCM2838_IRQ_SPI1 = BCM2838_IRQ_AUX;
|
|
BCM2838_IRQ_SPI2 = BCM2838_IRQ_AUX;
|
|
ARM | |
BCM2838_IRQ_ARM = BCM2838_SPI_BASE + 94;
|
IRQ_TYPE_LEVEL_HIGH |
DMA Note: DMA15 is exclusively used by the VPU | |
BCM2838_IRQ_DMA15 = BCM2838_SPI_BASE + 95;
|
IRQ_TYPE_LEVEL_HIGH |
HDMI CEC | |
BCM2838_IRQ_HDMI_CEC = BCM2838_SPI_BASE + 96;
|
IRQ_TYPE_LEVEL_HIGH |
HVS | |
BCM2838_IRQ_HVS = BCM2838_SPI_BASE + 97;
|
IRQ_TYPE_LEVEL_HIGH |
ARGON (RPIVID) | |
BCM2838_IRQ_ARGON = BCM2838_SPI_BASE + 98;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_RPIVID = BCM2838_IRQ_ARGON;
|
|
SDC | |
BCM2838_IRQ_SDC = BCM2838_SPI_BASE + 99;
|
IRQ_TYPE_LEVEL_HIGH |
DSI0 | |
BCM2838_IRQ_DSI0 = BCM2838_SPI_BASE + 100;
|
IRQ_TYPE_LEVEL_HIGH |
Pixel Valve 2 | |
BCM2838_IRQ_PIXELVALVE2 = BCM2838_SPI_BASE + 101;
|
IRQ_TYPE_LEVEL_HIGH |
CSI0 (Camera Serial Interface) | |
BCM2838_IRQ_CSI0 = BCM2838_SPI_BASE + 102;
|
IRQ_TYPE_LEVEL_HIGH |
CSI1 (Camera Serial Interface) | |
BCM2838_IRQ_CSI1 = BCM2838_SPI_BASE + 103;
|
IRQ_TYPE_LEVEL_HIGH |
HDMI | |
BCM2838_IRQ_HDMI_0 = BCM2838_SPI_BASE + 104;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_HDMI_1 = BCM2838_SPI_BASE + 105;
|
IRQ_TYPE_LEVEL_HIGH |
Pixel Valve 3 | |
BCM2838_IRQ_PIXELVALVE3 = BCM2838_SPI_BASE + 106;
|
IRQ_TYPE_LEVEL_HIGH |
I2C / SPI Slave | |
BCM2838_IRQ_I2CSPI = BCM2838_SPI_BASE + 107;
|
IRQ_TYPE_LEVEL_HIGH |
DSI1 | |
BCM2838_IRQ_DSI1 = BCM2838_SPI_BASE + 108;
|
IRQ_TYPE_LEVEL_HIGH |
Pixel Valve 0 | |
BCM2838_IRQ_PIXELVALVE0 = BCM2838_SPI_BASE + 109;
|
IRQ_TYPE_LEVEL_HIGH |
Pixel Valve 1/4 | |
BCM2838_IRQ_PIXELVALVE1 = BCM2838_SPI_BASE + 110;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_PIXELVALVE4 = BCM2838_IRQ_PIXELVALVE1;
|
|
CPR | |
BCM2838_IRQ_CPR = BCM2838_SPI_BASE + 111;
|
IRQ_TYPE_LEVEL_HIGH |
SMI (Firmware KMS) | |
BCM2838_IRQ_SMI = BCM2838_SPI_BASE + 112;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_FIRMWAREKMS = BCM2838_IRQ_SMI;
|
|
GPIO | |
BCM2838_IRQ_GPIO_0 = BCM2838_SPI_BASE + 113;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_GPIO_1 = BCM2838_SPI_BASE + 114;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_GPIO_2 = BCM2838_SPI_BASE + 115;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_GPIO_3 = BCM2838_SPI_BASE + 116;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_GPIO_ALL = BCM2838_IRQ_GPIO_3;
|
|
BSC0 (I2C0) (Broadcom Serial Controller) | |
BCM2838_IRQ_BSC0 = BCM2838_SPI_BASE + 117;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_I2C0 = BCM2838_IRQ_BSC0;
|
|
BSC1 (I2C1) (Broadcom Serial Controller) | |
BCM2838_IRQ_BSC1 = BCM2838_SPI_BASE + 117;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_I2C1 = BCM2838_IRQ_BSC1;
|
|
BSC2 (I2C2) (Broadcom Serial Controller) | |
BCM2838_IRQ_BSC2 = BCM2838_SPI_BASE + 117;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_I2C2 = BCM2838_IRQ_BSC2;
|
|
I2C3 | |
BCM2838_IRQ_I2C3 = BCM2838_SPI_BASE + 117;
|
IRQ_TYPE_LEVEL_HIGH |
I2C4 | |
BCM2838_IRQ_I2C4 = BCM2838_SPI_BASE + 117;
|
IRQ_TYPE_LEVEL_HIGH |
I2C5 | |
BCM2838_IRQ_I2C5 = BCM2838_SPI_BASE + 117;
|
IRQ_TYPE_LEVEL_HIGH |
I2C6 | |
BCM2838_IRQ_I2C6 = BCM2838_SPI_BASE + 117;
|
IRQ_TYPE_LEVEL_HIGH |
I2C7 | |
BCM2838_IRQ_I2C7 = BCM2838_SPI_BASE + 117;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_I2C0_IRQS:array[0..7] of LongWord = (BCM2838_IRQ_I2C0, BCM2838_IRQ_I2C1, BCM2838_IRQ_I2C2, BCM2838_IRQ_I2C3, BCM2838_IRQ_I2C4, BCM2838_IRQ_I2C5, BCM2838_IRQ_I2C6, BCM2838_IRQ_I2C7);
| |
SPI0 | |
BCM2838_IRQ_SPI0 = BCM2838_SPI_BASE + 118;
|
IRQ_TYPE_LEVEL_HIGH |
SPI3 | |
BCM2838_IRQ_SPI3 = BCM2838_SPI_BASE + 118;
|
IRQ_TYPE_LEVEL_HIGH |
SPI4 | |
BCM2838_IRQ_SPI4 = BCM2838_SPI_BASE + 118;
|
IRQ_TYPE_LEVEL_HIGH |
SPI5 | |
BCM2838_IRQ_SPI5 = BCM2838_SPI_BASE + 118;
|
IRQ_TYPE_LEVEL_HIGH |
SPI6 | |
BCM2838_IRQ_SPI6 = BCM2838_SPI_BASE + 118;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_SPI0_IRQS:array[0..6] of LongWord = (BCM2838_IRQ_SPI0, 0, 0, BCM2838_IRQ_SPI3, BCM2838_IRQ_SPI4, BCM2838_IRQ_SPI5, BCM2838_IRQ_SPI6);
| |
I2S PCM sound | |
BCM2838_IRQ_I2SPCM = BCM2838_SPI_BASE + 119;
|
IRQ_TYPE_LEVEL_HIGH |
EMMC1 (SDHOST) | |
BCM2838_IRQ_EMMC1 = BCM2838_SPI_BASE + 120;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_SDHOST = BCM2838_IRQ_EMMC1;
|
|
UART0 (PL011) | |
BCM2838_IRQ_PL011 = BCM2838_SPI_BASE + 121;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_UART0 = BCM2838_IRQ_PL011;
|
|
UART2 (PL011) | |
BCM2838_IRQ_UART2 = BCM2838_SPI_BASE + 121;
|
IRQ_TYPE_LEVEL_HIGH |
UART3 (PL011) | |
BCM2838_IRQ_UART3 = BCM2838_SPI_BASE + 121;
|
IRQ_TYPE_LEVEL_HIGH |
UART4 (PL011) | |
BCM2838_IRQ_UART4 = BCM2838_SPI_BASE + 121;
|
IRQ_TYPE_LEVEL_HIGH |
UART5 (PL011) | |
BCM2838_IRQ_UART5 = BCM2838_SPI_BASE + 121;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_UART0_IRQS:array[0..5] of LongWord = (BCM2838_IRQ_UART0, 0, BCM2838_IRQ_UART2, BCM2838_IRQ_UART3, BCM2838_IRQ_UART4, BCM2838_IRQ_UART5);
| |
ETH_PCIe L2 | |
BCM2838_IRQ_ETH_PCIE = BCM2838_SPI_BASE + 122;
|
IRQ_TYPE_LEVEL_HIGH |
VEC | |
BCM2838_IRQ_VEC = BCM2838_SPI_BASE + 123;
|
IRQ_TYPE_LEVEL_HIGH |
CPG | |
BCM2838_IRQ_CPG = BCM2838_SPI_BASE + 124;
|
IRQ_TYPE_LEVEL_HIGH |
Random Number Generator | |
BCM2838_IRQ_RNG = BCM2838_SPI_BASE + 125;
|
IRQ_TYPE_LEVEL_HIGH |
EMMC0 (SDHCI) | |
BCM2838_IRQ_EMMC0 = BCM2838_SPI_BASE + 126;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_SDHCI = BCM2838_IRQ_EMMC0;
|
|
EMMC2 (SDHCI) | |
BCM2838_IRQ_EMMC2 = BCM2838_SPI_BASE + 126;
|
IRQ_TYPE_LEVEL_HIGH |
ETH_PCIe Secure | |
BCM2838_IRQ_ETH_PCIE_SEC = BCM2838_SPI_BASE + 127;
|
IRQ_TYPE_LEVEL_HIGH |
ETH_PCIe L2 IRQs (BCM2838_SPI_BASE + 128 to 184) | |
Thermal (AVS) | |
BCM2838_IRQ_THERMAL = BCM2838_SPI_BASE + 137;
|
IRQ_TYPE_LEVEL_HIGH |
PCIe | |
BCM2838_IRQ_PCIE_INTA = BCM2838_SPI_BASE + 143;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_PCIE_INTB = BCM2838_SPI_BASE + 144;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_PCIE_INTC = BCM2838_SPI_BASE + 145;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_PCIE_INTD = BCM2838_SPI_BASE + 146;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_PCIE_MSI = BCM2838_SPI_BASE + 148;
|
IRQ_TYPE_LEVEL_HIGH |
GENET | |
BCM2838_IRQ_GENET_0 = BCM2838_SPI_BASE + 157;
|
IRQ_TYPE_LEVEL_HIGH |
BCM2838_IRQ_GENET_1 = BCM2838_SPI_BASE + 158;
|
IRQ_TYPE_LEVEL_HIGH |
XHCI (Additional on chip generic XHCI USB host controller) | |
BCM2838_IRQ_XHCI = BCM2838_SPI_BASE + 176;
|
IRQ_TYPE_LEVEL_HIGH (This is separate to the VL805 XHCI controller) |
Number of shared IRQs | |
BCM2838_SHARED_IRQ_COUNT = 988;
|
SPI 32-1019 |
Number of private IRQs | |
BCM2838_PRIVATE_IRQ_COUNT = 16;
|
PPI 16-31 |
Number of software IRQs | |
BCM2838_SOFTWARE_IRQ_COUNT = 16;
|
SGI 0-15 |
Number of reserved IRQs | |
BCM2838_RESERVED_IRQ_COUNT = 4;
|
ID 1020-1023 |
Total number of IRQs available | |
BCM2838_IRQ_COUNT = BCM2838_SHARED_IRQ_COUNT + BCM2838_PRIVATE_IRQ_COUNT + BCM2838_SOFTWARE_IRQ_COUNT + BCM2838_RESERVED_IRQ_COUNT;
| |
Total number of FIQs available | |
BCM2838_FIQ_COUNT = BCM2838_IRQ_COUNT;
|
BCM2838_SYSTEM_TIMER_BCM2838_SYSTEM_TIMER_FREQUENCY*
BCM2838_SYSTEM_TIMER_FREQUENCY = 1000000;
|
Default clock frequency of the BCM2838 System Timer (1MHz) |
BCM2838_SYSTEM_TIMER_CS_*
See: Section 12 | |
BCM2838_SYSTEM_TIMER_CS_0 = (1 shl 0);
|
Already used by the VideoCore GPU (Do not use) |
BCM2838_SYSTEM_TIMER_CS_1 = (1 shl 1);
|
|
BCM2838_SYSTEM_TIMER_CS_2 = (1 shl 2);
|
Already used by the VideoCore GPU (Do not use) |
BCM2838_SYSTEM_TIMER_CS_3 = (1 shl 3);
|
BCM2838_DMA_CS_*
See: Section 4 | |
BCM2838_DMA_CS_ACTIVE = (1 shl 0);
|
Activate the DMA (This bit enables the DMA. The DMA will start if this bit is set and the CB_ADDR is non zero. The DMA transfer can be paused and resumed by clearing, then setting it again.) |
BCM2838_DMA_CS_END = (1 shl 1);
|
DMA End Flag (Set when the transfer described by the current control block is complete. Write 1 to clear.) |
BCM2838_DMA_CS_INT = (1 shl 2);
|
Interrupt Status (This is set when the transfer for the CB ends and INTEN is set to 1. Write 1 to clear.) |
BCM2838_DMA_CS_DREQ = (1 shl 3);
|
DREQ State (Indicates the state of the selected DREQ (Data Request) signal, ie. the DREQ selected by the PERMAP field of the transfer info.) |
BCM2838_DMA_CS_PAUSED = (1 shl 4);
|
DMA Paused State (Indicates if the DMA is currently paused and not transferring data) |
BCM2838_DMA_CS_DREQ_PAUSED = (1 shl 5);
|
DMA Paused by DREQ State (Indicates if the DMA is currently paused and not transferring data due to the DREQ being inactive) |
BCM2838_DMA_CS_WAITING_FOR_OUTSTANDING_WRITES = (1 shl 6);
|
DMA is Waiting for the Last Write to be Received (Indicates if the DMA is currently waiting for any outstanding writes to be received, and is not transferring data.) |
Bit 7 Reserved - Write as 0, read as don't care | |
BCM2838_DMA_CS_ERROR = (1 shl 8);
|
DMA Error (Indicates if the DMA has detected an error) |
BCM2838_DMA_CS_PRIORITY = ($F shl 16);
|
AXI Priority Level (Sets the priority of normal AXI bus transactions. Zero is the lowest priority.) |
BCM2838_DMA_CS_PANIC_PRIORITY = ($F shl 20);
|
AXI Panic Priority Level (Sets the priority of panicking AXI bus transactions) |
Bits 24:27 Reserved - Write as 0, read as don't care | |
BCM2838_DMA_CS_WAIT_FOR_OUTSTANDING_WRITES = (1 shl 28);
|
Wait for outstanding writes (When set to 1, the DMA will keep a tally of the AXI writes going out and the write responses coming in.) |
BCM2838_DMA_CS_DISDEBUG = (1 shl 29);
|
Disable debug pause signal (When set to 1, the DMA will not stop when the debug pause signal is asserted.) |
BCM2838_DMA_CS_ABORT = (1 shl 30);
|
Abort DMA (Writing a 1 to this bit will abort the current DMA CB. The DMA will load the next CB and attempt to continue. The bit cannot be read, and will self clear.) |
BCM2838_DMA_CS_RESET = (1 shl 31);
|
DMA Channel Reset (Writing a 1 to this bit will reset the DMA. The bit cannot be read, and will self clear.) |
BCM2838_DMA_CS_PRIORITY_SHIFT = 16;
|
|
BCM2838_DMA_CS_PANIC_PRIORITY_SHIFT = 20;
|
|
BCM2838_DMA_CS_PRIORITY_DEFAULT = 0;
|
|
BCM2838_DMA_CS_PRIORITY_MAX = 15;
|
BCM2838_DMA_TI_*
See: Section 4 | |
BCM2838_DMA_TI_INTEN = (1 shl 0);
|
Interrupt Enable (1 = Generate an interrupt when the transfer described by the current Control Block completes) |
BCM2838_DMA_TI_2DMODE = (1 shl 1);
|
2D Mode (1 = 2D mode interpret the TXFR_LEN register as YLENGTH number of transfers each of XLENGTH, and add the strides to the address after each transfer.) |
Bit 2 Reserved - Write as 0, read as don't care | |
BCM2838_DMA_TI_WAIT_RESP = (1 shl 3);
|
Wait for a Write Response (When set this makes the DMA wait until it receives the AXI write response for each write. This ensures that multiple writes cannot get stacked in the AXI bus pipeline.) |
BCM2838_DMA_TI_DEST_INC = (1 shl 4);
|
Destination Address Increment (1 = Destination address increments after each write. The address will increment by 4, if DEST_WIDTH=0 else by 32.) |
BCM2838_DMA_TI_DEST_WIDTH = (1 shl 5);
|
Destination Transfer Width (1 = Use 128-bit destination write width. 0 = Use 32-bit destination write width.) |
BCM2838_DMA_TI_DEST_DREQ = (1 shl 6);
|
Control Destination Writes with DREQ (1 = The DREQ selected by PERMAP will gate the destination writes) |
BCM2838_DMA_TI_DEST_IGNORE = (1 shl 7);
|
Ignore Writes (1 = Do not perform destination writes. 0 = Write data to destination.) |
BCM2838_DMA_TI_SRC_INC = (1 shl 8);
|
Source Address Increment (1 = Source address increments after each read. The address will increment by 4, if S_WIDTH=0 else by 32.) |
BCM2838_DMA_TI_SRC_WIDTH = (1 shl 9);
|
Source Transfer Width (1 = Use 128-bit source read width. 0 = Use 32-bit source read width.) |
BCM2838_DMA_TI_SRC_DREQ = (1 shl 10);
|
Control Source Reads with DREQ (1 = The DREQ selected by PERMAP will gate the source reads) |
BCM2838_DMA_TI_SRC_IGNORE = (1 shl 11);
|
Ignore Reads (1 = Do not perform source reads. In addition, destination writes will zero all the write strobes. This is used for fast cache fill operations.) |
BCM2838_DMA_TI_BURST_LENGTH = ($F shl 12);
|
Burst Transfer Length (Indicates the burst length of the DMA transfers) |
BCM2838_DMA_TI_PERMAP = ($1F shl 16);
|
Peripheral Mapping (Indicates the peripheral number (1-31) whose ready signal shall be used to control the rate of the transfers) |
BCM2838_DMA_TI_WAITS = ($3E shl 21);
|
Add Wait Cycles (This slows down the DMA throughput by setting the number of dummy cycles burnt after each DMA read or write operation is completed) |
BCM2838_DMA_TI_NO_WIDE_BURSTS = (1 shl 26);
|
Don't Do wide writes as a 2 beat burst (This prevents the DMA from issuing wide writes as 2 beat AXI bursts. This is an inefficient access mode, so the default is to use the bursts.) |
Bits 27:31 Reserved - Write as 0, read as don't care | |
Note: BCM2838_DMA_TI_2DMODE, BCM2838_DMA_TI_DEST_IGNORE, BCM2838_DMA_TI_SRC_IGNORE and BCM2838_DMA_TI_NO_WIDE_BURSTS not available on DMA Lite channels | |
BCM2838_DMA_TI_PERMAP_SHIFT = 16;
|
|
BCM2838_DMA_TI_BURST_LENGTH_SHIFT = 12;
|
|
BCM2838_DMA_TI_BURST_LENGTH_DEFAULT = 0;
|
|
BCM2838_DMA_TI_BURST_LENGTH_MAX = 15;
|
BCM2838_DMA_TXFR_LEN_*
See: Section 4 | |
BCM2838_DMA_TXFR_LEN_XLENGTH = ($FFFF shl 0);
|
Transfer Length in bytes |
BCM2838_DMA_TXFR_LEN_YLENGTH = ($3FFF shl 16);
|
When in 2D mode, This is the Y transfer length, indicating how many xlength transfers are performed. When in normal linear mode this becomes the top bits of the XLENGTH. |
Note: BCM2838_DMA_TXFR_LEN_YLENGTH not available on DMA Lite channels |
BCM2838_DMA_STRIDE_*
See: Section 4 | |
BCM2838_DMA_STRIDE_S_STRIDE = ($FFFF shl 0);
|
Destination Stride (2D Mode) (Signed (2 s complement) byte increment to apply to the destination address at the end of each row in 2D mode) |
BCM2838_DMA_STRIDE_D_STRIDE = ($FFFF shl 16);
|
Source Stride (2D Mode) (Signed (2 s complement) byte increment to apply to the source address at the end of each row in 2D mode) |
Note: BCM2838_DMA_STRIDE_S_STRIDE and BCM2838_DMA_STRIDE_D_STRIDE not available on DMA Lite channels |
BCM2838_DMA_DEBUG_*
See: Section 4 | |
BCM2838_DMA_DEBUG_READ_LAST_NOT_SET_ERROR = (1 shl 0);
|
Read Last Not Set Error |
BCM2838_DMA_DEBUG_FIFO_ERROR = (1 shl 1);
|
Fifo Error |
BCM2838_DMA_DEBUG_READ_ERROR = (1 shl 2);
|
Slave Read Response Error |
Bit 3 Reserved - Write as 0, read as don't care | |
BCM2838_DMA_DEBUG_OUTSTANDING_WRITES = ($F shl 4);
|
DMA Outstanding Writes Counter |
BCM2838_DMA_DEBUG_DMA_ID = ($FF shl 8);
|
DMA ID |
BCM2838_DMA_DEBUG_DMA_STATE = ($1FF shl 16);
|
DMA State Machine State |
BCM2838_DMA_DEBUG_VERSION = (7 shl 25);
|
DMA Version |
BCM2838_DMA_DEBUG_LITE = (1 shl 28);
|
DMA Lite |
Bits 29:31 Reserved - Write as 0, read as don't care |
BCM2838_DMA4_CS_*
See: Section 4 | |
BCM2838_DMA4_CS_ACTIVE = (1 shl 0);
|
Activate the DMA4 (This bit enables the DMA4 to start transferring data) |
BCM2838_DMA4_CS_END = (1 shl 1);
|
End Flag (Set when the transfer described by the current Control Block is complete) |
BCM2838_DMA4_CS_INT = (1 shl 2);
|
Interrupt Status (If interrupts are enabled (INTEN is set to 1) the interrupt is set when the transfer for the current CB is completed) |
BCM2838_DMA4_CS_DREQ = (1 shl 3);
|
DREQ State (Indicates the state of the selected DREQ (Data Request) signal) |
BCM2838_DMA4_CS_RD_PAUSED = (1 shl 4);
|
DMA read Paused State (Indicates that the DMA4 is currently paused and not reading data) |
BCM2838_DMA4_CS_WR_PAUSED = (1 shl 5);
|
DMA Write Paused State (Indicates that the DMA4 is currently paused and not writing data) |
BCM2838_DMA4_CS_DREQ_STOPS_DMA = (1 shl 6);
|
DMA Paused by DREQ State (This indicates that the DMA4 is currently paused and not transferring data due to the selected DREQ being inactive) |
BCM2838_DMA4_CS_WAITING_FOR_OUTSTANDING_WRITES = (1 shl 7);
|
The DMA4 is Waiting for all the Write Response to be returned |
Bits 8:9 Reserved | |
BCM2838_DMA4_CS_ERROR = (1 shl 10);
|
DMA Error (Indicates if the DMA4 has detected an error) |
Bits 11:15 Reserved | |
BCM2838_DMA4_CS_QOS_MASK = ($F shl 16);
|
AXI QOS Level (Sets the QOS level of normal AXI bus transactions) |
BCM2838_DMA4_CS_QOS_DEFAULT = (0 shl 16);
|
|
BCM2838_DMA4_CS_PANIC_QOS_MASK = ($F shl 20);
|
AXI Panic QOS Level (Sets the QOS level of AXI bus transactions when the DMA4 is panicking) |
BCM2838_DMA4_CS_PANIC_QOS_DEFAULT = (0 shl 20);
|
|
BCM2838_DMA4_CS_DMA_BUSY = (1 shl 24);
|
Indicates the DMA4 is BUSY (This indicates that the DMA4 is operating or waiting for outstanding data or otherwise in use) |
BCM2838_DMA4_CS_OUTSTANDING_TRANSACTIONS = (1 shl 25);
|
Indicates that there are outstanding AXI transfers, either outstanding read data or outstanding write responses. |
Bits 26:27 Reserved | |
BCM2838_DMA4_CS_WAIT_FOR_OUTSTANDING_WRITES = (1 shl 28);
|
Wait for outstanding writes (The DMA4 keeps a tally of the AXI writes requests going out and the write responses coming in) |
BCM2838_DMA4_CS_DISDEBUG = (1 shl 29);
|
Disable Debug Pause Signal (When set to 1, the DMA4 will not pause when the debug pause signal is asserted.) |
BCM2838_DMA4_CS_ABORT = (1 shl 30);
|
Abort DMA (Writing a 1 to this bit will cleanly abort the current DMA transfer. The abort will cause the DMA4 to zero its length counters and thus it will complete the current transfer and wait until all outstanding bus activity has finished) |
BCM2838_DMA4_CS_HALT = (1 shl 31);
|
Halt DMA (Writing a 1 to this bit will cleanly halt the current DMA transfer. The halt will cause the DMA4 to zero its length counters and thus it will complete the current transfer and wait until all outstanding bus activity has finished.) |
BCM2838_DMA4_CB_*
See: Section 4 | |
BCM2838_DMA4_CB_ADDR_MASK = $0000001FFFFFFFE0;
|
|
BCM2838_DMA4_CB_ADDR_SHIFT = 5;
|
Write Address shr 5 to the register |
BCM2838_DMA4_DEBUG_*
See: Section 4 | |
BCM2838_DMA4_DEBUG_WRITE_ERROR = (1 shl 0);
|
Slave Write Response Error |
BCM2838_DMA4_DEBUG_FIFO_ERROR = (1 shl 1);
|
FIFO Error |
BCM2838_DMA4_DEBUG_READ_ERROR = (1 shl 2);
|
Slave Read Response Error |
BCM2838_DMA4_DEBUG_READ_CB_ERROR = (1 shl 3);
|
Slave Read Response Error During Control Block Read |
Bits 4:7 Reserved | |
BCM2838_DMA4_DEBUG_INT_ON_ERROR = (1 shl 8);
|
Generate an interrupt if an error is detected |
BCM2838_DMA4_DEBUG_HALT_ON_ERROR = (1 shl 9);
|
Instruct the DMA4 to HALT if it detects an error |
BCM2838_DMA4_DEBUG_ABORT_ON_ERROR = (1 shl 10);
|
Instruct the DMA4 to ABORT if it detects an error |
BCM2838_DMA4_DEBUG_DISABLE_CLK_GATE = (1 shl 11);
|
Disable the clock gating logic |
Bits 12:13 Reserved | |
BCM2838_DMA4_DEBUG_R_STATE_MASK = ($F shl 14);
|
Read State Machine State (Returns the value of the DMA4 engines read state machine) |
BCM2838_DMA4_DEBUG_R_IDLE = (0 shl 14);
|
|
BCM2838_DMA4_DEBUG_R_WAIT_CB_DATA = (1 shl 14);
|
|
BCM2838_DMA4_DEBUG_R_CALC = (2 shl 14);
|
|
BCM2838_DMA4_DEBUG_R_READ4K = (3 shl 14);
|
|
BCM2838_DMA4_DEBUG_R_READING = (4 shl 14);
|
|
BCM2838_DMA4_DEBUG_R_READFIFO_FULL = (5 shl 14);
|
|
BCM2838_DMA4_DEBUG_R_WAIT_WRITE_COMPLETE = (6 shl 14);
|
|
BCM2838_DMA4_DEBUG_W_STATE_MASK = ($F shl 18);
|
Write State Machine State (Returns the value of the DMA4 engines write state machine) |
BCM2838_DMA4_DEBUG_W_IDLE = (0 shl 18);
|
|
BCM2838_DMA4_DEBUG_W_PRELOAD = (1 shl 18);
|
|
BCM2838_DMA4_DEBUG_W_CALC = (2 shl 18);
|
|
BCM2838_DMA4_DEBUG_W_WRITE4K = (3 shl 18);
|
|
BCM2838_DMA4_DEBUG_W_READFIFO_EMPTY = (4 shl 18);
|
|
BCM2838_DMA4_DEBUG_W_WAIT_OUTSTANDING = (5 shl 18);
|
|
Bit 22 Reserved | |
BCM2838_DMA4_DEBUG_RESET = (1 shl 23);
|
DMA Reset (This is a hard reset of the DMA4 state machine and certain internal registers) |
BCM2838_DMA4_DEBUG_ID_MASK = ($F shl 24);
|
ID (Returns the ID of this DMA4. This is also used as the AXI subid.) |
BCM2838_DMA4_DEBUG_VERSION_MASK = ($F shl 28);
|
DMA Version (DMA version number, indicating control bit field changes.) |
BCM2838_DMA4_TI_*
See: Section 4 | |
BCM2838_DMA4_TI_INTEN = (1 shl 0);
|
Interrupt Enable |
BCM2838_DMA4_TI_TDMODE = (1 shl 1);
|
2D Mode (Perform a 2D transfer instead of a normal linear transfer. In 2D mode the DMA4 will interpret the length field as an X and a Y length. It will execute Y+1 transfers each of length X.) |
BCM2838_DMA4_TI_WAIT_RESP = (1 shl 2);
|
Wait for a Write Response (When set this makes the DMA4 wait until it receives the AXI write response for each write) |
BCM2838_DMA4_TI_WAIT_RD_RESP = (1 shl 3);
|
Wait for a Read Response (When set this makes the DMA4 wait until it receives all the data from each read) |
Bits 4:8 Reserved | |
BCM2838_DMA4_TI_PERMAP_MASK = ($1F shl 9);
|
Peripheral Mapping (Indicates the DREQ of selected peripheral (1-31)) |
BCM2838_DMA4_TI_PERMAP_SHIFT = 9;
|
|
BCM2838_DMA4_TI_S_DREQ = (1 shl 14);
|
Control Source Reads with DREQ (This is used when reading from a peripheral that has a DREQ flow control available) |
BCM2838_DMA4_TI_D_DREQ = (1 shl 15);
|
Control Destination Writes with DREQ (This is used when writing to a peripheral that has a DREQ flow control available to control the data flow) |
BCM2838_DMA4_TI_S_WAITS_MASK = ($FF shl 16);
|
Read Wait Cycles (This slows down the DMA throughput by setting the number of dummy cycles burnt before each DMA AXI read operation is started) |
BCM2838_DMA4_TI_S_WAITS_DEFAULT = (0 shl 16);
|
|
BCM2838_DMA4_TI_D_WAITS_MASK = ($FF shl 24);
|
Write Wait Cycles (This slows down the DMA throughput by setting the number of dummy cycles before each AXI Write operation is started) |
BCM2838_DMA4_TI_D_WAITS_DEFAULT = (0 shl 24);
|
BCM2838_DMA4_SRC_ADDR_*
See: Section 4 | |
BCM2838_DMA4_SRC_ADDR_MASK = $00000000FFFFFFFF;
|
BCM2838_DMA4_SRCI_*
See: Section 4 | |
BCM2838_DMA4_SRCI_ADDR_MASK = ($FF shl 0);
|
High Bits of the Source Address [40:32] |
BCM2838_DMA4_SRCI_BURST_LENGTH_MASK = ($F shl 8);
|
Burst Transfer Length |
BCM2838_DMA4_SRCI_BURST_LENGTH_SHIFT = 8;
|
|
BCM2838_DMA4_SRCI_BURST_LENGTH_DEFAULT = (0 shl 8);
|
|
BCM2838_DMA4_SRCI_BURST_LENGTH_MAX = (15 shl 8);
|
|
BCM2838_DMA4_SRCI_INC = (1 shl 12);
|
Increment the Source Address |
BCM2838_DMA4_SRCI_SIZE_MASK = (3 shl 13);
|
Source Transfer Width (The DMA4 will perform all AXI source reads with this AXI transfer width) |
BCM2838_DMA4_SRCI_SIZE_256 = (3 shl 13);
|
Note: On the BCM2711 the width cannot be set larger than 128 |
BCM2838_DMA4_SRCI_SIZE_128 = (2 shl 13);
|
|
BCM2838_DMA4_SRCI_SIZE_64 = (1 shl 13);
|
|
BCM2838_DMA4_SRCI_SIZE_32 = (0 shl 13);
|
|
BCM2838_DMA4_SRCI_IGNORE = (1 shl 15);
|
Ignore Reads (The DMA4 will perform a normal transfer except that it will not produce any reads. The DMA4 will write zero data.) |
BCM2838_DMA4_SRCI_STRIDE = ($FFFF shl 16);
|
Source Stride (This is only used in 2D transfer mode (TDMODE)) |
BCM2838_DMA4_DEST_ADDR_*
See: Section 4 | |
BCM2838_DMA4_DEST_ADDR_MASK = $00000000FFFFFFFF;
|
BCM2838_DMA4_DESTI_*
See: Section 4 | |
BCM2838_DMA4_DESTI_ADDR_MASK = ($FF shl 0);
|
High Bits of the Destination Address [40:32] |
BCM2838_DMA4_DESTI_BURST_LENGTH_MASK = ($F shl 8);
|
Burst Transfer Length |
BCM2838_DMA4_DESTI_BURST_LENGTH_SHIFT = 8;
|
|
BCM2838_DMA4_DESTI_BURST_LENGTH_DEFAULT = (0 shl 8);
|
|
BCM2838_DMA4_DESTI_BURST_LENGTH_MAX = (15 shl 8);
|
|
BCM2838_DMA4_DESTI_INC = (1 shl 12);
|
Destination Address Increment |
BCM2838_DMA4_DESTI_SIZE_MASK = (3 shl 13);
|
Destination Transfer Width (The DMA4 will perform all AXI destination writes with this AXI transfer width) |
BCM2838_DMA4_DESTI_SIZE_256 = (3 shl 13);
|
Note: On the BCM2711 the width cannot be set larger than 128 |
BCM2838_DMA4_DESTI_SIZE_128 = (2 shl 13);
|
|
BCM2838_DMA4_DESTI_SIZE_64 = (1 shl 13);
|
|
BCM2838_DMA4_DESTI_SIZE_32 = (0 shl 13);
|
|
BCM2838_DMA4_DESTI_IGNORE = (1 shl 15);
|
Ignore Destination Writes |
BCM2838_DMA4_DESTI_STRIDE = ($FFFF shl 16);
|
Destination Stride (This is only used in 2D transfer mode (TDMODE)) |
BCM2838_DMA4_LEN_*
See: Section 4 | |
BCM2838_DMA4_LEN_XLENGTH_MASK = ($FFFF shl 0);
|
Transfer Length in bytes |
BCM2838_DMA4_LEN_YLENGTH_MASK = ($3FFF shl 16);
|
When in 2D mode, This is the Y transfer length, indicating how many xlength transfers are performed. When in normal linear mode this becomes the top bits of the XLENGTH. |
Bits 30:31 Reserved |
BCM2838_DMA4_NEXT_CB_ *
See: Section 4 | |
BCM2838_DMA4_NEXT_CB_ADDR_MASK = $0000001FFFFFFFE0;
|
|
BCM2838_DMA4_NEXT_CB_ADDR_SHIFT = 5;
|
Write Address shr 5 to the register |
BCM2838_DMA4_DEBUG2_*
See: Section 4 | |
BCM2838_DMA4_DEBUG2_OUTSTANDING_WRITES_MASK = ($1FF shl 0);
|
Outstanding Write Response Count |
Bits 9:15 Reserved | |
BCM2838_DMA4_DEBUG2_OUTSTANDING_READS_MASK = ($1FF shl 16);
|
Outstanding read Words Count |
Bits 25:31 Reserved |
BCM2838_DMA_INT_*
See: Section 4 | |
BCM2838_DMA_INT_STATUS_0 = (1 shl 0);
|
|
BCM2838_DMA_INT_STATUS_1 = (1 shl 1);
|
|
BCM2838_DMA_INT_STATUS_2 = (1 shl 2);
|
|
BCM2838_DMA_INT_STATUS_3 = (1 shl 3);
|
|
BCM2838_DMA_INT_STATUS_4 = (1 shl 4);
|
|
BCM2838_DMA_INT_STATUS_5 = (1 shl 5);
|
|
BCM2838_DMA_INT_STATUS_6 = (1 shl 6);
|
|
BCM2838_DMA_INT_STATUS_7 = (1 shl 7);
|
|
BCM2838_DMA_INT_STATUS_8 = (1 shl 8);
|
|
BCM2838_DMA_INT_STATUS_9 = (1 shl 9);
|
|
BCM2838_DMA_INT_STATUS_10 = (1 shl 10);
|
|
BCM2838_DMA_INT_STATUS_11 = (1 shl 11);
|
|
BCM2838_DMA_INT_STATUS_12 = (1 shl 12);
|
|
BCM2838_DMA_INT_STATUS_13 = (1 shl 13);
|
|
BCM2838_DMA_INT_STATUS_14 = (1 shl 14);
|
|
BCM2838_DMA_INT_STATUS_15 = (1 shl 15);
|
|
Bits 16:31 Reserved |
BCM2838_DMA_ENABLE_*
See: Section 4 | |
BCM2838_DMA_ENABLE_0 = (1 shl 0);
|
|
BCM2838_DMA_ENABLE_1 = (1 shl 1);
|
|
BCM2838_DMA_ENABLE_2 = (1 shl 2);
|
|
BCM2838_DMA_ENABLE_3 = (1 shl 3);
|
|
BCM2838_DMA_ENABLE_4 = (1 shl 4);
|
|
BCM2838_DMA_ENABLE_5 = (1 shl 5);
|
|
BCM2838_DMA_ENABLE_6 = (1 shl 6);
|
|
BCM2838_DMA_ENABLE_7 = (1 shl 7);
|
|
BCM2838_DMA_ENABLE_8 = (1 shl 8);
|
|
BCM2838_DMA_ENABLE_9 = (1 shl 9);
|
|
BCM2838_DMA_ENABLE_10 = (1 shl 10);
|
|
BCM2838_DMA_ENABLE_11 = (1 shl 11);
|
|
BCM2838_DMA_ENABLE_12 = (1 shl 12);
|
|
BCM2838_DMA_ENABLE_13 = (1 shl 13);
|
|
BCM2838_DMA_ENABLE_14 = (1 shl 14);
|
|
Bits 15:23 Reserved | |
BCM2838_DMA_PAGE_MASK = ($F shl 24);
|
Set the 1G SDRAM ram page that the 30-bit DMA engines (DMA0-6) will access when addressing the 1G uncached range C000_0000->ffff_ffff |
BCM2838_DMA_PAGE_DEFAULT = (0 shl 24);
|
addr[29:0] ) |
BCM2838_DMA_PAGELITE_MASK = ($F shl 28);
|
Set the 1G SDRAM ram page that the DMA Lite engines (DMA7-10) will access when addressing the 1G uncached range C000_0000->ffff_ffff |
BCM2838_DMA_PAGELITE_DEFAULT = (0 shl 28);
|
addr[29:0] ) |
BCM2838_DMA_DREQ_*
See: Section 4 | |
BCM2838_DMA_DREQ_NONE = 0;
|
|
BCM2838_DMA_DREQ_DSI0 = 1;
|
|
BCM2838_DMA_DREQ_PWM1 = 1;
|
The alternate DREQs are available by changing the DMA_CNTRL_MUX bits in the PACTL_CS register |
BCM2838_DMA_DREQ_PCMTX = 2;
|
|
BCM2838_DMA_DREQ_PCMRX = 3;
|
|
BCM2838_DMA_DREQ_SMI = 4;
|
|
BCM2838_DMA_DREQ_PWM0 = 5;
|
|
BCM2838_DMA_DREQ_SPI0TX = 6;
|
|
BCM2838_DMA_DREQ_SPI0RX = 7;
|
|
BCM2838_DMA_DREQ_BSCSPITX = 8;
|
BSC/SPI Slave |
BCM2838_DMA_DREQ_BSCSPIRX = 9;
|
BSC/SPI Slave |
BCM2838_DMA_DREQ_HDMI0 = 10;
|
|
BCM2838_DMA_DREQ_EMMC0 = 11;
|
SDHCI |
BCM2838_DMA_DREQ_UART0TX = 12;
|
|
BCM2838_DMA_DREQ_EMMC1 = 13;
|
SDHOST |
BCM2838_DMA_DREQ_UART0RX = 14;
|
|
BCM2838_DMA_DREQ_DSI1 = 15;
|
|
BCM2838_DMA_DREQ_SPI1TX = 16;
|
|
BCM2838_DMA_DREQ_HDMI1 = 17;
|
|
BCM2838_DMA_DREQ_SPI1RX = 18;
|
|
BCM2838_DMA_DREQ_UART3TX = 19;
|
|
BCM2838_DMA_DREQ_SPI4TX = 19;
|
The alternate DREQs are available by changing the DMA_CNTRL_MUX bits in the PACTL_CS register |
BCM2838_DMA_DREQ_UART3RX = 20;
|
|
BCM2838_DMA_DREQ_SPI4RX = 20;
|
The alternate DREQs are available by changing the DMA_CNTRL_MUX bits in the PACTL_CS register |
BCM2838_DMA_DREQ_UART5TX = 21;
|
|
BCM2838_DMA_DREQ_SPI5TX = 21;
|
The alternate DREQs are available by changing the DMA_CNTRL_MUX bits in the PACTL_CS register |
BCM2838_DMA_DREQ_UART5RX = 22;
|
|
BCM2838_DMA_DREQ_SPI5RX = 22;
|
The alternate DREQs are available by changing the DMA_CNTRL_MUX bits in the PACTL_CS register |
BCM2838_DMA_DREQ_SPI6TX = 23;
|
|
BCM2838_DMA_DREQ_SCALER_FIFO0 = 24;
|
Scaler FIFO 0 & SMI (The SMI element can be disabled by setting the SMI_DISABLE bit in the DMA_DREQ_CONTROL register) |
BCM2838_DMA_DREQ_SCALER_FIFO1 = 25;
|
Scaler FIFO 0 & SMI (The SMI element can be disabled by setting the SMI_DISABLE bit in the DMA_DREQ_CONTROL register) |
BCM2838_DMA_DREQ_SCALER_FIFO2 = 26;
|
Scaler FIFO 0 & SMI (The SMI element can be disabled by setting the SMI_DISABLE bit in the DMA_DREQ_CONTROL register) |
BCM2838_DMA_DREQ_SPI6RX = 27;
|
|
BCM2838_DMA_DREQ_UART2TX = 28;
|
|
BCM2838_DMA_DREQ_UART2RX = 29;
|
|
BCM2838_DMA_DREQ_UART4TX = 30;
|
|
BCM2838_DMA_DREQ_UART4RX = 31;
|
BCM2838_BSC_C_*
See: Section 3.2 | |
BCM2838_BSC_C_I2CEN = (1 shl 15);
|
I2C Enable (0 = BSC controller is disabled / 1 = BSC controller is enabled) |
BCM2838_BSC_C_INTR = (1 shl 10);
|
INTR Interrupt on RX (0 = Don t generate interrupts on RXR condition / 1 = Generate interrupt while RXR = 1) |
BCM2838_BSC_C_INTT = (1 shl 9);
|
INTT Interrupt on TX (0 = Don t generate interrupts on TXW condition / 1 = Generate interrupt while TXW = 1) |
BCM2838_BSC_C_INTD = (1 shl 8);
|
INTD Interrupt on DONE (0 = Don t generate interrupts on DONE condition / 1 = Generate interrupt while DONE = 1) |
BCM2838_BSC_C_ST = (1 shl 7);
|
ST Start Transfer (0 = No action / 1 = Start a new transfer. One shot operation. Read back as 0) |
BCM2838_BSC_C_CLEAR = (1 shl 5);
|
CLEAR FIFO Clear (00 = No action / x1 = Clear FIFO. One shot operation / 1x = Clear FIFO. One shot operation) |
BCM2838_BSC_C_READ = (1 shl 0);
|
READ Read Transfer (0 = Write Packet Transfer / 1 = Read Packet Transfer) |
BCM2838_BSC_S_*
See: Section 3.2 | |
BCM2838_BSC_S_CLKT = (1 shl 9);
|
CLKT Clock Stretch Timeout (0 = No errors detected. 1 = Slave has held the SCL signal low (clock stretching) for longer and that specified in the I2CCLKT register Cleared by writing 1 to the field.) |
BCM2838_BSC_S_ERR = (1 shl 8);
|
ERR ACK Error (0 = No errors detected. 1 = Slave has not acknowledged its address. Cleared by writing 1 to the field.) |
BCM2838_BSC_S_RXF = (1 shl 7);
|
RXF - FIFO Full (0 = FIFO is not full. 1 = FIFO is full. If a read is underway, no further serial data will be received until data is read from FIFO.) |
BCM2838_BSC_S_TXE = (1 shl 6);
|
TXE - FIFO Empty (0 = FIFO is not empty. 1 = FIFO is empty. If a write is underway, no further serial data can be transmitted until data is written to the FIFO.) |
BCM2838_BSC_S_RXD = (1 shl 5);
|
RXD - FIFO contains Data (0 = FIFO is empty. 1 = FIFO contains at least 1 byte. Cleared by reading sufficient data from FIFO.) |
BCM2838_BSC_S_TXD = (1 shl 4);
|
TXD - FIFO can accept Data (0 = FIFO is full. The FIFO cannot accept more data. 1 = FIFO has space for at least 1 byte.) |
BCM2838_BSC_S_RXR = (1 shl 3);
|
RXR - FIFO needs Reading (full) (0 = FIFO is less than full and a read is underway. 1 = FIFO is or more full and a read is underway. Cleared by reading sufficient data from the FIFO.) |
BCM2838_BSC_S_TXW = (1 shl 2);
|
TXW - FIFO needs Writing (full) (0 = FIFO is at least full and a write is underway (or sufficient data to send). 1 = FIFO is less then full and a write is underway. Cleared by writing sufficient data to the FIFO.) |
BCM2838_BSC_S_DONE = (1 shl 1);
|
DONE Transfer Done (0 = Transfer not completed. 1 = Transfer complete. Cleared by writing 1 to the field.) |
BCM2838_BSC_S_TA = (1 shl 0);
|
TA Transfer Active (0 = Transfer not active. 1 = Transfer active.) |
BCM2838_BSC_DLEN_*
See: Section 3.2 | |
BCM2838_BSC_DLEN_MASK = $FFFF;
|
Data Length. (Writing to DLEN specifies the number of bytes to be transmitted/received. Reading from DLEN when TA = 1 or DONE = 1, returns the number of bytes still to be transmitted or received.) |
BCM2838_BSC_A_*
See: Section 3.2 | |
BCM2838_BSC_A_MASK = $7F;
|
Slave Address |
BCM2838_BSC_FIFO_*
See: Section 3.2 | |
BCM2838_BSC_FIFO_MASK = $FF;
|
Writes to the register write transmit data to the FIFO. Reads from register reads received data from the FIFO. |
BCM2838_BSC_FIFO_SIZE = 16;
|
BCM2838_BSC_CDIV_*
See: Section 3.2 | |
BCM2838_BSC_CDIV_MASK = $FFFF;
|
Clock Divider (SCL = core clock / CDIV) (CDIV is always rounded down to an even number) |
BCM2838_BSC_DEL_*
See: Section 3.2 | |
BCM2838_BSC_DEL_FEDL_MASK = ($FFFF shl 16);
|
FEDL Falling Edge Delay (Number of core clock cycles to wait after the falling edge of SCL before outputting next bit of data) |
BCM2838_BSC_DEL_REDL_MASK = ($FFFF shl 0);
|
REDL Rising Edge Delay (Number of core clock cycles to wait after the rising edge of SCL before reading the next bit of data) |
BCM2838_BSC_DEL_FEDL_SHIFT = 16;
|
|
BCM2838_BSC_DEL_REDL_SHIFT = 0;
|
BCM2838_BSC_CLKT_TOUT_*
See: Section 3.2 | |
BCM2838_BSC_CLKT_TOUT_MASK = $FFFF;
|
TOUT Clock Stretch Timeout Value (Number of SCL clock cycles to wait after the rising edge of SCL before deciding that the slave is not responding) |
BCM2838_SPI0_*
See: Section 10.5 | |
BCM2838_SPI0_CS_LEN_LONG = (1 shl 25);
|
Enable Long data word in Lossi mode if DMA_LEN is set (0 = writing to the FIFO will write a single byte / 1 = writing to the FIFO will write a 32 bit word) |
BCM2838_SPI0_CS_DMA_LEN = (1 shl 24);
|
Enable DMA mode in Lossi mode |
BCM2838_SPI0_CS_CSPOL2 = (1 shl 23);
|
Chip Select 2 Polarity (0 = Chip select is active low / 1 = Chip select is active high) |
BCM2838_SPI0_CS_CSPOL1 = (1 shl 22);
|
Chip Select 1 Polarity (0 = Chip select is active low / 1 = Chip select is active high) |
BCM2838_SPI0_CS_CSPOL0 = (1 shl 21);
|
Chip Select 0 Polarity (0 = Chip select is active low / 1 = Chip select is active high) |
BCM2838_SPI0_CS_RXF = (1 shl 20);
|
RXF - RX FIFO Full (0 = RXFIFO is not full / 1 = RX FIFO is full. No further serial data will be sent/received until data is read from FIFO.) |
BCM2838_SPI0_CS_RXR = (1 shl 19);
|
RXR RX FIFO needs Reading (full) (0 = RX FIFO is less than full (or not active TA = 0) / 1 = RX FIFO is or more full. Cleared by reading sufficient data from the RX FIFO or setting TA to 0.) |
BCM2838_SPI0_CS_TXD = (1 shl 18);
|
TXD TX FIFO can accept Data (0 = TX FIFO is full and so cannot accept more data / 1 = TX FIFO has space for at least 1 byte) |
BCM2838_SPI0_CS_RXD = (1 shl 17);
|
RXD RX FIFO contains Data (0 = RX FIFO is empty / 1 = RX FIFO contains at least 1 byte) |
BCM2838_SPI0_CS_DONE = (1 shl 16);
|
DONE Transfer Done (0 = Transfer is in progress (or not active TA = 0) / 1 = Transfer is complete. Cleared by writing more data to the TX FIFO or setting TA to 0.) |
BCM2838_SPI0_CS_TE_EN = (1 shl 15);
|
Unused |
BCM2838_SPI0_CS_LMONO = (1 shl 14);
|
Unused |
BCM2838_SPI0_CS_LEN = (1 shl 13);
|
LEN LoSSI enable (0 = The serial interface will behave as an SPI master / 1 = The serial interface will behave as a LoSSI master) |
BCM2838_SPI0_CS_REN = (1 shl 12);
|
REN Read Enable. If this bit is set, the SPI peripheral will be able to send data to this device (0 = We intend to write to the SPI peripheral / 1 = We intend to read from the SPI peripheral) |
BCM2838_SPI0_CS_ADCS = (1 shl 11);
|
ADCS Automatically Deassert Chip Select (0 = Don t automatically deassert chip select at the end of a DMA transfer chip select is manually controlled by software / 1 = Automatically deassert chip select at the end of a DMA transfer as determined by SPIDLEN) |
BCM2838_SPI0_CS_INTR = (1 shl 10);
|
INTR Interrupt on RXR (0 = Don t generate interrupts on RX FIFO condition / 1 = Generate interrupt while RXR = 1) |
BCM2838_SPI0_CS_INTD = (1 shl 9);
|
INTD Interrupt on Done (0 = Don t generate interrupt on transfer complete / 1 = Generate interrupt when DONE = 1) |
BCM2838_SPI0_CS_DMAEN = (1 shl 8);
|
DMAEN DMA Enable (0 = No DMA requests will be issued / 1 = Enable DMA operation. Peripheral generates data requests. These will be taken in four-byte words until the SPIDLEN has been reached. |
BCM2838_SPI0_CS_TA = (1 shl 7);
|
Transfer Active (0 = Transfer not active / 1 = Transfer active) |
BCM2838_SPI0_CS_CSPOL = (1 shl 6);
|
Chip Select Polarity (0 = Chip select lines are active low / 1 = Chip select lines are active high |
BCM2838_SPI0_CS_CLEAR_RX = (1 shl 5);
|
CLEAR FIFO Clear (00 = No action / x1 = Clear TX FIFO. One shot operation / 1x = Clear RX FIFO. One shot operation.) |
BCM2838_SPI0_CS_CLEAR_TX = (1 shl 4);
|
As above |
BCM2838_SPI0_CS_CPOL = (1 shl 3);
|
Clock Polarity (0 = Rest state of clock = low / 1 = Rest state of clock = high) |
BCM2838_SPI0_CS_CPHA = (1 shl 2);
|
Clock Phase (0 = First SCLK transition at middle of data bit / 1 = First SCLK transition at beginning of data bit) |
BCM2838_SPI0_CS_CS_0 = (0 shl 0);
|
Chip Select (00 = Chip select 0 / 01 = Chip select 1 / 10 = Chip select 2 / 11 = Reserved |
BCM2838_SPI0_CS_CS_1 = (1 shl 0);
|
As above |
BCM2838_SPI0_CS_CS_2 = (2 shl 0);
|
As above |
BCM2838_SPI0_CS_CS_MASK = (3 shl 0);
|
|
BCM2838_SPI0_FIFO_DMA_DATA = $FFFFFFFF;
|
DMA Mode (DMAEN set) If TA is clear, the first 32-bit write to this register will control SPIDLEN and SPICS. Subsequent reads and writes will be taken as four-byte data words to be read/written to the FIFOs. |
BCM2838_SPI0_FIFO_IRQ_DATA = $000000FF;
|
Poll/Interrupt Mode (DMAEN clear, TA set) Writes to the register write bytes to TX FIFO. Reads from register read bytes from the RX FIFO. |
BCM2838_SPI0_CLK_CDIV = $0000FFFF;
|
Clock Divider (SCLK = Core Clock / CDIV) If CDIV is set to 0, the divisor is 65536. The divisor must be a multiple of 2. Odd numbers rounded down. The maximum SPI clock rate is of the APB clock. |
BCM2838_SPI0_DLEN_LEN = $0000FFFF;
|
Data Length. The number of bytes to transfer. This field is only valid for DMA mode (DMAEN set) and controls how many bytes to transmit (and therefore receive). |
BCM2838_SPI0_LTOH_TOH = $0000000F;
|
This sets the Output Hold delay in APB clocks (A value of 0 causes a 1 clock delay) |
BCM2838_SPI0_DC_RPANIC = ($FF shl 24);
|
DMA Read Panic Threshold (Generate the Panic signal to the RX DMA engine whenever the RX FIFO level is greater than this amount) |
BCM2838_SPI0_DC_RDREQ = ($FF shl 16);
|
DMA Read Request Threshold (Generate A DREQ to the RX DMA engine whenever the RX FIFO level is greater than this amount) (RX DREQ is also generated if thetransfer has finished but the RXFIFO isn't empty) |
BCM2838_SPI0_DC_TPANIC = ($FF shl 8);
|
DMA Write Panic Threshold (Generate the Panic signal to the TX DMA engine whenever the TX FIFO level is less than or equal to this amount) |
BCM2838_SPI0_DC_TDREQ = ($FF shl 0);
|
DMA Write Request Threshold (Generate a DREQ signal to the TX DMA engine whenever the TX FIFO level is less than or equal to this amount) |
See: Section 11.2 | |
See: Section 2.1 | |
See: Section 8.8 | |
BCM2838_PWM_CTL_*
See: Section 9.6 | |
BCM2838_PWM_CTL_MSEN2 = (1 shl 15);
|
Channel 2 M/S Enable (0: PWM algorithm is used / 1: M/S transmission is used) |
Bit 14 Reserved - Write as 0, read as don't care | |
BCM2838_PWM_CTL_USEF2 = (1 shl 13);
|
Channel 2 Use Fifo (0: Data register is transmitted / 1: Fifo is used for transmission) |
BCM2838_PWM_CTL_POLA2 = (1 shl 12);
|
Channel 2 Polarity (0 : 0=low 1=high / 1: 1=low 0=high) |
BCM2838_PWM_CTL_SBIT2 = (1 shl 11);
|
Channel 2 Silence Bit (Defines the state of the output when no transmission takes place) |
BCM2838_PWM_CTL_RPTL2 = (1 shl 10);
|
Channel 2 Repeat Last Data (0: Transmission interrupts when FIFO is empty / 1: Last data in FIFO is transmitted repeatedly until FIFO is not empty) |
BCM2838_PWM_CTL_MODE2 = (1 shl 9);
|
Channel 2 Mode (0: PWM mode / 1: Serialiser mode) |
BCM2838_PWM_CTL_PWEN2 = (1 shl 8);
|
Channel 2 Enable (0: Channel is disabled / 1: Channel is enabled) |
BCM2838_PWM_CTL_MSEN1 = (1 shl 7);
|
Channel 1 M/S Enable (0: PWM algorithm is used / 1: M/S transmission is used) |
BCM2838_PWM_CTL_CLRF1 = (1 shl 6);
|
Clear Fifo (1: Clears FIFO / 0: Has no effect) (This is a single shot operation. This bit always reads 0.) |
BCM2838_PWM_CTL_USEF1 = (1 shl 5);
|
Channel 1 Use Fifo (0: Data register is transmitted / 1: Fifo is used for transmission) |
BCM2838_PWM_CTL_POLA1 = (1 shl 4);
|
Channel 1 Polarity (0 : 0=low 1=high / 1: 1=low 0=high) |
BCM2838_PWM_CTL_SBIT1 = (1 shl 3);
|
Channel 1 Silence Bit (Defines the state of the output when no transmission takes place) |
BCM2838_PWM_CTL_RPTL1 = (1 shl 2);
|
Channel 1 Repeat Last Data (0: Transmission interrupts when FIFO is empty / 1: Last data in FIFO is transmitted repeatedly until FIFO is not empty) |
BCM2838_PWM_CTL_MODE1 = (1 shl 1);
|
Channel 1 Mode (0: PWM mode / 1: Serialiser mode) |
BCM2838_PWM_CTL_PWEN1 = (1 shl 0);
|
Channel 1 Enable (0: Channel is disabled / 1: Channel is enabled) |
BCM2838_PWM_STA_*
See: Section 9.6 | |
BCM2838_PWM_STA_STA4 = (1 shl 12);
|
Channel 4 State |
BCM2838_PWM_STA_STA3 = (1 shl 11);
|
Channel 3 State |
BCM2838_PWM_STA_STA2 = (1 shl 10);
|
Channel 2 State |
BCM2838_PWM_STA_STA1 = (1 shl 9);
|
Channel 1 State |
BCM2838_PWM_STA_BERR = (1 shl 8);
|
Bus Error Flag |
BCM2838_PWM_STA_GAPO4 = (1 shl 7);
|
Channel 4 Gap Occurred Flag |
BCM2838_PWM_STA_GAPO3 = (1 shl 6);
|
Channel 3 Gap Occurred Flag |
BCM2838_PWM_STA_GAPO2 = (1 shl 5);
|
Channel 2 Gap Occurred Flag |
BCM2838_PWM_STA_GAPO1 = (1 shl 4);
|
Channel 1 Gap Occurred Flag |
BCM2838_PWM_STA_RERR1 = (1 shl 3);
|
Fifo Read Error Flag |
BCM2838_PWM_STA_WERR1 = (1 shl 2);
|
Fifo Write Error Flag |
BCM2838_PWM_STA_EMPT1 = (1 shl 1);
|
Fifo Empty Flag |
BCM2838_PWM_STA_FULL1 = (1 shl 0);
|
Fifo Full Flag |
BCM2838_PWM_DMAC_*
See: Section 9.6 | |
BCM2838_PWM_DMAC_ENAB = (1 shl 31);
|
DMA Enable (0: DMA disabled / 1: DMA enabled) |
BCM2838_PWM_DMAC_PANIC = ($FF shl 8);
|
DMA Threshold for PANIC signal (Default: 0x7) |
BCM2838_PWM_DMAC_DREQ = ($FF shl 0);
|
DMA Threshold for DREQ signal (Default: 0x7) |
BCM2838_PWM_ *
BCM2838_PWM_CTL = $00000000;
|
PWM Control |
BCM2838_PWM_STA = $00000004;
|
PWM Status |
BCM2838_PWM_DMAC = $00000008;
|
PWM DMA Configuration |
BCM2838_PWM_RNG1 = $00000010;
|
PWM Channel 1 Range |
BCM2838_PWM_DAT1 = $00000014;
|
PWM Channel 1 Data |
BCM2838_PWM_FIF1 = $00000018;
|
PWM FIFO Input |
BCM2838_PWM_RNG2 = $00000020;
|
PWM Channel 2 Range |
BCM2838_PWM_DAT2 = $00000024;
|
PWM Channel 2 Data |
BCM2838_PL011_*
See: Section 13.4 | |
BCM2838_PL011_DR_OE = (1 shl 11);
|
Overrun error |
BCM2838_PL011_DR_BE = (1 shl 10);
|
Break error |
BCM2838_PL011_DR_PE = (1 shl 9);
|
Parity error |
BCM2838_PL011_DR_FE = (1 shl 8);
|
Framing error |
BCM2838_PL011_DR_DATA = ($FF shl 0);
|
Receive / Transmit data |
BCM2838_PL011_DR_ERROR = BCM2838_PL011_DR_OE or BCM2838_PL011_DR_BE or BCM2838_PL011_DR_PE or BCM2838_PL011_DR_FE;
|
BCM2838_PL011_RSRECR_*
See: Section 13.4 | |
BCM2838_PL011_RSRECR_OE = (1 shl 3);
|
Overrun error |
BCM2838_PL011_RSRECR_BE = (1 shl 2);
|
Break error |
BCM2838_PL011_RSRECR_PE = (1 shl 1);
|
Parity error |
BCM2838_PL011_RSRECR_FE = (1 shl 0);
|
Framing error |
BCM2838_PL011_FR_*
See: Section 13.4 | |
BCM2838_PL011_FR_RI = (1 shl 8);
|
Unsupported, write zero, read as don't care |
BCM2838_PL011_FR_TXFE = (1 shl 7);
|
Transmit FIFO empty |
BCM2838_PL011_FR_RXFF = (1 shl 6);
|
Receive FIFO full |
BCM2838_PL011_FR_TXFF = (1 shl 5);
|
Transmit FIFO full |
BCM2838_PL011_FR_RXFE = (1 shl 4);
|
Receive FIFO empty |
BCM2838_PL011_FR_BUSY = (1 shl 3);
|
UART busy |
BCM2838_PL011_FR_DCD = (1 shl 2);
|
Unsupported, write zero, read as don't care |
BCM2838_PL011_FR_DSR = (1 shl 1);
|
Unsupported, write zero, read as don't care |
BCM2838_PL011_FR_CTS = (1 shl 0);
|
Clear to send (This bit is the complement of the UART clear to send, nUARTCTS, modem status input. That is, the bit is 1 when nUARTCTS is LOW.) |
See: Section 13.4 | |
This register is disabled, writing to it has no effect and reading returns 0 |
BCM2838_PL011_IBRD_*
BCM2838_PL011_IBRD_MASK = ($FFFF shl 0);
|
BCM2838_PL011_FBRD_*
See: Section 13.4 | |
BCM2838_PL011_FBRD_MASK = ($3F shl 0);
|
BCM2838_PL011_LCRH_*
See: Section 13.4 | |
BCM2838_PL011_LCRH_SPS = (1 shl 7);
|
Stick parity select |
BCM2838_PL011_LCRH_WLEN = (3 shl 5);
|
Word length |
BCM2838_PL011_LCRH_WLEN8 = (3 shl 5);
|
8 bits |
BCM2838_PL011_LCRH_WLEN7 = (2 shl 5);
|
7 bits |
BCM2838_PL011_LCRH_WLEN6 = (1 shl 5);
|
6 bits |
BCM2838_PL011_LCRH_WLEN5 = (0 shl 5);
|
5 bits |
BCM2838_PL011_LCRH_FEN = (1 shl 4);
|
Enable FIFOs |
BCM2838_PL011_LCRH_STP2 = (1 shl 3);
|
Two stop bits select |
BCM2838_PL011_LCRH_EPS = (1 shl 2);
|
Even parity select (0 = odd parity / 1 = even parity) |
BCM2838_PL011_LCRH_PEN = (1 shl 1);
|
Parity enable |
BCM2838_PL011_LCRH_BRK = (1 shl 0);
|
Send break |
BCM2838_PL011_CR_*
See: Section 13.4 | |
BCM2838_PL011_CR_CTSEN = (1 shl 15);
|
CTS hardware flow control enable (If this bit is set to 1 data is only transmitted when the nUARTCTS signal is asserted) |
BCM2838_PL011_CR_RTSEN = (1 shl 14);
|
RTS hardware flow control enable (If this bit is set to 1 data is only requested when there is space in the receive FIFO for it to be received) |
BCM2838_PL011_CR_OUT2 = (1 shl 13);
|
Unsupported, write zero, read as don't care |
BCM2838_PL011_CR_OUT1 = (1 shl 12);
|
Unsupported, write zero, read as don't care |
BCM2838_PL011_CR_RTS = (1 shl 11);
|
Request to send (This bit is the complement of the UART request to send, nUARTRTS, modem status output. That is, when the bit is programmed to a 1 then nUARTRTS is LOW.) |
BCM2838_PL011_CR_DTR = (1 shl 10);
|
Unsupported, write zero, read as don't care |
BCM2838_PL011_CR_RXE = (1 shl 9);
|
Receive enable |
BCM2838_PL011_CR_TXE = (1 shl 8);
|
Transmit enable |
BCM2838_PL011_CR_LBE = (1 shl 7);
|
Loopback enable |
Bits 6:3 Reserved - Write as 0, read as don't care | |
BCM2838_PL011_CR_SIRLP = (1 shl 2);
|
Unsupported, write zero, read as don't care |
BCM2838_PL011_CR_SIREN = (1 shl 1);
|
Unsupported, write zero, read as don't care |
BCM2838_PL011_CR_UARTEN = (1 shl 0);
|
UART enable |
BCM2838_PL011_IFLS_*
See: Section 13.4 | |
BCM2838_PL011_IFLS_RXIFPSEL = (7 shl 9);
|
Unsupported, write zero, read as don't care |
BCM2838_PL011_IFLS_TXIFPSEL = (7 shl 6);
|
Unsupported, write zero, read as don't care |
BCM2838_PL011_IFLS_RXIFLSEL = (7 shl 3);
|
Receive interrupt FIFO level select |
BCM2838_PL011_IFLS_RXIFLSEL1_8 = (0 shl 3);
|
b000 = Receive FIFO becomes >= 1/8 full |
BCM2838_PL011_IFLS_RXIFLSEL1_4 = (1 shl 3);
|
b001 = Receive FIFO becomes >= 1/4 full |
BCM2838_PL011_IFLS_RXIFLSEL1_2 = (2 shl 3);
|
b010 = Receive FIFO becomes >= 1/2 full |
BCM2838_PL011_IFLS_RXIFLSEL3_4 = (3 shl 3);
|
b011 = Receive FIFO becomes >= 3/4 full |
BCM2838_PL011_IFLS_RXIFLSEL7_8 = (4 shl 3);
|
b100 = Receive FIFO becomes >= 7/8 full |
BCM2838_PL011_IFLS_TXIFLSEL = (7 shl 0);
|
Transmit interrupt FIFO level select |
BCM2838_PL011_IFLS_TXIFLSEL1_8 = (0 shl 0);
|
b000 = Transmit FIFO becomes <= 1/8 full |
BCM2838_PL011_IFLS_TXIFLSEL1_4 = (1 shl 0);
|
b001 = Transmit FIFO becomes <= 1/4 full |
BCM2838_PL011_IFLS_TXIFLSEL1_2 = (2 shl 0);
|
b010 = Transmit FIFO becomes <= 1/2 full |
BCM2838_PL011_IFLS_TXIFLSEL3_4 = (3 shl 0);
|
b011 = Transmit FIFO becomes <= 3/4 full |
BCM2838_PL011_IFLS_TXIFLSEL7_8 = (4 shl 0);
|
b100 = Transmit FIFO becomes <= 7/8 full |
BCM2838_PL011_IMSC_*
See: Section 13.4 | |
BCM2838_PL011_IMSC_OEIM = (1 shl 10);
|
Overrun error interrupt mask |
BCM2838_PL011_IMSC_BEIM = (1 shl 9);
|
Break error interrupt mask |
BCM2838_PL011_IMSC_PEIM = (1 shl 8);
|
Parity error interrupt mask |
BCM2838_PL011_IMSC_FEIM = (1 shl 7);
|
Framing error interrupt mask |
BCM2838_PL011_IMSC_RTIM = (1 shl 6);
|
Receive timeout interrupt mask |
BCM2838_PL011_IMSC_TXIM = (1 shl 5);
|
Transmit interrupt mask |
BCM2838_PL011_IMSC_RXIM = (1 shl 4);
|
Receive interrupt mask |
BCM2838_PL011_IMSC_DSRMIM = (1 shl 3);
|
Unsupported, write zero, read as don't care |
BCM2838_PL011_IMSC_DCDMIM = (1 shl 2);
|
Unsupported, write zero, read as don't care |
BCM2838_PL011_IMSC_CTSMIM = (1 shl 1);
|
nUARTCTS modem interrupt mask |
BCM2838_PL011_IMSC_RIMIM = (1 shl 0);
|
Unsupported, write zero, read as don't care |
BCM2838_PL011_RIS_*
See: Section 13.4 | |
BCM2838_PL011_RIS_OERIS = (1 shl 10);
|
Overrun error interrupt status |
BCM2838_PL011_RIS_BERIS = (1 shl 9);
|
Break error interrupt status |
BCM2838_PL011_RIS_PERIS = (1 shl 8);
|
Parity error interrupt status |
BCM2838_PL011_RIS_FERIS = (1 shl 7);
|
Framing error interrupt status |
BCM2838_PL011_RIS_RTRIS = (1 shl 6);
|
Receive timeout interrupt status |
BCM2838_PL011_RIS_TXRIS = (1 shl 5);
|
Transmit interrupt status |
BCM2838_PL011_RIS_RXRIS = (1 shl 4);
|
Receive interrupt status |
BCM2838_PL011_RIS_DSRMRIS = (1 shl 3);
|
Unsupported, write zero, read as don't care |
BCM2838_PL011_RIS_DCDMRIS = (1 shl 2);
|
Unsupported, write zero, read as don't care |
BCM2838_PL011_RIS_CTSMRIS = (1 shl 1);
|
nUARTCTS modem interrupt status |
BCM2838_PL011_RIS_RIMRIS = (1 shl 0);
|
Unsupported, write zero, read as don't care |
BCM2838_PL011_MIS_*
See: Section 13.4 | |
BCM2838_PL011_MIS_OEMIS = (1 shl 10);
|
Overrun error masked interrupt status |
BCM2838_PL011_MIS_BEMIS = (1 shl 9);
|
Break error masked interrupt status |
BCM2838_PL011_MIS_PEMIS = (1 shl 8);
|
Parity error masked interrupt status |
BCM2838_PL011_MIS_FEMIS = (1 shl 7);
|
Framing error masked interrupt status |
BCM2838_PL011_MIS_RTMIS = (1 shl 6);
|
Receive timeout masked interrupt status |
BCM2838_PL011_MIS_TXMIS = (1 shl 5);
|
Transmit masked interrupt status |
BCM2838_PL011_MIS_RXMIS = (1 shl 4);
|
Receive masked interrupt status |
BCM2838_PL011_MIS_DSRMMIS = (1 shl 3);
|
Unsupported, write zero, read as don't care |
BCM2838_PL011_MIS_DCDMMIS = (1 shl 2);
|
Unsupported, write zero, read as don't care |
BCM2838_PL011_MIS_CTSMMIS = (1 shl 1);
|
nUARTCTS modem masked interrupt status |
BCM2838_PL011_MIS_RIMMIS = (1 shl 0);
|
Unsupported, write zero, read as don't care |
BCM2838_PL011_ICR_*
See: Section 13.4 | |
BCM2838_PL011_ICR_OEIC = (1 shl 10);
|
Overrun error interrupt clear |
BCM2838_PL011_ICR_BEIC = (1 shl 9);
|
Break error interrupt clear |
BCM2838_PL011_ICR_PEIC = (1 shl 8);
|
Parity error interrupt clear |
BCM2838_PL011_ICR_FEIC = (1 shl 7);
|
Framing error interrupt clear |
BCM2838_PL011_ICR_RTIC = (1 shl 6);
|
Receive timeout interrupt clear |
BCM2838_PL011_ICR_TXIC = (1 shl 5);
|
Transmit interrupt clear |
BCM2838_PL011_ICR_RXIC = (1 shl 4);
|
Receive interrupt clear |
BCM2838_PL011_ICR_DSRMIC = (1 shl 3);
|
Unsupported, write zero, read as don't care |
BCM2838_PL011_ICR_DCDMIC = (1 shl 2);
|
Unsupported, write zero, read as don't care |
BCM2838_PL011_ICR_CTSMIC = (1 shl 1);
|
nUARTCTS modem interrupt clear |
BCM2838_PL011_ICR_RIMIC = (1 shl 0);
|
Unsupported, write zero, read as don't care |
See: Section 13.4 | |
This register is disabled, writing to it has no effect and reading returns 0 |
See: Section 13.4 | |
See: Section 13.4 | |
See: Section 13.4 | |
See: Section 13.4 | |
BCM2838_ARM_INTERRUPT_*
BCM2838_ARM_INTERRUPT_IRQ0_PENDING0 = $00000000;
|
ARM Core 0 IRQ Enabled Interrupt Pending bits [31:0] |
BCM2838_ARM_INTERRUPT_IRQ0_PENDING1 = $00000004;
|
ARM Core 0 IRQ Enabled Interrupt pending bits [63:32] |
BCM2838_ARM_INTERRUPT_IRQ0_PENDING2 = $00000008;
|
ARM Core 0 IRQ Enabled Interrupt pending bits [79:64] |
BCM2838_ARM_INTERRUPT_IRQ0_SET_EN_0 = $00000010;
|
Write to Set ARM Core 0 IRQ enable bits [31:0] |
BCM2838_ARM_INTERRUPT_IRQ0_SET_EN_1 = $00000014;
|
Write to Set ARM Core 0 IRQ enable bits [63:32] |
BCM2838_ARM_INTERRUPT_IRQ0_SET_EN_2 = $00000018;
|
Write to Set ARM Core 0 IRQ enable bits [79:64] |
BCM2838_ARM_INTERRUPT_IRQ0_CLR_EN_0 = $00000020;
|
Write to Clear ARM Core 0 IRQ enable bits [31:0] |
BCM2838_ARM_INTERRUPT_IRQ0_CLR_EN_1 = $00000024;
|
Write to Clear ARM Core 0 IRQ enable bits [63:32] |
BCM2838_ARM_INTERRUPT_IRQ0_CLR_EN_2 = $00000028;
|
Write to Clear ARM Core 0 IRQ enable bits [79:64] |
BCM2838_ARM_INTERRUPT_IRQ_STATUS0 = $00000030;
|
Interrupt Line bits [31:0] |
BCM2838_ARM_INTERRUPT_IRQ_STATUS1 = $00000034;
|
Interrupt Line bits [63:32] |
BCM2838_ARM_INTERRUPT_IRQ_STATUS2 = $00000038;
|
Interrupt Line bits [79:64] |
BCM2838_ARM_INTERRUPT_IRQ1_PENDING0 = $00000040;
|
ARM Core 1 IRQ Enabled Interrupt pending bits [31:0] |
BCM2838_ARM_INTERRUPT_IRQ1_PENDING1 = $00000044;
|
ARM Core 1 IRQ Enabled Interrupt pending bits [63:32] |
BCM2838_ARM_INTERRUPT_IRQ1_PENDING2 = $00000048;
|
ARM Core 1 IRQ Enabled Interrupt pending bits [79:64] |
BCM2838_ARM_INTERRUPT_IRQ1_SET_EN_0 = $00000050;
|
Write to Set ARM Core 1 IRQ enable bits [31:0] |
BCM2838_ARM_INTERRUPT_IRQ1_SET_EN_1 = $00000054;
|
Write to Set ARM Core 1 IRQ enable bits [63:32] |
BCM2838_ARM_INTERRUPT_IRQ1_SET_EN_2 = $00000058;
|
Write to Set ARM Core 1 IRQ enable bits [79:64] |
BCM2838_ARM_INTERRUPT_IRQ1_CLR_EN_0 = $00000060;
|
Write to Clear ARM Core 1 IRQ enable bits [31:0] |
BCM2838_ARM_INTERRUPT_IRQ1_CLR_EN_1 = $00000064;
|
Write to Clear ARM Core 1 IRQ enable bits [63:32] |
BCM2838_ARM_INTERRUPT_IRQ1_CLR_EN_2 = $00000068;
|
Write to Clear ARM Core 1 IRQ enable bits [79:64] |
BCM2838_ARM_INTERRUPT_IRQ2_PENDING0 = $00000080;
|
ARM Core 2 IRQ Enabled Interrupt pending bits [31:0] |
BCM2838_ARM_INTERRUPT_IRQ2_PENDING1 = $00000084;
|
ARM Core 2 IRQ Enabled Interrupt pending bits [63:32] |
BCM2838_ARM_INTERRUPT_IRQ2_PENDING2 = $00000088;
|
ARM Core 2 IRQ Enabled Interrupt pending bits [79:64] |
BCM2838_ARM_INTERRUPT_IRQ2_SET_EN_0 = $00000090;
|
Write to Set ARM Core 2 IRQ enable bits [31:0] |
BCM2838_ARM_INTERRUPT_IRQ2_SET_EN_1 = $00000094;
|
Write to Set ARM Core 2 IRQ enable bits [63:32] |
BCM2838_ARM_INTERRUPT_IRQ2_SET_EN_2 = $00000098;
|
Write to Set ARM Core 2 IRQ enable bits [79:64] |
BCM2838_ARM_INTERRUPT_IRQ2_CLR_EN_0 = $000000A0;
|
Write to Clear ARM Core 2 IRQ enable bits [31:0] |
BCM2838_ARM_INTERRUPT_IRQ2_CLR_EN_1 = $000000A4;
|
Write to Clear ARM Core 2 IRQ enable bits [63:32] |
BCM2838_ARM_INTERRUPT_IRQ2_CLR_EN_2 = $000000A8;
|
Write to Clear ARM Core 2 IRQ enable bits [79:64] |
BCM2838_ARM_INTERRUPT_IRQ3_PENDING0 = $000000C0;
|
ARM Core 3 IRQ Enabled Interrupt pending bits [31:0] |
BCM2838_ARM_INTERRUPT_IRQ3_PENDING1 = $000000C4;
|
ARM Core 3 IRQ Enabled Interrupt pending bits [63:32] |
BCM2838_ARM_INTERRUPT_IRQ3_PENDING2 = $000000C8;
|
ARM Core 3 IRQ Enabled Interrupt pending bits [79:64] |
BCM2838_ARM_INTERRUPT_IRQ3_SET_EN_0 = $000000D0;
|
Write to Set ARM Core 3 IRQ enable bits [31:0] |
BCM2838_ARM_INTERRUPT_IRQ3_SET_EN_1 = $000000D4;
|
Write to Set ARM Core 3 IRQ enable bits [63:32] |
BCM2838_ARM_INTERRUPT_IRQ3_SET_EN_2 = $000000D8;
|
Write to Set ARM Core 3 IRQ enable bits [79:64] |
BCM2838_ARM_INTERRUPT_IRQ3_CLR_EN_0 = $000000E0;
|
Write to Clear ARM Core 3 IRQ enable bits [31:0] |
BCM2838_ARM_INTERRUPT_IRQ3_CLR_EN_1 = $000000E4;
|
Write to Clear ARM Core 3 IRQ enable bits [63:32] |
BCM2838_ARM_INTERRUPT_IRQ3_CLR_EN_2 = $000000E8;
|
Write to Clear ARM Core 3 IRQ enable bits [79:64] |
BCM2838_ARM_INTERRUPT_FIQ0_PENDING0 = $00000100;
|
ARM Core 0 FIQ Enabled Interrupt pending bits [31:0] |
BCM2838_ARM_INTERRUPT_FIQ0_PENDING1 = $00000104;
|
ARM Core 0 FIQ Enabled Interrupt pending bits [63:32] |
BCM2838_ARM_INTERRUPT_FIQ0_PENDING2 = $00000108;
|
ARM Core 0 FIQ Enabled Interrupt pending bits [79:64] |
BCM2838_ARM_INTERRUPT_FIQ0_SET_EN_0 = $00000110;
|
Write to Set ARM Core 0 FIQ enable bits [31:0] |
BCM2838_ARM_INTERRUPT_FIQ0_SET_EN_1 = $00000114;
|
Write to Set ARM Core 0 FIQ enable bits [63:32] |
BCM2838_ARM_INTERRUPT_FIQ0_SET_EN_2 = $00000118;
|
Write to Set ARM Core 0 FIQ enable bits [79:64] |
BCM2838_ARM_INTERRUPT_FIQ0_CLR_EN_0 = $00000120;
|
Write to Clear ARM Core 0 FIQ enable bits [31:0] |
BCM2838_ARM_INTERRUPT_FIQ0_CLR_EN_1 = $00000124;
|
Write to Clear ARM Core 0 FIQ enable bits [63:32] |
BCM2838_ARM_INTERRUPT_FIQ0_CLR_EN_2 = $00000128;
|
Write to Clear ARM Core 0 FIQ enable bits [79:64] |
BCM2838_ARM_INTERRUPT_FIQ1_PENDING0 = $00000140;
|
ARM Core 1 FIQ Enabled Interrupt pending bits [31:0] |
BCM2838_ARM_INTERRUPT_FIQ1_PENDING1 = $00000144;
|
ARM Core 1 FIQ Enabled Interrupt pending bits [63:32] |
BCM2838_ARM_INTERRUPT_FIQ1_PENDING2 = $00000148;
|
ARM Core 1 FIQ Enabled Interrupt pending bits [79:64] |
BCM2838_ARM_INTERRUPT_FIQ1_SET_EN_0 = $00000150;
|
Write to Set ARM Core 1 FIQ enable bits [31:0] |
BCM2838_ARM_INTERRUPT_FIQ1_SET_EN_1 = $00000154;
|
Write to Set ARM Core 1 FIQ enable bits [63:32] |
BCM2838_ARM_INTERRUPT_FIQ1_SET_EN_2 = $00000158;
|
Write to Set ARM Core 1 FIQ enable bits [79:64] |
BCM2838_ARM_INTERRUPT_FIQ1_CLR_EN_0 = $00000160;
|
Write to Clear ARM Core 1 FIQ enable bits [31:0] |
BCM2838_ARM_INTERRUPT_FIQ1_CLR_EN_1 = $00000164;
|
Write to Clear ARM Core 1 FIQ enable bits [63:32] |
BCM2838_ARM_INTERRUPT_FIQ1_CLR_EN_2 = $00000168;
|
Write to Clear ARM Core 1 FIQ enable bits [79:64] |
BCM2838_ARM_INTERRUPT_FIQ2_PENDING0 = $00000180;
|
ARM Core 2 FIQ Enabled Interrupt pending bits [31:0] |
BCM2838_ARM_INTERRUPT_FIQ2_PENDING1 = $00000184;
|
ARM Core 2 FIQ Enabled Interrupt pending bits [63:32] |
BCM2838_ARM_INTERRUPT_FIQ2_PENDING2 = $00000188;
|
ARM Core 2 FIQ Enabled Interrupt pending bits [79:64] |
BCM2838_ARM_INTERRUPT_FIQ2_SET_EN_0 = $00000190;
|
Write to Set ARM Core 2 FIQ enable bits [31:0] |
BCM2838_ARM_INTERRUPT_FIQ2_SET_EN_1 = $00000194;
|
Write to Set ARM Core 2 FIQ enable bits [63:32] |
BCM2838_ARM_INTERRUPT_FIQ2_SET_EN_2 = $00000198;
|
Write to Set ARM Core 2 FIQ enable bits [79:64] |
BCM2838_ARM_INTERRUPT_FIQ2_CLR_EN_0 = $000001A0;
|
Write to Clear ARM Core 2 FIQ enable bits [31:0] |
BCM2838_ARM_INTERRUPT_FIQ2_CLR_EN_1 = $000001A4;
|
Write to Clear ARM Core 2 FIQ enable bits [63:32] |
BCM2838_ARM_INTERRUPT_FIQ2_CLR_EN_2 = $000001A8;
|
Write to Clear ARM Core 2 FIQ enable bits [79:64] |
BCM2838_ARM_INTERRUPT_FIQ3_PENDING0 = $000001C0;
|
ARM Core 3 FIQ Enabled Interrupt pending bits [31:0] |
BCM2838_ARM_INTERRUPT_FIQ3_PENDING1 = $000001C4;
|
ARM Core 3 FIQ Enabled Interrupt pending bits [63:32] |
BCM2838_ARM_INTERRUPT_FIQ3_PENDING2 = $000001C8;
|
ARM Core 3 FIQ Enabled Interrupt pending bits [79:64] |
BCM2838_ARM_INTERRUPT_FIQ3_SET_EN_0 = $000001D0;
|
Write to Set ARM Core 3 FIQ enable bits [31:0] |
BCM2838_ARM_INTERRUPT_FIQ3_SET_EN_1 = $000001D4;
|
Write to Set ARM Core 3 FIQ enable bits [63:32] |
BCM2838_ARM_INTERRUPT_FIQ3_SET_EN_2 = $000001D8;
|
Write to Set ARM Core 3 FIQ enable bits [79:64] |
BCM2838_ARM_INTERRUPT_FIQ3_CLR_EN_0 = $000001E0;
|
Write to Clear ARM Core 3 FIQ enable bits [31:0] |
BCM2838_ARM_INTERRUPT_FIQ3_CLR_EN_1 = $000001E4;
|
Write to Clear ARM Core 3 FIQ enable bits [63:32] |
BCM2838_ARM_INTERRUPT_FIQ3_CLR_EN_2 = $000001E8;
|
Write to Clear ARM Core 3 FIQ enable bits [79:64] |
BCM2838_ARM_INTERRUPT_SWIRQ_SET = $000001F0;
|
Write to Set Software Interrupt sources |
BCM2838_ARM_INTERRUPT_SWIRQ_CLEAR = $000001F4;
|
Write to Clear Software Interrupt sources |
BCM2838_ARM_INTERRUPT_CORE_OFFSET = BCM2838_ARM_INTERRUPT_IRQ1_PENDING0 - BCM2838_ARM_INTERRUPT_IRQ0_PENDING0;
|
Offset between Core registers |
BCM2838_ARM_INTERRUPT_FIQ_OFFSET = BCM2838_ARM_INTERRUPT_FIQ0_PENDING0 - BCM2838_ARM_INTERRUPT_IRQ0_PENDING0;
|
Offset betwwen IRQ and FIQ registers |
BCM2838_ARM_TIMER_*
See: Section 14.2 | |
BCM2838_ARM_TIMER_CONTROL_COUNTER_PRESCALE = ($FF shl 16);
|
Free running counter pre-scaler (Freq is sys_clk/(prescale+1)) |
BCM2838_ARM_TIMER_CONTROL_COUNTER_ENABLED = (1 shl 9);
|
0 : Free running counter Disabled / 1 : Free running counter Enabled |
BCM2838_ARM_TIMER_CONTROL_DEBUG_HALT = (1 shl 8);
|
0 : Timers keeps running if ARM is in debug halted mode / 1 : Timers halted if ARM is in debug halted mode |
BCM2838_ARM_TIMER_CONTROL_TIMER_ENABLED = (1 shl 7);
|
0 : Timer disabled / 1 : Timer enabled |
BCM2838_ARM_TIMER_CONTROL_INT_ENABLED = (1 shl 5);
|
0 : Timer interrupt disabled / 1 : Timer interrupt enabled |
BCM2838_ARM_TIMER_CONTROL_PRESCALE = (3 shl 2);
|
Pre-scale bits: 00 : pre-scale is clock / 1 (No pre-scale) / 01 : pre-scale is clock / 16 / 10 : pre-scale is clock / 256 / 11 : pre-scale is clock / 1 |
BCM2838_ARM_TIMER_CONTROL_32BIT = (1 shl 1);
|
0 : 16-bit counters / 1 : 32-bit counter |
BCM2838_ARM_TIMER_CONTROL_ONESHOT = (1 shl 0);
|
0 = wrapping mode (default) / 1 = one-shot mode (Not supported by BCM2838) |
BCM2838_ARM_TIMER_RAW_IRQ_PENDING = (1 shl 0);
|
0 : The interrupt pending bits is clear / 1 : The interrupt pending bit is set |
BCM2838_ARM_TIMER_MASKED_IRQ_PENDING = (1 shl 0);
|
0 : Interrupt line not asserted / 1 :Interrupt line is asserted, (the interrupt pending and the interrupt enable bit are set) |
BCM2838_ARM_TIMER_PREDIVIDER_MASK = ($3FF shl 0);
|
Pre-divider value (timer_clock = apb_clock/(pre_divider+1)) |
BCM2838_PM_*
BCM2838_PM_PASSWORD = $5A000000;
|
|
BCM2838_PM_RSTC_WRCFG_CLR = $FFFFFFCF;
|
|
BCM2838_PM_RSTC_WRCFG_SET= $00000030;
|
|
BCM2838_PM_RSTC_WRCFG_FULL_RESET = $00000020;
|
|
BCM2838_PM_RSTC_RESET = $00000102;
|
|
BCM2838_PM_RSTS_HADPOR_SET = $00001000;
|
|
BCM2838_PM_RSTS_HADSRH_SET = $00000400;
|
|
BCM2838_PM_RSTS_HADSRF_SET = $00000200;
|
|
BCM2838_PM_RSTS_HADSRQ_SET = $00000100;
|
|
BCM2838_PM_RSTS_HADWRH_SET = $00000040;
|
|
BCM2838_PM_RSTS_HADWRF_SET = $00000020;
|
|
BCM2838_PM_RSTS_HADWRQ_SET = $00000010;
|
|
BCM2838_PM_RSTS_HADDRH_SET = $00000004;
|
|
BCM2838_PM_RSTS_HADDRF_SET = $00000002;
|
|
BCM2838_PM_RSTS_HADDRQ_SET = $00000001;
|
|
BCM2838_PM_RSTS_RASPBERRYPI_HALT = $00000555;
|
Special value to tell the Raspberry Pi firmware not to reboot, sets Boot Partition to 63 (0x3f). |
BCM2838_PM_WDOG_RESET = $00000000;
|
|
BCM2838_PM_WDOG_TIME_MASK = $000FFFFF;
|
|
BCM2838_PM_WDOG_TICKS_PER_SECOND = (1 shl 16);
|
|
BCM2838_PM_WDOG_TICKS_PER_MILLISECOND = (BCM2838_PM_WDOG_TICKS_PER_SECOND div 1000);
|
BCM2838_RNG_*
BCM2838_RNG_CTRL_OFFSET = $00;
|
|
BCM2838_RNG_CTRL_RNG_RBGEN_MASK = $00001FFF;
|
|
BCM2838_RNG_CTRL_RNG_RBGEN_ENABLE = $00000001;
|
|
BCM2838_RNG_CTRL_RNG_RBGEN_DISABLE = $00000000;
|
|
BCM2838_RNG_CTRL_RNG_DIV_CTRL_SHIFT = 13;
|
|
BCM2838_RNG_SOFT_RESET_OFFSET = $04;
|
|
BCM2838_RNG_SOFT_RESET = $00000001;
|
|
BCM2838_RBG_SOFT_RESET_OFFSET = $08;
|
|
BCM2838_RBG_SOFT_RESET = $00000001;
|
|
BCM2838_RNG_TOTAL_BIT_COUNT_OFFSET = $0C;
|
|
BCM2838_RNG_TOTAL_BIT_COUNT_THRESHOLD_OFFSET = $10;
|
|
BCM2838_RNG_INT_STATUS_OFFSET = $18;
|
|
BCM2838_RNG_INT_STATUS_MASTER_FAIL_LOCKOUT_IRQ_MASK = $80000000;
|
|
BCM2838_RNG_INT_STATUS_STARTUP_TRANSITIONS_MET_IRQ_MASK = $00020000;
|
|
BCM2838_RNG_INT_STATUS_NIST_FAIL_IRQ_MASK = $00000020;
|
|
BCM2838_RNG_INT_STATUS_TOTAL_BITS_COUNT_IRQ_MASK = $00000001;
|
|
BCM2838_RNG_INT_ENABLE_OFFSET = $1C;
|
|
BCM2838_RNG_FIFO_DATA_OFFSET = $20;
|
|
BCM2838_RNG_FIFO_COUNT_OFFSET = $24;
|
|
BCM2838_RNG_FIFO_COUNT_RNG_FIFO_COUNT_MASK = $000000FF;
|
|
BCM2838_RNG_FIFO_COUNT_RNG_FIFO_THRESHOLD_SHIFT = 8;
|
BCM2838_CM_*
See: Section 6 | |
BCM2838_CM_PASSWORD = $5A000000;
|
BCM2838_CM_CTL_*
See: Section 6.3 | |
BCM2838_CM_CTL_MASH_0 = (0 shl 9);
|
MASH control - 0 = integer division |
BCM2838_CM_CTL_MASH_1 = (1 shl 9);
|
MASH control - 1 = 1-stage MASH (equivalent to non-MASH dividers) |
BCM2838_CM_CTL_MASH_2 = (2 shl 9);
|
MASH control - 2 = 2-stage MASH |
BCM2838_CM_CTL_MASH_3 = (3 shl 9);
|
MASH control - 3 = 3-stage MASH (To avoid lock-ups and glitches do not change this control while BUSY=1 and do not change this control at the same time as asserting ENAB) |
BCM2838_CM_CTL_FLIP = (1 shl 8);
|
MASH control - Invert the clock generator output (To avoid output glitches do not switch this control while BUSY=1) |
BCM2838_CM_CTL_BUSY = (1 shl 7);
|
Clock generator is running (To avoid glitches and lock-ups, clock sources and setups must not be changed while this flag is set) |
BCM2838_CM_CTL_GATE = (1 shl 6);
|
Unused |
BCM2838_CM_CTL_KILL = (1 shl 5);
|
Kill the clock generator (0 = no action / 1 = stop and reset the clock generator) (This is intended for test/debug only) |
BCM2838_CM_CTL_ENAB = (1 shl 4);
|
Enable the clock generator |
BCM2838_CM_CTL_SRC_GND = (0 shl 0);
|
Clock source - 0 Hz GND |
BCM2838_CM_CTL_SRC_OSC = (1 shl 0);
|
Clock source - 54 MHz Oscillator |
BCM2838_CM_CTL_SRC_TESTDEBUG0 = (2 shl 0);
|
Clock source - 0 Hz Testdebug0 |
BCM2838_CM_CTL_SRC_TESTDEBUG1 = (3 shl 0);
|
Clock source - 0 Hz Testdebug1 |
BCM2838_CM_CTL_SRC_PLLA = (4 shl 0);
|
Clock source - 0 Hz PLLA |
BCM2838_CM_CTL_SRC_PLLC = (5 shl 0);
|
Clock source - 1000 MHz PLLC (changes with overclock settings) |
BCM2838_CM_CTL_SRC_PLLD = (6 shl 0);
|
Clock source - 750 MHz PLLD |
BCM2838_CM_CTL_SRC_HDMI = (7 shl 0);
|
Clock source - Unused |
BCM2838_CM_DIV_*
See: Section 6.3 | |
BCM2838_CM_DIV_INT_MASK = $00FFF000;
|
Integer part of divisor (This value has a minimum limit determined by the MASH setting) (To avoid lock-ups and glitches do not change this control while BUSY=1) |
BCM2838_CM_DIV_FRAC_MASK = $00000FFF;
|
Fractional part of divisor (To avoid lock-ups and glitches do not change this control while BUSY=1) |
BCM2838_CM_*
BCM2838_CM_GNRICCTL = $00000000;
|
Generic Clock Control |
BCM2838_CM_GNRICDIV = $00000004;
|
Generic Clock Divisor |
BCM2838_CM_VPUCTL = $00000008;
|
VPU Clock Control |
BCM2838_CM_VPUDIV = $0000000C;
|
VPU Clock Divisor |
BCM2838_CM_SYSCTL = $00000010;
|
System Clock Control |
BCM2838_CM_SYSDIV = $00000014;
|
System Clock Divisor |
BCM2838_CM_PERIACTL = $00000018;
|
PERIA Clock Control |
BCM2838_CM_PERIADIV = $0000001C;
|
PERIA Clock Divisor |
BCM2838_CM_PERIICTL = $00000020;
|
PERII Clock Control |
BCM2838_CM_PERIIDIV = $00000024;
|
PERII Clock Divisor |
BCM2838_CM_H264CTL = $00000028;
|
H264 Clock Control |
BCM2838_CM_H264DIV = $0000002C;
|
H264 Clock Divisor |
BCM2838_CM_ISPCTL = $00000030;
|
ISP Clock Control |
BCM2838_CM_ISPDIV = $00000034;
|
ISP Clock Divisor |
BCM2838_CM_V3DCTL = $00000038;
|
V3D Clock Control |
BCM2838_CM_V3DDIV = $0000003C;
|
V3D Clock Divisor |
BCM2838_CM_CAM0CTL = $00000040;
|
Camera 0 Clock Control |
BCM2838_CM_CAM0DIV = $00000044;
|
Camera 0 Clock Divisor |
BCM2838_CM_CAM1CTL = $00000048;
|
Camera 1 Clock Control |
BCM2838_CM_CAM1DIV = $0000004C;
|
Camera 1 Clock Divisor |
BCM2838_CM_CCP2CTL = $00000050;
|
CCP2 Clock Control |
BCM2838_CM_CCP2DIV = $00000054;
|
CCP2 Clock Divisor |
BCM2838_CM_DSI0ECTL = $00000058;
|
DSI0E Clock Control |
BCM2838_CM_DSI0EDIV = $0000005C;
|
DSI0E Clock Divisor |
BCM2838_CM_DSI0PCTL = $00000060;
|
DSI0P Clock Control |
BCM2838_CM_DSI0PDIV = $00000064;
|
DSI0P Clock Divisor |
BCM2838_CM_DPICTL = $00000068;
|
DPI Clock Control |
BCM2838_CM_DPIDIV = $0000006C;
|
DPI Clock Divisor |
BCM2838_CM_GP0CTL = $00000070;
|
General Purpose 0 Clock Control |
BCM2838_CM_GP0DIV = $00000074;
|
General Purpose 0 Clock Divisor |
BCM2838_CM_GP1CTL = $00000078;
|
General Purpose 1 Clock Control |
BCM2838_CM_GP1DIV = $0000007C;
|
General Purpose 1 Clock Divisor |
BCM2838_CM_GP2CTL = $00000080;
|
General Purpose 2 Clock Control |
BCM2838_CM_GP2DIV = $00000084;
|
General Purpose 2 Clock Divisor |
BCM2838_CM_HSMCTL = $00000088;
|
HSM Clock Control |
BCM2838_CM_HSMDIV = $0000008C;
|
HSM Clock Divisor |
BCM2838_CM_OTPCTL = $00000090;
|
OTP Clock Control |
BCM2838_CM_OTPDIV = $00000094;
|
OTP Clock Divisor |
BCM2838_CM_PCMCTL = $00000098;
|
PCM / I2S Clock Control |
BCM2838_CM_PCMDIV = $0000009C;
|
PCM / I2S Clock Divisor |
BCM2838_CM_PWMCTL = $000000A0;
|
PWM Clock Control |
BCM2838_CM_PWMDIV = $000000A4;
|
PWM Clock Divisor |
BCM2838_CM_SLIMCTL = $000000A8;
|
SLIM Clock Control |
BCM2838_CM_SLIMDIV = $000000AC;
|
SLIM Clock Divisor |
BCM2838_CM_SMICTL = $000000B0;
|
SMI Clock Control |
BCM2838_CM_SMIDIV = $000000B4;
|
SMI Clock Divisor |
BCM2838_CM_TCNTCTL = $000000C0;
|
TCNT Clock Control |
BCM2838_CM_TCNTDIV = $000000C4;
|
TCNT Clock Divisor |
BCM2838_CM_TECCTL = $000000C8;
|
TEC Clock Control |
BCM2838_CM_TECDIV = $000000CC;
|
TEC Clock Divisor |
BCM2838_CM_TD0CTL = $000000D0;
|
TD0 Clock Control |
BCM2838_CM_TD0DIV = $000000D4;
|
TD0 Clock Divisor |
BCM2838_CM_TD1CTL = $000000D8;
|
TD1 Clock Control |
BCM2838_CM_TD1DIV = $000000DC;
|
TD1 Clock Divisor |
BCM2838_CM_TSENSCTL = $000000E0;
|
TSENS Clock Control |
BCM2838_CM_TSENSDIV = $000000E4;
|
TSENS Clock Divisor |
BCM2838_CM_TIMERCTL = $000000E8;
|
Timer Clock Control |
BCM2838_CM_TIMERDIV = $000000EC;
|
Timer Clock Divisor |
BCM2838_CM_UARTCTL = $000000F0;
|
UART Clock Control |
BCM2838_CM_UARTDIV = $000000F4;
|
UART Clock Divisor |
BCM2838_CM_VECCTL = $000000F8;
|
VEC Clock Control |
BCM2838_CM_VECDIV = $000000FC;
|
VEC Clock Divisor |
BCM2838_CM_OSCCOUNT = $00000100;
|
Oscillator Count |
BCM2838_CM_PLLA = $00000104;
|
PLLA |
BCM2838_CM_PLLC = $00000108;
|
PLLC |
BCM2838_CM_PLLD = $0000010C;
|
PLLD |
BCM2838_CM_PLLH = $00000110;
|
PLLH |
BCM2838_CM_LOCK = $00000114;
|
Lock |
BCM2838_CM_EVENT = $00000118;
|
Event |
BCM2838_CM_INTEN = $00000118;
|
INTEN |
BCM2838_CM_DSI0HSCK = $00000120;
|
DSI0HSCK |
BCM2838_CM_CKSM = $00000124;
|
CKSM |
BCM2838_CM_OSCFREQI = $00000128;
|
Oscillator Frequency Integer |
BCM2838_CM_OSCFREQF = $0000012C;
|
Oscillator Frequency Fraction |
BCM2838_CM_PLLTCTL = $00000130;
|
PLLT Control |
BCM2838_CM_PLLTCNT0 = $00000134;
|
PLLT0 Count |
BCM2838_CM_PLLTCNT1 = $00000138;
|
PLLT1 Count |
BCM2838_CM_PLLTCNT2 = $0000013C;
|
PLLT2 Count |
BCM2838_CM_PLLTCNT3 = $00000140;
|
PLLT3 Count |
BCM2838_CM_TDCLKEN = $00000144;
|
TD Clock Enable |
BCM2838_CM_BURSTCTL = $00000148;
|
Burst Control |
BCM2838_CM_BURSTCNT = $0000014C;
|
Burst Count |
BCM2838_CM_DSI1ECTL = $00000158;
|
DSI1E Clock Control |
BCM2838_CM_DSI1EDIV = $0000015C;
|
DSI1E Clock Divisor |
BCM2838_CM_DSI1PCTL = $00000160;
|
DSI1P Clock Control |
BCM2838_CM_DSI1PDIV = $00000164;
|
DSI1P Clock Divisor |
BCM2838_CM_DFTCTL = $00000168;
|
DFT Clock Control |
BCM2838_CM_DFTDIV = $0000016C;
|
DFT Clock Divisor |
BCM2838_CM_PLLB = $00000170;
|
PLLB |
BCM2838_CM_PULSECTL = $00000190;
|
Pulse Clock Control |
BCM2838_CM_PULSEDIV = $00000194;
|
Pulse Clock Divisor |
BCM2838_CM_SDCCTL = $000001A8;
|
SDC Clock Control |
BCM2838_CM_SDCDIV = $000001AC;
|
SDC Clock Divisor |
BCM2838_CM_ARMCTL = $000001B0;
|
ARM Clock Control |
BCM2838_CM_ARMDIV = $000001B4;
|
ARM Clock Divisor |
BCM2838_CM_AVEOCTL = $000001B8;
|
AVEO Clock Control |
BCM2838_CM_AVEODIV = $000001BC;
|
AVEO Clock Divisor |
BCM2838_CM_EMMCCTL = $000001C0;
|
EMMC Clock Control |
BCM2838_CM_EMMCDIV = $000001C4;
|
EMMC Clock Divisor |
BCM2838_MAILBOX_*
BCM2838_MAILBOX_0 = 0;
|
|
BCM2838_MAILBOX_1 = 1;
|
BCM2838_MAILBOX0_CHANNEL_*
See: https://github.com/raspberrypi/firmware/wiki/Mailboxes | |
BCM2838_MAILBOX0_CHANNEL_POWER_MGMT = 0;
|
|
BCM2838_MAILBOX0_CHANNEL_FRAMEBUFFER = 1;
|
|
BCM2838_MAILBOX0_CHANNEL_UART = 2;
|
|
BCM2838_MAILBOX0_CHANNEL_VCHIQ = 3;
|
|
BCM2838_MAILBOX0_CHANNEL_LEDS = 4;
|
|
BCM2838_MAILBOX0_CHANNEL_BUTTONS = 5;
|
|
BCM2838_MAILBOX0_CHANNEL_TOUCHSCREEN = 6;
|
|
BCM2838_MAILBOX0_CHANNEL_UNKNOWN = 7;
|
|
BCM2838_MAILBOX0_CHANNEL_PROPERTYTAGS_ARMVC = 8;
|
|
BCM2838_MAILBOX0_CHANNEL_PROPERTYTAGS_VCARM = 9;
|
BCM2838_MAILBOX_*_MASK*
See: https://github.com/raspberrypi/firmware/wiki/Mailboxes | |
Currently unknown | |
The BCM2838 mailboxes pass 28-bit messages (The low 4 bits of the 32-bit value are used to specify the channel) | |
BCM2838_MAILBOX_CHANNEL_MASK = $0000000F;
|
|
BCM2838_MAILBOX_DATA_MASK = $FFFFFFF0;
|
BCM2838_MAILBOX_STATUS_*
BCM2838_MAILBOX_STATUS_FULL = $80000000;
|
|
BCM2838_MAILBOX_STATUS_EMPTY = $40000000;
|
BCM2838_MAILBOX_CONFIG_*
BCM2838_MAILBOX_CONFIG_IRQENABLE = $00000001;
|
BCM2838_MBOX_TAG_GET_*
See: https://github.com/raspberrypi/firmware/wiki/Mailbox-property-interface or \include\soc\bcm2835\raspberrypi-firmware.h | |
VideoCore | |
BCM2838_MBOX_TAG_GET_FIRMWARE_REV = $00000001;
|
|
Hardware | |
BCM2838_MBOX_TAG_GET_BOARD_MODEL = $00010001;
|
|
BCM2838_MBOX_TAG_GET_BOARD_REV = $00010002;
|
|
BCM2838_MBOX_TAG_GET_MAC_ADDRESS = $00010003;
|
|
BCM2838_MBOX_TAG_GET_BOARD_SERIAL = $00010004;
|
|
BCM2838_MBOX_TAG_GET_ARM_MEMORY = $00010005;
|
|
BCM2838_MBOX_TAG_GET_VC_MEMORY = $00010006;
|
|
BCM2838_MBOX_TAG_GET_CLOCKS = $00010007;
|
|
Shared Resource Management | |
BCM2838_MBOX_TAG_GET_POWER_STATE = $00020001;
|
Response indicates current state |
BCM2838_MBOX_TAG_GET_TIMING = $00020002;
|
Response indicates wait time required after turning a device on before power is stable |
BCM2838_MBOX_TAG_SET_POWER_STATE = $00028001;
|
Response indicates new state, with/without waiting for the power to become stable. |
BCM2838_MBOX_TAG_GET_CLOCK_STATE = $00030001;
|
|
BCM2838_MBOX_TAG_SET_CLOCK_STATE = $00038001;
|
|
BCM2838_MBOX_TAG_GET_CLOCK_RATE = $00030002;
|
|
BCM2838_MBOX_TAG_SET_CLOCK_RATE = $00038002;
|
|
BCM2838_MBOX_TAG_GET_CLOCK_MAX_RATE = $00030004;
|
Return the maximum supported clock rate for the given clock. Clocks should not be set higher than this. |
BCM2838_MBOX_TAG_GET_CLOCK_MIN_RATE = $00030007;
|
Return the minimum supported clock rate for the given clock. This may be used when idle. |
BCM2838_MBOX_TAG_GET_TURBO = $00030009;
|
Get the turbo state for index id. id should be 0. level will be zero for non-turbo and one for turbo. |
BCM2838_MBOX_TAG_SET_TURBO = $00038009;
|
Set the turbo state for index id. id should be zero. level will be zero for non-turbo and one for turbo. This will cause GPU clocks to be set to maximum when enabled and minimum when disabled. |
BCM2838_MBOX_TAG_GET_STC = $0003000b;
|
|
Voltage | |
BCM2838_MBOX_TAG_GET_VOLTAGE = $00030003;
|
The voltage value may be clamped to the supported range. A value of 0x80000000 means the id was not valid. |
BCM2838_MBOX_TAG_SET_VOLTAGE = $00038003;
|
The voltage value may be clamped to the supported range. A value of 0x80000000 means the id was not valid. |
BCM2838_MBOX_TAG_GET_MAX_VOLTAGE = $00030005;
|
Return the maximum supported voltage rate for the given id. Voltages should not be set higher than this. |
BCM2838_MBOX_TAG_GET_MIN_VOLTAGE = $00030008;
|
Return the minimum supported voltage rate for the given id. This may be used when idle. |
BCM2838_MBOX_TAG_GET_TEMP = $00030006;
|
Return the temperature of the SoC in thousandths of a degree C. id should be zero. |
BCM2838_MBOX_TAG_GET_MAX_TEMP = $0003000a;
|
Return the maximum safe temperature of the SoC in thousandths of a degree C. id should be zero. Overclock may be disabled above this temperature. |
GPU | |
BCM2838_MBOX_TAG_ALLOCATE_MEMORY = $0003000c;
|
Allocates contiguous memory on the GPU. size and alignment are in bytes. |
BCM2838_MBOX_TAG_LOCK_MEMORY = $0003000d;
|
Lock buffer in place, and return a bus address. Must be done before memory can be accessed. |
BCM2838_MBOX_TAG_UNLOCK_MEMORY = $0003000e;
|
Unlock buffer. It retains contents, but may move. Needs to be locked before next use. status=0 is success. |
BCM2838_MBOX_TAG_RELEASE_MEMORY = $0003000f;
|
Free the memory buffer. status=0 is success. |
BCM2838_MBOX_TAG_EXECUTE_CODE = $00030010;
|
Calls the function at given (bus) address and with arguments given. E.g. r0 = fn(r0, r1, r2, r3, r4, r5); It blocks until call completes |
BCM2838_MBOX_TAG_EXECUTE_QPU = $00030011;
|
Execute an assembled block of code using one or more Quad Processing Units (QPUs) |
BCM2838_MBOX_TAG_ENABLE_QPU = $00030012;
|
Enable the Quad Processing Units (QPUs) |
BCM2838_MBOX_TAG_GET_DISPMANX_HANDLE = $00030014;
|
Gets the mem_handle associated with a created dispmanx resource. This can be locked and the memory directly written from the arm to avoid having to copy the image data to GPU. |
BCM2838_MBOX_TAG_GET_EDID_BLOCK = $00030020;
|
This reads the specified EDID block from attached HDMI/DVI device. There will always be at least one block of 128 bytes, but there may be additional blocks. You should keep requesting blocks (starting from 0) until the status returned is non-zero. |
BCM2838_MBOX_TAG_GET_CUSTOMER_OTP = $00030021;
|
|
BCM2838_MBOX_TAG_SET_CUSTOMER_OTP = $00038021;
|
|
BCM2838_MBOX_TAG_GET_DOMAIN_STATE = $00030030;
|
|
BCM2838_MBOX_TAG_SET_DOMAIN_STATE = $00038030;
|
|
BCM2838_MBOX_TAG_GET_GPIO_STATE = $00030041;
|
Get the current state of a GPIO expander pin |
BCM2838_MBOX_TAG_SET_GPIO_STATE = $00038041;
|
Set the current state of a GPIO expander pin |
BCM2838_MBOX_TAG_SET_SDHOST_CLOCK = $00038042;
|
Tell the firmware the SD Host clock setting so it will be adjusted for changes in core frequency |
BCM2838_MBOX_TAG_GET_GPIO_CONFIG = $00030043;
|
Get the current configuration of a GPIO expander pin |
BCM2838_MBOX_TAG_SET_GPIO_CONFIG = $00038043;
|
Set the current configuration of a GPIO expander pin |
BCM2838_MBOX_TAG_GET_THROTTLED = $00030046;
|
|
BCM2838_MBOX_TAG_GET_CLOCK_MEASURED = $00030047;
|
|
BCM2838_MBOX_TAG_GET_PERIPH_REG = $00030045;
|
|
BCM2838_MBOX_TAG_SET_PERIPH_REG = $00038045;
|
|
BCM2838_MBOX_TAG_GET_POE_HAT_VAL = $00030049;
|
|
BCM2838_MBOX_TAG_SET_POE_HAT_VAL = $00038049;;
|
|
BCM2838_MBOX_TAG_NOTIFY_REBOOT = $00030048;
|
|
BCM2838_MBOX_TAG_NOTIFY_XHCI_RESET = $00030058;;
|
|
BCM2838_MBOX_TAG_GET_BOOT_MODE = $0003005b;
|
Get the boot mode that was used by the firmware to load the kernel (1 = SD, 4 = MSD etc) |
BCM2838_MBOX_TAG_GET_REBOOT_FLAGS = $00030064;
|
|
BCM2838_MBOX_TAG_SET_REBOOT_FLAGS = $00038064;;
|
|
BCM2838_MBOX_TAG_NOTIFY_DISPLAY_DONE = $00030066;
|
|
Frame Buffer | |
BCM2838_MBOX_TAG_ALLOCATE_BUFFER = $00040001;
|
If the requested alignment is unsupported then the current base and size (which may be 0 if not allocated) is returned and no change occurs |
BCM2838_MBOX_TAG_RELEASE_BUFFER = $00048001;
|
Releases and disables the frame buffer |
BCM2838_MBOX_TAG_SET_BLANK_SCREEN = $00040002;
|
|
BCM2838_MBOX_TAG_TEST_BLANK_SCREEN = $00044002;
|
Previously BCM2838_MBOX_TAG_TST_BLANK_SCREEN |
BCM2838_MBOX_TAG_GET_PHYSICAL_W_H = $00040003;
|
Note that the "physical (display)" size is the size of the allocated buffer in memory, not the resolution of the video signal sent to the display device. |
BCM2838_MBOX_TAG_TEST_PHYSICAL_W_H = $00044003;
|
|
BCM2838_MBOX_TAG_SET_PHYSICAL_W_H = $00048003;
|
|
BCM2838_MBOX_TAG_GET_VIRTUAL_W_H = $00040004;
|
Note that the "virtual (buffer)" size is the portion of buffer that is sent to the display device, not the resolution the buffer itself. This may be smaller than the allocated buffer size in order to implement panning. |
BCM2838_MBOX_TAG_TEST_VIRTUAL_W_H = $00044004;
|
|
BCM2838_MBOX_TAG_SET_VIRTUAL_W_H = $00048004;
|
|
BCM2838_MBOX_TAG_GET_DEPTH = $00040005;
|
|
BCM2838_MBOX_TAG_TEST_DEPTH = $00044005;
|
|
BCM2838_MBOX_TAG_SET_DEPTH = $00048005;
|
|
BCM2838_MBOX_TAG_GET_PIXEL_ORDER = $00040006;
|
|
BCM2838_MBOX_TAG_TEST_PIXEL_ORDER = $00044006;
|
|
BCM2838_MBOX_TAG_SET_PIXEL_ORDER = $00048006;
|
|
BCM2838_MBOX_TAG_GET_ALPHA_MODE = $00040007;
|
|
BCM2838_MBOX_TAG_TEST_ALPHA_MODE = $00044007;
|
|
BCM2838_MBOX_TAG_SET_ALPHA_MODE = $00048007;
|
|
BCM2838_MBOX_TAG_GET_PITCH = $00040008;
|
|
BCM2838_MBOX_TAG_TEST_PITCH = $00044008;
|
Previously BCM2838_MBOX_TAG_TST_PITCH |
BCM2838_MBOX_TAG_SET_PITCH = $00048008;
|
|
BCM2838_MBOX_TAG_GET_VIRTUAL_OFFSET = $00040009;
|
Offset of physical display window within virtual buffer |
BCM2838_MBOX_TAG_TEST_VIRTUAL_OFFSET = $00044009;
|
|
BCM2838_MBOX_TAG_SET_VIRTUAL_OFFSET = $00048009;
|
|
BCM2838_MBOX_TAG_GET_OVERSCAN = $0004000a;
|
|
BCM2838_MBOX_TAG_TEST_OVERSCAN = $0004400a;
|
|
BCM2838_MBOX_TAG_SET_OVERSCAN = $0004800a;
|
|
BCM2838_MBOX_TAG_GET_PALETTE = $0004000b;
|
|
BCM2838_MBOX_TAG_TEST_PALETTE = $0004400b;
|
|
BCM2838_MBOX_TAG_SET_PALETTE = $0004800b;
|
|
BCM2838_MBOX_TAG_GET_LAYER = $0004000c;
|
|
BCM2838_MBOX_TAG_TEST_LAYER = $0004400c;
|
Previously BCM2838_MBOX_TAG_TST_LAYER |
BCM2838_MBOX_TAG_SET_LAYER = $0004800c;
|
|
BCM2838_MBOX_TAG_GET_TRANSFORM = $0004000d;
|
|
BCM2838_MBOX_TAG_TEST_TRANSFORM = $0004400d;
|
Previously BCM2838_MBOX_TAG_TST_TRANSFORM |
BCM2838_MBOX_TAG_SET_TRANSFORM = $0004800d;
|
|
BCM2838_MBOX_TAG_TEST_VSYNC = $0004400e;
|
Previously BCM2838_MBOX_TAG_TST_VSYNC |
BCM2838_MBOX_TAG_SET_VSYNC = $0004800e;
|
|
BCM2838_MBOX_TAG_SET_BACKLIGHT = $0004800f;
|
|
BCM2838_MBOX_TAG_GET_TOUCHBUF = $0004000f;
|
|
BCM2838_MBOX_TAG_SET_TOUCHBUF = $0004801f;
|
|
BCM2838_MBOX_TAG_GET_GPIOVIRTBUF = $00040010;
|
|
BCM2838_MBOX_TAG_SET_GPIOVIRTBUF = $00048020;
|
|
BCM2838_MBOX_TAG_GET_DISPLAY_ID = $00040016;
|
|
BCM2838_MBOX_TAG_SET_DISPLAY_NUM = $00048013;
|
|
BCM2838_MBOX_TAG_GET_NUM_DISPLAYS = $00040013;
|
|
BCM2838_MBOX_TAG_GET_DISPLAY_SETTINGS = $00040014;
|
|
BCM2838_MBOX_TAG_SET_PLANE = $00048015;
|
|
BCM2838_MBOX_TAG_GET_DISPLAY_TIMING = $00040017;
|
|
BCM2838_MBOX_TAG_SET_TIMING = $00048017;
|
|
BCM2838_MBOX_TAG_GET_DISPLAY_CFG = $00040018;
|
|
BCM2838_MBOX_TAG_SET_DISPLAY_POWER = $00048019;
|
|
BCM2838_MBOX_TAG_SET_CURSOR_INFO = $00008010;
|
00008011 These were reversed in the documentation, see Linux \include\soc\bcm2835\raspberrypi-firmware.h |
BCM2838_MBOX_TAG_SET_CURSOR_STATE = $00008011;
|
00008010 |
VCHIQ | |
BCM2838_MBOX_TAG_VCHIQ_INIT = $00048010;
|
|
Config | |
BCM2838_MBOX_TAG_GET_COMMAND_LINE = $00050001;
|
|
Shared Resource Management | |
BCM2838_MBOX_TAG_GET_DMA_CHANNELS = $00060001;
|
Caller assumes that the VC has enabled all the usable DMA channels |
End | |
BCM2838_MBOX_TAG_END = $00000000;
|
BCM2838_BOARD_REV_*
See: http://elinux.org/RPi_HardwareHistory | |
BCM2838_BOARD_REV_2B_1 = $00A01041;
|
|
BCM2838_BOARD_REV_2B_2 = $00A21041;
|
|
BCM2838_BOARD_REV_2B_3 = $00A22042;
|
|
BCM2838_BOARD_REV_3B_1 = $00A02082;
|
|
BCM2838_BOARD_REV_3B_2 = $00A22082;
|
|
BCM2838_BOARD_REV_3B_3 = $00A32082;
|
|
BCM2838_BOARD_REV_CM3_1 = $00A020A0;
|
|
BCM2838_BOARD_REV_CM3_2 = $00A220A0;
|
|
BCM2838_BOARD_REV_MASK = $00FFFFFF;
|
Mask off the warranty bit |
BCM2838_BOARD_REVISION_*
See: https://www.raspberrypi.org/documentation/hardware/raspberrypi/revision-codes/README.md | |
BCM2838_BOARD_REVISION_PCB_MASK = ($F shl 0);
|
PCB Revision Number |
BCM2838_BOARD_REVISION_MODEL_MASK = ($FF shl 4);
|
Model Number |
BCM2838_BOARD_REVISION_MODEL_A = (0 shl 4);
|
Model A (Cannot occur on BCM2838) |
BCM2838_BOARD_REVISION_MODEL_B = (1 shl 4);
|
Model B (Cannot occur on BCM2838) |
BCM2838_BOARD_REVISION_MODEL_APLUS = (2 shl 4);
|
Model A+ (Cannot occur on BCM2838) |
BCM2838_BOARD_REVISION_MODEL_BPLUS = (3 shl 4);
|
Model B+ (Cannot occur on BCM2838) |
BCM2838_BOARD_REVISION_MODEL_2B = (4 shl 4);
|
Model 2B (Cannot occur on BCM2838) |
BCM2838_BOARD_REVISION_MODEL_ALPHA = (5 shl 4);
|
Unknown |
BCM2838_BOARD_REVISION_MODEL_COMPUTE = (6 shl 4);
|
Compute Module (Cannot occur on BCM2838) |
BCM2838_BOARD_REVISION_MODEL_UNKNOWN = (7 shl 4);
|
Unknown |
BCM2838_BOARD_REVISION_MODEL_3B = (8 shl 4);
|
Model 3B (Cannot occur on BCM2838) |
BCM2838_BOARD_REVISION_MODEL_ZERO = (9 shl 4);
|
Model Zero (Cannot occur on BCM2838) |
BCM2838_BOARD_REVISION_MODEL_COMPUTE3 = (10 shl 4);
|
Compute Module 3 (Cannot occur on BCM2838) |
BCM2838_BOARD_REVISION_MODEL_UNKNOWN_2 = (11 shl 4);
|
Unknown |
BCM2838_BOARD_REVISION_MODEL_ZERO_W = (12 shl 4);
|
Model Zero W (Cannot occur on BCM2838) |
BCM2838_BOARD_REVISION_MODEL_3BPLUS = (13 shl 4);
|
Model 3B+ (Cannot occur on BCM2838) |
BCM2838_BOARD_REVISION_MODEL_3APLUS = (14 shl 4);
|
Model 3A+ (Cannot occur on BCM2838) |
BCM2838_BOARD_REVISION_MODEL_COMPUTE3PLUS = (16 shl 4);
|
Compute Module 3+ (Cannot occur on BCM2838) |
BCM2838_BOARD_REVISION_MODEL_4B = (17 shl 4);
|
Model 4B |
BCM2838_BOARD_REVISION_MODEL_ZERO2_W = (18 shl 4);
|
Model Zero 2 W (Cannot occur on BCM2838) |
BCM2838_BOARD_REVISION_MODEL_400 = (19 shl 4);
|
Pi 400 |
BCM2838_BOARD_REVISION_MODEL_CM4 = (20 shl 4);
|
Compute Module 4 |
BCM2838_BOARD_REVISION_MODEL_CM4S = (21 shl 4);
|
Compute Module 4S |
BCM2838_BOARD_REVISION_PROCESSOR_MASK = ($F shl 12);
|
Processor Type |
BCM2838_BOARD_REVISION_PROCESSOR_BCM2835 = (0 shl 12);
|
BCM2835 (Cannot occur on BCM2838) |
BCM2838_BOARD_REVISION_PROCESSOR_BCM2836 = (1 shl 12);
|
BCM2836 |
BCM2838_BOARD_REVISION_PROCESSOR_BCM2837 = (2 shl 12);
|
BCM2837 |
BCM2838_BOARD_REVISION_PROCESSOR_BCM2838 = (3 shl 12);
|
BCM2838 |
BCM2838_BOARD_REVISION_MANUFACTURER_MASK = ($F shl 16);
|
Manufacturer |
BCM2838_BOARD_REVISION_MANUFACTURER_SONY = (0 shl 16);
|
Sony |
BCM2838_BOARD_REVISION_MANUFACTURER_EGOMAN = (1 shl 16);
|
Egoman |
BCM2838_BOARD_REVISION_MANUFACTURER_EMBEST = (2 shl 16);
|
Embest |
BCM2838_BOARD_REVISION_MANUFACTURER_SONY_JAPAN = (3 shl 16);
|
Sony (Japan) |
BCM2838_BOARD_REVISION_MANUFACTURER_EMBEST2 = (4 shl 16);
|
Embest |
BCM2838_BOARD_REVISION_MANUFACTURER_STADIUM = (5 shl 16);
|
Stadium |
BCM2838_BOARD_REVISION_MEMORY_MASK = ($7 shl 20);
|
Memory Size |
BCM2838_BOARD_REVISION_MEMORY_256M = (0 shl 20);
|
256M |
BCM2838_BOARD_REVISION_MEMORY_512M = (1 shl 20);
|
512M |
BCM2838_BOARD_REVISION_MEMORY_1024M = (2 shl 20);
|
1024M |
BCM2838_BOARD_REVISION_MEMORY_2048M = (3 shl 20);
|
2048M |
BCM2838_BOARD_REVISION_MEMORY_4096M = (4 shl 20);
|
4096M |
BCM2838_BOARD_REVISION_MEMORY_8192M = (5 shl 20);
|
8192M |
BCM2838_BOARD_REVISION_ENCODED_FLAG = (1 shl 23);
|
Encoded Flag, if set then revision uses this encoding. |
BCM2838_BOARD_REVISION_MASK = $00FFFFFF;
|
Mask off the warranty bits |
BCM2838_MBOX_POWER_DEVID_*
BCM2838_MBOX_POWER_DEVID_SDHCI = 0;
|
|
BCM2838_MBOX_POWER_DEVID_UART0 = 1;
|
|
BCM2838_MBOX_POWER_DEVID_UART1 = 2;
|
|
BCM2838_MBOX_POWER_DEVID_USB_HCD = 3;
|
|
BCM2838_MBOX_POWER_DEVID_I2C0 = 4;
|
|
BCM2838_MBOX_POWER_DEVID_I2C1 = 5;
|
|
BCM2838_MBOX_POWER_DEVID_I2C2 = 6;
|
|
BCM2838_MBOX_POWER_DEVID_SPI = 7;
|
|
BCM2838_MBOX_POWER_DEVID_CCP2TX = 8;
|
|
BCM2838_MBOX_POWER_DEVID_UNKNOWN = $FFFFFFFF;
|
BCM2838_MBOX_SET_POWER_STATE_REQ_*
BCM2838_MBOX_SET_POWER_STATE_REQ_OFF = (0 shl 0);
|
|
BCM2838_MBOX_SET_POWER_STATE_REQ_ON = (1 shl 0);
|
|
BCM2838_MBOX_SET_POWER_STATE_REQ_WAIT = (1 shl 1);
|
BCM2838_MBOX_POWER_STATE_RESP_*
BCM2838_MBOX_POWER_STATE_RESP_OFF = (0 shl 0);
|
|
BCM2838_MBOX_POWER_STATE_RESP_ON = (1 shl 0);
|
|
BCM2838_MBOX_POWER_STATE_RESP_NODEV = (1 shl 1);
|
Device doesn't exist |
BCM2838_MBOX_CLOCK_ID_*
BCM2838_MBOX_CLOCK_ID_RESERVED = 0;
|
|
BCM2838_MBOX_CLOCK_ID_EMMC = 1;
|
|
BCM2838_MBOX_CLOCK_ID_UART = 2;
|
|
BCM2838_MBOX_CLOCK_ID_ARM = 3;
|
|
BCM2838_MBOX_CLOCK_ID_CORE = 4;
|
|
BCM2838_MBOX_CLOCK_ID_V3D = 5;
|
|
BCM2838_MBOX_CLOCK_ID_H264 = 6;
|
|
BCM2838_MBOX_CLOCK_ID_ISP = 7;
|
|
BCM2838_MBOX_CLOCK_ID_SDRAM = 8;
|
|
BCM2838_MBOX_CLOCK_ID_PIXEL = 9;
|
|
BCM2838_MBOX_CLOCK_ID_PWM = 10;
|
|
BCM2838_MBOX_CLOCK_ID_HEVC = 11;
|
|
BCM2838_MBOX_CLOCK_ID_EMMC2 = 12;
|
|
BCM2838_MBOX_CLOCK_ID_M2MC = 13;
|
|
BCM2838_MBOX_CLOCK_ID_PIXEL_BVB = 14;
|
|
BCM2838_MBOX_CLOCK_ID_UNKNOWN = $FFFFFFFF;
|
BCM2838_MBOX_SET_CLOCK_STATE__REQ_*
BCM2838_MBOX_SET_CLOCK_STATE_REQ_OFF = (0 shl 0);
|
|
BCM2838_MBOX_SET_CLOCK_STATE_REQ_ON = (1 shl 0);
|
|
BCM2838_MBOX_SET_CLOCK_STATE_REQ_NOCLOCK = (1 shl 1);
|
Clock doesn't exist |
BCM2838_MBOX_CLOCK_STATE_RESP_ *
BCM2838_MBOX_CLOCK_STATE_RESP_OFF = (0 shl 0);
|
|
BCM2838_MBOX_CLOCK_STATE_RESP_ON = (1 shl 0);
|
|
BCM2838_MBOX_CLOCK_STATE_RESP_NOCLOCK = (1 shl 1);
|
Clock doesn't exist |
BCM2838_MBOX_CLOCK_RATE_*
BCM2838_MBOX_CLOCK_RATE_REQ_SKIP_TURBO = (1 shl 0);
|
BCM2838_MBOX_VOLTAGE_ID_*
BCM2838_MBOX_VOLTAGE_ID_RESERVED = $00000000;
|
|
BCM2838_MBOX_VOLTAGE_ID_CORE = $00000001;
|
|
BCM2838_MBOX_VOLTAGE_ID_SDRAM_C = $00000002;
|
|
BCM2838_MBOX_VOLTAGE_ID_SDRAM_P = $00000003;
|
|
BCM2838_MBOX_VOLTAGE_ID_SDRAM_I = $00000004;
|
BCM2838_MBOX_VOLTAGE_*
BCM2838_MBOX_VOLTAGE_INVALID = $80000000;
|
A value of 0x80000000 means the id was not valid |
BCM2838_MBOX_TEMP_ID_*
BCM2838_MBOX_TEMP_ID_SOC = 0;
|
BCM2838_MBOX_DISPLAY_ID_*
Note: These are compatible with the DISPMANX_ID_* values | |
BCM2838_MBOX_DISPLAY_ID_MAIN_LCD = 0;
|
|
BCM2838_MBOX_DISPLAY_ID_AUX_LCD = 1;
|
|
BCM2838_MBOX_DISPLAY_ID_HDMI0 = 2;
|
|
BCM2838_MBOX_DISPLAY_ID_SDTV = 3;
|
|
BCM2838_MBOX_DISPLAY_ID_FORCE_LCD = 4;
|
|
BCM2838_MBOX_DISPLAY_ID_FORCE_TV = 5;
|
|
BCM2838_MBOX_DISPLAY_ID_FORCE_OTHER = 6;
|
Non-default display |
BCM2838_MBOX_DISPLAY_ID_HDMI1 = 7;
|
|
BCM2838_MBOX_DISPLAY_ID_FORCE_TV2 = 8;
|
BCM2838_MBOX_MEM_FLAG_*
BCM2838_MBOX_MEM_FLAG_DISCARDABLE = (1 shl 0);
|
Can be resized to 0 at any time. Use for cached data. |
BCM2838_MBOX_MEM_FLAG_NORMAL = (0 shl 2);
|
Normal allocating alias. Don't use from ARM. |
BCM2838_MBOX_MEM_FLAG_DIRECT = (1 shl 2);
|
0xC alias uncached |
BCM2838_MBOX_MEM_FLAG_COHERENT = (2 shl 2);
|
0x8 alias. Non-allocating in L2 but coherent |
BCM2838_MBOX_MEM_FLAG_L1_NONALLOCATING = (BCM2838_MBOX_MEM_FLAG_DIRECT or BCM2838_MBOX_MEM_FLAG_COHERENT);
|
Allocating in L2 |
BCM2838_MBOX_MEM_FLAG_ZERO = (1 shl 4);
|
Initialise buffer to all zeros |
BCM2838_MBOX_MEM_FLAG_NO_INIT = (1 shl 5);
|
Don't initialise (default is initialise to all ones) |
BCM2838_MBOX_MEM_FLAG_HINT_PERMALOCK = (1 shl 6);
|
Likely to be locked for long periods of time |
BCM2838_MBOX_BLANK_SCREEN_*
BCM2838_MBOX_BLANK_SCREEN_REQ_ON = (1 shl 0);
|
BCM2838_MBOX_PIXEL_ORDER_*
BCM2838_MBOX_PIXEL_ORDER_BGR = 0;
|
|
BCM2838_MBOX_PIXEL_ORDER_RGB = 1;
|
BCM2838_MBOX_ALPHA_MODE_*
BCM2838_MBOX_ALPHA_MODE_0_OPAQUE = 0;
|
|
BCM2838_MBOX_ALPHA_MODE_0_TRANSPARENT = 1;
|
|
BCM2838_MBOX_ALPHA_MODE_IGNORED = 2;
|
BCM2838_MBOX_PALETTE_*
BCM2838_MBOX_PALETTE_INVALID = $00000001;
|
BCM2838_MBOX_CURSOR_*
BCM2838_MBOX_CURSOR_INVISIBLE = 0;
|
|
BCM2838_MBOX_CURSOR_VISIBLE = 1;
|
BCM2838_MBOX_CURSOR_STATE_*
BCM2838_MBOX_CURSOR_STATE_DISPLAY_COORDS = (0 shl 0);
|
|
BCM2838_MBOX_CURSOR_STATE_FRAMEBUFFER_COORDS = (1 shl 0);
|
BCM2838_MBOX_CURSOR_INVALID*
BCM2838_MBOX_CURSOR_INVALID = $00000001;
|
BCM2838_MBOX_REQUEST_*
BCM2838_MBOX_REQUEST_CODE = $00000000;
|
|
BCM2838_MBOX_RESPONSE_CODE_SUCCESS = $80000000;
|
|
BCM2838_MBOX_RESPONSE_CODE_ERROR = $80000001;
|
BCM2838_MBOX_TAG_REQUEST_*
BCM2838_MBOX_TAG_REQUEST_CODE = $00000000;
|
|
BCM2838_MBOX_TAG_RESPONSE_CODE = $80000000;
|
BCM2838_GPIO_*
BCM2838_GPIO_PIN_COUNT = 58;
|
|
BCM2838_GPIO_BANK_COUNT = 2;
|
|
BCM2838_GPIO_SIGNATURE = $6770696F;
|
The ASCII value 'GPIO' returned when reading from a write only register |
BCM2838_VIRTUAL_GPIO_*
BCM2838_VIRTUAL_GPIO_PIN_COUNT = 2;
|
Raspberry Pi 4B only |
BCM2838_GP*
BCM2838_GPFSEL0 = $00000000;
|
GPIO Function Select 0 |
BCM2838_GPFSEL1 = $00000004;
|
GPIO Function Select 1 |
BCM2838_GPFSEL2 = $00000008;
|
GPIO Function Select 2 |
BCM2838_GPFSEL3 = $0000000C;
|
GPIO Function Select 3 |
BCM2838_GPFSEL4 = $00000010;
|
GPIO Function Select 4 |
BCM2838_GPFSEL5 = $00000014;
|
GPIO Function Select 5 |
Pin Output Set Registers | |
BCM2838_GPSET0 = $0000001C;
|
GPIO Pin Output Set 0 |
BCM2838_GPSET1 = $00000020;
|
GPIO Pin Output Set 1 |
Pin Output Clear Registers | |
BCM2838_GPCLR0 = $00000028;
|
GPIO Pin Output Clear 0 |
BCM2838_GPCLR1 = $0000002C;
|
GPIO Pin Output Clear 1 |
Pin Level Registers | |
BCM2838_GPLEV0 = $00000034;
|
GPIO Pin Level 0 |
BCM2838_GPLEV1 = $00000038;
|
GPIO Pin Level 1 |
Pin Event Detect Status Registers | |
BCM2838_GPEDS0 = $00000040;
|
GPIO Pin Event Detect Status 0 |
BCM2838_GPEDS1 = $00000044;
|
GPIO Pin Event Detect Status 1 |
Pin Rising Edge Detect Enable Registers | |
BCM2838_GPREN0 = $0000004c;
|
GPIO Pin Rising Edge Detect Enable 0 |
BCM2838_GPREN1 = $00000050;
|
GPIO Pin Rising Edge Detect Enable 1 |
Pin Falling Edge Detect Enable Registers | |
BCM2838_GPFEN0 = $00000058;
|
GPIO Pin Falling Edge Detect Enable 0 |
BCM2838_GPFEN1 = $0000005c;
|
GPIO Pin Falling Edge Detect Enable 1 |
Pin High Detect Enable Registers | |
BCM2838_GPHEN0 = $00000064;
|
GPIO Pin High Detect Enable 0 |
BCM2838_GPHEN1 = $00000068;
|
GPIO Pin High Detect Enable 1 |
Pin Low Detect Enable Registers | |
BCM2838_GPLEN0 = $00000070;
|
GPIO Pin Low Detect Enable 0 |
BCM2838_GPLEN1 = $00000074;
|
GPIO Pin Low Detect Enable 1 |
Pin Async. Rising Edge Detect Registers | |
BCM2838_GPAREN0 = $0000007c;
|
GPIO Pin Async. Rising Edge Detect 0 |
BCM2838_GPAREN1 = $00000080;
|
GPIO Pin Async. Rising Edge Detect 1 |
Pin Async. Falling Edge Detect Registers | |
BCM2838_GPAFEN0 = $00000088;
|
GPIO Pin Async. Falling Edge Detect 0 |
BCM2838_GPAFEN1 = $0000008c;
|
GPIO Pin Async. Falling Edge Detect 1 |
Pin Mux Register (See: https://github.com/raspberrypi/documentation/issues/1209) | |
BCM2838_GPPINMUX = $000000D0;
|
|
Pin Pull-up/down Mode Registers | |
BCM2838_GPPUD0 = $000000E4;
|
GPIO Pin Pull-up/down Mode 0 |
BCM2838_GPPUD1 = $000000E8;
|
GPIO Pin Pull-up/down Mode 1 |
BCM2838_GPPUD2 = $000000EC;
|
GPIO Pin Pull-up/down Mode 2 |
BCM2838_GPPUD3 = $000000F0;
|
GPIO Pin Pull-up/down Mode 3 |
Function Select Mask | |
BCM2838_GPFSEL_MASK = 7;
|
|
Function Select Values | |
BCM2838_GPFSEL_IN = 0;
|
|
BCM2838_GPFSEL_OUT = 1;
|
|
BCM2838_GPFSEL_ALT0 = 4;
|
|
BCM2838_GPFSEL_ALT1 = 5;
|
|
BCM2838_GPFSEL_ALT2 = 6;
|
|
BCM2838_GPFSEL_ALT3 = 7;
|
|
BCM2838_GPFSEL_ALT4 = 3;
|
|
BCM2838_GPFSEL_ALT5 = 2;
|
|
Pin Output Set Mask | |
BCM2838_GPSET_MASK = 1;
|
|
Pin Output Clear Mask | |
BCM2838_GPCLR_MASK = 1;
|
|
Pin Level Mask | |
BCM2838_GPLEV_MASK = 1;
|
|
Pin Event Detect Status Mask | |
BCM2838_GPEDS_MASK = 1;
|
|
Pin Rising Edge Detect Enable Mask | |
BCM2838_GPREN_MASK = 1;
|
|
Pin Falling Edge Detect Enable Mask | |
BCM2838_GPFEN_MASK = 1;
|
|
Pin High Detect Enable Mask | |
BCM2838_GPHEN_MASK = 1;
|
|
Pin Low Detect Enable Mask | |
BCM2838_GPLEN_MASK = 1;
|
|
Pin Async. Rising Edge Detect Mask | |
BCM2838_GPAREN_MASK = 1;
|
|
Pin Async. Falling Edge Detect Mask | |
BCM2838_GPAFEN_MASK = 1;
|
|
Pull-up/down Mode Mask | |
BCM2838_GPPUD_MASK = 3;
|
|
Pull-up/down Mode Values | |
BCM2838_GPPUD_NONE = 0;
|
|
BCM2838_GPPUD_UP = 1;
|
|
BCM2838_GPPUD_DOWN = 2;
|
|
Pin Mux Values | |
BCM2838_GPPINMUX_RGMII_PHY_GPIO = 1;
|
If set enables the RGMII PHY signals onto GPIOs 46+ |
BCM2838_GPPINMUX_LEGACY_EMMC = 2;
|
If set legacy EMMC controller (Arasan SD) is connected to the SD card socket |
BCM2838_ARM_LOCAL_*
BCM2838_ARM_LOCAL_BASE = $FF800000;
|
|
BCM2838_ARM_LOCAL_SIZE = SIZE_8M;
|
BCM2838_ARM_*_REGS_ BASE*
See: BCM2711 ARM Peripherals | |
BCM2838_ARM_LOCAL_REGS_BASE = (BCM2838_ARM_LOCAL_BASE + $0000);
|
|
GICv2 | |
BCM2838_GICDIST_REGS_BASE = BCM2838_ARM_LOCAL_BASE + $41000;
|
|
BCM2838_GICCPU_REGS_BASE = BCM2838_ARM_LOCAL_BASE + $42000;
|
BCM2838_IRQ_LOCAL_ARM_*
See: BCM2711 ARM Peripherals | |
ARM Generic Timers | |
BCM2838_IRQ_LOCAL_ARM_CNTPSIRQ = BCM2838_IRQ_TIMER0;
|
|
BCM2838_IRQ_LOCAL_ARM_CNTPNSIRQ = BCM2838_IRQ_TIMER1;
|
|
BCM2838_IRQ_LOCAL_ARM_CNTVIRQ = BCM2838_IRQ_TIMER2;
|
|
BCM2838_IRQ_LOCAL_ARM_CNTHPIRQ = BCM2838_IRQ_TIMER3;
|
|
ARM Malboxes0-3 | |
BCM2838_IRQ_LOCAL_ARM_MAILBOX0:array[0..BCM2838_CPU_COUNT - 1] of LongWord = (BCM2838_IRQ_MAILBOX0_0, BCM2838_IRQ_MAILBOX0_1, BCM2838_IRQ_MAILBOX0_2, BCM2838_IRQ_MAILBOX0_3);
|
|
BCM2838_IRQ_LOCAL_ARM_MAILBOX1:array[0..BCM2838_CPU_COUNT - 1] of LongWord = (BCM2838_IRQ_MAILBOX1_0, BCM2838_IRQ_MAILBOX1_1, BCM2838_IRQ_MAILBOX1_2, BCM2838_IRQ_MAILBOX1_3);
|
|
BCM2838_IRQ_LOCAL_ARM_MAILBOX2:array[0..BCM2838_CPU_COUNT - 1] of LongWord = (BCM2838_IRQ_MAILBOX2_0, BCM2838_IRQ_MAILBOX2_1, BCM2838_IRQ_MAILBOX2_2, BCM2838_IRQ_MAILBOX2_3);
|
|
BCM2838_IRQ_LOCAL_ARM_MAILBOX3:array[0..BCM2838_CPU_COUNT - 1] of LongWord = (BCM2838_IRQ_MAILBOX3_0, BCM2838_IRQ_MAILBOX3_1, BCM2838_IRQ_MAILBOX3_2, BCM2838_IRQ_MAILBOX3_3);
|
|
ARM Performance Monitoring | |
BCM2838_IRQ_LOCAL_ARM_PMU:array[0..BCM2838_CPU_COUNT - 1] of LongWord = (BCM2838_IRQ_PMU0, BCM2838_IRQ_PMU1, BCM2838_IRQ_PMU2, BCM2838_IRQ_PMU3);
|
|
AXI Outstanding | |
BCM2838_IRQ_LOCAL_ARM_AXIQUIET = BCM2838_IRQ_LOCAL_AXIQUIET;
|
|
ARM Local Timer | |
BCM2838_IRQ_LOCAL_ARM_TIMER = BCM2838_IRQ_LOCAL_TIMER;
|
|
AXI Error | |
BCM2838_IRQ_LOCAL_ARM_AXIERR = BCM2838_IRQ_LOCAL_AXIERR;
|
BCM2838_ARM_LOCAL_CONTROL_*
See: Table 103 ARM_CONTROL register | |
BCM2838_ARM_LOCAL_CONTROL_AXIERRIRQ_DIS = (1 shl 6);
|
Masks the AXI Error interrupt |
BCM2838_ARM_LOCAL_CONTROL_AXIERRIRQ_EN = (0 shl 6);
|
Enables the AXI Error interrupt |
BCM2838_ARM_LOCAL_CONTROL_APB_CLOCK = (1 shl 7);
|
64-bit Core timer runs from the APB clock |
BCM2838_ARM_LOCAL_CONTROL_CRYSTAL_CLOCK = (0 shl 7);
|
64-bit Core timer runs from the Crystal clock |
BCM2838_ARM_LOCAL_CONTROL_INCREMENT_2 = (1 shl 8);
|
64-bit Core timer increments by 2 |
BCM2838_ARM_LOCAL_CONTROL_INCREMENT_1 = (0 shl 8);
|
64-bit Core timer increments by 1 |
BCM2838_ARM_LOCAL_AXI_ERR_ *
See: Table 104 CORE_IRQ_CONTROL Register | |
BCM2838_ARM_LOCAL_AXI_ERR_INT_ROUTING_IRQ0 = (0 shl 4);
|
AXI_ERR IRQ goes to IRQ input of core 0 |
BCM2838_ARM_LOCAL_AXI_ERR_INT_ROUTING_IRQ1 = (1 shl 4);
|
AXI_ERR IRQ goes to IRQ input of core 1 |
BCM2838_ARM_LOCAL_AXI_ERR_INT_ROUTING_IRQ2 = (2 shl 4);
|
AXI_ERR IRQ goes to IRQ input of core 2 |
BCM2838_ARM_LOCAL_AXI_ERR_INT_ROUTING_IRQ3 = (3 shl 4);
|
AXI_ERR IRQ goes to IRQ input of core 3 |
BCM2838_ARM_LOCAL_AXI_ERR_INT_ROUTING_FIQ0 = (4 shl 4);
|
AXI_ERR FIQ goes to FIQ input of core 0 |
BCM2838_ARM_LOCAL_AXI_ERR_INT_ROUTING_FIQ1 = (5 shl 4);
|
AXI_ERR FIQ goes to FIQ input of core 1 |
BCM2838_ARM_LOCAL_AXI_ERR_INT_ROUTING_FIQ2 = (6 shl 4);
|
AXI_ERR FIQ goes to FIQ input of core 2 |
BCM2838_ARM_LOCAL_AXI_ERR_INT_ROUTING_FIQ3 = (7 shl 4);
|
AXI_ERR FIQ goes to FIQ input of core 3 |
BCM2838_ARM_LOCAL_AXI_ERR_INT_ROUTING_MASK = (7 shl 4);
|
|
BCM2838_ARM_LOCAL_AXI_ERR_INT_ROUTING_SHIFT = 4;
|
BCM2838_ARM_LOCAL_PM_INT_ROUTING_*
See: Table 105/106 PMU_CONTROL_SET/CLR Register | |
BCM2838_ARM_LOCAL_PM_INT_ROUTING_IRQ0 = (1 shl 0);
|
Core 0 PM IRQ Enable (This bit is only valid if bit 4 is clear otherwise it is ignored) |
BCM2838_ARM_LOCAL_PM_INT_ROUTING_IRQ1 = (1 shl 1);
|
Core 1 PM IRQ Enable (This bit is only valid if bit 5 is clear otherwise it is ignored) |
BCM2838_ARM_LOCAL_PM_INT_ROUTING_IRQ2 = (1 shl 2);
|
Core 2 PM IRQ Enable (This bit is only valid if bit 6 is clear otherwise it is ignored) |
BCM2838_ARM_LOCAL_PM_INT_ROUTING_IRQ3 = (1 shl 3);
|
Core 3 PM IRQ Enable (This bit is only valid if bit 7 is clear otherwise it is ignored) |
BCM2838_ARM_LOCAL_PM_INT_ROUTING_FIQ0 = (1 shl 4);
|
Core 0 PM FIQ Enable (If set, this bit overrides the IRQ bit 0) |
BCM2838_ARM_LOCAL_PM_INT_ROUTING_FIQ1 = (1 shl 5);
|
Core 1 PM FIQ Enable (If set, this bit overrides the IRQ bit 1) |
BCM2838_ARM_LOCAL_PM_INT_ROUTING_FIQ2 = (1 shl 6);
|
Core 2 PM FIQ Enable (If set, this bit overrides the IRQ bit 2) |
BCM2838_ARM_LOCAL_PM_INT_ROUTING_FIQ3 = (1 shl 7);
|
Core 3 PM FIQ Enable (If set, this bit overrides the IRQ bit 3) |
BCM2838_ARM_LOCAL_*
See: Table 107 PERI_IRQ_ROUTE0 Register | |
BCM2838_ARM_LOCAL_PERIPHERAL_WRITE_MASKS = ($01 shl 24);
|
This field must be written with 0x01, otherwise changes to LOCAL_TIMER_IRQ will be ignored. |
BCM2838_ARM_LOCAL_TIMER_INT_ROUTING_IRQ0 = (0 shl 0);
|
Local timer interrupt goes to Core 0 IRQ |
BCM2838_ARM_LOCAL_TIMER_INT_ROUTING_IRQ1 = (1 shl 0);
|
Local timer interrupt goes to Core 1 IRQ |
BCM2838_ARM_LOCAL_TIMER_INT_ROUTING_IRQ2 = (2 shl 0);
|
Local timer interrupt goes to Core 2 IRQ |
BCM2838_ARM_LOCAL_TIMER_INT_ROUTING_IRQ3 = (3 shl 0);
|
Local timer interrupt goes to Core 3 IRQ |
BCM2838_ARM_LOCAL_TIMER_INT_ROUTING_FIQ0 = (4 shl 0);
|
Local timer interrupt goes to Core 0 FIQ |
BCM2838_ARM_LOCAL_TIMER_INT_ROUTING_FIQ1 = (5 shl 0);
|
Local timer interrupt goes to Core 1 FIQ |
BCM2838_ARM_LOCAL_TIMER_INT_ROUTING_FIQ2 = (6 shl 0);
|
Local timer interrupt goes to Core 2 FIQ |
BCM2838_ARM_LOCAL_TIMER_INT_ROUTING_FIQ3 = (7 shl 0);
|
Local timer interrupt goes to Core 3 FIQ |
BCM2838_ARM_LOCAL_TIMER_INT_ROUTING_MASK = (7 shl 0);
|
|
BCM2838_ARM_LOCAL_TIMER_INT_ROUTING_SHIFT = 0;
|
BCM2838_ARM_LOCAL_AXI_COUNT_*
BCM2838_ARM_LOCAL_AXI_COUNT_READ_MASK = ($3FF shl 0);
|
Outstanding reads counter |
BCM2838_ARM_LOCAL_AXI_COUNT_WRITE_MASK = ($3FF shl 16);
|
Outstanding writes counter |
BCM2838_ARM_LOCAL_AXI_QUIET_*
See: Table 108 AXI_QUIET_TIME Register | |
Core 0 Only | |
BCM2838_ARM_LOCAL_AXI_QUIET_IRQ_ENABLE = (1 shl 20);
|
|
BCM2838_ARM_LOCAL_AXI_QUIET_IRQ_TIMEOUT = ($FFFFF shl 0);
|
BCM2838_ARM_LOCAL_TIMER_CONTROL_*
See: Table 109 LOCAL_TIMER_CONTROL Register | |
BCM2838_ARM_LOCAL_TIMER_CONTROL_INT_STATUS = (1 shl 31);
|
Interrupt flag (Read Only) |
BCM2838_ARM_LOCAL_TIMER_CONTROL_INT_ENABLE = (1 shl 29);
|
Interrupt enable (1= enabled) |
BCM2838_ARM_LOCAL_TIMER_CONTROL_ENABLE = (1 shl 28);
|
Timer enable (1 = enabled) |
BCM2838_ARM_LOCAL_TIMER_CONTROL_VALUE_MASK = ($0FFFFFFF shl 0);
|
Re-load value |
BCM2838_ARM_LOCAL_TIMER_CLEAR_*
See: Table 110 LOCAL_TIMER_IRQ Register | |
Write Only | |
BCM2838_ARM_LOCAL_TIMER_CLEAR_INT = (1 shl 31);
|
Interrupt flag clear when written as 1 (Write Only) |
BCM2838_ARM_LOCAL_TIMER_CLEAR_RELOAD = (1 shl 30);
|
Local timer reloaded when written as 1 (Write Only) |
BCM2838_ARM_LOCAL_TIMER_INT_CONTROL_*
See: Table 111 TIMER_CNTRL0, TIMER_CNTRL1, TIMER_CNTRL2 & TIMER_CNTRL3 Registers | |
Note: These are the ARM Generic Timers (See ARM Architecture Reference Manual) | |
BCM2838_ARM_LOCAL_TIMER_INT_CONTROL_CNTPSIRQ = (1 shl 0);
|
Physical Secure Timer IRQ Enable (This bit is only valid if bit 4 is clear otherwise it is ignored) |
BCM2838_ARM_LOCAL_TIMER_INT_CONTROL_CNTPNSIRQ = (1 shl 1);
|
Physical Non Secure Timer IRQ Enable (This bit is only valid if bit 5 is clear otherwise it is ignored) |
BCM2838_ARM_LOCAL_TIMER_INT_CONTROL_CNTHPIRQ = (1 shl 2);
|
Hypervisor Timer IRQ Enable (This bit is only valid if bit 6 is clear otherwise it is ignored) |
BCM2838_ARM_LOCAL_TIMER_INT_CONTROL_CNTVIRQ = (1 shl 3);
|
Virtual Timer IRQ Enable (This bit is only valid if bit 7 is clear otherwise it is ignored) |
BCM2838_ARM_LOCAL_TIMER_INT_CONTROL_CNTPSFIQ = (1 shl 4);
|
Physical Secure Timer FIQ Enable (If set, this bit overrides the IRQ bit 0) |
BCM2838_ARM_LOCAL_TIMER_INT_CONTROL_CNTPNSFIQ = (1 shl 5);
|
Physical Non Secure Timer FIQ Enable (If set, this bit overrides the IRQ bit 1) |
BCM2838_ARM_LOCAL_TIMER_INT_CONTROL_CNTHPFIQ = (1 shl 6);
|
Hypervisor Timer FIQ Enable (If set, this bit overrides the IRQ bit 2) |
BCM2838_ARM_LOCAL_TIMER_INT_CONTROL_CNTVFIQ = (1 shl 7);
|
Virtual Timer FIQ Enable (If set, this bit overrides the IRQ bit 3) |
BCM2838_ARM_LOCAL_MAILBOX_INT_CONTROL_*
See: Table 112 MAILBOX_CNTRL0, MAILBOX_CNTRL1, MAILBOX_CNTRL2 & MAILBOX_CNTRL3 Registers | |
BCM2838_ARM_LOCAL_MAILBOX_INT_CONTROL_MAILBOX0IRQ = (1 shl 0);
|
Mailbox-0 IRQ Enable (This bit is only valid if bit 4 is clear otherwise it is ignored) |
BCM2838_ARM_LOCAL_MAILBOX_INT_CONTROL_MAILBOX1IRQ = (1 shl 1);
|
Mailbox-1 IRQ Enable (This bit is only valid if bit 5 is clear otherwise it is ignored) |
BCM2838_ARM_LOCAL_MAILBOX_INT_CONTROL_MAILBOX2IRQ = (1 shl 2);
|
Mailbox-2 IRQ Enable (This bit is only valid if bit 6 is clear otherwise it is ignored) |
BCM2838_ARM_LOCAL_MAILBOX_INT_CONTROL_MAILBOX3IRQ = (1 shl 3);
|
Mailbox-3 IRQ Enable (This bit is only valid if bit 7 is clear otherwise it is ignored) |
BCM2838_ARM_LOCAL_MAILBOX_INT_CONTROL_MAILBOX0FIQ = (1 shl 0);
|
Mailbox-0 FIQ Enable (If set, this bit overrides the IRQ bit 0) |
BCM2838_ARM_LOCAL_MAILBOX_INT_CONTROL_MAILBOX1FIQ = (1 shl 0);
|
Mailbox-1 FIQ Enable (If set, this bit overrides the IRQ bit 1) |
BCM2838_ARM_LOCAL_MAILBOX_INT_CONTROL_MAILBOX2FIQ = (1 shl 0);
|
Mailbox-2 FIQ Enable (If set, this bit overrides the IRQ bit 2) |
BCM2838_ARM_LOCAL_MAILBOX_INT_CONTROL_MAILBOX3FIQ = (1 shl 0);
|
Mailbox-3 FIQ Enable (If set, this bit overrides the IRQ bit 3) |
BCM2838_ARM_LOCAL_IRQ_SOURCE_*
See: Table 113 IRQ_SOURCE0, IRQ_SOURCE1, IRQ_SOURCE2 & IRQ_SOURCE3 Registers | |
BCM2838_ARM_LOCAL_IRQ_SOURCE_CNTPSIRQ = (1 shl 0);
|
Physical Secure Timer Interrupt |
BCM2838_ARM_LOCAL_IRQ_SOURCE_CNTPNSIRQ = (1 shl 1);
|
Physical Non Secure Timer Interrupt |
BCM2838_ARM_LOCAL_IRQ_SOURCE_CNTHPIRQ = (1 shl 2);
|
Hypervisor Timer Interrupt |
BCM2838_ARM_LOCAL_IRQ_SOURCE_CNTVIRQ = (1 shl 3);
|
Virtual Timer Interrupt |
BCM2838_ARM_LOCAL_IRQ_SOURCE_MAILBOX0 = (1 shl 4);
|
Mailbox 0 Interrupt |
BCM2838_ARM_LOCAL_IRQ_SOURCE_MAILBOX1 = (1 shl 5);
|
Mailbox 1 Interrupt |
BCM2838_ARM_LOCAL_IRQ_SOURCE_MAILBOX2 = (1 shl 6);
|
Mailbox 2 Interrupt |
BCM2838_ARM_LOCAL_IRQ_SOURCE_MAILBOX3 = (1 shl 7);
|
Mailbox 3 Interrupt |
BCM2838_ARM_LOCAL_IRQ_SOURCE_GPU = (1 shl 8);
|
VideoCore Interrupt |
BCM2838_ARM_LOCAL_IRQ_SOURCE_PMU = (1 shl 9);
|
Performance Monitor Interrupt |
BCM2838_ARM_LOCAL_IRQ_SOURCE_AXI_QUIET = (1 shl 10);
|
AXI Outstanding Interrupt (Core 0 Only) |
BCM2838_ARM_LOCAL_IRQ_SOURCE_TIMER = (1 shl 11);
|
Local Timer Interrupt |
BCM2838_ARM_LOCAL_IRQ_SOURCE_AXI_ERR = (1 shl 30);
|
AXI error, as reported by the ARM L2 cache |
BCM2838_ARM_LOCAL_FIQ_SOURCE_*
See: Table 114 FIQ_SOURCE0, FIQ_SOURCE1, FIQ_SOURCE2 & FIQ_SOURCE3 Registers | |
BCM2838_ARM_LOCAL_FIQ_SOURCE_CNTPSIRQ = (1 shl 0);
|
Physical Secure Timer Fast Interrupt |
BCM2838_ARM_LOCAL_FIQ_SOURCE_CNTPNSIRQ = (1 shl 1);
|
Physical Non Secure Timer Fast Interrupt |
BCM2838_ARM_LOCAL_FIQ_SOURCE_CNTHPIRQ = (1 shl 2);
|
Hypervisor Timer Fast Interrupt |
BCM2838_ARM_LOCAL_FIQ_SOURCE_CNTVIRQ = (1 shl 3);
|
Virtual Timer Fast Interrupt |
BCM2838_ARM_LOCAL_FIQ_SOURCE_MAILBOX0 = (1 shl 4);
|
Mailbox 0 Fast Interrupt |
BCM2838_ARM_LOCAL_FIQ_SOURCE_MAILBOX1 = (1 shl 5);
|
Mailbox 1 Fast Interrupt |
BCM2838_ARM_LOCAL_FIQ_SOURCE_MAILBOX2 = (1 shl 6);
|
Mailbox 2 Fast Interrupt |
BCM2838_ARM_LOCAL_FIQ_SOURCE_MAILBOX3 = (1 shl 7);
|
Mailbox 3 Fast Interrupt |
BCM2838_ARM_LOCAL_FIQ_SOURCE_GPU = (1 shl 8);
|
VideoCore Fast Interrupt |
BCM2838_ARM_LOCAL_FIQ_SOURCE_PMU = (1 shl 9);
|
Performance Monitor Fast Interrupt |
BCM2838_ARM_LOCAL_FIQ_SOURCE_TIMER = (1 shl 11);
|
Local Timer Fast Interrupt |
BCM2838_ARM_LOCAL_FIQ_SOURCE_AXI_ERR = (1 shl 30);
|
AXI error, as reported by the ARM L2 cache |
Type definitions
BCM2838 system timer registers
PBCM2838SystemTimerRegisters = ^TBCM2838SystemTimerRegisters;
TBCM2838SystemTimerRegisters = record
Note: Layout of the BCM2838 System Timer registers | |
CS:LongWord;
|
System Timer Control/Status |
CLO:LongWord;
|
System Timer Counter Lower 32 bits |
CHI:LongWord;
|
System Timer Counter Higher 32 bits |
C0:LongWord;
|
System Timer Compare 0. Already used by the VideoCore GPU (Do not use) |
C1:LongWord;
|
System Timer Compare 1 |
C2:LongWord;
|
System Timer Compare 2. Already used by the VideoCore GPU (Do not use) |
C3:LongWord;
|
System Timer Compare 3 |
BCM2838 DMA channel registers
PBCM2838DMARegisters = ^TBCM2838DMARegisters;
TBCM2838DMARegisters = record
Note: Layout of the BCM2838 DMA Channel registers | |
CS:LongWord;
|
DMA Channel Control and Status |
CONBLK_AD:LongWord;
|
DMA Channel Control Block Address |
TI:LongWord;
|
DMA Channel CB Word 0 (Transfer Information) |
SOURCE_AD:LongWord;
|
DMA Channel CB Word 1 (Source Address) |
DEST_AD:LongWord;
|
DMA Channel CB Word 2 (Destination Address) |
TXFR_LEN:LongWord;
|
DMA Channel CB Word 3 (Transfer Length) |
STRIDE:LongWord;
|
DMA Channel CB Word 4 (2D Mode Stride) (Not applicable to Lite channels) |
NEXTCONBK:LongWord;
|
DMA Channel CB Word 5 (Next Control Block Address) |
DEBUG:LongWord;
|
DMA Channel Debug |
BCM2838 DMA40 channel registers
PBCM2838DMA40Registers = ^TBCM2838DMA40Registers;
TBCM2838DMA40Registers = record
Note: Layout of the BCM2838 DMA40 Channel registers | |
CS:LongWord; {DMA Channel Control and Status
|
|
CB:LongWord; {DMA Channel Control Block Address
|
|
Reserved1:LongWord;
|
|
DEBUG:LongWord;
|
DMA Channel Debug |
TI:LongWord;
|
DMA Channel CB Word 0 (Transfer Information) |
SRC:LongWord;
|
DMA Channel CB Word 1 (Source Address) |
SRCI:LongWord;
|
DMA Channel CB Word 2 (Source Information) |
DEST:LongWord;
|
DMA Channel CB Word 3 (Destination Address) |
DESTI:LongWord;
|
DMA Channel CB Word 4 (Destination Information) |
LEN:LongWord;
|
DMA Channel CB Word 5 (Transfer Length) |
NEXT_CB:LongWord;
|
DMA Channel CB Word 6 (Next Control Block Address) |
DEBUG2:LongWord;
|
DMA Channel Debug |
BCM2838 DMA control block structure
PBCM2838DMAControlBlock = ^TBCM2838DMAControlBlock;
TBCM2838DMAControlBlock = record
Note: Layout of BCM2838 DMA Control Block structure. Must be 32byte (256bit) aligned. | |
TransferInformation:LongWord;
|
|
SourceAddress:LongWord;
|
|
DestinationAddress:LongWord;
|
|
TransferLength:LongWord;
|
|
ModeStride:LongWord;
|
Not applicable to Lite channels |
NextControlBlockAddress:LongWord;
|
|
Reserved1:LongWord;
|
|
Reserved2:LongWord;
|
BCM2838 DMA40 control block structure
PBCM2838DMA40ControlBlock = ^TBCM2838DMA40ControlBlock;
TBCM2838DMA40ControlBlock = record
Note: Layout of BCM2838 DMA40 Control Block structure. Must be 32byte (256bit) aligned. | |
TransferInformation:LongWord;
|
|
SourceAddress:LongWord;
|
|
SourceInformation:LongWord;
|
|
DestinationAddress:LongWord;
|
|
DestinationInformation:LongWord;
|
|
TransferLength:LongWord;
|
|
NextControlBlockAddress:LongWord;
|
|
Reserved1:LongWord;
|
BCM2838 BSC (I2C) registers
PBCM2838BSCRegisters = ^TBCM2838BSCRegisters;
TBCM2838BSCRegisters = record
Note: Layout of the BCM2838 BSC (I2C) registers | |
C:LongWord;
|
Control |
S:LongWord;
|
Status |
DLEN:LongWord;
|
Data Length |
A:LongWord;
|
Slave Address |
FIFO:LongWord;
|
Data FIFO |
CDIV:LongWord;
|
Clock Divider |
DEL:LongWord;
|
Data Delay |
CLKT:LongWord;
|
Clock Stretch Timeout |
BCM2838 SPI0 registers
PBCM2838SPI0Registers = ^TBCM2838SPI0Registers;
TBCM2838SPI0Registers = record
Note: Layout of the BCM2838 SPI0 registers | |
CS:LongWord;
|
SPI Master Control and Status |
FIFO:LongWord;
|
SPI Master TX and RX FIFOs |
CLK:LongWord;
|
SPI Master Clock Divider |
DLEN:LongWord;
|
SPI Master Data Length |
LTOH:LongWord;
|
SPI LOSSI mode TOH |
DC:LongWord;
|
SPI DMA DREQ Controls |
BCM2838 I2C/SPI slave registers
PBCM2838I2CSPIRegisters = ^TBCM2838I2CSPIRegisters;
TBCM2838I2CSPIRegisters = record
Note: Layout of the BCM2838 I2C/SPI Slave registers | |
DR:LongWord;
|
Data Register |
RSR:LongWord;
|
Operation status register and error clear register |
SLV:LongWord;
|
I2C SPI Address Register holds the I2C slave address value |
CR:LongWord;
|
Control register is used to configure the I2C or SPI operation |
FR:LongWord;
|
Flag register |
IFLS:LongWord;
|
Interrupt fifo level select register |
IMSC:LongWord;
|
Interrupt Mask Set Clear Register |
RIS:LongWord;
|
Raw Interrupt Status Register |
MIS:LongWord;
|
Masked Interrupt Status Register |
ICR:LongWord;
|
Interrupt Clear Register |
DMACR:LongWord;
|
DMA Control Register |
TDR:LongWord;
|
FIFO Test Data Register |
GPUSTAT:LongWord;
|
GPU Status Register |
HCTRL:LongWord;
|
Host Control Register |
DEBUG1:LongWord;
|
I2C Debug Register |
DEBUG2:LongWord;
|
SPI Debug Register |
BCM2838 AUX (UART1, SPI1 and SPI2) registers
PBCM2838AUXRegisters = ^TBCM2838AUXRegisters;
TBCM2838AUXRegisters = record
Note: Layout of the BCM2838 AUX (UART1, SPI1 and SPI2) registers | |
AUX_IRQ:LongWord;
|
Auxiliary Interrupt status |
AUX_ENABLE:LongWord;
|
Auxiliary enables |
Reserved01:LongWord;
|
|
Reserved02:LongWord;
|
|
Reserved03:LongWord;
|
|
Reserved04:LongWord;
|
|
Reserved05:LongWord;
|
|
Reserved06:LongWord;
|
|
Reserved07:LongWord;
|
|
Reserved08:LongWord;
|
|
Reserved09:LongWord;
|
|
Reserved0A:LongWord;
|
|
Reserved0B:LongWord;
|
|
Reserved0C:LongWord;
|
|
Reserved0D:LongWord;
|
|
Reserved0E:LongWord;
|
|
AUX_MU_IO:LongWord;
|
Mini Uart I/O Data |
AUX_MU_IER:LongWord;
|
Mini Uart Interrupt Enable |
AUX_MU_IIR:LongWord;
|
Mini Uart Interrupt Identify |
AUX_MU_LCR:LongWord;
|
Mini Uart Line Control |
AUX_MU_MCR:LongWord;
|
Mini Uart Modem Control |
AUX_MU_LSR:LongWord;
|
Mini Uart Line Status |
AUX_MU_MSR:LongWord;
|
Mini Uart Modem Status |
AUX_MU_SCRATCH:LongWord;
|
Mini Uart Scratch |
AUX_MU_CNTL:LongWord;
|
Mini Uart Extra Control |
AUX_MU_STAT:LongWord;
|
Mini Uart Extra Status |
AUX_MU_BAUD:LongWord;
|
Mini Uart Baudrate |
Reserved11:LongWord;
|
|
Reserved12:LongWord;
|
|
Reserved13:LongWord;
|
|
Reserved14:LongWord;
|
|
Reserved15:LongWord;
|
|
AUX_SPI1_CNTL0:LongWord;
|
SPI 1 Control register 0 |
AUX_SPI1_CNTL1:LongWord;
|
SPI 1 Control register 1 |
AUX_SPI1_STAT:LongWord;
|
SPI 1 Status |
Reserved21:LongWord;
|
|
AUX_SPI1_IO:LongWord;
|
SPI 1 Data |
AUX_SPI1_PEEK:LongWord;
|
SPI 1 Peek |
Reserved31:LongWord;
|
|
Reserved32:LongWord;
|
|
Reserved33:LongWord;
|
|
Reserved34:LongWord;
|
|
Reserved35:LongWord;
|
|
Reserved36:LongWord;
|
|
Reserved37:LongWord;
|
|
Reserved38:LongWord;
|
|
Reserved39:LongWord;
|
|
Reserved3A:LongWord;
|
|
AUX_SPI2_CNTL0:LongWord;
|
SPI 2 Control register 0 |
AUX_SPI2_CNTL1:LongWord;
|
SPI 2 Control register 1 |
AUX_SPI2_STAT:LongWord;
|
SPI 2 Status |
Reserved40:LongWord;
|
|
AUX_SPI2_IO:LongWord;
|
SPI 2 Data |
AUX_SPI2_PEEK:LongWord;
|
SPI 2 Peek |
BCM2838 PCM/I2S registers
PBCM2838PCMRegisters = ^TBCM2838PCMRegisters;
TBCM2838PCMRegisters = record
Note: Layout of the BCM2838 PCM/I2S registers | |
CS_A:LongWord;
|
PCM Control and Status |
FIFO_A:LongWord;
|
PCM FIFO Data |
MODE_A:LongWord;
|
PCM Mode |
RXC_A:LongWord;
|
PCM Receive Configuration |
TXC_A:LongWord;
|
PCM Transmit Configuration |
DREQ_A:LongWord;
|
|
INTEN_A:LongWord;
|
PCM Interrupt Enables |
INTSTC_A:LongWord;
|
PCM Interrupt Status & Clear |
GRAY:LongWord;
|
PCM Gray Mode Control |
BCM2838 pulse width modulator (PWM) registers
PBCM2838PWMRegisters = ^TBCM2838PWMRegisters;
TBCM2838PWMRegisters = record
Note: Layout of the BCM2838 Pulse Width Modulator (PWM) registers | |
CTL:LongWord;
|
PWM Control |
STA:LongWord;
|
PWM Status |
DMAC:LongWord;
|
PWM DMA Configuration |
Reserved1:LongWord;
|
|
RNG1:LongWord;
|
PWM Channel 1 Range |
DAT1:LongWord;
|
PWM Channel 1 Data |
FIF1:LongWord;
|
PWM FIFO Input |
Reserved2:LongWord;
|
|
RNG2:LongWord;
|
PWM Channel 2 Range |
DAT2:LongWord;
|
PWM Channel 2 Data |
BCM2838 PL011 UART registers
PBCM2838PL011Registers = ^TBCM2838PL011Registers;
TBCM2838PL011Registers = record
Note: Layout of the BCM2838 PL011 UART registers | |
DR:LongWord;
|
Data Register |
RSRECR:LongWord;
|
Receive Status Register / Error Clear Register |
Reserved01:LongWord;
|
|
Reserved02:LongWord;
|
|
Reserved03:LongWord;
|
|
Reserved04:LongWord;
|
|
FR:LongWord;
|
Flag register |
Reserved05:LongWord;
|
|
ILPR:LongWord;
|
Not in use |
IBRD:LongWord;
|
Integer Baud rate divisor |
FBRD:LongWord;
|
Fractional Baud rate divisor |
LCRH:LongWord;
|
Line Control register |
CR:LongWord;
|
Control register |
IFLS:LongWord;
|
Interrupt FIFO Level Select Register |
IMSC:LongWord;
|
Interrupt Mask Set Clear Register |
RIS:LongWord;
|
Raw Interrupt Status Register |
MIS:LongWord;
|
Masked Interrupt Status Register |
ICR:LongWord;
|
Interrupt Clear Register |
DMACR:LongWord;
|
DMA Control Register |
Reserved11:LongWord;
|
|
Reserved12:LongWord;
|
|
Reserved13:LongWord;
|
|
Reserved14:LongWord;
|
|
Reserved15:LongWord;
|
|
Reserved16:LongWord;
|
|
Reserved17:LongWord;
|
|
Reserved18:LongWord;
|
|
Reserved19:LongWord;
|
|
Reserved1A:LongWord;
|
|
Reserved1B:LongWord;
|
|
Reserved1C:LongWord;
|
|
Reserved1D:LongWord;
|
|
ITCR:LongWord;
|
Test Control Register |
ITIP:LongWord;
|
Integration Test Input Register |
ITOP:LongWord;
|
Integration Test Output Register |
TDR:LongWord;
|
Test Data Register |
BCM2838 ARM timer registers
PBCM2838ARMTimerRegisters = ^TBCM2838ARMTimerRegisters;
TBCM2838ARMTimerRegisters = record
Note: Layout of the BCM2838 ARM Timer registers | |
Load:LongWord;
|
Timer Load register |
Value:LongWord;
|
Timer Value register |
Control:LongWord;
|
Timer control register |
IRQClear:LongWord;
|
Timer IRQ clear register |
RawIRQ:LongWord;
|
Timer Raw IRQ register |
MaskedIRQ:LongWord;
|
Timer Masked IRQ register |
Reload:LongWord;
|
Timer Reload register |
Predivider:LongWord;
|
The timer pre-divider register |
Counter:LongWord;
|
Free running counter |
BCM2838 power management watchdog registers
PBCM2838PMWatchdogRegisters = ^TBCM2838PMWatchdogRegisters;
TBCM2838PMWatchdogRegisters = record
Note: Layout of the BCM2838 Power Management Watchdog registers | |
Reserved1:LongWord;
|
|
Reserved2:LongWord;
|
|
Reserved3:LongWord;
|
|
Reserved4:LongWord;
|
|
Reserved5:LongWord;
|
|
Reserved6:LongWord;
|
|
Reserved7:LongWord;
|
|
RSTC:LongWord;
|
|
RSTS:LongWord;
|
|
WDOG:LongWord;
|
BCM2838 random number generator registers
PBCM2838RNGRegisters = ^TBCM2838RNGRegisters;
TBCM2838RNGRegisters = record
Note: Layout of the BCM2838 Random Number Generator registers | |
Control:LongWord;
|
|
SoftResetRNG:LongWord;
|
|
SoftResetRBG:LongWord;
|
|
TotalBitCount:LongWord;
|
|
TBCThreshold:LongWord;
|
|
Reserved1:LongWord;
|
|
IntStatus:LongWord;
|
|
IntEnable:LongWord;
|
|
FIFOData:LongWord;
|
|
FIFOCount:LongWord;
|
BCM2838 GPIO registers
PBCM2838GPIORegisters = ^TBCM2838GPIORegisters;
TBCM2838GPIORegisters = record
Note: Layout of the BCM2838 GPIO registers | |
GPFSEL0:LongWord;
|
GPIO Function Select 0 |
GPFSEL1:LongWord;
|
GPIO Function Select 1 |
GPFSEL2:LongWord;
|
GPIO Function Select 2 |
GPFSEL3:LongWord;
|
GPIO Function Select 3 |
GPFSEL4:LongWord;
|
GPIO Function Select 4 |
GPFSEL5:LongWord;
|
GPIO Function Select 5 |
Reserved1:LongWord;
|
|
GPSET0:LongWord;
|
GPIO Pin Output Set 0 |
GPSET1:LongWord;
|
GPIO Pin Output Set 1 |
Reserved2:LongWord;
|
|
GPCLR0:LongWord;
|
GPIO Pin Output Clear 0 |
GPCLR1:LongWord;
|
GPIO Pin Output Clear 1 |
Reserved3:LongWord;
|
|
GPLEV0:LongWord;
|
GPIO Pin Level 0 |
GPLEV1:LongWord;
|
GPIO Pin Level 1 |
Reserved4:LongWord;
|
|
GPEDS0:LongWord;
|
GPIO Pin Event Detect Status 0 |
GPEDS1:LongWord;
|
GPIO Pin Event Detect Status 1 |
Reserved5:LongWord;
|
|
GPREN0:LongWord;
|
GPIO Pin Rising Edge Detect Enable 0 |
GPREN1:LongWord;
|
GPIO Pin Rising Edge Detect Enable 1 |
Reserved6:LongWord;
|
|
GPFEN0:LongWord;
|
GPIO Pin Falling Edge Detect Enable 0 |
GPFEN1:LongWord;
|
GPIO Pin Falling Edge Detect Enable 1 |
Reserved7:LongWord;
|
|
GPHEN0:LongWord;
|
GPIO Pin High Detect Enable 0 |
GPHEN1:LongWord;
|
GPIO Pin High Detect Enable 1 |
Reserved8:LongWord;
|
|
GPLEN0:LongWord;
|
GPIO Pin Low Detect Enable 0 |
GPLEN1:LongWord;
|
GPIO Pin Low Detect Enable 1 |
Reserved9:LongWord;
|
|
GPAREN0:LongWord;
|
GPIO Pin Async. Rising Edge Detect 0 |
GPAREN1:LongWord;
|
GPIO Pin Async. Rising Edge Detect 1 |
Reserved10:LongWord;
|
|
GPAFEN0:LongWord;
|
GPIO Pin Async. Falling Edge Detect 0 |
GPAFEN1:LongWord;
|
GPIO Pin Async. Falling Edge Detect 1 |
Reserved11:LongWord;
|
|
Reserved12:LongWord;
|
|
Reserved13:LongWord;
|
|
Reserved14:LongWord;
|
|
Reserved15:LongWord;
|
|
Reserved16:LongWord;
|
|
Reserved17:LongWord;
|
|
Reserved18:LongWord;
|
|
Reserved19:LongWord;
|
|
Reserved20:LongWord;
|
|
Reserved21:LongWord;
|
|
Reserved22:LongWord;
|
|
Reserved23:LongWord;
|
|
Reserved24:LongWord;
|
|
Reserved25:LongWord;
|
|
Reserved26:LongWord;
|
|
Reserved27:LongWord;
|
|
Reserved28:LongWord;
|
|
Reserved29:LongWord;
|
|
Reserved30:LongWord;
|
|
Reserved31:LongWord;
|
|
GPPUD0:LongWord;
|
GPIO Pin Pull-up/down Mode 0 |
GPPUD1:LongWord;
|
GPIO Pin Pull-up/down Mode 1 |
GPPUD2:LongWord;
|
GPIO Pin Pull-up/down Mode 2 |
GPPUD3:LongWord;
|
GPIO Pin Pull-up/down Mode 3 |
BCM2838 mailbox0 registers
PBCM2838Mailbox0Registers = ^TBCM2838Mailbox0Registers;
TBCM2838Mailbox0Registers = record
Note: Layout of the BCM2838 Mailbox0 registers (See https://github.com/raspberrypi/firmware/wiki/Mailboxes) | |
Read:LongWord;
|
Offset 0x00 (The read register for mailbox 0) |
Reserved1:LongWord;
|
Offset 0x04 |
Reserved2:LongWord;
|
Offset 0x08 |
Reserved3:LongWord;
|
Offset 0x0C |
Peek:LongWord;
|
Offset 0x10 (Read from the mailbox without removing data from it) |
Sender:LongWord;
|
Offset 0x14 (Sender ID (bottom 2 bits only)) |
Status:LongWord;
|
Offset 0x18 (The status register for mailbox 0) |
Config:LongWord;
|
Offset 0x1C (The configuration register for mailbox 0) |
BCM2838 mailbox1 registers
PBCM2838Mailbox1Registers = ^TBCM2838Mailbox1Registers;
TBCM2838Mailbox1Registers = record
Note: Layout of the BCM2838 Mailbox1 registers (See https://github.com/raspberrypi/firmware/wiki/Mailboxes) | |
Write:LongWord;
|
Offset 0x00 (The write register for mailbox 0) (Also the read register for mailbox 1) |
Reserved1:LongWord;
|
Offset 0x04 |
Reserved2:LongWord;
|
Offset 0x08 |
Reserved3:LongWord;
|
Offset 0x0C |
Reserved4:LongWord;
|
Offset 0x10 |
Reserved5:LongWord;
|
Offset 0x14 |
Status:LongWord;
|
Offset 0x18 (The status register for mailbox 1) |
Config:LongWord;
|
Offset 0x1C (The configuration register for mailbox 1) |
BCM2838 mailbox framebuffer request
PBCM2838MailboxFramebuffer = ^TBCM2838MailboxFramebuffer;
TBCM2838MailboxFramebuffer = record
Note: Layout of the BCM2838 Mailbox Framebuffer request (This structure must be 16 byte aligned when passed to the GPU) | |
PhysicalWidth:LongWord;
|
Requested width of Physical Framebuffer |
PhysicalHeight:LongWord;
|
Requested height of Physical Framebuffer |
VirtualWidth:LongWord;
|
Requested width of Virtual Display |
VirtualHeight:LongWord;
|
Requested height of Virtual Display |
Pitch:LongWord;
|
Zero on request, Number of Bytes per Row in response |
Depth:LongWord;
|
Requested Colour Depth in Bits per Pixel |
OffsetX:LongWord;
|
Requested X offset of Virtual Framebuffer |
OffsetY:LongWord;
|
Requested Y offset of Virtual Framebuffer |
Address:LongWord;
|
Framebuffer address (Zero on request, Failure if zero in response) |
Size:LongWord;
|
Framebuffer size (Zero on request, Size in bytes in response) |
BCM2838 mailbox header property tags
PBCM2838MailboxHeader = ^TBCM2838MailboxHeader;
TBCM2838MailboxHeader = record
Note: Layout of the BCM2838 Mailbox Property tags (These structures must be 16 byte aligned when passed to the GPU) | |
Header | |
Size:LongWord;
|
Total buffer size in bytes (including the header values, the end tag and padding) |
Code:LongWord;
|
Request/response code |
BCM2838 mailbox footer property tags
PBCM2838MailboxFooter = ^TBCM2838MailboxFooter;
TBCM2838MailboxFooter = record
Note: Layout of the BCM2838 Mailbox Property tags (These structures must be 16 byte aligned when passed to the GPU) | |
Footer | |
Tag:LongWord;
|
BCM2838_MBOX_TAG_END |
BCM2838 mailbox tag header
PBCM2838MailboxTagHeader = ^TBCM2838MailboxTagHeader;
TBCM2838MailboxTagHeader = record
Note: Layout of the BCM2838 Mailbox Property tags (These structures must be 16 byte aligned when passed to the GPU) | |
Tag Header | |
Tag:LongWord;
|
Tag identifier |
Size:LongWord;
|
Value buffer size in bytes |
Length:LongWord;
|
1 bit (MSB) request/response indicator (0=request, 1=response), 31 bits (LSB) value length in bytes |
BCM2838 mailbox tag no request
PBCM2838MailboxTagNoRequest = ^TBCM2838MailboxTagNoRequest;
TBCM2838MailboxTagNoRequest = record
Tag No Request | |
BCM2838 mailbox tag no response
PBCM2838MailboxTagNoResponse = ^TBCM2838MailboxTagNoResponse;
TBCM2838MailboxTagNoResponse = record
Tag No Response | |
BCM2838 mailbox tag firmware revision response
TBCM2838MailboxTagFirmwareRevisionResponse = record
Get Firmware Revision | |
Revision:LongWord;
|
BCM2838 mailbox tag get firmware revision
PBCM2838MailboxTagGetFirmwareRevision = ^TBCM2838MailboxTagGetFirmwareRevision;
TBCM2838MailboxTagGetFirmwareRevision = record
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagNoRequest);
|
|
1:(Response:TBCM2838MailboxTagFirmwareRevisionResponse);
|
BCM2838 mailbox tag board model response
TBCM2838MailboxTagBoardModelResponse = record
Get Board Model | |
Model:LongWord;
|
BCM2838 mailbox tag get board model
PBCM2838MailboxTagGetBoardModel = ^TBCM2838MailboxTagGetBoardModel;
TBCM2838MailboxTagGetBoardModel = record
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagNoRequest);
|
|
1:(Response:TBCM2838MailboxTagBoardModelResponse);
|
BCM2838 mailbox tag board revision response
TBCM2838MailboxTagBoardRevisionResponse = record
Get Board Revision | |
Revision:LongWord;
|
BCM2838 mailbox tag get board revision
PBCM2838MailboxTagGetBoardRevision = ^TBCM2838MailboxTagGetBoardRevision;
TBCM2838MailboxTagGetBoardRevision = record
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagNoRequest);
|
|
1:(Response:TBCM2838MailboxTagBoardRevisionResponse);
|
BCM2838 mailbox tag MAC address response
TBCM2838MailboxTagMACAddressResponse = record
Get MAC Address | |
MAC:array[0..5] of Byte;
|
MAC address in network byte order |
Padding:Word;
|
BCM2838 mailbox tag get MAC address
PBCM2838MailboxTagGetMACAddress = ^TBCM2838MailboxTagGetMACAddress;
TBCM2838MailboxTagGetMACAddress = record
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagNoRequest);
|
|
1:(Response:TBCM2838MailboxTagMACAddressResponse);
|
BCM2838 mailbox tag board serial response
TBCM2838MailboxTagBoardSerialResponse = record
Get Board Serial | |
Serial:Int64;
|
BCM2838 mailbox tag get board serial
PBCM2838MailboxTagGetBoardSerial = ^TBCM2838MailboxTagGetBoardSerial;
TBCM2838MailboxTagGetBoardSerial = record
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagNoRequest);
|
|
1:(Response:TBCM2838MailboxTagBoardSerialResponse);
|
BCM2838 mailbox tag ARM memory response
TBCM2838MailboxTagARMMemoryResponse = record
Get ARM Memory | |
Address:LongWord;
|
Base address in bytes |
Size:LongWord;
|
Size in bytes |
BCM2838 mailbox tag get ARM memory
PBCM2838MailboxTagGetARMMemory = ^TBCM2838MailboxTagGetARMMemory;
TBCM2838MailboxTagGetARMMemory = record
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagNoRequest);
|
|
1:(Response:TBCM2838MailboxTagARMMemoryResponse);
|
BCM2838 mailbox tag VC memory response
TBCM2838MailboxTagVCMemoryResponse = record
Get VC Memory | |
Address:LongWord;
|
Base address in bytes |
Size:LongWord;
|
Size in bytes |
BCM2838 mailbox tag get VC memory
PBCM2838MailboxTagGetVCMemory = ^TBCM2838MailboxTagGetVCMemory;
TBCM2838MailboxTagGetVCMemory = record
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagNoRequest);
|
|
1:(Response:TBCM2838MailboxTagVCMemoryResponse);
|
BCM2838 mailbox tag clock response
TBCM2838MailboxTagClockResponse = record
Get Clocks | |
ParentId:LongWord;
|
|
ClockId:LongWord;
|
BCM2838 mailbox tag clocks response
TBCM2838MailboxTagClocksResponse = record
Clocks:array[0..255] of TBCM2838MailboxTagClockResponse;
|
BCM2838 mailbox tag get clocks
PBCM2838MailboxTagGetClocks = ^TBCM2838MailboxTagGetClocks;
TBCM2838MailboxTagGetClocks = record
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagNoRequest);
|
|
1:(Response:TBCM2838MailboxTagClocksResponse);
|
BCM2838 mailbox tag get power state request
TBCM2838MailboxTagGetPowerStateRequest = record
Get Power State | |
DeviceId:LongWord;
|
BCM2838 mailbox tag power state response
TBCM2838MailboxTagPowerStateResponse = record
DeviceId:LongWord;
|
|
State:LongWord;
|
BCM2838 mailbox tag get power state
PBCM2838MailboxTagGetPowerState = ^TBCM2838MailboxTagGetPowerState;
TBCM2838MailboxTagGetPowerState = record
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagGetPowerStateRequest);
|
|
1:(Response:TBCM2838MailboxTagPowerStateResponse);
|
BCM2838 mailbox tag timing request
TBCM2838MailboxTagTimingRequest = record
Get Timing | |
DeviceId:LongWord;
|
BCM2838 mailbox tag timing response
TBCM2838MailboxTagTimingResponse = record
DeviceId:LongWord;
|
|
Wait:LongWord;
|
Enable wait time in microseconds |
BCM2838 mailbox tag get timing
PBCM2838MailboxTagGetTiming = ^TBCM2838MailboxTagGetTiming;
TBCM2838MailboxTagGetTiming = record
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagTimingRequest);
|
|
1:(Response:TBCM2838MailboxTagTimingResponse);
|
BCM2838 mailbox tag set power state request
TBCM2838MailboxTagSetPowerStateRequest = record
Set Power State | |
DeviceId:LongWord;
|
|
State:LongWord;
|
BCM2838 mailbox tag set power state
PBCM2838MailboxTagSetPowerState = ^TBCM2838MailboxTagSetPowerState;
TBCM2838MailboxTagSetPowerState = record
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagSetPowerStateRequest);
|
|
1:(Response:TBCM2838MailboxTagPowerStateResponse);
|
BCM2838 mailbox tag get clock state request
TBCM2838MailboxTagGetClockStateRequest = record
Get Clock State | |
ClockId:LongWord;
|
BCM2838 mailbox tag clock state response
TBCM2838MailboxTagClockStateResponse = record
ClockId:LongWord;
|
|
State:LongWord;
|
BCM2838 mailbox tag get clock state
PBCM2838MailboxTagGetClockState = ^TBCM2838MailboxTagGetClockState;
TBCM2838MailboxTagGetClockState = record
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagGetClockStateRequest);
|
|
1:(Response:TBCM2838MailboxTagClockStateResponse);
|
BCM2838 mailbox tag set clock state request
TBCM2838MailboxTagSetClockStateRequest = record
Set Clock State | |
ClockId:LongWord;
|
|
State:LongWord;
|
BCM2838 mailbox tag set clock state
PBCM2838MailboxTagSetClockState = ^TBCM2838MailboxTagSetClockState;
TBCM2838MailboxTagSetClockState = record
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagSetClockStateRequest);
|
|
1:(Response:TBCM2838MailboxTagClockStateResponse);
|
BCM2838 mailbox tag get clock rate request
TBCM2838MailboxTagGetClockRateRequest = record
Get Clock Rate | |
ClockId:LongWord;
|
BCM2838 mailbox tag clock rate response
TBCM2838MailboxTagClockRateResponse = record
ClockId:LongWord;
|
|
Rate:LongWord;
|
In Hz |
BCM2838 mailbox tag get clock rate
PBCM2838MailboxTagGetClockRate = ^TBCM2838MailboxTagGetClockRate;
TBCM2838MailboxTagGetClockRate = record
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagGetClockRateRequest);
|
|
1:(Response:TBCM2838MailboxTagClockRateResponse);
|
BCM2838 mailbox tag set clock rate request
TBCM2838MailboxTagSetClockRateRequest = record
Set Clock Rate | |
ClockId:LongWord;
|
|
Rate:LongWord;
|
In Hz |
SkipTurbo:LongWord;
|
BCM2838 mailbox tag set clock rate
PBCM2838MailboxTagSetClockRate = ^TBCM2838MailboxTagSetClockRate;
TBCM2838MailboxTagSetClockRate = record
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagSetClockRateRequest);
|
|
1:(Response:TBCM2838MailboxTagClockRateResponse);
|
BCM2838 mailbox tag get clock max rate request
TBCM2838MailboxTagGetClockMaxRateRequest = record
Get Clock Max Rate | |
ClockId:LongWord;
|
BCM2838 mailbox tag get clock max rate response
TBCM2838MailboxTagGetClockMaxRateResponse = record
ClockId:LongWord;
|
|
Rate:LongWord;
|
In Hz |
BCM2838 mailbox tag get clock max rate
PBCM2838MailboxTagGetClockMaxRate = ^TBCM2838MailboxTagGetClockMaxRate;
TBCM2838MailboxTagGetClockMaxRate = record
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagGetClockMaxRateRequest);
|
|
1:(Response:TBCM2838MailboxTagGetClockMaxRateResponse);
|
BCM2838 mailbox tag get clock min rate
PBCM2838MailboxTagGetClockMinRate = ^TBCM2838MailboxTagGetClockMinRate;
TBCM2838MailboxTagGetClockMinRate = record
Get Clock Min Rate | |
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagGetClockMaxRateRequest);
|
|
1:(Response:TBCM2838MailboxTagGetClockMaxRateResponse);
|
BCM2838 mailbox tag get turbo request
TBCM2838MailboxTagGetTurboRequest = record
Get Turbo | |
Id:LongWord;
|
BCM2838 mailbox tag turbo response
TBCM2838MailboxTagTurboResponse = record
Id:LongWord;
|
|
Level:LongWord;
|
BCM2838 mailbox tag get turbo
PBCM2838MailboxTagGetTurbo = ^TBCM2838MailboxTagGetTurbo;
TBCM2838MailboxTagGetTurbo = record
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagGetTurboRequest);
|
|
1:(Response:TBCM2838MailboxTagTurboResponse);
|
BCM2838 mailbox tag set turbo request
TBCM2838MailboxTagSetTurboRequest = record
Set Turbo | |
Id:LongWord;
|
|
Level:LongWord;
|
BCM2838 mailbox tag set turbo
PBCM2838MailboxTagSetTurbo = ^TBCM2838MailboxTagSetTurbo;
TBCM2838MailboxTagSetTurbo = record
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagSetTurboRequest);
|
|
1:(Response:TBCM2838MailboxTagTurboResponse);
|
BCM2838 mailbox tag get voltage request
TBCM2838MailboxTagGetVoltageRequest = record
Get Voltage | |
VoltageId:LongWord;
|
BCM2838 mailbox tag voltage response
TBCM2838MailboxTagVoltageResponse = record
VoltageId:LongWord;
|
|
Value:LongWord;
|
Offset from 1.2V in units of 0.025V |
BCM2838 mailbox tag get voltage
PBCM2838MailboxTagGetVoltage = ^TBCM2838MailboxTagGetVoltage;
TBCM2838MailboxTagGetVoltage = record
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagGetVoltageRequest);
|
|
1:(Response:TBCM2838MailboxTagVoltageResponse);
|
BCM2838 mailbox tag set voltage request
TBCM2838MailboxTagSetVoltageRequest = record
Set Voltage | |
VoltageId:LongWord;
|
|
Value:LongWord;
|
Offset from 1.2V in units of 0.025V |
BCM2838 mailbox tag set voltage
PBCM2838MailboxTagSetVoltage = ^TBCM2838MailboxTagSetVoltage;
TBCM2838MailboxTagSetVoltage = record
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagSetVoltageRequest);
|
|
1:(Response:TBCM2838MailboxTagVoltageResponse);
|
BCM2838 mailbox tag get max voltage
PBCM2838MailboxTagGetMaxVoltage = ^TBCM2838MailboxTagGetMaxVoltage;
TBCM2838MailboxTagGetMaxVoltage = record
Get Max Voltage | |
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagGetVoltageRequest);
|
|
1:(Response:TBCM2838MailboxTagVoltageResponse);
|
BCM2838 mailbox tag get min voltage
PBCM2838MailboxTagGetMinVoltage = ^TBCM2838MailboxTagGetMinVoltage;
TBCM2838MailboxTagGetMinVoltage = record
Get Min Voltage | |
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagGetVoltageRequest);
|
|
1:(Response:TBCM2838MailboxTagVoltageResponse);
|
BCM2838 mailbox tag temperature request
TBCM2838MailboxTagTemperatureRequest = record
Get Temperature | |
TemperatureId:LongWord;
|
BCM2838 mailbox tag temperature response
TBCM2838MailboxTagTemperatureResponse = record
TemperatureId:LongWord;
|
Should be zero |
Temperature:LongWord;
|
Return the temperature of the SoC in thousandths of a degree C |
BCM2838 mailbox tag get temperature
PBCM2838MailboxTagGetTemperature = ^TBCM2838MailboxTagGetTemperature;
TBCM2838MailboxTagGetTemperature = record
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagTemperatureRequest);
|
|
1:(Response:TBCM2838MailboxTagTemperatureResponse);
|
BCM2838 mailbox tag get max temperature
PBCM2838MailboxTagGetMaxTemperature = ^TBCM2838MailboxTagGetMaxTemperature;
TBCM2838MailboxTagGetMaxTemperature = record
Get Max Temp | |
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagTemperatureRequest);
|
|
1:(Response:TBCM2838MailboxTagTemperatureResponse);
|
BCM2838 mailbox tag allocate memory request
TBCM2838MailboxTagAllocateMemoryRequest = record
Allocate Memory | |
Size:LongWord;
|
|
Alignment:LongWord;
|
|
Flags:LongWord;
|
BCM2838 mailbox tag allocate memory response
TBCM2838MailboxTagAllocateMemoryResponse = record
Handle:THandle;
|
BCM2838 mailbox tag allocate memory
PBCM2838MailboxTagAllocateMemory = ^TBCM2838MailboxTagAllocateMemory;
TBCM2838MailboxTagAllocateMemory = record
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagAllocateMemoryRequest);
|
|
1:(Response:TBCM2838MailboxTagAllocateMemoryResponse);
|
BCM2838 mailbox tag lock memory request
TBCM2838MailboxTagLockMemoryRequest = record
Lock Memory | |
Handle:THandle;
|
BCM2838 mailbox tag lock memory response
TBCM2838MailboxTagLockMemoryResponse = record
Address:LongWord;
|
Bus Address |
BCM2838 mailbox tag lock memory
PBCM2838MailboxTagLockMemory = ^TBCM2838MailboxTagLockMemory;
TBCM2838MailboxTagLockMemory = record
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagLockMemoryRequest);
|
|
1:(Response:TBCM2838MailboxTagLockMemoryResponse);
|
BCM2838 mailbox tag unlock memory response
TBCM2838MailboxTagUnlockMemoryResponse = record
Unlock Memory | |
Status:LongWord;
|
0 is Success |
BCM2838 mailbox tag unlock memory
PBCM2838MailboxTagUnlockMemory = ^TBCM2838MailboxTagUnlockMemory;
TBCM2838MailboxTagUnlockMemory = record
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagLockMemoryRequest);
|
|
1:(Response:TBCM2838MailboxTagUnlockMemoryResponse);
|
BCM2838 mailbox tag release memory
PBCM2838MailboxTagReleaseMemory = ^TBCM2838MailboxTagReleaseMemory;
TBCM2838MailboxTagReleaseMemory = record
Release Memory | |
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagLockMemoryRequest);
|
|
1:(Response:TBCM2838MailboxTagUnlockMemoryResponse);
|
BCM2838 mailbox tag execute code request
TBCM2838MailboxTagExecuteCodeRequest = record
Execute Code | |
Address:Pointer;
|
Bus Address |
R0:LongWord;
|
|
R1:LongWord;
|
|
R2:LongWord;
|
|
R3:LongWord;
|
|
R4:LongWord;
|
|
R5:LongWord;
|
BCM2838 mailbox tag execute code response
TBCM2838MailboxTagExecuteCodeResponse = record
R0:LongWord;
|
BCM2838 mailbox tag execute code
PBCM2838MailboxTagExecuteCode = ^TBCM2838MailboxTagExecuteCode;
TBCM2838MailboxTagExecuteCode = record
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagExecuteCodeRequest);
|
|
1:(Response:TBCM2838MailboxTagExecuteCodeResponse);
|
BCM2838 mailbox tag execute QPU request
TBCM2838MailboxTagExecuteQPURequest = record
Execute QPU | |
NumQPUs:LongWord;
|
|
Control:LongWord;
|
|
NoFlush:LongWord;
|
|
Timeout:LongWord;
|
Milliseconds |
BCM2838 mailbox tag execute QPU response
TBCM2838MailboxTagExecuteQPUResponse = record
Status:LongWord;
|
0 is Success / 0x80000000 is Timeout |
BCM2838 mailbox tag execute QPU
PBCM2838MailboxTagExecuteQPU = ^TBCM2838MailboxTagExecuteQPU;
TBCM2838MailboxTagExecuteQPU = record
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagExecuteQPURequest);
|
|
1:(Response:TBCM2838MailboxTagExecuteQPUResponse);
|
BCM2838 mailbox tag enable QPU request
TBCM2838MailboxTagEnableQPURequest = record
Enable QPU | |
Enable:LongWord;
|
BCM2838 mailbox tag enable QPU response
TBCM2838MailboxTagEnableQPUResponse = record
Status:LongWord;
|
0 is Success |
BCM2838 mailbox tag enable QPU
PBCM2838MailboxTagEnableQPU = ^TBCM2838MailboxTagEnableQPU;
TBCM2838MailboxTagEnableQPU = record
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagEnableQPURequest);
|
|
1:(Response:TBCM2838MailboxTagEnableQPUResponse);
|
BCM2838 mailbox tag get dispmanx handle request
TBCM2838MailboxTagGetDispmanxHandleRequest = record
Get Dispmanx Handle | |
Resource:THandle;
|
BCM2838 mailbox tag get dispmanx handle response
TBCM2838MailboxTagGetDispmanxHandleResponse = record
Status:LongWord;
|
0 is Success |
Memory:THandle;
|
BCM2838 mailbox tag get dispmanx handle
PBCM2838MailboxTagGetDispmanxHandle = ^TBCM2838MailboxTagGetDispmanxHandle;
TBCM2838MailboxTagGetDispmanxHandle = record
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagGetDispmanxHandleRequest);
|
|
1:(Response:TBCM2838MailboxTagGetDispmanxHandleResponse);
|
BCM2838 mailbox tag get EDID block request
TBCM2838MailboxTagGetEDIDBlockRequest = record
Get EDID Block | |
Block:LongWord;
|
Starting from 0 |
BCM2838 mailbox tag get EDID block response
TBCM2838MailboxTagGetEDIDBlockResponse = record
Block:LongWord;
|
Starting from 0 |
Status:LongWord;
|
0 is Success |
EDID:array[0..127] of Byte;
|
BCM2838 mailbox tag get EDID block
PBCM2838MailboxTagGetEDIDBlock = ^TBCM2838MailboxTagGetEDIDBlock;
TBCM2838MailboxTagGetEDIDBlock = record
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagGetEDIDBlockRequest);
|
|
1:(Response:TBCM2838MailboxTagGetEDIDBlockResponse);
|
BCM2838 mailbox tag GPIO state request
TBCM2838MailboxTagGPIOStateRequest = record
Get GPIO State | |
GPIO:LongWord;
|
|
State:LongWord;
|
BCM2838 mailbox tag GPIO state response
TBCM2838MailboxTagGPIOStateResponse = record
GPIO:LongWord;
|
|
State:LongWord;
|
BCM2838 mailbox tag get GPIO state
PBCM2838MailboxTagGetGPIOState = ^TBCM2838MailboxTagGetGPIOState;
TBCM2838MailboxTagGetGPIOState = record
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagGPIOStateRequest);
|
|
1:(Response:TBCM2838MailboxTagGPIOStateResponse);
|
BCM2838 mailbox tag set GPIO state
PBCM2838MailboxTagSetGPIOState = ^TBCM2838MailboxTagSetGPIOState;
TBCM2838MailboxTagSetGPIOState = record
Set GPIO State | |
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagGPIOStateRequest);
|
|
1:(Response:TBCM2838MailboxTagGPIOStateResponse);
|
BCM2838 mailbox tag get GPIO config request
TBCM2838MailboxTagGetGPIOConfigRequest = record
Get GPIO Config | |
GPIO:LongWord;
|
|
Direction:LongWord;
|
|
Polarity:LongWord;
|
|
Terminator:LongWord;
|
|
PullUp:LongWord;
|
BCM2838 mailbox tag get GPIO config response
TBCM2838MailboxTagGetGPIOConfigResponse = record
GPIO:LongWord;
|
|
Direction:LongWord;
|
|
Polarity:LongWord;
|
|
Terminator:LongWord;
|
|
PullUp:LongWord;
|
BCM2838 mailbox tag get GPIO config
PBCM2838MailboxTagGetGPIOConfig = ^TBCM2838MailboxTagGetGPIOConfig;
TBCM2838MailboxTagGetGPIOConfig = record
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagGetGPIOConfigRequest);
|
|
1:(Response:TBCM2838MailboxTagGetGPIOConfigResponse);
|
BCM2838 mailbox tag set GPIO config request
TBCM2838MailboxTagSetGPIOConfigRequest = record
Set GPIO Config | |
GPIO:LongWord;
|
|
Direction:LongWord;
|
|
Polarity:LongWord;
|
|
Terminator:LongWord;
|
|
PullUp:LongWord;
|
|
State:LongWord;
|
BCM2838 mailbox tag set GPIO config response
TBCM2838MailboxTagSetGPIOConfigResponse = record
GPIO:LongWord;
|
|
Direction:LongWord;
|
|
Polarity:LongWord;
|
|
Terminator:LongWord;
|
|
PullUp:LongWord;
|
|
State:LongWord;
|
BCM2838 mailbox tag set GPIO config
PBCM2838MailboxTagSetGPIOConfig = ^TBCM2838MailboxTagSetGPIOConfig;
TBCM2838MailboxTagSetGPIOConfig = record
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagSetGPIOConfigRequest);
|
|
1:(Response:TBCM2838MailboxTagSetGPIOConfigResponse);
|
BCM2838 mailbox tag get throttled request
TBCM2838MailboxTagGetThrottledRequest = record
Get Throttled | |
Value:LongWord;
|
BCM2838 mailbox tag get throttled response
TBCM2838MailboxTagGetThrottledResponse = record
Value:LongWord;
|
BCM2838 mailbox tag get throttled
PBCM2838MailboxTagGetThrottled = ^TBCM2838MailboxTagGetThrottled;
TBCM2838MailboxTagGetThrottled = record
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagGetThrottledRequest);
|
|
1:(Response:TBCM2838MailboxTagGetThrottledResponse);
|
BCM2838 mailbox tag get boot mode response
TBCM2838MailboxTagGetBootModeResponse = record
BootMode:LongWord;
|
|
SignedBoot:LongWord;
|
BCM2838 mailbox tag get boot mode
PBCM2838MailboxTagGetBootMode = ^TBCM2838MailboxTagGetBootMode;
TBCM2838MailboxTagGetBootMode = record
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagNoRequest);
|
|
1:(Response:TBCM2838MailboxTagGetBootModeResponse);
|
BCM2838 mailbox tag allocate buffer request
TBCM2838MailboxTagAllocateBufferRequest = record
Allocate Buffer | |
Alignment:LongWord;
|
Bytes |
BCM2838 mailbox tag allocate buffer response
TBCM2838MailboxTagAllocateBufferResponse = record
Address:LongWord;
|
Base Address in Bytes |
Size:LongWord;
|
Size in Bytes |
BCM2838 mailbox tag allocate buffer
PBCM2838MailboxTagAllocateBuffer = ^TBCM2838MailboxTagAllocateBuffer;
TBCM2838MailboxTagAllocateBuffer = record
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagAllocateBufferRequest);
|
|
1:(Response:TBCM2838MailboxTagAllocateBufferResponse);
|
BCM2838 mailbox tag release buffer
PBCM2838MailboxTagReleaseBuffer = ^TBCM2838MailboxTagReleaseBuffer;
TBCM2838MailboxTagReleaseBuffer = record
Release Buffer | |
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagNoRequest);
|
|
1:(Response:TBCM2838MailboxTagNoResponse);
|
BCM2838 mailbox tag blank screen request
TBCM2838MailboxTagBlankScreenRequest = record
Blank Screen | |
State:LongWord;
|
BCM2838 mailbox tag blank screen response
TBCM2838MailboxTagBlankScreenResponse = record
State:LongWord;
|
BCM2838 mailbox tag blank screen
PBCM2838MailboxTagBlankScreen = ^TBCM2838MailboxTagBlankScreen;
TBCM2838MailboxTagBlankScreen = record
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagBlankScreenRequest);
|
|
1:(Response:TBCM2838MailboxTagBlankScreenResponse);
|
BCM2838 mailbox tag physical request
TBCM2838MailboxTagPhysicalRequest = record
Get Physical | |
Width:LongWord;
|
Pixels |
Height:Longword;
|
Pixels |
BCM2838 mailbox tag physical response
TBCM2838MailboxTagPhysicalResponse = record
Width:LongWord;
|
Pixels |
Height:Longword;
|
Pixels |
BCM2838 mailbox tag get physical
PBCM2838MailboxTagGetPhysical = ^TBCM2838MailboxTagGetPhysical;
TBCM2838MailboxTagGetPhysical = record
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagNoRequest);
|
|
1:(Response:TBCM2838MailboxTagPhysicalResponse);
|
BCM2838 mailbox tag test physical
PBCM2838MailboxTagTestPhysical = ^TBCM2838MailboxTagTestPhysical;
TBCM2838MailboxTagTestPhysical = record
Test Physical | |
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagPhysicalRequest);
|
|
1:(Response:TBCM2838MailboxTagPhysicalResponse);
|
BCM2838 mailbox tag set physical
PBCM2838MailboxTagSetPhysical = ^TBCM2838MailboxTagSetPhysical;
TBCM2838MailboxTagSetPhysical = record
Set Physical | |
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagPhysicalRequest);
|
|
1:(Response:TBCM2838MailboxTagPhysicalResponse);
|
BCM2838 mailbox tag virtual request
TBCM2838MailboxTagVirtualRequest = record
Get Virtual | |
Width:LongWord;
|
Pixels |
Height:Longword;
|
Pixels |
BCM2838 mailbox tag virtual response
TBCM2838MailboxTagVirtualResponse = record
Width:LongWord;
|
Pixels |
Height:Longword;
|
Pixels |
BCM2838 mailbox tag get virtual
PBCM2838MailboxTagGetVirtual = ^TBCM2838MailboxTagGetVirtual;
TBCM2838MailboxTagGetVirtual = record
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagNoRequest);
|
|
1:(Response:TBCM2838MailboxTagVirtualResponse);
|
BCM2838 mailbox tag test virtual
PBCM2838MailboxTagTestVirtual = ^TBCM2838MailboxTagTestVirtual;
TBCM2838MailboxTagTestVirtual = record
Test Virtual | |
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagVirtualRequest);
|
|
1:(Response:TBCM2838MailboxTagVirtualResponse);
|
BCM2838 mailbox tag set virtual
PBCM2838MailboxTagSetVirtual = ^TBCM2838MailboxTagSetVirtual;
TBCM2838MailboxTagSetVirtual = record
Set Virtual | |
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagVirtualRequest);
|
|
1:(Response:TBCM2838MailboxTagVirtualResponse);
|
BCM2838 mailbox tag depth request
TBCM2838MailboxTagDepthRequest = record
Get Depth | |
Depth:LongWord;
|
Bits per pixel |
BCM2838 mailbox tag depth response
TBCM2838MailboxTagDepthResponse = record
Depth:LongWord;
|
Bits per pixel |
BCM2838 mailbox tag get depth
PBCM2838MailboxTagGetDepth = ^TBCM2838MailboxTagGetDepth;
TBCM2838MailboxTagGetDepth = record
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagNoRequest);
|
|
1:(Response:TBCM2838MailboxTagDepthResponse);
|
BCM2838 mailbox tag test depth
PBCM2838MailboxTagTestDepth = ^TBCM2838MailboxTagTestDepth;
TBCM2838MailboxTagTestDepth = record
Test Depth | |
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagDepthRequest);
|
|
1:(Response:TBCM2838MailboxTagDepthResponse);
|
BCM2838 mailbox tag set depth
PBCM2838MailboxTagSetDepth = ^TBCM2838MailboxTagSetDepth;
TBCM2838MailboxTagSetDepth = record
Set Depth | |
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagDepthRequest);
|
|
1:(Response:TBCM2838MailboxTagDepthResponse);
|
BCM2838 mailbox tag pixel order request
TBCM2838MailboxTagPixelOrderRequest = record
Get Pixel Order | |
Order:LongWord;
|
BCM2838 mailbox tag pixel order response
TBCM2838MailboxTagPixelOrderResponse = record
Order:LongWord;
|
BCM2838 mailbox tag get pixel order
PBCM2838MailboxTagGetPixelOrder = ^TBCM2838MailboxTagGetPixelOrder;
TBCM2838MailboxTagGetPixelOrder = record
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagNoRequest);
|
|
1:(Response:TBCM2838MailboxTagPixelOrderResponse);
|
BCM2838 mailbox tag test pixel order
PBCM2838MailboxTagTestPixelOrder = ^TBCM2838MailboxTagTestPixelOrder;
TBCM2838MailboxTagTestPixelOrder = record
Test Pixel Order | |
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagPixelOrderRequest);
|
|
1:(Response:TBCM2838MailboxTagPixelOrderResponse);
|
BCM2838 mailbox tag set pixel order
PBCM2838MailboxTagSetPixelOrder = ^TBCM2838MailboxTagSetPixelOrder;
TBCM2838MailboxTagSetPixelOrder = record
Set Pixel Order | |
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagPixelOrderRequest);
|
|
1:(Response:TBCM2838MailboxTagPixelOrderResponse);
|
BCM2838 mailbox tag alpha mode request
TBCM2838MailboxTagAlphaModeRequest = record
Get Alpha Mode | |
Mode:LongWord;
|
BCM2838 mailbox tag alpha mode response
TBCM2838MailboxTagAlphaModeResponse = record
Mode:LongWord;
|
BCM2838 mailbox tag get alpha mode
PBCM2838MailboxTagGetAlphaMode = ^TBCM2838MailboxTagGetAlphaMode;
TBCM2838MailboxTagGetAlphaMode = record
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagNoRequest);
|
|
1:(Response:TBCM2838MailboxTagAlphaModeResponse);
|
BCM2838 mailbox tag test alpha mode
PBCM2838MailboxTagTestAlphaMode = ^TBCM2838MailboxTagTestAlphaMode;
TBCM2838MailboxTagTestAlphaMode = record
Test Alpha Mode | |
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagAlphaModeRequest);
|
|
1:(Response:TBCM2838MailboxTagAlphaModeResponse);
|
BCM2838 mailbox tag set alpha mode
PBCM2838MailboxTagSetAlphaMode = ^TBCM2838MailboxTagSetAlphaMode;
TBCM2838MailboxTagSetAlphaMode = record
Set Alpha Mode | |
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagAlphaModeRequest);
|
|
1:(Response:TBCM2838MailboxTagAlphaModeResponse);
|
BCM2838 mailbox tag pitch response
TBCM2838MailboxTagPitchResponse = record
Get Pitch | |
Pitch:LongWord;
|
Bytes per line |
BCM2838 mailbox tag get pitch
PBCM2838MailboxTagGetPitch = ^TBCM2838MailboxTagGetPitch;
TBCM2838MailboxTagGetPitch = record
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagNoRequest);
|
|
1:(Response:TBCM2838MailboxTagPitchResponse);
|
BCM2838 mailbox tag virtual offset request
TBCM2838MailboxTagVirtualOffsetRequest = record
Get Virtual Offset | |
X:LongWord;
|
Pixels |
Y:LongWord;
|
Pixels |
BCM2838 mailbox tag virtual offset response
TBCM2838MailboxTagVirtualOffsetResponse = record
X:LongWord;
|
Pixels |
Y:LongWord;
|
Pixels |
BCM2838 mailbox tag get virtual offset
PBCM2838MailboxTagGetVirtualOffset = ^TBCM2838MailboxTagGetVirtualOffset;
TBCM2838MailboxTagGetVirtualOffset = record
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagNoRequest);
|
|
1:(Response:TBCM2838MailboxTagVirtualOffsetResponse);
|
BCM2838 mailbox tag test virtual offset
PBCM2838MailboxTagTestVirtualOffset = ^TBCM2838MailboxTagTestVirtualOffset;
TBCM2838MailboxTagTestVirtualOffset = record
Test Virtual Offset | |
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagVirtualOffsetRequest);
|
|
1:(Response:TBCM2838MailboxTagVirtualOffsetResponse);
|
BCM2838 mailbox tag set virtual offset
PBCM2838MailboxTagSetVirtualOffset = ^TBCM2838MailboxTagSetVirtualOffset;
TBCM2838MailboxTagSetVirtualOffset = record
Set Virtual Offset | |
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagVirtualOffsetRequest);
|
|
1:(Response:TBCM2838MailboxTagVirtualOffsetResponse);
|
BCM2838 mailbox tag overscan request
TBCM2838MailboxTagOverscanRequest = record
Get Overscan | |
Top:LongWord;
|
Pixels |
Bottom:LongWord;
|
Pixels |
Left:LongWord;
|
Pixels |
Right:LongWord;
|
Pixels |
BCM2838 mailbox tag overscan response
TBCM2838MailboxTagOverscanResponse = record
Top:LongWord;
|
Pixels |
Bottom:LongWord;
|
Pixels |
Left:LongWord;
|
Pixels |
Right:LongWord;
|
Pixels |
BCM2838 mailbox tag get overscan
PBCM2838MailboxTagGetOverscan = ^TBCM2838MailboxTagGetOverscan;
TBCM2838MailboxTagGetOverscan = record
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagNoRequest);
|
|
1:(Response:TBCM2838MailboxTagOverscanResponse);
|
BCM2838 mailbox tag test overscan
PBCM2838MailboxTagTestOverscan = ^TBCM2838MailboxTagTestOverscan;
TBCM2838MailboxTagTestOverscan = record
Test Overscan | |
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagOverscanRequest);
|
|
1:(Response:TBCM2838MailboxTagOverscanResponse);
|
BCM2838 mailbox tag set overscan
PBCM2838MailboxTagSetOverscan = ^TBCM2838MailboxTagSetOverscan;
TBCM2838MailboxTagSetOverscan = record
Set Overscan | |
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagOverscanRequest);
|
|
1:(Response:TBCM2838MailboxTagOverscanResponse);
|
BCM2838 mailbox tag get palette response
TBCM2838MailboxTagGetPaletteResponse = record
Get Palette | |
Values:array[0..255] of LongWord;
|
RGBA Palette Values |
BCM2838 mailbox tag get palette
PBCM2838MailboxTagGetPalette = ^TBCM2838MailboxTagGetPalette;
TBCM2838MailboxTagGetPalette = record
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagNoRequest);
|
|
1:(Response:TBCM2838MailboxTagGetPaletteResponse);
|
BCM2838 mailbox tag palette request
TBCM2838MailboxTagPaletteRequest = record
Test Palette | |
Offset:LongWord;
|
First palette index to set (0-255) |
Length:LongWord;
|
Number of palette entries to set (1-256) |
Values:array[0..255] of LongWord;
|
RGBA Palette Values |
BCM2838 mailbox tag palette response
TBCM2838MailboxTagPaletteResponse = record
Status:LongWord;
|
BCM2838 mailbox tag test palette
PBCM2838MailboxTagTestPalette = ^TBCM2838MailboxTagTestPalette;
TBCM2838MailboxTagTestPalette = record
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagPaletteRequest);
|
|
1:(Response:TBCM2838MailboxTagPaletteResponse);
|
BCM2838 mailbox tag set palette
PBCM2838MailboxTagSetPalette = ^TBCM2838MailboxTagSetPalette;
TBCM2838MailboxTagSetPalette = record
Set Palette | |
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagPaletteRequest);
|
|
1:(Response:TBCM2838MailboxTagPaletteResponse);
|
BCM2838 mailbox tag layer request
TBCM2838MailboxTagLayerRequest = record
Get Layer | |
Layer:LongInt;
|
BCM2838 mailbox tag layer response
TBCM2838MailboxTagLayerResponse = record
Layer:LongInt;
|
BCM2838 mailbox tag get layer
PBCM2838MailboxTagGetLayer = ^TBCM2838MailboxTagGetLayer;
TBCM2838MailboxTagGetLayer = record
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagNoRequest);
|
|
1:(Response:TBCM2838MailboxTagLayerResponse);
|
BCM2838 mailbox tag test layer
PBCM2838MailboxTagTestLayer = ^TBCM2838MailboxTagTestLayer;
TBCM2838MailboxTagTestLayer = record
Test Layer | |
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagLayerRequest);
|
|
1:(Response:TBCM2838MailboxTagLayerResponse);
|
BCM2838 mailbox tag set layer
PBCM2838MailboxTagSetLayer = ^TBCM2838MailboxTagSetLayer;
TBCM2838MailboxTagSetLayer = record
Set Layer | |
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagLayerRequest);
|
|
1:(Response:TBCM2838MailboxTagLayerResponse);
|
BCM2838 mailbox tag get touch response
TBCM2838MailboxTagGetTouchResponse = record
Get Touch Buffer | |
Address:LongWord;
|
BCM2838 mailbox tag get touch
PBCM2838MailboxTagGetTouch = ^TBCM2838MailboxTagGetTouch;
TBCM2838MailboxTagGetTouch = record
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagNoRequest);
|
|
1:(Response:TBCM2838MailboxTagGetTouchResponse);
|
BCM2838 mailbox tag set touch request
TBCM2838MailboxTagSetTouchRequest = record
Set Touch Buffer | |
Address:LongWord;
|
BCM2838 mailbox tag set touch response
TBCM2838MailboxTagSetTouchResponse = record
Status:LongWord;
|
BCM2838 mailbox tag set touch
PBCM2838MailboxTagSetTouch = ^TBCM2838MailboxTagSetTouch;
TBCM2838MailboxTagSetTouch = record
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagSetTouchRequest);
|
|
1:(Response:TBCM2838MailboxTagSetTouchResponse);
|
BCM2838 mailbox tag get virtual GPIO response
TBCM2838MailboxTagGetVirtualGPIOResponse = record
Get Virtual GPIO Buffer | |
Address:LongWord;
|
BCM2838 mailbox tag get virtual GPIO
PBCM2838MailboxTagGetVirtualGPIO = ^TBCM2838MailboxTagGetVirtualGPIO;
TBCM2838MailboxTagGetVirtualGPIO = record
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagNoRequest);
|
|
1:(Response:TBCM2838MailboxTagGetVirtualGPIOResponse);
|
BCM2838 mailbox tag set virtual GPIO request
TBCM2838MailboxTagSetVirtualGPIORequest = record
Set Virtual GPIO Buffer | |
Address:LongWord;
|
BCM2838 mailbox tag set virtual GPIO response
TBCM2876MailboxTagSetVirtualGPIOResponse = record
Status:LongWord;
|
BCM2838 mailbox tag set virtual GPIO
PBCM2838MailboxTagSetVirtualGPIO = ^TBCM2838MailboxTagSetVirtualGPIO;
TBCM2838MailboxTagSetVirtualGPIO = record
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagSetVirtualGPIORequest);
|
|
1:(Response:TBCM2876MailboxTagSetVirtualGPIOResponse);
|
BCM2838 mailbox tag test vsync
PBCM2838MailboxTagTestVsync = ^TBCM2838MailboxTagTestVsync;
TBCM2838MailboxTagTestVsync = record
Test Vsync | |
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagNoRequest);
|
|
1:(Response:TBCM2838MailboxTagNoResponse);
|
BCM2838 mailbox tag set vsync
PBCM2838MailboxTagSetVsync = ^TBCM2838MailboxTagSetVsync;
TBCM2838MailboxTagSetVsync = record
Set Vsync | |
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagNoRequest);
|
|
1:(Response:TBCM2838MailboxTagNoResponse);
|
BCM2838 mailbox tag set backlight request
TBCM2838MailboxTagSetBacklightRequest = record
Set Backlight | |
Brightness:LongWord;
|
BCM2838 mailbox tag set backlight response
TBCM2838MailboxTagSetBacklightResponse = record
Brightness:LongWord;
|
BCM2838 mailbox tag set backlight
PBCM2838MailboxTagSetBacklight = ^TBCM2838MailboxTagSetBacklight;
TBCM2838MailboxTagSetBacklight = record
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagSetBacklightRequest);
|
|
1:(Response:TBCM2838MailboxTagSetBacklightResponse);
|
BCM2838 mailbox tag get display id request
TBCM2838MailboxTagGetDisplayIdRequest = record
Get Display Id | |
DisplayNum:LongWord;
|
BCM2838 mailbox tag get display id response
TBCM2838MailboxTagGetDisplayIdResponse = record
DisplayId:LongWord;
|
BCM2838 mailbox tag get display id
PBCM2838MailboxTagGetDisplayId = ^TBCM2838MailboxTagGetDisplayId;
TBCM2838MailboxTagGetDisplayId = record
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagGetDisplayIdRequest);
|
|
1:(Response:TBCM2838MailboxTagGetDisplayIdResponse);
|
BCM2838 mailbox tag set display number request
TBCM2838MailboxTagSetDisplayNumRequest = record
Set Display Num | |
DisplayNum:LongWord;
|
BCM2838 mailbox tag set display number response
TBCM2838MailboxTagSetDisplayNumResponse = record
DisplayNum:LongWord;
|
BCM2838 mailbox tag set display number
PBCM2838MailboxTagSetDisplayNum = ^TBCM2838MailboxTagSetDisplayNum;
TBCM2838MailboxTagSetDisplayNum = record
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagSetDisplayNumRequest);
|
|
1:(Response:TBCM2838MailboxTagSetDisplayNumResponse);
|
BCM2838 mailbox tag get number displays request
TBCM2838MailboxTagGetNumDisplaysRequest = record
Get Num Displays | |
NumDisplays:LongWord;
|
BCM2838 mailbox tag get number displays response
TBCM2838MailboxTagGetNumDisplaysResponse = record
NumDisplays:LongWord;
|
BCM2838 mailbox tag get number displays
PBCM2838MailboxTagGetNumDisplays = ^TBCM2838MailboxTagGetNumDisplays;
TBCM2838MailboxTagGetNumDisplays = record
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagGetNumDisplaysRequest);
|
|
1:(Response:TBCM2838MailboxTagGetNumDisplaysResponse);
|
BCM2838 mailbox tag get display settings request
TBCM2838MailboxTagGetDisplaySettingsRequest = record
Get Display Settings | |
DisplayNum:LongWord;
|
|
Width:LongWord;
|
|
Height:LongWord;
|
|
Depth:LongWord;
|
|
Pitch:LongWord;
|
|
VirtualWidth:LongWord;
|
|
VirtualHeight:LongWord;
|
|
VirtualWidthOffset:LongWord;
|
|
VirtualHeightOffset:LongWord;
|
|
BusAddress:LongWord;
|
BCM2838 mailbox tag get display settings response
TBCM2838MailboxTagGetDisplaySettingsResponse = record
DisplayNum:LongWord;
|
|
Width:LongWord;
|
|
Height:LongWord;
|
|
Depth:LongWord;
|
|
Pitch:LongWord;
|
|
VirtualWidth:LongWord;
|
|
VirtualHeight:LongWord;
|
|
VirtualWidthOffset:LongWord;
|
|
VirtualHeightOffset:LongWord;
|
|
BusAddress:LongWord;
|
BCM2838 mailbox tag get display settings
PBCM2838MailboxTagGetDisplaySettings = ^TBCM2838MailboxTagGetDisplaySettings;
TBCM2838MailboxTagGetDisplaySettings = record
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagGetDisplaySettingsRequest);
|
|
1:(Response:TBCM2838MailboxTagGetDisplaySettingsResponse);
|
BCM2838 mailbox tag set cursor info request
TBCM2838MailboxTagSetCursorInfoRequest = record
Set Cursor Info | |
Width:LongWord;
|
Pixels |
Height:LongWord;
|
Pixels |
Reserved:LongWord;
|
|
Pixels:Pointer;
|
Format is 32bpp (ARGB) (Width and Height should be >= 16 and (Width * Height) <= 64) |
HotspotX:LongWord;
|
|
HotspotY:LongWord;
|
BCM2838 mailbox tag cursor response
TBCM2838MailboxTagCursorResponse = record
Status:LongWord;
|
BCM2838 mailbox tag set cursor info
PBCM2838MailboxTagSetCursorInfo = ^TBCM2838MailboxTagSetCursorInfo;
TBCM2838MailboxTagSetCursorInfo = record
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagSetCursorInfoRequest);
|
|
1:(Response:TBCM2838MailboxTagCursorResponse);
|
BCM2838 mailbox tag set cursor state request
TBCM2838MailboxTagSetCursorStateRequest = record
Set Cursor State | |
Enable:LongWord;
|
|
X:LongWord;
|
Pixels |
Y:LongWord;
|
Pixels |
Flags:LongWord;
|
BCM2838 mailbox tag set cursor state
PBCM2838MailboxTagSetCursorState = ^TBCM2838MailboxTagSetCursorState;
TBCM2838MailboxTagSetCursorState = record
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagSetCursorStateRequest);
|
|
1:(Response:TBCM2838MailboxTagCursorResponse);
|
BCM2838 mailbox tag VCHIQ init request
TBCM2838MailboxTagVCHIQInitRequest = record
VCHIQ Init | |
Address:LongWord;
|
BCM2838 mailbox tag VCHIQ init response
TBCM2838MailboxTagVCHIQInitResponse = record
Status:LongWord;
|
0 is Success |
BCM2838 mailbox tag VCHIQ init
PBCM2838MailboxTagVCHIQInit = ^TBCM2838MailboxTagVCHIQInit;
TBCM2838MailboxTagVCHIQInit = record
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagVCHIQInitRequest);
|
|
1:(Response:TBCM2838MailboxTagVCHIQInitResponse);
|
BCM2838 mailbox tag command line response
TBCM2838MailboxTagCommandLineResponse = record
Get Command Line | |
CommandLine:array[0..1023] of Char;
|
BCM2838 mailbox tag get command line
PBCM2838MailboxTagGetCommandLine = ^TBCM2838MailboxTagGetCommandLine;
TBCM2838MailboxTagGetCommandLine = record
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagNoRequest);
|
|
1:(Response:TBCM2838MailboxTagCommandLineResponse);
|
BCM2838 mailbox tag DMA channels response
TBCM2838MailboxTagDMAChannelsResponse = record
Get DMA Channels | |
Channels:LongWord;
|
BCM2838 mailbox tag get DMA channels
PBCM2838MailboxTagGetDMAChannels = ^TBCM2838MailboxTagGetDMAChannels;
TBCM2838MailboxTagGetDMAChannels = record
Header:TBCM2838MailboxTagHeader;
|
|
case Integer of
|
|
0:(Request:TBCM2838MailboxTagNoRequest);
|
|
1:(Response:TBCM2838MailboxTagDMAChannelsResponse);
|
BCM2838 mailbox tag create buffer
PBCM2838MailboxTagCreateBuffer = ^TBCM2838MailboxTagCreateBuffer;
TBCM2838MailboxTagCreateBuffer = record
Note: A combination tag to allocate and configure a framebuffer in one request | |
Create Buffer | |
Physical:TBCM2838MailboxTagSetPhysical;
|
|
Vertual:TBCM2838MailboxTagSetVirtual;
|
|
Depth:TBCM2838MailboxTagSetDepth;
|
|
Order:TBCM2838MailboxTagSetPixelOrder;
|
|
Mode:TBCM2838MailboxTagSetAlphaMode;
|
|
Offset:TBCM2838MailboxTagSetVirtualOffset;
|
|
Overscan:TBCM2838MailboxTagSetOverscan;
|
|
Allocate:TBCM2838MailboxTagAllocateBuffer;
|
|
Pitch:TBCM2838MailboxTagGetPitch;
|
BCM2838 mailbox tag query buffer
PBCM2838MailboxTagQueryBuffer = ^TBCM2838MailboxTagQueryBuffer;
TBCM2838MailboxTagQueryBuffer = record
Note: A combination tag to query all framebuffer properties in one request | |
Query Buffer | |
Physical:TBCM2838MailboxTagGetPhysical;
|
|
Vertual:TBCM2838MailboxTagGetVirtual;
|
|
Depth:TBCM2838MailboxTagGetDepth;
|
|
Order:TBCM2838MailboxTagGetPixelOrder;
|
|
Mode:TBCM2838MailboxTagGetAlphaMode;
|
|
Offset:TBCM2838MailboxTagGetVirtualOffset;
|
|
Overscan:TBCM2838MailboxTagGetOverscan;
|
|
Pitch:TBCM2838MailboxTagGetPitch;
|
BCM2838 ARM local mailbox write registers
PBCM2838ARMLocalMailboxWriteRegisters = ^TBCM2838ARMLocalMailboxWriteRegisters;
TBCM2838ARMLocalMailboxWriteRegisters = record
Note: BCM2838 ARM local structures (See: BCM2711 ARM Peripherals) | |
Mailbox0Write:LongWord;
|
Mailbox 0 write-set (WO) |
Mailbox1Write:LongWord;
|
Mailbox 1 write-set (WO) |
Mailbox2Write:LongWord;
|
Mailbox 2 write-set (WO) |
Mailbox3Write:LongWord;
|
Mailbox 3 write-set (WO) |
BCM2838 ARM local mailbox read clear registers
PBCM2838ARMLocalMailboxReadClearRegisters = ^TBCM2838ARMLocalMailboxReadClearRegisters;
TBCM2838ARMLocalMailboxReadClearRegisters = record
Mailbox0ReadClear:LongWord;
|
Mailbox 0 read & write-high-to-clear |
Mailbox1ReadClear:LongWord;
|
Mailbox 1 read & write-high-to-clear |
Mailbox2ReadClear:LongWord;
|
Mailbox 2 read & write-high-to-clear |
Mailbox3ReadClear:LongWord;
|
Mailbox 3 read & write-high-to-clear |
BCM2838 ARM local registers
PBCM2838ARMLocalRegisters = ^TBCM2838ARMLocalRegisters;
TBCM2838ARMLocalRegisters = record
Control:LongWord;
|
Control register $0000 |
Reserved1:LongWord;
|
Unused $0004 |
CoreTimerPrescaler:LongWord;
|
Core timer prescaler $0008 |
CoreInterruptRouting:LongWord;
|
Core Interrupts routing $000C |
PMInterruptRoutingSet:LongWord;
|
Performance Monitor Interrupts routing-set $0010 |
PMInterruptRoutingClear:LongWord;
|
Performance Monitor Interrupts routing-clear $0014 |
Reserved2:LongWord;
|
Unused $0018 |
CoreTimerLow:LongWord;
|
Core timer access LS 32 bits $001C |
CoreTimerHigh:LongWord;
|
Core timer access MS 32 bits $0020 |
PeripheralIntRouting0:LongWord;
|
Peripheral Interrupts 0-7 routing (1 to 7 Unused) $0024 |
PeripheralIntRouting1:LongWord;
|
Peripheral Interrupts 8-15 routing (Unused) $0028 |
AXIOutstandingCount:LongWord;
|
AXI outstanding counters $002C |
AXIOutstandingIRQ:LongWord;
|
AXI outstanding IRQ $0030 |
LocalTimerControl:LongWord;
|
Local timer control & status $0034 |
LocalTimerClearReload:LongWord;
|
Local timer IRQ clear & reload $0038 |
Reserved3:LongWord;
|
Unused $003C |
TimersIntControl:array[0..BCM2838_CPU_COUNT - 1] of LongWord;
|
Core0-3 Timers Interrupt control $0040-004C |
MailboxIntControl:array[0..BCM2838_CPU_COUNT - 1] of LongWord;
|
Core0-3 Mailboxes Interrupt control $0050-005C |
IRQSource:array[0..BCM2838_CPU_COUNT - 1] of LongWord;
|
Core0-3 IRQ Source $0060-006C |
FIQSource:array[0..BCM2838_CPU_COUNT - 1] of LongWord;
|
Core0-3 FIQ Source $0070-007C |
MailboxWrite:array[0..BCM2838_CPU_COUNT - 1] of TBCM2838ARMLocalMailboxWriteRegisters;
|
Core0-3 Mailbox 0-3 write-set (WO) $0080-00BC |
MailboxReadClear:array[0..BCM2838_CPU_COUNT - 1] of TBCM2838ARMLocalMailboxReadClearRegisters;
|
Core0-3 Mailbox 0-3 read & write-high-to-clear $00C0-00FC |
BCM2838 virtual GPIO buffer
PBCM2838VirtualGPIOBuffer = ^TBCM2838VirtualGPIOBuffer;
TBCM2838VirtualGPIOBuffer = record
Buffer:Pointer;
|
|
Address:PtrUInt;
|
|
CachedBuffer:LongBool;
|
|
EnableDisable:array[0..BCM2838_VIRTUAL_GPIO_PIN_COUNT - 1] of LongWord;
|
Two packed 16-bit counts of enabled and disabled / Allows host to detect a brief enable that was missed |
Public variables
None defined
Function declarations
None defined
Return to Unit Reference