1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * aQuantia Corporation Network Driver
4  * Copyright (C) 2014-2017 aQuantia Corporation. All rights reserved
5  */
6 
7 /* File aq_common.h: Basic includes for all files in project. */
8 
9 #ifndef AQ_COMMON_H
10 #define AQ_COMMON_H
11 
12 #include <linux/etherdevice.h>
13 #include <linux/pci.h>
14 #include <linux/if_vlan.h>
15 #include "aq_cfg.h"
16 #include "aq_utils.h"
17 
18 #define PCI_VENDOR_ID_AQUANTIA  0x1D6A
19 
20 #define AQ_DEVICE_ID_0001	0x0001
21 #define AQ_DEVICE_ID_D100	0xD100
22 #define AQ_DEVICE_ID_D107	0xD107
23 #define AQ_DEVICE_ID_D108	0xD108
24 #define AQ_DEVICE_ID_D109	0xD109
25 
26 #define AQ_DEVICE_ID_AQC100	0x00B1
27 #define AQ_DEVICE_ID_AQC107	0x07B1
28 #define AQ_DEVICE_ID_AQC108	0x08B1
29 #define AQ_DEVICE_ID_AQC109	0x09B1
30 #define AQ_DEVICE_ID_AQC111	0x11B1
31 #define AQ_DEVICE_ID_AQC112	0x12B1
32 
33 #define AQ_DEVICE_ID_AQC100S	0x80B1
34 #define AQ_DEVICE_ID_AQC107S	0x87B1
35 #define AQ_DEVICE_ID_AQC108S	0x88B1
36 #define AQ_DEVICE_ID_AQC109S	0x89B1
37 #define AQ_DEVICE_ID_AQC111S	0x91B1
38 #define AQ_DEVICE_ID_AQC112S	0x92B1
39 
40 #define HW_ATL_NIC_NAME "aQuantia AQtion 10Gbit Network Adapter"
41 
42 #define AQ_HWREV_ANY	0
43 #define AQ_HWREV_1	1
44 #define AQ_HWREV_2	2
45 
46 #define AQ_NIC_RATE_10G        BIT(0)
47 #define AQ_NIC_RATE_5G         BIT(1)
48 #define AQ_NIC_RATE_5GSR       BIT(2)
49 #define AQ_NIC_RATE_2GS        BIT(3)
50 #define AQ_NIC_RATE_1G         BIT(4)
51 #define AQ_NIC_RATE_100M       BIT(5)
52 
53 #define AQ_NIC_RATE_EEE_10G	BIT(6)
54 #define AQ_NIC_RATE_EEE_5G	BIT(7)
55 #define AQ_NIC_RATE_EEE_2GS	BIT(8)
56 #define AQ_NIC_RATE_EEE_1G	BIT(9)
57 
58 #endif /* AQ_COMMON_H */
59