1
2
3
4
5
6
7
8
9
10
11
12
13
14#ifndef HW_ATL_LLH_H
15#define HW_ATL_LLH_H
16
17#include <linux/types.h>
18
19struct aq_hw_s;
20
21
22
23
24void reg_glb_cpu_sem_set(struct aq_hw_s *aq_hw, u32 glb_cpu_sem,
25 u32 semaphore);
26
27
28u32 reg_glb_cpu_sem_get(struct aq_hw_s *aq_hw, u32 semaphore);
29
30
31void glb_glb_reg_res_dis_set(struct aq_hw_s *aq_hw, u32 glb_reg_res_dis);
32
33
34void glb_soft_res_set(struct aq_hw_s *aq_hw, u32 soft_res);
35
36
37u32 glb_soft_res_get(struct aq_hw_s *aq_hw);
38
39
40
41u32 rpb_rx_dma_drop_pkt_cnt_get(struct aq_hw_s *aq_hw);
42
43
44u32 stats_rx_dma_good_octet_counterlsw_get(struct aq_hw_s *aq_hw);
45
46
47u32 stats_rx_dma_good_pkt_counterlsw_get(struct aq_hw_s *aq_hw);
48
49
50u32 stats_tx_dma_good_octet_counterlsw_get(struct aq_hw_s *aq_hw);
51
52
53u32 stats_tx_dma_good_pkt_counterlsw_get(struct aq_hw_s *aq_hw);
54
55
56u32 stats_rx_dma_good_octet_countermsw_get(struct aq_hw_s *aq_hw);
57
58
59u32 stats_rx_dma_good_pkt_countermsw_get(struct aq_hw_s *aq_hw);
60
61
62u32 stats_tx_dma_good_octet_countermsw_get(struct aq_hw_s *aq_hw);
63
64
65u32 stats_tx_dma_good_pkt_countermsw_get(struct aq_hw_s *aq_hw);
66
67
68u32 reg_mac_msm_rx_errs_cnt_get(struct aq_hw_s *aq_hw);
69
70
71u32 reg_mac_msm_rx_ucst_frm_cnt_get(struct aq_hw_s *aq_hw);
72
73
74u32 reg_mac_msm_rx_mcst_frm_cnt_get(struct aq_hw_s *aq_hw);
75
76
77u32 reg_mac_msm_rx_bcst_frm_cnt_get(struct aq_hw_s *aq_hw);
78
79
80u32 reg_mac_msm_rx_bcst_octets_counter1get(struct aq_hw_s *aq_hw);
81
82
83u32 reg_mac_msm_rx_ucst_octets_counter0get(struct aq_hw_s *aq_hw);
84
85
86u32 reg_rx_dma_stat_counter7get(struct aq_hw_s *aq_hw);
87
88
89u32 reg_mac_msm_tx_errs_cnt_get(struct aq_hw_s *aq_hw);
90
91
92u32 reg_mac_msm_tx_ucst_frm_cnt_get(struct aq_hw_s *aq_hw);
93
94
95u32 reg_mac_msm_tx_mcst_frm_cnt_get(struct aq_hw_s *aq_hw);
96
97
98u32 reg_mac_msm_tx_bcst_frm_cnt_get(struct aq_hw_s *aq_hw);
99
100
101u32 reg_mac_msm_tx_mcst_octets_counter1get(struct aq_hw_s *aq_hw);
102
103
104u32 reg_mac_msm_tx_bcst_octets_counter1get(struct aq_hw_s *aq_hw);
105
106
107u32 reg_mac_msm_tx_ucst_octets_counter0get(struct aq_hw_s *aq_hw);
108
109
110u32 reg_glb_mif_id_get(struct aq_hw_s *aq_hw);
111
112
113
114
115void itr_irq_auto_masklsw_set(struct aq_hw_s *aq_hw, u32 irq_auto_masklsw);
116
117
118void itr_irq_map_en_rx_set(struct aq_hw_s *aq_hw, u32 irq_map_en_rx, u32 rx);
119
120
121void itr_irq_map_en_tx_set(struct aq_hw_s *aq_hw, u32 irq_map_en_tx, u32 tx);
122
123
124void itr_irq_map_rx_set(struct aq_hw_s *aq_hw, u32 irq_map_rx, u32 rx);
125
126
127void itr_irq_map_tx_set(struct aq_hw_s *aq_hw, u32 irq_map_tx, u32 tx);
128
129
130void itr_irq_msk_clearlsw_set(struct aq_hw_s *aq_hw, u32 irq_msk_clearlsw);
131
132
133void itr_irq_msk_setlsw_set(struct aq_hw_s *aq_hw, u32 irq_msk_setlsw);
134
135
136void itr_irq_reg_res_dis_set(struct aq_hw_s *aq_hw, u32 irq_reg_res_dis);
137
138
139void itr_irq_status_clearlsw_set(struct aq_hw_s *aq_hw,
140 u32 irq_status_clearlsw);
141
142
143u32 itr_irq_statuslsw_get(struct aq_hw_s *aq_hw);
144
145
146u32 itr_res_irq_get(struct aq_hw_s *aq_hw);
147
148
149void itr_res_irq_set(struct aq_hw_s *aq_hw, u32 res_irq);
150
151
152
153
154void rdm_cpu_id_set(struct aq_hw_s *aq_hw, u32 cpuid, u32 dca);
155
156
157void rdm_rx_dca_en_set(struct aq_hw_s *aq_hw, u32 rx_dca_en);
158
159
160void rdm_rx_dca_mode_set(struct aq_hw_s *aq_hw, u32 rx_dca_mode);
161
162
163void rdm_rx_desc_data_buff_size_set(struct aq_hw_s *aq_hw,
164 u32 rx_desc_data_buff_size,
165 u32 descriptor);
166
167
168void rdm_rx_desc_dca_en_set(struct aq_hw_s *aq_hw, u32 rx_desc_dca_en,
169 u32 dca);
170
171
172void rdm_rx_desc_en_set(struct aq_hw_s *aq_hw, u32 rx_desc_en,
173 u32 descriptor);
174
175
176void rdm_rx_desc_head_splitting_set(struct aq_hw_s *aq_hw,
177 u32 rx_desc_head_splitting,
178 u32 descriptor);
179
180
181u32 rdm_rx_desc_head_ptr_get(struct aq_hw_s *aq_hw, u32 descriptor);
182
183
184void rdm_rx_desc_len_set(struct aq_hw_s *aq_hw, u32 rx_desc_len,
185 u32 descriptor);
186
187
188void rdm_rx_desc_wr_wb_irq_en_set(struct aq_hw_s *aq_hw,
189 u32 rx_desc_wr_wb_irq_en);
190
191
192void rdm_rx_head_dca_en_set(struct aq_hw_s *aq_hw, u32 rx_head_dca_en,
193 u32 dca);
194
195
196void rdm_rx_pld_dca_en_set(struct aq_hw_s *aq_hw, u32 rx_pld_dca_en, u32 dca);
197
198
199void rdm_rx_desc_head_buff_size_set(struct aq_hw_s *aq_hw,
200 u32 rx_desc_head_buff_size,
201 u32 descriptor);
202
203
204void rdm_rx_desc_res_set(struct aq_hw_s *aq_hw, u32 rx_desc_res,
205 u32 descriptor);
206
207
208void rdm_rdm_intr_moder_en_set(struct aq_hw_s *aq_hw, u32 rdm_intr_moder_en);
209
210
211
212
213void reg_gen_irq_map_set(struct aq_hw_s *aq_hw, u32 gen_intr_map, u32 regidx);
214
215
216u32 reg_gen_irq_status_get(struct aq_hw_s *aq_hw);
217
218
219void reg_irq_glb_ctl_set(struct aq_hw_s *aq_hw, u32 intr_glb_ctl);
220
221
222void reg_irq_thr_set(struct aq_hw_s *aq_hw, u32 intr_thr, u32 throttle);
223
224
225void reg_rx_dma_desc_base_addresslswset(struct aq_hw_s *aq_hw,
226 u32 rx_dma_desc_base_addrlsw,
227 u32 descriptor);
228
229
230void reg_rx_dma_desc_base_addressmswset(struct aq_hw_s *aq_hw,
231 u32 rx_dma_desc_base_addrmsw,
232 u32 descriptor);
233
234
235u32 reg_rx_dma_desc_status_get(struct aq_hw_s *aq_hw, u32 descriptor);
236
237
238void reg_rx_dma_desc_tail_ptr_set(struct aq_hw_s *aq_hw,
239 u32 rx_dma_desc_tail_ptr,
240 u32 descriptor);
241
242
243void reg_rx_flr_mcst_flr_msk_set(struct aq_hw_s *aq_hw,
244 u32 rx_flr_mcst_flr_msk);
245
246
247void reg_rx_flr_mcst_flr_set(struct aq_hw_s *aq_hw, u32 rx_flr_mcst_flr,
248 u32 filter);
249
250
251void reg_rx_flr_rss_control1set(struct aq_hw_s *aq_hw,
252 u32 rx_flr_rss_control1);
253
254
255void reg_rx_flr_control2_set(struct aq_hw_s *aq_hw, u32 rx_flr_control2);
256
257
258void reg_rx_intr_moder_ctrl_set(struct aq_hw_s *aq_hw,
259 u32 rx_intr_moderation_ctl,
260 u32 queue);
261
262
263void reg_tx_dma_debug_ctl_set(struct aq_hw_s *aq_hw, u32 tx_dma_debug_ctl);
264
265
266void reg_tx_dma_desc_base_addresslswset(struct aq_hw_s *aq_hw,
267 u32 tx_dma_desc_base_addrlsw,
268 u32 descriptor);
269
270
271void reg_tx_dma_desc_base_addressmswset(struct aq_hw_s *aq_hw,
272 u32 tx_dma_desc_base_addrmsw,
273 u32 descriptor);
274
275
276void reg_tx_dma_desc_tail_ptr_set(struct aq_hw_s *aq_hw,
277 u32 tx_dma_desc_tail_ptr,
278 u32 descriptor);
279
280
281void reg_tx_intr_moder_ctrl_set(struct aq_hw_s *aq_hw,
282 u32 tx_intr_moderation_ctl,
283 u32 queue);
284
285
286void reg_glb_cpu_scratch_scp_set(struct aq_hw_s *aq_hw,
287 u32 glb_cpu_scratch_scp, u32 scratch_scp);
288
289
290
291
292void rpb_dma_sys_lbk_set(struct aq_hw_s *aq_hw, u32 dma_sys_lbk);
293
294
295void rpb_rpf_rx_traf_class_mode_set(struct aq_hw_s *aq_hw,
296 u32 rx_traf_class_mode);
297
298
299void rpb_rx_buff_en_set(struct aq_hw_s *aq_hw, u32 rx_buff_en);
300
301
302void rpb_rx_buff_hi_threshold_per_tc_set(struct aq_hw_s *aq_hw,
303 u32 rx_buff_hi_threshold_per_tc,
304 u32 buffer);
305
306
307void rpb_rx_buff_lo_threshold_per_tc_set(struct aq_hw_s *aq_hw,
308 u32 rx_buff_lo_threshold_per_tc,
309 u32 buffer);
310
311
312void rpb_rx_flow_ctl_mode_set(struct aq_hw_s *aq_hw, u32 rx_flow_ctl_mode);
313
314
315void rpb_rx_pkt_buff_size_per_tc_set(struct aq_hw_s *aq_hw,
316 u32 rx_pkt_buff_size_per_tc,
317 u32 buffer);
318
319
320void rpb_rx_xoff_en_per_tc_set(struct aq_hw_s *aq_hw, u32 rx_xoff_en_per_tc,
321 u32 buffer);
322
323
324
325
326void rpfl2broadcast_count_threshold_set(struct aq_hw_s *aq_hw,
327 u32 l2broadcast_count_threshold);
328
329
330void rpfl2broadcast_en_set(struct aq_hw_s *aq_hw, u32 l2broadcast_en);
331
332
333void rpfl2broadcast_flr_act_set(struct aq_hw_s *aq_hw,
334 u32 l2broadcast_flr_act);
335
336
337void rpfl2multicast_flr_en_set(struct aq_hw_s *aq_hw, u32 l2multicast_flr_en,
338 u32 filter);
339
340
341void rpfl2promiscuous_mode_en_set(struct aq_hw_s *aq_hw,
342 u32 l2promiscuous_mode_en);
343
344
345void rpfl2unicast_flr_act_set(struct aq_hw_s *aq_hw, u32 l2unicast_flr_act,
346 u32 filter);
347
348
349void rpfl2_uc_flr_en_set(struct aq_hw_s *aq_hw, u32 l2unicast_flr_en,
350 u32 filter);
351
352
353void rpfl2unicast_dest_addresslsw_set(struct aq_hw_s *aq_hw,
354 u32 l2unicast_dest_addresslsw,
355 u32 filter);
356
357
358void rpfl2unicast_dest_addressmsw_set(struct aq_hw_s *aq_hw,
359 u32 l2unicast_dest_addressmsw,
360 u32 filter);
361
362
363void rpfl2_accept_all_mc_packets_set(struct aq_hw_s *aq_hw,
364 u32 l2_accept_all_mc_packets);
365
366
367void rpf_rpb_user_priority_tc_map_set(struct aq_hw_s *aq_hw,
368 u32 user_priority_tc_map, u32 tc);
369
370
371void rpf_rss_key_addr_set(struct aq_hw_s *aq_hw, u32 rss_key_addr);
372
373
374void rpf_rss_key_wr_data_set(struct aq_hw_s *aq_hw, u32 rss_key_wr_data);
375
376
377u32 rpf_rss_key_wr_en_get(struct aq_hw_s *aq_hw);
378
379
380void rpf_rss_key_wr_en_set(struct aq_hw_s *aq_hw, u32 rss_key_wr_en);
381
382
383void rpf_rss_redir_tbl_addr_set(struct aq_hw_s *aq_hw,
384 u32 rss_redir_tbl_addr);
385
386
387void rpf_rss_redir_tbl_wr_data_set(struct aq_hw_s *aq_hw,
388 u32 rss_redir_tbl_wr_data);
389
390
391u32 rpf_rss_redir_wr_en_get(struct aq_hw_s *aq_hw);
392
393
394void rpf_rss_redir_wr_en_set(struct aq_hw_s *aq_hw, u32 rss_redir_wr_en);
395
396
397void rpf_tpo_to_rpf_sys_lbk_set(struct aq_hw_s *aq_hw,
398 u32 tpo_to_rpf_sys_lbk);
399
400
401void rpf_vlan_inner_etht_set(struct aq_hw_s *aq_hw, u32 vlan_inner_etht);
402
403
404void rpf_vlan_outer_etht_set(struct aq_hw_s *aq_hw, u32 vlan_outer_etht);
405
406
407void rpf_vlan_prom_mode_en_set(struct aq_hw_s *aq_hw, u32 vlan_prom_mode_en);
408
409
410void rpf_vlan_untagged_act_set(struct aq_hw_s *aq_hw, u32 vlan_untagged_act);
411
412
413void rpf_vlan_accept_untagged_packets_set(struct aq_hw_s *aq_hw,
414 u32 vlan_accept_untagged_packets);
415
416
417void rpf_vlan_flr_en_set(struct aq_hw_s *aq_hw, u32 vlan_flr_en, u32 filter);
418
419
420void rpf_vlan_flr_act_set(struct aq_hw_s *aq_hw, u32 vlan_filter_act,
421 u32 filter);
422
423
424void rpf_vlan_id_flr_set(struct aq_hw_s *aq_hw, u32 vlan_id_flr, u32 filter);
425
426
427void rpf_etht_flr_en_set(struct aq_hw_s *aq_hw, u32 etht_flr_en, u32 filter);
428
429
430void rpf_etht_user_priority_en_set(struct aq_hw_s *aq_hw,
431 u32 etht_user_priority_en, u32 filter);
432
433
434void rpf_etht_rx_queue_en_set(struct aq_hw_s *aq_hw, u32 etht_rx_queue_en,
435 u32 filter);
436
437
438void rpf_etht_rx_queue_set(struct aq_hw_s *aq_hw, u32 etht_rx_queue,
439 u32 filter);
440
441
442void rpf_etht_user_priority_set(struct aq_hw_s *aq_hw, u32 etht_user_priority,
443 u32 filter);
444
445
446void rpf_etht_mgt_queue_set(struct aq_hw_s *aq_hw, u32 etht_mgt_queue,
447 u32 filter);
448
449
450void rpf_etht_flr_act_set(struct aq_hw_s *aq_hw, u32 etht_flr_act,
451 u32 filter);
452
453
454void rpf_etht_flr_set(struct aq_hw_s *aq_hw, u32 etht_flr, u32 filter);
455
456
457
458
459void rpo_ipv4header_crc_offload_en_set(struct aq_hw_s *aq_hw,
460 u32 ipv4header_crc_offload_en);
461
462
463void rpo_rx_desc_vlan_stripping_set(struct aq_hw_s *aq_hw,
464 u32 rx_desc_vlan_stripping,
465 u32 descriptor);
466
467
468void rpo_tcp_udp_crc_offload_en_set(struct aq_hw_s *aq_hw,
469 u32 tcp_udp_crc_offload_en);
470
471
472void rpo_lro_patch_optimization_en_set(struct aq_hw_s *aq_hw,
473 u32 lro_patch_optimization_en);
474
475
476void rpo_lro_en_set(struct aq_hw_s *aq_hw, u32 lro_en);
477
478
479void rpo_lro_qsessions_lim_set(struct aq_hw_s *aq_hw, u32 lro_qsessions_lim);
480
481
482void rpo_lro_total_desc_lim_set(struct aq_hw_s *aq_hw, u32 lro_total_desc_lim);
483
484
485void rpo_lro_min_pay_of_first_pkt_set(struct aq_hw_s *aq_hw,
486 u32 lro_min_pld_of_first_pkt);
487
488
489void rpo_lro_pkt_lim_set(struct aq_hw_s *aq_hw, u32 lro_packet_lim);
490
491
492void rpo_lro_max_num_of_descriptors_set(struct aq_hw_s *aq_hw,
493 u32 lro_max_desc_num, u32 lro);
494
495
496void rpo_lro_time_base_divider_set(struct aq_hw_s *aq_hw,
497 u32 lro_time_base_divider);
498
499
500void rpo_lro_inactive_interval_set(struct aq_hw_s *aq_hw,
501 u32 lro_inactive_interval);
502
503
504void rpo_lro_max_coalescing_interval_set(struct aq_hw_s *aq_hw,
505 u32 lro_max_coalescing_interval);
506
507
508
509
510void rx_rx_reg_res_dis_set(struct aq_hw_s *aq_hw, u32 rx_reg_res_dis);
511
512
513
514
515void tdm_cpu_id_set(struct aq_hw_s *aq_hw, u32 cpuid, u32 dca);
516
517
518void tdm_large_send_offload_en_set(struct aq_hw_s *aq_hw,
519 u32 large_send_offload_en);
520
521
522void tdm_tx_desc_en_set(struct aq_hw_s *aq_hw, u32 tx_desc_en, u32 descriptor);
523
524
525void tdm_tx_dca_en_set(struct aq_hw_s *aq_hw, u32 tx_dca_en);
526
527
528void tdm_tx_dca_mode_set(struct aq_hw_s *aq_hw, u32 tx_dca_mode);
529
530
531void tdm_tx_desc_dca_en_set(struct aq_hw_s *aq_hw, u32 tx_desc_dca_en, u32 dca);
532
533
534u32 tdm_tx_desc_head_ptr_get(struct aq_hw_s *aq_hw, u32 descriptor);
535
536
537void tdm_tx_desc_len_set(struct aq_hw_s *aq_hw, u32 tx_desc_len,
538 u32 descriptor);
539
540
541void tdm_tx_desc_wr_wb_irq_en_set(struct aq_hw_s *aq_hw,
542 u32 tx_desc_wr_wb_irq_en);
543
544
545void tdm_tx_desc_wr_wb_threshold_set(struct aq_hw_s *aq_hw,
546 u32 tx_desc_wr_wb_threshold,
547 u32 descriptor);
548
549
550void tdm_tdm_intr_moder_en_set(struct aq_hw_s *aq_hw,
551 u32 tdm_irq_moderation_en);
552
553
554
555void thm_lso_tcp_flag_of_first_pkt_set(struct aq_hw_s *aq_hw,
556 u32 lso_tcp_flag_of_first_pkt);
557
558
559void thm_lso_tcp_flag_of_last_pkt_set(struct aq_hw_s *aq_hw,
560 u32 lso_tcp_flag_of_last_pkt);
561
562
563void thm_lso_tcp_flag_of_middle_pkt_set(struct aq_hw_s *aq_hw,
564 u32 lso_tcp_flag_of_middle_pkt);
565
566
567
568
569void tpb_tx_buff_en_set(struct aq_hw_s *aq_hw, u32 tx_buff_en);
570
571
572void tpb_tx_buff_hi_threshold_per_tc_set(struct aq_hw_s *aq_hw,
573 u32 tx_buff_hi_threshold_per_tc,
574 u32 buffer);
575
576
577void tpb_tx_buff_lo_threshold_per_tc_set(struct aq_hw_s *aq_hw,
578 u32 tx_buff_lo_threshold_per_tc,
579 u32 buffer);
580
581
582void tpb_tx_dma_sys_lbk_en_set(struct aq_hw_s *aq_hw, u32 tx_dma_sys_lbk_en);
583
584
585void tpb_tx_pkt_buff_size_per_tc_set(struct aq_hw_s *aq_hw,
586 u32 tx_pkt_buff_size_per_tc, u32 buffer);
587
588
589void tpb_tx_path_scp_ins_en_set(struct aq_hw_s *aq_hw, u32 tx_path_scp_ins_en);
590
591
592
593
594void tpo_ipv4header_crc_offload_en_set(struct aq_hw_s *aq_hw,
595 u32 ipv4header_crc_offload_en);
596
597
598void tpo_tcp_udp_crc_offload_en_set(struct aq_hw_s *aq_hw,
599 u32 tcp_udp_crc_offload_en);
600
601
602void tpo_tx_pkt_sys_lbk_en_set(struct aq_hw_s *aq_hw, u32 tx_pkt_sys_lbk_en);
603
604
605
606
607void tps_tx_pkt_shed_data_arb_mode_set(struct aq_hw_s *aq_hw,
608 u32 tx_pkt_shed_data_arb_mode);
609
610
611void tps_tx_pkt_shed_desc_rate_curr_time_res_set(struct aq_hw_s *aq_hw,
612 u32 curr_time_res);
613
614
615void tps_tx_pkt_shed_desc_rate_lim_set(struct aq_hw_s *aq_hw,
616 u32 tx_pkt_shed_desc_rate_lim);
617
618
619void tps_tx_pkt_shed_desc_tc_arb_mode_set(struct aq_hw_s *aq_hw,
620 u32 tx_pkt_shed_desc_tc_arb_mode);
621
622
623void tps_tx_pkt_shed_desc_tc_max_credit_set(struct aq_hw_s *aq_hw,
624 u32 tx_pkt_shed_desc_tc_max_credit,
625 u32 tc);
626
627
628void tps_tx_pkt_shed_desc_tc_weight_set(struct aq_hw_s *aq_hw,
629 u32 tx_pkt_shed_desc_tc_weight,
630 u32 tc);
631
632
633void tps_tx_pkt_shed_desc_vm_arb_mode_set(struct aq_hw_s *aq_hw,
634 u32 tx_pkt_shed_desc_vm_arb_mode);
635
636
637void tps_tx_pkt_shed_tc_data_max_credit_set(struct aq_hw_s *aq_hw,
638 u32 tx_pkt_shed_tc_data_max_credit,
639 u32 tc);
640
641
642void tps_tx_pkt_shed_tc_data_weight_set(struct aq_hw_s *aq_hw,
643 u32 tx_pkt_shed_tc_data_weight,
644 u32 tc);
645
646
647
648
649void tx_tx_reg_res_dis_set(struct aq_hw_s *aq_hw, u32 tx_reg_res_dis);
650
651
652
653
654u32 msm_reg_access_status_get(struct aq_hw_s *aq_hw);
655
656
657void msm_reg_addr_for_indirect_addr_set(struct aq_hw_s *aq_hw,
658 u32 reg_addr_for_indirect_addr);
659
660
661void msm_reg_rd_strobe_set(struct aq_hw_s *aq_hw, u32 reg_rd_strobe);
662
663
664u32 msm_reg_rd_data_get(struct aq_hw_s *aq_hw);
665
666
667void msm_reg_wr_data_set(struct aq_hw_s *aq_hw, u32 reg_wr_data);
668
669
670void msm_reg_wr_strobe_set(struct aq_hw_s *aq_hw, u32 reg_wr_strobe);
671
672
673
674
675void pci_pci_reg_res_dis_set(struct aq_hw_s *aq_hw, u32 pci_reg_res_dis);
676
677#endif
678