spinnaker_tools (BMP) 3.4.0
SpiNNaker BMP firmware
|
Command handling for BC&MP. More...
Enumerations | |
enum | bmp_info_subcommand { BMP_INFO_BASIC = 0 , BMP_INFO_EE_BUF = 1 , BMP_INFO_CAN_STAT = 2 , BMP_INFO_BOARD_STAT = 3 , BMP_INFO_IP_ADDR = 4 , BMP_INFO_UNINIT_VEC = 5 } |
Subcommands supported by cmd_bmp_info() | |
Functions | |
static void | fpga_boot (uint32_t base, uint32_t len, uint32_t mask) |
Boot an FPGA. | |
static void | fpga_xreg (uint32_t count, uint8_t *data) |
Write to FPGA registers. | |
static void | sf_scan (void) |
Scan serial flash, booting and configuring FPGAs. | |
void | flash_buf_init (void) |
Initialise flash_buf. | |
static uint32_t | cmd_flash_erase (sdp_msg_t *msg) |
Erase flash. | |
static uint32_t | cmd_flash_write (sdp_msg_t *msg) |
Write to flash. | |
static uint32_t | cmd_xilinx (sdp_msg_t *msg) |
Control FPGA. | |
uint32_t | cmd_fpga_read (sdp_msg_t *msg) |
Read from FPGA. | |
uint32_t | cmd_fpga_write (sdp_msg_t *msg) |
Write to FPGA. | |
static uint32_t | cmd_sf (sdp_msg_t *msg) |
Access serial flash. | |
static uint32_t | cmd_ee (sdp_msg_t *msg) |
Access EEPROM. | |
void | proc_led (uint32_t arg, uint32_t mask) |
Control the LEDs on this board; call led_set() | |
static uint32_t | cmd_led (sdp_msg_t *msg) |
Control the LEDs. | |
void | proc_reset (uint32_t arg, uint32_t mask) |
Board reset handler; calls reset_spin() | |
static uint32_t | cmd_reset (sdp_msg_t *msg) |
Reset a board. | |
void | proc_power (uint32_t arg, uint32_t mask) |
Control power for this board; calls set_power() (and sf_scan() and reset_spin() if powering on) | |
static uint32_t | cmd_power (sdp_msg_t *msg) |
Control power. | |
static uint32_t | cmd_ver (sdp_msg_t *msg) |
Get version information. | |
static uint32_t | cmd_bmp_info (sdp_msg_t *msg) |
Return various useful bits of information about the BMP. | |
static uint32_t | cmd_fill (sdp_msg_t *msg) |
Fill an area of memory. | |
static uint32_t | cmd_read (sdp_msg_t *msg) |
Read an area of memory. | |
static uint32_t | cmd_write (sdp_msg_t *msg) |
Write an area of memory. | |
static uint32_t | cmd_iptag (sdp_msg_t *msg) |
Command to manipulate IPTags. | |
static uint32_t | cmd_i2c (sdp_msg_t *msg) |
Access I2C bus. | |
void | configure_pwm (uint32_t period, uint32_t width) |
Configure pulse-width modulation hardware. | |
uint32_t | debug (sdp_msg_t *msg) |
SDP message dispatcher. | |
Variables | |
uint32_t | tag_tto |
Tag timeout: 2.56s = 10ms * (1 << (9-1)) | |
Command handling for BC&MP.
|
static |
Boot an FPGA.
[in] | base | Address of data to boot FPGA from |
[in] | len | Length of data to boot FPGA from |
[in] | mask | Selects which FPGAs to boot |
|
static |
Write to FPGA registers.
[in] | count | The number of blocks of words+config to write |
[in] | data | Pointer to block of data to write. This is really an array of two-word descriptors, addr and datum . addr describes where to write the word (which FPGAs and where therein). datum is the word to write. |
|
static |
Erase flash.
[in,out] | msg | The message describing the command. The reply. |
|
static |
Write to flash.
[in,out] | msg | The message describing the command. The reply. |
|
static |
Control FPGA.
[in,out] | msg | The message describing the command. The reply. |
uint32_t cmd_fpga_read | ( | sdp_msg_t * | msg | ) |
Read from FPGA.
[in,out] | msg | The message describing the command. The reply. |
uint32_t cmd_fpga_write | ( | sdp_msg_t * | msg | ) |
Write to FPGA.
[in,out] | msg | The message describing the command. The reply. |
|
static |
Access serial flash.
[in,out] | msg | The message describing the command. The reply. |
|
static |
Access EEPROM.
[in,out] | msg | The message describing the command. The reply. |
void proc_led | ( | uint32_t | arg, |
uint32_t | mask | ||
) |
|
static |
Control the LEDs.
[in,out] | msg | The message describing the command. The reply. |
void proc_reset | ( | uint32_t | arg, |
uint32_t | mask | ||
) |
Board reset handler; calls reset_spin()
[in] | arg | reset code and pre-reset delay factor |
[in] | mask | Which boards are being controlled; this function only acts if this board is selected in the mask |
|
static |
Reset a board.
[in,out] | msg | The message describing the command. The reply. |
void proc_power | ( | uint32_t | arg, |
uint32_t | mask | ||
) |
Control power for this board; calls set_power() (and sf_scan() and reset_spin() if powering on)
[in] | arg | target power state and pre-switch delay factor |
[in] | mask | Which boards are being controlled; this function only acts if this board is selected in the mask |
|
static |
Control power.
[in,out] | msg | SDP message, request and response |
|
static |
Get version information.
[in,out] | msg | The message describing the command. The reply. |
|
static |
Return various useful bits of information about the BMP.
[in,out] | msg | The message describing the command. The reply. |
|
static |
Fill an area of memory.
[in,out] | msg | The message describing the command. The reply. |
|
static |
Read an area of memory.
[in,out] | msg | The message describing the command. The reply. |
|
static |
Write an area of memory.
[in,out] | msg | The message describing the command. The reply. |
|
static |
Command to manipulate IPTags.
[in,out] | msg | The message describing the command. The reply. |
|
static |
Access I2C bus.
[in,out] | msg | The message describing the command. The reply. |
|
extern |
Configure pulse-width modulation hardware.
[in] | period | Overall period |
[in] | width | Pulse width. No longer than than period . |
uint32_t debug | ( | sdp_msg_t * | msg | ) |
SDP message dispatcher.
[in,out] | msg | The SDP message. Updated to be the response |
Delegates to: