Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/cxgb/common/cxgb_t3_hw.c
| Show First 20 Lines • Show All 3,581 Lines • ▼ Show 20 Lines | int t3_set_proto_sram(adapter_t *adap, const u8 *data) | ||||
| for (i = 0; i < PROTO_SRAM_LINES; i++) { | for (i = 0; i < PROTO_SRAM_LINES; i++) { | ||||
| t3_write_reg(adap, A_TP_EMBED_OP_FIELD5, cpu_to_be32(*buf++)); | t3_write_reg(adap, A_TP_EMBED_OP_FIELD5, cpu_to_be32(*buf++)); | ||||
| t3_write_reg(adap, A_TP_EMBED_OP_FIELD4, cpu_to_be32(*buf++)); | t3_write_reg(adap, A_TP_EMBED_OP_FIELD4, cpu_to_be32(*buf++)); | ||||
| t3_write_reg(adap, A_TP_EMBED_OP_FIELD3, cpu_to_be32(*buf++)); | t3_write_reg(adap, A_TP_EMBED_OP_FIELD3, cpu_to_be32(*buf++)); | ||||
| t3_write_reg(adap, A_TP_EMBED_OP_FIELD2, cpu_to_be32(*buf++)); | t3_write_reg(adap, A_TP_EMBED_OP_FIELD2, cpu_to_be32(*buf++)); | ||||
| t3_write_reg(adap, A_TP_EMBED_OP_FIELD1, cpu_to_be32(*buf++)); | t3_write_reg(adap, A_TP_EMBED_OP_FIELD1, cpu_to_be32(*buf++)); | ||||
| t3_write_reg(adap, A_TP_EMBED_OP_FIELD0, i << 1 | 1 << 31); | t3_write_reg(adap, A_TP_EMBED_OP_FIELD0, i << 1 | 1U << 31); | ||||
| if (t3_wait_op_done(adap, A_TP_EMBED_OP_FIELD0, 1, 1, 5, 1)) | if (t3_wait_op_done(adap, A_TP_EMBED_OP_FIELD0, 1, 1, 5, 1)) | ||||
| return -EIO; | return -EIO; | ||||
| } | } | ||||
| return 0; | return 0; | ||||
| } | } | ||||
| /** | /** | ||||
| * t3_config_trace_filter - configure one of the tracing filters | * t3_config_trace_filter - configure one of the tracing filters | ||||
| ▲ Show 20 Lines • Show All 1,201 Lines • Show Last 20 Lines | |||||