1
2
3
4 #ifndef _IGC_BASE_H_
5 #define _IGC_BASE_H_
6
7
8 void igc_rx_fifo_flush_base(struct igc_hw *hw);
9 void igc_power_down_phy_copper_base(struct igc_hw *hw);
10
11
12 union igc_adv_tx_desc {
13 struct {
14 __le64 buffer_addr;
15 __le32 cmd_type_len;
16 __le32 olinfo_status;
17 } read;
18 struct {
19 __le64 rsvd;
20 __le32 nxtseq_seed;
21 __le32 status;
22 } wb;
23 };
24
25
26 struct igc_adv_tx_context_desc {
27 __le32 vlan_macip_lens;
28 __le32 launch_time;
29 __le32 type_tucmd_mlhl;
30 __le32 mss_l4len_idx;
31 };
32
33
34 #define IGC_ADVTXD_MAC_TSTAMP 0x00080000
35 #define IGC_ADVTXD_DTYP_CTXT 0x00200000
36 #define IGC_ADVTXD_DTYP_DATA 0x00300000
37 #define IGC_ADVTXD_DCMD_EOP 0x01000000
38 #define IGC_ADVTXD_DCMD_IFCS 0x02000000
39 #define IGC_ADVTXD_DCMD_RS 0x08000000
40 #define IGC_ADVTXD_DCMD_DEXT 0x20000000
41 #define IGC_ADVTXD_DCMD_VLE 0x40000000
42 #define IGC_ADVTXD_DCMD_TSE 0x80000000
43 #define IGC_ADVTXD_PAYLEN_SHIFT 14
44
45 #define IGC_RAR_ENTRIES 16
46
47
48 union igc_adv_rx_desc {
49 struct {
50 __le64 pkt_addr;
51 __le64 hdr_addr;
52 } read;
53 struct {
54 struct {
55 union {
56 __le32 data;
57 struct {
58 __le16 pkt_info;
59
60 __le16 hdr_info;
61 } hs_rss;
62 } lo_dword;
63 union {
64 __le32 rss;
65 struct {
66 __le16 ip_id;
67 __le16 csum;
68 } csum_ip;
69 } hi_dword;
70 } lower;
71 struct {
72 __le32 status_error;
73 __le16 length;
74 __le16 vlan;
75 } upper;
76 } wb;
77 };
78
79
80 #define IGC_TXDCTL_QUEUE_ENABLE 0x02000000
81
82
83 #define IGC_RXDCTL_QUEUE_ENABLE 0x02000000
84
85
86 #define IGC_SRRCTL_BSIZEPKT_SHIFT 10
87 #define IGC_SRRCTL_BSIZEHDRSIZE_SHIFT 2
88 #define IGC_SRRCTL_DESCTYPE_ADV_ONEBUF 0x02000000
89
90 #endif