rrc-open-firmware/config.asm
DataHoarder c99d942f3e
All checks were successful
continuous-integration/drone/push Build is passing
Add further config values, set spi values for rrcc to use
2021-01-04 08:21:58 +01:00

119 lines
4.2 KiB
NASM

; File used to declare configuration to be placed on the firmware image
; Defaults to values found on Silicom PE3100G2DQiRM-QX4 card, as an example
.constant platform_firmware_versionNumber 0x0222 ; Define version reported back on register. 0x0222 = same as rrcBig_02.22
.constant bootCfg_spiTransferMode 0
.constant bootCfg_spiTransferSpeed 7
; Picks between DEVICE_CFG.SystimeClockSource values. 0 = PCIE_REFCLK, 1 = IEEE1588_REFCLK
.constant bootCfg_systimeClockSource 0
.constant bootCfg_enableSwitchRdySignal 0
.constant bootCfg_skipMemRepair 0
.constant bootCfg_skipPcieInitialization 0
.constant bootCfg_pep0_enable 1
.constant bootCfg_pep1_enable 0
.constant bootCfg_pep2_enable 1
.constant bootCfg_pep3_enable 0
.constant bootCfg_pep4_enable 1
.constant bootCfg_pep5_enable 0
.constant bootCfg_pep6_enable 1
.constant bootCfg_pep7_enable 0
.constant bootCfg_pep8_enable 0
; Picks between 0 = 8x8x, 1 = 4x4x4x4x
.constant bootCfg_pep0_mode 0
.constant bootCfg_pep2_mode 0
.constant bootCfg_pep4_mode 0
.constant bootCfg_pep6_mode 0
.constant bootCfg_pep0_numberOfLanes 8
.constant bootCfg_pep1_numberOfLanes 0
.constant bootCfg_pep2_numberOfLanes 8
.constant bootCfg_pep3_numberOfLanes 0
.constant bootCfg_pep4_numberOfLanes 8
.constant bootCfg_pep5_numberOfLanes 0
.constant bootCfg_pep6_numberOfLanes 8
.constant bootCfg_pep7_numberOfLanes 0
.constant bootCfg_pep8_numberOfLanes 0
.constant bootCfg_pep0_gen 3
.constant bootCfg_pep1_gen 3
.constant bootCfg_pep2_gen 3
.constant bootCfg_pep3_gen 3
.constant bootCfg_pep4_gen 3
.constant bootCfg_pep5_gen 3
.constant bootCfg_pep6_gen 3
.constant bootCfg_pep7_gen 3
.constant bootCfg_pep8_gen 3
.constant bootCfg_pep0_bar4Allowed 1
.constant bootCfg_pep1_bar4Allowed 0
.constant bootCfg_pep2_bar4Allowed 1
.constant bootCfg_pep3_bar4Allowed 0
.constant bootCfg_pep4_bar4Allowed 1
.constant bootCfg_pep5_bar4Allowed 0
.constant bootCfg_pep6_bar4Allowed 1
.constant bootCfg_pep7_bar4Allowed 0
.constant bootCfg_pep8_bar4Allowed 0
.constant bootCfg_pep0_ASPMEnable 0
.constant bootCfg_pep1_ASPMEnable 0
.constant bootCfg_pep2_ASPMEnable 0
.constant bootCfg_pep3_ASPMEnable 0
.constant bootCfg_pep4_ASPMEnable 0
.constant bootCfg_pep5_ASPMEnable 0
.constant bootCfg_pep6_ASPMEnable 0
.constant bootCfg_pep7_ASPMEnable 0
.constant bootCfg_pep8_ASPMEnable 0
.constant bootCfg_pep0_vendorId 0x8086 ; Intel Corporation
.constant bootCfg_pep1_vendorId 0x8086
.constant bootCfg_pep2_vendorId 0x8086
.constant bootCfg_pep3_vendorId 0x8086
.constant bootCfg_pep4_vendorId 0x8086
.constant bootCfg_pep5_vendorId 0x8086
.constant bootCfg_pep6_vendorId 0x8086
.constant bootCfg_pep7_vendorId 0x8086
.constant bootCfg_pep8_vendorId 0x8086
.constant bootCfg_pep0_deviceId 0x15A4 ; Ethernet Switch FM10000 Host Interface
.constant bootCfg_pep1_deviceId 0x15A4
.constant bootCfg_pep2_deviceId 0x15A4
.constant bootCfg_pep3_deviceId 0x15A4
.constant bootCfg_pep4_deviceId 0x15A4
.constant bootCfg_pep5_deviceId 0x15A4
.constant bootCfg_pep6_deviceId 0x15A4
.constant bootCfg_pep7_deviceId 0x15A4
.constant bootCfg_pep8_deviceId 0x15A4
.constant bootCfg_pep0_subVendorId 0x1374
.constant bootCfg_pep1_subVendorId 0x1374
.constant bootCfg_pep2_subVendorId 0x1374
.constant bootCfg_pep3_subVendorId 0x1374
.constant bootCfg_pep4_subVendorId 0x1374
.constant bootCfg_pep5_subVendorId 0x1374
.constant bootCfg_pep6_subVendorId 0x1374
.constant bootCfg_pep7_subVendorId 0x1374
.constant bootCfg_pep8_subVendorId 0x1374
.constant bootCfg_pep0_subDeviceId 0x01C2
.constant bootCfg_pep1_subDeviceId 0
.constant bootCfg_pep2_subDeviceId 0x01C2
.constant bootCfg_pep3_subDeviceId 0
.constant bootCfg_pep4_subDeviceId 0x01C2
.constant bootCfg_pep5_subDeviceId 0
.constant bootCfg_pep6_subDeviceId 0x01C2
.constant bootCfg_pep7_subDeviceId 0
.constant bootCfg_pep8_subDeviceId 0
; Custom macs are composed of two 32-bit values, reversed
.constant bootCfg_customMac0 0xff000000, 0x000000ff ; Corresponds to 00:00:00:FF:FF:00:00:00
.constant bootCfg_customMac1 0xff000000, 0x000000ff ; Corresponds to 00:00:00:FF:FF:00:00:00
.constant bootCfg_customMac2 0xff000000, 0x000000ff ; Corresponds to 00:00:00:FF:FF:00:00:00
.constant bootCfg_customMac3 0xff000000, 0x000000ff ; Corresponds to 00:00:00:FF:FF:00:00:00