Merge branch 'topic/fixes' into for-linus
[sfrench/cifs-2.6.git] / drivers / net / ethernet / aquantia / atlantic / aq_common.h
1 /*
2  * aQuantia Corporation Network Driver
3  * Copyright (C) 2014-2017 aQuantia Corporation. All rights reserved
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms and conditions of the GNU General Public License,
7  * version 2, as published by the Free Software Foundation.
8  */
9
10 /* File aq_common.h: Basic includes for all files in project. */
11
12 #ifndef AQ_COMMON_H
13 #define AQ_COMMON_H
14
15 #include <linux/etherdevice.h>
16 #include <linux/pci.h>
17
18 #include "ver.h"
19 #include "aq_cfg.h"
20 #include "aq_utils.h"
21
22 #define PCI_VENDOR_ID_AQUANTIA  0x1D6A
23
24 #define AQ_DEVICE_ID_0001       0x0001
25 #define AQ_DEVICE_ID_D100       0xD100
26 #define AQ_DEVICE_ID_D107       0xD107
27 #define AQ_DEVICE_ID_D108       0xD108
28 #define AQ_DEVICE_ID_D109       0xD109
29
30 #define AQ_DEVICE_ID_AQC100     0x00B1
31 #define AQ_DEVICE_ID_AQC107     0x07B1
32 #define AQ_DEVICE_ID_AQC108     0x08B1
33 #define AQ_DEVICE_ID_AQC109     0x09B1
34 #define AQ_DEVICE_ID_AQC111     0x11B1
35 #define AQ_DEVICE_ID_AQC112     0x12B1
36
37 #define AQ_DEVICE_ID_AQC100S    0x80B1
38 #define AQ_DEVICE_ID_AQC107S    0x87B1
39 #define AQ_DEVICE_ID_AQC108S    0x88B1
40 #define AQ_DEVICE_ID_AQC109S    0x89B1
41 #define AQ_DEVICE_ID_AQC111S    0x91B1
42 #define AQ_DEVICE_ID_AQC112S    0x92B1
43
44 #define AQ_DEVICE_ID_AQC111E    0x51B1
45 #define AQ_DEVICE_ID_AQC112E    0x52B1
46
47 #define HW_ATL_NIC_NAME "aQuantia AQtion 10Gbit Network Adapter"
48
49 #define AQ_HWREV_ANY    0
50 #define AQ_HWREV_1      1
51 #define AQ_HWREV_2      2
52
53 #define AQ_NIC_RATE_10G        BIT(0)
54 #define AQ_NIC_RATE_5G         BIT(1)
55 #define AQ_NIC_RATE_5GSR       BIT(2)
56 #define AQ_NIC_RATE_2GS        BIT(3)
57 #define AQ_NIC_RATE_1G         BIT(4)
58 #define AQ_NIC_RATE_100M       BIT(5)
59
60 #endif /* AQ_COMMON_H */