summaryrefstree
path: root/kernel/drivers/net/ethernet/aquantia/atlantic-fwd/atl2_fw.h
blob: 5db61f37253f22471f5f91f7bd8a779cad845a04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
/* SPDX-License-Identifier: GPL-2.0-only */
/* Atlantic Network Driver
 *
 * Copyright (C) 2019 aQuantia Corporation
 * Copyright (C) 2019-2020 Marvell International Ltd.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 */

#ifndef _ATL2_FW_H_
#define _ATL2_FW_H_

/* Start of HW byte packed interface declaration */
#pragma pack(push, 1)

/* F W    A P I */

struct link_options_s {
	uint32_t link_up:1;
	uint32_t link_renegotiate:1;
	uint32_t minimal_link_speed:1;
	uint32_t internal_loopback:1;
	uint32_t external_loopback:1;
	uint32_t rate_10M_hd:1;
	uint32_t rate_100M_hd:1;
	uint32_t rate_1G_hd:1;


	uint32_t rate_10M:1;
	uint32_t rate_100M:1;
	uint32_t rate_1G:1;
	uint32_t rate_2P5G:1;
	uint32_t rate_N2P5G:1;
	uint32_t rate_5G:1;
	uint32_t rate_N5G:1;
	uint32_t rate_10G:1;

	uint32_t eee_100M:1;
	uint32_t eee_1G:1;
	uint32_t eee_2P5G:1;
	uint32_t eee_5G:1;
	uint32_t eee_10G:1;
	uint32_t rsvd3:2;
	uint32_t low_power_autoneg:1;

	uint32_t pause_rx:1;
	uint32_t pause_tx:1;
	uint32_t rsvd4:1;
	uint32_t downshift:1;
	uint32_t downshift_retry:4;
};

struct link_control_s {
	uint32_t mode:4;

	uint32_t disable_crc_corruption : 1;
	uint32_t discard_short_frames : 1;
	uint32_t flow_control_mode : 1;
	uint32_t disable_length_check : 1;
	uint32_t discard_errored_frames : 1;
	uint32_t control_frame_enable : 1;
	uint32_t enable_tx_padding : 1;
	uint32_t enable_crc_forwarding : 1;
	uint32_t enable_frame_padding_removal_rx: 1;
	uint32_t promiscuous_mode: 1;
	uint32_t rsvd:18;
};

struct thermal_shutdown_s {
	uint32_t shutdown_enable :1;
	uint32_t warning_enable :1;
	uint32_t rsvd:6;

	uint32_t shutdown_temp_threshold :8;
	uint32_t warning_cold_temp_threshold :8;
	uint32_t warning_hot_tempThreshold :8;
};

struct mac_address_s {
	uint8_t mac_address[6];
};

struct sleep_proxy_s {
	struct wake_on_lan_s {
		uint32_t wake_on_magic_packet:1;
		uint32_t wake_on_pattern:1;
		uint32_t wake_on_link_up:1;
		uint32_t wake_on_link_down:1;
		uint32_t wake_on_ping:1;
		uint32_t wake_on_timer:1;
		uint32_t wake_on_link_mac_method:1;
		uint32_t rsrvd1:1;
		uint32_t restore_link_before_wake:1;
		uint32_t rsvd:23;

		uint32_t link_up_timeout;
		uint32_t link_down_timeout;
		uint32_t timer;

		struct {
			uint32_t mask[4];
			uint32_t crc32;
		} wake_up_patterns[8];
	} wake_on_lan;

	struct {
		uint32_t arp_responder:1;
		uint32_t echo_responder:1;
		uint32_t igmp_client:1;
		uint32_t echo_truncate:1;
		uint32_t address_guard:1;
		uint32_t ignore_fragmented:1;
		uint32_t rsvd:2;
		uint32_t echo_max_len:16;
		uint32_t ipv4[8];
		uint32_t reserved[8];

	} ipv4_offload;

	struct {
		uint32_t ns_responder:1;
		uint32_t echo_responder:1;
		uint32_t mld_client:1;
		uint32_t echo_truncate:1;
		uint32_t address_guard:1;
		uint32_t rsvd:3;
		uint32_t echo_max_len:16;
		uint32_t ipv6[16][4];
	} ipv6_offload;

	struct {
		uint16_t ports[16];
	} tcp_port_offload;

	struct {
		uint16_t ports[16];
	} udp_port_offload;

	struct ka4_offloads_s {
		uint32_t retry_count;
		uint32_t retry_interval;

		struct ka4_offload_s {
			uint32_t timeout;
			uint16_t local_port;
			uint16_t remote_port;
			uint8_t remote_mac_addr[6];
			uint32_t rsvd:16;
			uint32_t rsvd2:32;
			uint32_t rsvd3:32;
			uint32_t rsvd4:16;
			uint16_t win_size;
			uint32_t seq_num;
			uint32_t ack_num;
			uint32_t local_ip;
			uint32_t remote_ip;
		} offloads[16];
	} ka4_offload;

	struct ka6_offloads_s {
		uint32_t retry_count;
		uint32_t retry_interval;

		struct ka6_offload_s {
			uint32_t timeout;
			uint16_t local_port;
			uint16_t remote_port;
			uint8_t remote_mac_addr[6];
			uint32_t rsvd:16;
			uint32_t rsvd2:32;
			uint32_t rsvd3:32;
			uint32_t rsvd4:16;
			uint16_t win_size;
			uint32_t seq_num;
			uint32_t ack_num;
			uint32_t local_ip[4];
			uint32_t remote_ip[4];
		} offloads[16];
	} ka6_offload;

	struct {
		uint32_t rr_count;
		uint32_t rr_buf_len;
		uint32_t idx_offset;
		uint32_t rr__offset;
	} mdns;
	/* WARN: where this gap actually is not known */
	uint32_t reserve_fw_gap:16;
};

struct ptp_s {
	uint32_t enable:1;
};

struct pause_quanta_s {
	uint16_t quanta_10M;
	uint16_t threshold_10M;
	uint16_t quanta_100M;
	uint16_t threshold_100M;
	uint16_t quanta_1G;
	uint16_t threshold_1G;
	uint16_t quanta_2P5G;
	uint16_t threshold_2P5G;
	uint16_t quanta_5G;
	uint16_t threshold_5G;
	uint16_t quanta_10G;
	uint16_t threshold_10G;
};

struct data_buffer_status_s {
	uint32_t data_offset;
	uint32_t data_length;
};

struct device_caps_s {
	uint32_t finite_flashless: 1;
	uint32_t cable_diag: 1;
	uint32_t ncsi: 1;
	uint32_t avb: 1;
	uint32_t rsvd: 28;
	uint32_t rsvd2: 32;
};

struct version_s {
	struct bundle_version_t {
		uint32_t major:8;
		uint32_t minor:8;
		uint32_t build:16;
	} bundle;
	struct mac_version_t {
		uint32_t major:8;
		uint32_t minor:8;
		uint32_t build:16;
	} mac;
	struct phy_version_t {
		uint32_t major:8;
		uint32_t minor:8;
		uint32_t build:16;
	} phy;
	uint32_t rsvd:32;
};

struct link_status_s {
	uint32_t link_state:4;
	uint32_t link_rate:4;

	uint32_t pause_tx:1;
	uint32_t pause_rx:1;
	uint32_t eee:1;
	uint32_t duplex:1;
	uint32_t rsvd:4;

	uint32_t rsvd2:16;
};

struct wol_status_s {
	uint32_t wake_count:8;
	uint32_t wake_reason:8;
	uint32_t wake_up_packet_length :12;
	uint32_t wake_up_pattern_number :3;
	uint32_t rsvd:1;
	uint32_t wake_up_packet[379];
};

struct mac_health_monitor_s {
	uint32_t mac_ready:1;
	uint32_t mac_fault:1;
	uint32_t mac_flashless_finished:1;
	uint32_t rsvd:5;
	uint32_t mac_temperature:8;
	uint32_t mac_heart_beat:16;
	uint32_t mac_fault_code:16;
	uint32_t rsvd2:16;
};

struct phy_health_monitor_s {
	uint32_t phy_ready:1;
	uint32_t phy_fault:1;
	uint32_t phy_hot_warning:1;
	uint32_t rsvd:5;
	uint32_t phy_temperature:8;
	uint32_t phy_heart_beat:16;
	uint32_t phy_fault_code:16;
	uint32_t rsvd2:16;
};

struct device_link_caps_s {
	uint32_t rsvd:3;
	uint32_t internal_loopback:1;
	uint32_t external_loopback:1;
	uint32_t rate_10M_hd:1;
	uint32_t rate_100M_hd:1;
	uint32_t rate_1G_hd:1;

	uint32_t rate_10M:1;
	uint32_t rate_100M:1;
	uint32_t rate_1G:1;
	uint32_t rate_2P5G:1;
	uint32_t rate_N2P5G:1;
	uint32_t rate_5G:1;
	uint32_t rate_N5G:1;
	uint32_t rate_10G:1;

	uint32_t rsvd3:1;
	uint32_t eee_100M:1;
	uint32_t eee_1G:1;
	uint32_t eee_2P5G:1;
	uint32_t rsvd4:1;
	uint32_t eee_5G:1;
	uint32_t rsvd5:1;
	uint32_t eee_10G:1;

	uint32_t pause_rx:1;
	uint32_t pause_tx:1;
	uint32_t pfc:1;
	uint32_t downshift:1;
	uint32_t downshift_retry:4;
};

struct sleep_proxy_caps_s {
	uint32_t ipv4_offload:1;
	uint32_t ipv6_offload:1;
	uint32_t tcp_port_offload:1;
	uint32_t udp_port_offload:1;
	uint32_t ka4_offload:1;
	uint32_t ka6_offload:1;
	uint32_t mdns_offload:1;
	uint32_t wake_on_ping:1;

	uint32_t wake_on_magic_packet:1;
	uint32_t wake_on_pattern:1;
	uint32_t wake_on_timer:1;
	uint32_t wake_on_link:1;
	uint32_t wake_patterns_count:4;

	uint32_t ipv4_count:8;
	uint32_t ipv6_count:8;

	uint32_t tcp_port_offload_count:8;
	uint32_t udp_port_offload_count:8;

	uint32_t tcp4_ka_count:8;
	uint32_t tcp6_ka_count:8;

	uint32_t igmp_offload:1;
	uint32_t mld_offload:1;
	uint32_t rsvd:30;
};

struct lkp_link_caps_s {
	uint32_t rsvd:5;
	uint32_t rate_10M_hd:1;
	uint32_t rate_100M_hd:1;
	uint32_t rate_1G_hd:1;

	uint32_t rate_10M:1;
	uint32_t rate_100M:1;
	uint32_t rate_1G:1;
	uint32_t rate_2P5G:1;
	uint32_t rate_N2P5G:1;
	uint32_t rate_5G:1;
	uint32_t rate_N5G:1;
	uint32_t rate_10G:1;

	uint32_t rsvd2:1;
	uint32_t eee_100M:1;
	uint32_t eee_1G:1;
	uint32_t eee_2P5G:1;
	uint32_t rsvd3:1;
	uint32_t eee_5G:1;
	uint32_t rsvd4:1;
	uint32_t eee_10G:1;

	uint32_t pause_rx:1;
	uint32_t pause_tx:1;
	uint32_t rsvd5:6;
};

struct core_dump_s {
	uint32_t reg0;
	uint32_t reg1;
	uint32_t reg2;

	uint32_t hi;
	uint32_t lo;

	uint32_t regs[32];
};

struct trace_s {
	uint32_t sync_counter;
	uint32_t mem_buffer[0x1ff];
};

struct cable_diag_control_s {
	uint32_t toggle :1;
	uint32_t rsvd:7;
	uint32_t wait_timeout_sec:8;
	uint32_t rsvd2:16;

};

struct cable_diag_lane_data_s {
	uint32_t result_code :8;
	uint32_t dist :8;
	uint32_t far_dist :8;
	uint32_t rsvd:8;
};

struct cable_diag_status_s {
	struct cable_diag_lane_data_s lane_data[4];
	uint32_t transact_id:8;
	uint32_t status:4;
	uint32_t rsvd:20;
};

struct phy_fw_load_status_s {
	uint32_t phy_fw_load_from_host :1;
	uint32_t phy_fw_load_from_flash :1;
	uint32_t phy_fw_load_from_d_c :1;
	uint32_t phy_load_from_flash_failed :1;
	uint32_t phy_load_from_host_failed :1;
	uint32_t phy_load_from_d_c_failed :1;
	uint32_t phy_hash_validation_failed :1;
	uint32_t phy_fw_started :1;

	uint32_t phy_stall_timeout :1;
	uint32_t phy_unstall_timeout :1;
	uint32_t phy_fw_start_timeout :1;
	uint32_t phy_iram_load_error :1;
	uint32_t phy_dram_load_error :1;
	uint32_t phy_mcp_run_failed :1;
	uint32_t phy_mcp_stall_failed :1;
	uint32_t phy_mcp_unstall_failed :1;

	uint32_t phy_wait_for_semaphore :1;
	uint32_t phy_semaphore_locked :1;
	uint32_t rsvd :2;
	uint32_t phy_worst_block_upload_retry_number:4;

	uint32_t phy_worst_upload_block_number :6;
	uint32_t rsvd2:2;
};

struct statistics_s {
	struct {
		uint32_t link_up;
		uint32_t link_down;
	} link;

	struct {
		uint64_t tx_unicast_octets;
		uint64_t tx_multicast_octets;
		uint64_t tx_broadcast_octets;
		uint64_t rx_unicast_octets;
		uint64_t rx_multicast_octets;
		uint64_t rx_broadcast_octets;

		uint32_t tx_unicast_frames;
		uint32_t tx_multicast_frames;
		uint32_t tx_broadcast_frames;
		uint32_t tx_errors;

		uint32_t rx_unicast_frames;
		uint32_t rx_multicast_frames;
		uint32_t rx_broadcast_frames;
		uint32_t rx_dropped_frames;
		uint32_t rx_error_frames;

		uint32_t tx_good_frames;
		uint32_t rx_good_frames;
		uint32_t reserve_fw_gap;
	} msm;
	uint32_t main_loop_cycles;
	uint32_t reserve_fw_gap;
};

struct filter_caps_s {
	uint8_t l2_filters_base_index:6;
	uint8_t flexible_filter_mask:2;
	uint8_t l2_filter_count;
	uint8_t ethertype_filter_base_index;
	uint8_t ethertype_filter_count;

	uint8_t vlan_filter_base_index;
	uint8_t vlan_filter_count;
	uint8_t l3_ip4_filter_base_index:4;
	uint8_t l3_ip4_filter_count:4;
	uint8_t l3_ip6_filter_base_index:4;
	uint8_t l3_ip6_filter_count:4;

	uint8_t l4_filter_base_index:4;
	uint8_t l4_filter_count:4;
	uint8_t l4_flex_filter_base_index:4;
	uint8_t l4_flex_filter_count:4;
	uint8_t rslv_tbl_base_index;
	uint8_t rslv_tbl_count;
};

struct request_policy_s {
	struct {
		uint8_t all:1;
		uint8_t rsvd:1;
		uint8_t rx_queue_tc_index:5;
		uint8_t queue_or_tc:1;
	} promisc;

	struct {
		uint8_t accept:1;
		uint8_t rsvd:1;
		uint8_t rx_queue_tc_index:5;
		uint8_t queue_or_tc:1;
	} bcast;

	struct {
		uint8_t accept:1;
		uint8_t promisc:1;
		uint8_t rx_queue_tc_index:5;
		uint8_t queue_or_tc:1;
	} mcast;

	uint8_t rsvd:8;
};

struct fw_interface_in {
	uint32_t mtu;
	uint32_t rsvd1:32;
	struct mac_address_s mac_address;
	uint16_t rsvd;
	struct link_control_s link_control;
	uint32_t rsvd2:32;
	struct link_options_s link_options;
	uint32_t rsvd3:32;
	struct thermal_shutdown_s thermal_shutdown;
	uint32_t rsvd4:32;
	struct sleep_proxy_s sleep_proxy;
	uint32_t rsvd5:32;
	struct pause_quanta_s pause_quanta[8];
	struct cable_diag_control_s cable_diag_control;
	uint32_t rsvd6:32;
	struct data_buffer_status_s data_buffer_status;
	uint32_t rsvd7:32;
	struct request_policy_s request_policy;
};

struct transaction_counter_s {
	uint32_t transaction_cnt_a:16;
	uint32_t transaction_cnt_b:16;
};

struct management_status_s {
	struct mac_address_s mac_address;
	uint16_t vlan;

	struct{
		uint32_t enable : 1;
		uint32_t rsvd:31;
	} flags;

	uint32_t rsvd1:32;
	uint32_t rsvd2:32;
	uint32_t rsvd3:32;
	uint32_t rsvd4:32;
	uint32_t rsvd5:32;
};

struct fw_interface_out {
	struct transaction_counter_s transaction_id;
	struct version_s version;
	struct link_status_s link_status;
	struct wol_status_s wol_status;
	uint32_t rsvd:32;
	uint32_t rsvd2:32;
	struct mac_health_monitor_s mac_health_monitor;
	uint32_t rsvd3:32;
	uint32_t rsvd4:32;
	struct phy_health_monitor_s phy_health_monitor;
	uint32_t rsvd5:32;
	uint32_t rsvd6:32;
	struct cable_diag_status_s cable_diag_status;
	uint32_t rsvd7:32;
	struct device_link_caps_s device_link_caps;
	uint32_t rsvd8:32;
	struct sleep_proxy_caps_s sleep_proxy_caps;
	uint32_t rsvd9:32;
	struct lkp_link_caps_s lkp_link_caps;
	uint32_t rsvd10:32;
	struct core_dump_s core_dump;
	uint32_t rsvd11:32;
	struct statistics_s stats;
	uint32_t rsvd12:32;
	struct filter_caps_s filter_caps;
	struct device_caps_s device_caps;
	uint32_t rsvd13:32;
	struct management_status_s management_status;
	uint32_t reserve[21];
	struct trace_s trace;
};

struct fw_iti_subblock_header {
	uint32_t type :8;
	uint32_t length :24;
};

struct fw_iti_hdr {
	uint32_t instuction_bitmask;
	uint32_t reserved;
	struct fw_iti_subblock_header iti[6];
};
/* End of HW byte packed interface declaration */
#pragma pack(pop)


#define ATL2_FW_LINK_RATE_INVALID 0
#define ATL2_FW_LINK_RATE_10M     1
#define ATL2_FW_LINK_RATE_100M    2
#define ATL2_FW_LINK_RATE_1G      3
#define ATL2_FW_LINK_RATE_2G5     4
#define ATL2_FW_LINK_RATE_5G      5
#define ATL2_FW_LINK_RATE_10G     6

#define ATL2_HOST_MODE_INVALID      0
#define ATL2_HOST_MODE_ACTIVE       1
#define ATL2_HOST_MODE_SLEEP_PROXY  2
#define ATL2_HOST_MODE_LOW_POWER    3
#define ATL2_HOST_MODE_SHUTDOWN     4

#define ATL2_FW_CABLE_STATUS_OPEN_CIRCUIT  7
#define ATL2_FW_CABLE_STATUS_HIGH_MISMATCH 6
#define ATL2_FW_CABLE_STATUS_LOW_MISMATCH  5
#define ATL2_FW_CABLE_STATUS_SHORT_CIRCUIT 4
#define ATL2_FW_CABLE_STATUS_PAIR_D        3
#define ATL2_FW_CABLE_STATUS_PAIR_C        2
#define ATL2_FW_CABLE_STATUS_PAIR_B        1
#define ATL2_FW_CABLE_STATUS_OK            0

#define ATL2_FW_HOST_INTERRUPT_MAC_READY           0x0004
#define ATL2_FW_HOST_INTERRUPT_DATA_HANDLED        0x0100
#define ATL2_FW_HOST_INTERRUPT_LINK_UP             0x0200
#define ATL2_FW_HOST_INTERRUPT_LINK_DOWN           0x0400
#define ATL2_FW_HOST_INTERRUPT_PHY_FAULT           0x0800
#define ATL2_FW_HOST_INTERRUPT_MAC_FAULT           0x1000
#define ATL2_FW_HOST_INTERRUPT_TEMPERATURE_WARNING 0x2000
#define ATL2_FW_HOST_INTERRUPT_HEARTBEAT           0x4000

#define ATL2_ITI_ADDRESS_START    0x100000
#define ATL2_ITI_ADDRESS_BLOCK_1  (ATL2_ITI_ADDRESS_START +\
				   sizeof(struct fw_iti_hdr) / sizeof(uint32_t))
enum {
	ATL2_MEMORY_MAILBOX_STATUS_FAIL = 0,
	ATL2_MEMORY_MAILBOX_STATUS_SUCCESS = 1
};

enum {
	ATL2_MEMORY_MAILBOX_TARGET_MEMORY = 0,
	ATL2_MEMORY_MAILBOX_TARGET_MDIO = 1
};

enum {
	ATL2_MEMORY_MAILBOX_OPERATION_READ = 0,
	ATL2_MEMORY_MAILBOX_OPERATION_WRITE = 1
};

enum ATL2_WAKE_REASON {
	ATL2_WAKE_REASON_UNKNOWN,
	ATL2_WAKE_REASON_PANIC,
	ATL2_WAKE_REASON_LINK,
	ATL2_WAKE_REASON_TIMER,
	ATL2_WAKE_REASON_RESERVED,
	ATL2_WAKE_REASON_NAME_GUARD,
	ATL2_WAKE_REASON_ADDR_GUARD,
	ATL2_WAKE_REASON_TCPKA,

	ATL2_WAKE_REASON_DATA_FLAG,

	ATL2_WAKE_REASON_PING,
	ATL2_WAKE_REASON_SYN,
	ATL2_WAKE_REASON_UDP,
	ATL2_WAKE_REASON_PATTERN,
	ATL2_WAKE_REASON_MAGIC_PACKET
};

int atl2_fw_init(struct atl_hw *hw);
int atl2_get_fw_version(struct atl_hw *hw, u32 *fw_version);
int atl2_fw_set_filter_policy(struct atl_hw *hw, bool promisc, bool allmulti);


#endif