1
2
3
4
5
6
7
8
9
10
11#ifndef HW_ATL_LLH_H
12#define HW_ATL_LLH_H
13
14#include <linux/types.h>
15
16struct aq_hw_s;
17
18
19
20
21void hw_atl_reg_glb_cpu_sem_set(struct aq_hw_s *aq_hw, u32 glb_cpu_sem,
22 u32 semaphore);
23
24
25u32 hw_atl_reg_glb_cpu_sem_get(struct aq_hw_s *aq_hw, u32 semaphore);
26
27
28void hw_atl_glb_glb_reg_res_dis_set(struct aq_hw_s *aq_hw, u32 glb_reg_res_dis);
29
30
31void hw_atl_glb_soft_res_set(struct aq_hw_s *aq_hw, u32 soft_res);
32
33
34u32 hw_atl_glb_soft_res_get(struct aq_hw_s *aq_hw);
35
36
37
38u32 hw_atl_rpb_rx_dma_drop_pkt_cnt_get(struct aq_hw_s *aq_hw);
39
40
41u64 hw_atl_stats_rx_dma_good_octet_counter_get(struct aq_hw_s *aq_hw);
42
43
44u64 hw_atl_stats_rx_dma_good_pkt_counter_get(struct aq_hw_s *aq_hw);
45
46
47u64 hw_atl_stats_tx_dma_good_octet_counter_get(struct aq_hw_s *aq_hw);
48
49
50u64 hw_atl_stats_tx_dma_good_pkt_counter_get(struct aq_hw_s *aq_hw);
51
52
53u32 hw_atl_reg_mac_msm_rx_errs_cnt_get(struct aq_hw_s *aq_hw);
54
55
56u32 hw_atl_reg_mac_msm_rx_ucst_frm_cnt_get(struct aq_hw_s *aq_hw);
57
58
59u32 hw_atl_reg_mac_msm_rx_mcst_frm_cnt_get(struct aq_hw_s *aq_hw);
60
61
62u32 hw_atl_reg_mac_msm_rx_bcst_frm_cnt_get(struct aq_hw_s *aq_hw);
63
64
65u32 hw_atl_reg_mac_msm_rx_bcst_octets_counter1get(struct aq_hw_s *aq_hw);
66
67
68u32 hw_atl_reg_mac_msm_rx_ucst_octets_counter0get(struct aq_hw_s *aq_hw);
69
70
71u32 hw_atl_reg_mac_msm_tx_errs_cnt_get(struct aq_hw_s *aq_hw);
72
73
74u32 hw_atl_reg_mac_msm_tx_ucst_frm_cnt_get(struct aq_hw_s *aq_hw);
75
76
77u32 hw_atl_reg_mac_msm_tx_mcst_frm_cnt_get(struct aq_hw_s *aq_hw);
78
79
80u32 hw_atl_reg_mac_msm_tx_bcst_frm_cnt_get(struct aq_hw_s *aq_hw);
81
82
83u32 hw_atl_reg_mac_msm_tx_mcst_octets_counter1get(struct aq_hw_s *aq_hw);
84
85
86u32 hw_atl_reg_mac_msm_tx_bcst_octets_counter1get(struct aq_hw_s *aq_hw);
87
88
89u32 hw_atl_reg_mac_msm_tx_ucst_octets_counter0get(struct aq_hw_s *aq_hw);
90
91
92u32 hw_atl_reg_glb_mif_id_get(struct aq_hw_s *aq_hw);
93
94
95
96
97void hw_atl_itr_irq_auto_masklsw_set(struct aq_hw_s *aq_hw,
98 u32 irq_auto_masklsw);
99
100
101void hw_atl_itr_irq_map_en_rx_set(struct aq_hw_s *aq_hw, u32 irq_map_en_rx,
102 u32 rx);
103
104
105void hw_atl_itr_irq_map_en_tx_set(struct aq_hw_s *aq_hw, u32 irq_map_en_tx,
106 u32 tx);
107
108
109void hw_atl_itr_irq_map_rx_set(struct aq_hw_s *aq_hw, u32 irq_map_rx, u32 rx);
110
111
112void hw_atl_itr_irq_map_tx_set(struct aq_hw_s *aq_hw, u32 irq_map_tx, u32 tx);
113
114
115void hw_atl_itr_irq_msk_clearlsw_set(struct aq_hw_s *aq_hw,
116 u32 irq_msk_clearlsw);
117
118
119void hw_atl_itr_irq_msk_setlsw_set(struct aq_hw_s *aq_hw, u32 irq_msk_setlsw);
120
121
122void hw_atl_itr_irq_reg_res_dis_set(struct aq_hw_s *aq_hw, u32 irq_reg_res_dis);
123
124
125void hw_atl_itr_irq_status_clearlsw_set(struct aq_hw_s *aq_hw,
126 u32 irq_status_clearlsw);
127
128
129u32 hw_atl_itr_irq_statuslsw_get(struct aq_hw_s *aq_hw);
130
131
132u32 hw_atl_itr_res_irq_get(struct aq_hw_s *aq_hw);
133
134
135void hw_atl_itr_res_irq_set(struct aq_hw_s *aq_hw, u32 res_irq);
136
137
138void hw_atl_itr_rsc_en_set(struct aq_hw_s *aq_hw, u32 enable);
139
140
141void hw_atl_itr_rsc_delay_set(struct aq_hw_s *aq_hw, u32 delay);
142
143
144
145
146void hw_atl_rdm_cpu_id_set(struct aq_hw_s *aq_hw, u32 cpuid, u32 dca);
147
148
149void hw_atl_rdm_rx_dca_en_set(struct aq_hw_s *aq_hw, u32 rx_dca_en);
150
151
152void hw_atl_rdm_rx_dca_mode_set(struct aq_hw_s *aq_hw, u32 rx_dca_mode);
153
154
155void hw_atl_rdm_rx_desc_data_buff_size_set(struct aq_hw_s *aq_hw,
156 u32 rx_desc_data_buff_size,
157 u32 descriptor);
158
159
160void hw_atl_rdm_rx_desc_dca_en_set(struct aq_hw_s *aq_hw, u32 rx_desc_dca_en,
161 u32 dca);
162
163
164void hw_atl_rdm_rx_desc_en_set(struct aq_hw_s *aq_hw, u32 rx_desc_en,
165 u32 descriptor);
166
167
168void hw_atl_rdm_rx_desc_head_splitting_set(struct aq_hw_s *aq_hw,
169 u32 rx_desc_head_splitting,
170 u32 descriptor);
171
172
173u32 hw_atl_rdm_rx_desc_head_ptr_get(struct aq_hw_s *aq_hw, u32 descriptor);
174
175
176void hw_atl_rdm_rx_desc_len_set(struct aq_hw_s *aq_hw, u32 rx_desc_len,
177 u32 descriptor);
178
179
180void hw_atl_rdm_rx_desc_wr_wb_irq_en_set(struct aq_hw_s *aq_hw,
181 u32 rx_desc_wr_wb_irq_en);
182
183
184void hw_atl_rdm_rx_head_dca_en_set(struct aq_hw_s *aq_hw, u32 rx_head_dca_en,
185 u32 dca);
186
187
188void hw_atl_rdm_rx_pld_dca_en_set(struct aq_hw_s *aq_hw, u32 rx_pld_dca_en,
189 u32 dca);
190
191
192void hw_atl_rdm_rx_desc_head_buff_size_set(struct aq_hw_s *aq_hw,
193 u32 rx_desc_head_buff_size,
194 u32 descriptor);
195
196
197void hw_atl_rdm_rx_desc_res_set(struct aq_hw_s *aq_hw, u32 rx_desc_res,
198 u32 descriptor);
199
200
201void hw_atl_rdm_rdm_intr_moder_en_set(struct aq_hw_s *aq_hw,
202 u32 rdm_intr_moder_en);
203
204
205
206
207void hw_atl_reg_gen_irq_map_set(struct aq_hw_s *aq_hw, u32 gen_intr_map,
208 u32 regidx);
209
210
211u32 hw_atl_reg_gen_irq_status_get(struct aq_hw_s *aq_hw);
212
213
214void hw_atl_reg_irq_glb_ctl_set(struct aq_hw_s *aq_hw, u32 intr_glb_ctl);
215
216
217void hw_atl_reg_irq_thr_set(struct aq_hw_s *aq_hw, u32 intr_thr, u32 throttle);
218
219
220void hw_atl_reg_rx_dma_desc_base_addresslswset(struct aq_hw_s *aq_hw,
221 u32 rx_dma_desc_base_addrlsw,
222 u32 descriptor);
223
224
225void hw_atl_reg_rx_dma_desc_base_addressmswset(struct aq_hw_s *aq_hw,
226 u32 rx_dma_desc_base_addrmsw,
227 u32 descriptor);
228
229
230u32 hw_atl_reg_rx_dma_desc_status_get(struct aq_hw_s *aq_hw, u32 descriptor);
231
232
233void hw_atl_reg_rx_dma_desc_tail_ptr_set(struct aq_hw_s *aq_hw,
234 u32 rx_dma_desc_tail_ptr,
235 u32 descriptor);
236
237
238void hw_atl_reg_rx_flr_mcst_flr_msk_set(struct aq_hw_s *aq_hw,
239 u32 rx_flr_mcst_flr_msk);
240
241
242void hw_atl_reg_rx_flr_mcst_flr_set(struct aq_hw_s *aq_hw, u32 rx_flr_mcst_flr,
243 u32 filter);
244
245
246void hw_atl_reg_rx_flr_rss_control1set(struct aq_hw_s *aq_hw,
247 u32 rx_flr_rss_control1);
248
249
250void hw_atl_reg_rx_flr_control2_set(struct aq_hw_s *aq_hw, u32 rx_flr_control2);
251
252
253void hw_atl_reg_rx_intr_moder_ctrl_set(struct aq_hw_s *aq_hw,
254 u32 rx_intr_moderation_ctl,
255 u32 queue);
256
257
258void hw_atl_reg_tx_dma_debug_ctl_set(struct aq_hw_s *aq_hw,
259 u32 tx_dma_debug_ctl);
260
261
262void hw_atl_reg_tx_dma_desc_base_addresslswset(struct aq_hw_s *aq_hw,
263 u32 tx_dma_desc_base_addrlsw,
264 u32 descriptor);
265
266
267void hw_atl_reg_tx_dma_desc_base_addressmswset(struct aq_hw_s *aq_hw,
268 u32 tx_dma_desc_base_addrmsw,
269 u32 descriptor);
270
271
272void hw_atl_reg_tx_dma_desc_tail_ptr_set(struct aq_hw_s *aq_hw,
273 u32 tx_dma_desc_tail_ptr,
274 u32 descriptor);
275
276
277void hw_atl_reg_tx_intr_moder_ctrl_set(struct aq_hw_s *aq_hw,
278 u32 tx_intr_moderation_ctl,
279 u32 queue);
280
281
282void hw_atl_reg_glb_cpu_scratch_scp_set(struct aq_hw_s *aq_hw,
283 u32 glb_cpu_scratch_scp,
284 u32 scratch_scp);
285
286
287
288
289void hw_atl_rpb_dma_sys_lbk_set(struct aq_hw_s *aq_hw, u32 dma_sys_lbk);
290
291
292void hw_atl_rpb_dma_net_lbk_set(struct aq_hw_s *aq_hw, u32 dma_net_lbk);
293
294
295void hw_atl_rpb_rpf_rx_traf_class_mode_set(struct aq_hw_s *aq_hw,
296 u32 rx_traf_class_mode);
297
298
299u32 hw_atl_rpb_rpf_rx_traf_class_mode_get(struct aq_hw_s *aq_hw);
300
301
302void hw_atl_rpb_rx_buff_en_set(struct aq_hw_s *aq_hw, u32 rx_buff_en);
303
304
305void hw_atl_rpb_rx_buff_hi_threshold_per_tc_set(struct aq_hw_s *aq_hw,
306 u32 rx_buff_hi_threshold_per_tc,
307 u32 buffer);
308
309
310void hw_atl_rpb_rx_buff_lo_threshold_per_tc_set(struct aq_hw_s *aq_hw,
311 u32 rx_buff_lo_threshold_per_tc,
312 u32 buffer);
313
314
315void hw_atl_rpb_rx_flow_ctl_mode_set(struct aq_hw_s *aq_hw,
316 u32 rx_flow_ctl_mode);
317
318
319void hw_atl_rpb_rx_pkt_buff_size_per_tc_set(struct aq_hw_s *aq_hw,
320 u32 rx_pkt_buff_size_per_tc,
321 u32 buffer);
322
323
324void hw_atl_rdm_rx_dma_desc_cache_init_tgl(struct aq_hw_s *aq_hw);
325
326
327u32 hw_atl_rdm_rx_dma_desc_cache_init_done_get(struct aq_hw_s *aq_hw);
328
329
330void hw_atl_rpb_rx_xoff_en_per_tc_set(struct aq_hw_s *aq_hw,
331 u32 rx_xoff_en_per_tc,
332 u32 buffer);
333
334
335
336
337void hw_atl_rpfl2broadcast_count_threshold_set(struct aq_hw_s *aq_hw,
338 u32 l2broadcast_count_threshold);
339
340
341void hw_atl_rpfl2broadcast_en_set(struct aq_hw_s *aq_hw, u32 l2broadcast_en);
342
343
344void hw_atl_rpfl2broadcast_flr_act_set(struct aq_hw_s *aq_hw,
345 u32 l2broadcast_flr_act);
346
347
348void hw_atl_rpfl2multicast_flr_en_set(struct aq_hw_s *aq_hw,
349 u32 l2multicast_flr_en,
350 u32 filter);
351
352
353void hw_atl_rpfl2promiscuous_mode_en_set(struct aq_hw_s *aq_hw,
354 u32 l2promiscuous_mode_en);
355
356
357void hw_atl_rpfl2unicast_flr_act_set(struct aq_hw_s *aq_hw,
358 u32 l2unicast_flr_act,
359 u32 filter);
360
361
362void hw_atl_rpfl2_uc_flr_en_set(struct aq_hw_s *aq_hw, u32 l2unicast_flr_en,
363 u32 filter);
364
365
366void hw_atl_rpfl2unicast_dest_addresslsw_set(struct aq_hw_s *aq_hw,
367 u32 l2unicast_dest_addresslsw,
368 u32 filter);
369
370
371void hw_atl_rpfl2unicast_dest_addressmsw_set(struct aq_hw_s *aq_hw,
372 u32 l2unicast_dest_addressmsw,
373 u32 filter);
374
375
376void hw_atl_rpfl2_accept_all_mc_packets_set(struct aq_hw_s *aq_hw,
377 u32 l2_accept_all_mc_packets);
378
379
380void hw_atl_rpf_rpb_user_priority_tc_map_set(struct aq_hw_s *aq_hw,
381 u32 user_priority_tc_map, u32 tc);
382
383
384void hw_atl_rpf_rss_key_addr_set(struct aq_hw_s *aq_hw, u32 rss_key_addr);
385
386
387void hw_atl_rpf_rss_key_wr_data_set(struct aq_hw_s *aq_hw, u32 rss_key_wr_data);
388
389
390u32 hw_atl_rpf_rss_key_wr_en_get(struct aq_hw_s *aq_hw);
391
392
393void hw_atl_rpf_rss_key_wr_en_set(struct aq_hw_s *aq_hw, u32 rss_key_wr_en);
394
395
396void hw_atl_rpf_rss_redir_tbl_addr_set(struct aq_hw_s *aq_hw,
397 u32 rss_redir_tbl_addr);
398
399
400void hw_atl_rpf_rss_redir_tbl_wr_data_set(struct aq_hw_s *aq_hw,
401 u32 rss_redir_tbl_wr_data);
402
403
404u32 hw_atl_rpf_rss_redir_wr_en_get(struct aq_hw_s *aq_hw);
405
406
407void hw_atl_rpf_rss_redir_wr_en_set(struct aq_hw_s *aq_hw, u32 rss_redir_wr_en);
408
409
410void hw_atl_rpf_tpo_to_rpf_sys_lbk_set(struct aq_hw_s *aq_hw,
411 u32 tpo_to_rpf_sys_lbk);
412
413
414void hw_atl_rpf_vlan_inner_etht_set(struct aq_hw_s *aq_hw, u32 vlan_inner_etht);
415
416
417void hw_atl_rpf_vlan_outer_etht_set(struct aq_hw_s *aq_hw, u32 vlan_outer_etht);
418
419
420void hw_atl_rpf_vlan_prom_mode_en_set(struct aq_hw_s *aq_hw,
421 u32 vlan_prom_mode_en);
422
423
424void hw_atl_rpf_vlan_untagged_act_set(struct aq_hw_s *aq_hw,
425 u32 vlan_untagged_act);
426
427
428void hw_atl_rpf_vlan_accept_untagged_packets_set(struct aq_hw_s *aq_hw,
429 u32 vlan_acc_untagged_packets);
430
431
432void hw_atl_rpf_vlan_flr_en_set(struct aq_hw_s *aq_hw, u32 vlan_flr_en,
433 u32 filter);
434
435
436void hw_atl_rpf_vlan_flr_act_set(struct aq_hw_s *aq_hw, u32 vlan_filter_act,
437 u32 filter);
438
439
440void hw_atl_rpf_vlan_id_flr_set(struct aq_hw_s *aq_hw, u32 vlan_id_flr,
441 u32 filter);
442
443
444void hw_atl_rpf_vlan_rxq_en_flr_set(struct aq_hw_s *aq_hw, u32 vlan_rxq_en,
445 u32 filter);
446
447
448void hw_atl_rpf_vlan_rxq_flr_set(struct aq_hw_s *aq_hw, u32 vlan_rxq,
449 u32 filter);
450
451
452void hw_atl_rpf_etht_flr_en_set(struct aq_hw_s *aq_hw, u32 etht_flr_en,
453 u32 filter);
454
455
456void hw_atl_rpf_etht_user_priority_en_set(struct aq_hw_s *aq_hw,
457 u32 etht_user_priority_en,
458 u32 filter);
459
460
461void hw_atl_rpf_etht_rx_queue_en_set(struct aq_hw_s *aq_hw,
462 u32 etht_rx_queue_en,
463 u32 filter);
464
465
466void hw_atl_rpf_etht_rx_queue_set(struct aq_hw_s *aq_hw, u32 etht_rx_queue,
467 u32 filter);
468
469
470void hw_atl_rpf_etht_user_priority_set(struct aq_hw_s *aq_hw,
471 u32 etht_user_priority,
472 u32 filter);
473
474
475void hw_atl_rpf_etht_mgt_queue_set(struct aq_hw_s *aq_hw, u32 etht_mgt_queue,
476 u32 filter);
477
478
479void hw_atl_rpf_etht_flr_act_set(struct aq_hw_s *aq_hw, u32 etht_flr_act,
480 u32 filter);
481
482
483void hw_atl_rpf_etht_flr_set(struct aq_hw_s *aq_hw, u32 etht_flr, u32 filter);
484
485
486void hw_atl_rpf_l4_spd_set(struct aq_hw_s *aq_hw, u32 val, u32 filter);
487
488
489void hw_atl_rpf_l4_dpd_set(struct aq_hw_s *aq_hw, u32 val, u32 filter);
490
491
492
493
494void hw_atl_rpo_ipv4header_crc_offload_en_set(struct aq_hw_s *aq_hw,
495 u32 ipv4header_crc_offload_en);
496
497
498void hw_atl_rpo_rx_desc_vlan_stripping_set(struct aq_hw_s *aq_hw,
499 u32 rx_desc_vlan_stripping,
500 u32 descriptor);
501
502void hw_atl_rpo_outer_vlan_tag_mode_set(void *context,
503 u32 outervlantagmode);
504
505u32 hw_atl_rpo_outer_vlan_tag_mode_get(void *context);
506
507
508void hw_atl_rpo_tcp_udp_crc_offload_en_set(struct aq_hw_s *aq_hw,
509 u32 tcp_udp_crc_offload_en);
510
511
512void hw_atl_rpo_lro_patch_optimization_en_set(struct aq_hw_s *aq_hw,
513 u32 lro_patch_optimization_en);
514
515
516void hw_atl_rpo_lro_en_set(struct aq_hw_s *aq_hw, u32 lro_en);
517
518
519void hw_atl_rpo_lro_qsessions_lim_set(struct aq_hw_s *aq_hw,
520 u32 lro_qsessions_lim);
521
522
523void hw_atl_rpo_lro_total_desc_lim_set(struct aq_hw_s *aq_hw,
524 u32 lro_total_desc_lim);
525
526
527void hw_atl_rpo_lro_min_pay_of_first_pkt_set(struct aq_hw_s *aq_hw,
528 u32 lro_min_pld_of_first_pkt);
529
530
531void hw_atl_rpo_lro_pkt_lim_set(struct aq_hw_s *aq_hw, u32 lro_packet_lim);
532
533
534void hw_atl_rpo_lro_max_num_of_descriptors_set(struct aq_hw_s *aq_hw,
535 u32 lro_max_desc_num, u32 lro);
536
537
538void hw_atl_rpo_lro_time_base_divider_set(struct aq_hw_s *aq_hw,
539 u32 lro_time_base_divider);
540
541
542void hw_atl_rpo_lro_inactive_interval_set(struct aq_hw_s *aq_hw,
543 u32 lro_inactive_interval);
544
545
546void hw_atl_rpo_lro_max_coalescing_interval_set(struct aq_hw_s *aq_hw,
547 u32 lro_max_coal_interval);
548
549
550
551
552void hw_atl_rx_rx_reg_res_dis_set(struct aq_hw_s *aq_hw, u32 rx_reg_res_dis);
553
554
555
556
557void hw_atl_tdm_cpu_id_set(struct aq_hw_s *aq_hw, u32 cpuid, u32 dca);
558
559
560void hw_atl_tdm_large_send_offload_en_set(struct aq_hw_s *aq_hw,
561 u32 large_send_offload_en);
562
563
564void hw_atl_tdm_tx_desc_en_set(struct aq_hw_s *aq_hw, u32 tx_desc_en,
565 u32 descriptor);
566
567
568void hw_atl_tdm_tx_dca_en_set(struct aq_hw_s *aq_hw, u32 tx_dca_en);
569
570
571void hw_atl_tdm_tx_dca_mode_set(struct aq_hw_s *aq_hw, u32 tx_dca_mode);
572
573
574void hw_atl_tdm_tx_desc_dca_en_set(struct aq_hw_s *aq_hw, u32 tx_desc_dca_en,
575 u32 dca);
576
577
578u32 hw_atl_tdm_tx_desc_head_ptr_get(struct aq_hw_s *aq_hw, u32 descriptor);
579
580
581void hw_atl_tdm_tx_desc_len_set(struct aq_hw_s *aq_hw, u32 tx_desc_len,
582 u32 descriptor);
583
584
585void hw_atl_tdm_tx_desc_wr_wb_irq_en_set(struct aq_hw_s *aq_hw,
586 u32 tx_desc_wr_wb_irq_en);
587
588
589void hw_atl_tdm_tx_desc_wr_wb_threshold_set(struct aq_hw_s *aq_hw,
590 u32 tx_desc_wr_wb_threshold,
591 u32 descriptor);
592
593
594void hw_atl_tdm_tdm_intr_moder_en_set(struct aq_hw_s *aq_hw,
595 u32 tdm_irq_moderation_en);
596
597
598
599void hw_atl_thm_lso_tcp_flag_of_first_pkt_set(struct aq_hw_s *aq_hw,
600 u32 lso_tcp_flag_of_first_pkt);
601
602
603void hw_atl_thm_lso_tcp_flag_of_last_pkt_set(struct aq_hw_s *aq_hw,
604 u32 lso_tcp_flag_of_last_pkt);
605
606
607void hw_atl_thm_lso_tcp_flag_of_middle_pkt_set(struct aq_hw_s *aq_hw,
608 u32 lso_tcp_flag_of_middle_pkt);
609
610
611
612
613void hw_atl_rpb_tps_tx_tc_mode_set(struct aq_hw_s *aq_hw,
614 u32 tx_traf_class_mode);
615
616
617u32 hw_atl_rpb_tps_tx_tc_mode_get(struct aq_hw_s *aq_hw);
618
619
620void hw_atl_tpb_tx_buff_en_set(struct aq_hw_s *aq_hw, u32 tx_buff_en);
621
622
623void hw_atl_tpb_tx_buff_hi_threshold_per_tc_set(struct aq_hw_s *aq_hw,
624 u32 tx_buff_hi_threshold_per_tc,
625 u32 buffer);
626
627
628void hw_atl_tpb_tx_buff_lo_threshold_per_tc_set(struct aq_hw_s *aq_hw,
629 u32 tx_buff_lo_threshold_per_tc,
630 u32 buffer);
631
632
633void hw_atl_tpb_tx_dma_sys_lbk_en_set(struct aq_hw_s *aq_hw, u32 tx_dma_sys_lbk_en);
634
635
636void hw_atl_tpb_tx_dma_net_lbk_en_set(struct aq_hw_s *aq_hw,
637 u32 tx_dma_net_lbk_en);
638
639
640void hw_atl_tpb_tx_tx_clk_gate_en_set(struct aq_hw_s *aq_hw,
641 u32 tx_clk_gate_en);
642
643
644void hw_atl_tpb_tx_pkt_buff_size_per_tc_set(struct aq_hw_s *aq_hw,
645 u32 tx_pkt_buff_size_per_tc,
646 u32 buffer);
647
648
649void hw_atl_tpb_tx_path_scp_ins_en_set(struct aq_hw_s *aq_hw, u32 tx_path_scp_ins_en);
650
651
652
653
654void hw_atl_tpo_ipv4header_crc_offload_en_set(struct aq_hw_s *aq_hw,
655 u32 ipv4header_crc_offload_en);
656
657
658void hw_atl_tpo_tcp_udp_crc_offload_en_set(struct aq_hw_s *aq_hw,
659 u32 tcp_udp_crc_offload_en);
660
661
662void hw_atl_tpo_tx_pkt_sys_lbk_en_set(struct aq_hw_s *aq_hw,
663 u32 tx_pkt_sys_lbk_en);
664
665
666
667
668void hw_atl_tps_tx_pkt_shed_data_arb_mode_set(struct aq_hw_s *aq_hw,
669 u32 tx_pkt_shed_data_arb_mode);
670
671
672void hw_atl_tps_tx_pkt_shed_desc_rate_curr_time_res_set(struct aq_hw_s *aq_hw,
673 u32 curr_time_res);
674
675
676void hw_atl_tps_tx_pkt_shed_desc_rate_lim_set(struct aq_hw_s *aq_hw,
677 u32 tx_pkt_shed_desc_rate_lim);
678
679
680void hw_atl_tps_tx_pkt_shed_desc_tc_arb_mode_set(struct aq_hw_s *aq_hw,
681 u32 arb_mode);
682
683
684void hw_atl_tps_tx_pkt_shed_desc_tc_max_credit_set(struct aq_hw_s *aq_hw,
685 u32 max_credit,
686 u32 tc);
687
688
689void hw_atl_tps_tx_pkt_shed_desc_tc_weight_set(struct aq_hw_s *aq_hw,
690 u32 tx_pkt_shed_desc_tc_weight,
691 u32 tc);
692
693
694void hw_atl_tps_tx_pkt_shed_desc_vm_arb_mode_set(struct aq_hw_s *aq_hw,
695 u32 arb_mode);
696
697
698void hw_atl_tps_tx_pkt_shed_tc_data_max_credit_set(struct aq_hw_s *aq_hw,
699 u32 max_credit,
700 u32 tc);
701
702
703void hw_atl_tps_tx_pkt_shed_tc_data_weight_set(struct aq_hw_s *aq_hw,
704 u32 tx_pkt_shed_tc_data_weight,
705 u32 tc);
706
707
708
709
710void hw_atl_tx_tx_reg_res_dis_set(struct aq_hw_s *aq_hw, u32 tx_reg_res_dis);
711
712
713
714
715u32 hw_atl_msm_reg_access_status_get(struct aq_hw_s *aq_hw);
716
717
718void hw_atl_msm_reg_addr_for_indirect_addr_set(struct aq_hw_s *aq_hw,
719 u32 reg_addr_for_indirect_addr);
720
721
722void hw_atl_msm_reg_rd_strobe_set(struct aq_hw_s *aq_hw, u32 reg_rd_strobe);
723
724
725u32 hw_atl_msm_reg_rd_data_get(struct aq_hw_s *aq_hw);
726
727
728void hw_atl_msm_reg_wr_data_set(struct aq_hw_s *aq_hw, u32 reg_wr_data);
729
730
731void hw_atl_msm_reg_wr_strobe_set(struct aq_hw_s *aq_hw, u32 reg_wr_strobe);
732
733
734
735
736void hw_atl_pci_pci_reg_res_dis_set(struct aq_hw_s *aq_hw, u32 pci_reg_res_dis);
737
738
739void hw_atl_pcs_ptp_clock_read_enable(struct aq_hw_s *aq_hw,
740 u32 ptp_clock_read_enable);
741
742u32 hw_atl_pcs_ptp_clock_get(struct aq_hw_s *aq_hw, u32 index);
743
744
745void hw_atl_mcp_up_force_intr_set(struct aq_hw_s *aq_hw, u32 up_force_intr);
746
747
748void hw_atl_rpfl3l4_ipv4_dest_addr_clear(struct aq_hw_s *aq_hw, u8 location);
749
750
751void hw_atl_rpfl3l4_ipv4_src_addr_clear(struct aq_hw_s *aq_hw, u8 location);
752
753
754void hw_atl_rpfl3l4_cmd_clear(struct aq_hw_s *aq_hw, u8 location);
755
756
757void hw_atl_rpfl3l4_ipv6_dest_addr_clear(struct aq_hw_s *aq_hw, u8 location);
758
759
760void hw_atl_rpfl3l4_ipv6_src_addr_clear(struct aq_hw_s *aq_hw, u8 location);
761
762
763void hw_atl_rpfl3l4_ipv4_dest_addr_set(struct aq_hw_s *aq_hw, u8 location,
764 u32 ipv4_dest);
765
766
767void hw_atl_rpfl3l4_ipv4_src_addr_set(struct aq_hw_s *aq_hw, u8 location,
768 u32 ipv4_src);
769
770
771void hw_atl_rpfl3l4_cmd_set(struct aq_hw_s *aq_hw, u8 location, u32 cmd);
772
773
774void hw_atl_rpfl3l4_ipv6_src_addr_set(struct aq_hw_s *aq_hw, u8 location,
775 u32 *ipv6_src);
776
777
778void hw_atl_rpfl3l4_ipv6_dest_addr_set(struct aq_hw_s *aq_hw, u8 location,
779 u32 *ipv6_dest);
780
781
782void hw_atl_glb_mdio_iface1_set(struct aq_hw_s *hw, u32 value);
783
784
785u32 hw_atl_glb_mdio_iface1_get(struct aq_hw_s *hw);
786
787
788void hw_atl_glb_mdio_iface2_set(struct aq_hw_s *hw, u32 value);
789
790
791u32 hw_atl_glb_mdio_iface2_get(struct aq_hw_s *hw);
792
793
794void hw_atl_glb_mdio_iface3_set(struct aq_hw_s *hw, u32 value);
795
796
797u32 hw_atl_glb_mdio_iface3_get(struct aq_hw_s *hw);
798
799
800void hw_atl_glb_mdio_iface4_set(struct aq_hw_s *hw, u32 value);
801
802
803u32 hw_atl_glb_mdio_iface4_get(struct aq_hw_s *hw);
804
805
806void hw_atl_glb_mdio_iface5_set(struct aq_hw_s *hw, u32 value);
807
808
809u32 hw_atl_glb_mdio_iface5_get(struct aq_hw_s *hw);
810
811u32 hw_atl_mdio_busy_get(struct aq_hw_s *aq_hw);
812
813
814u32 hw_atl_sem_ram_get(struct aq_hw_s *self);
815
816
817u32 hw_atl_sem_mdio_get(struct aq_hw_s *self);
818
819
820u32 hw_atl_scrpad_get(struct aq_hw_s *aq_hw, u32 scratch_scp);
821
822
823u32 hw_atl_scrpad12_get(struct aq_hw_s *self);
824
825
826u32 hw_atl_scrpad25_get(struct aq_hw_s *self);
827
828#endif
829