alt_pr_fpga_state
if (alt_pr_fpga_state(mgr) == FPGA_MGR_STATE_WRITE_ERR)
switch (alt_pr_fpga_state(mgr)) {
.state = alt_pr_fpga_state,