f310e154f53c32e5e085c95a08d9500fd8ccfd5d
[dpdk.git] / drivers / net / txgbe / base / txgbe_type.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2015-2020
3  */
4
5 #ifndef _TXGBE_TYPE_H_
6 #define _TXGBE_TYPE_H_
7
8 #define TXGBE_ALIGN                             128 /* as intel did */
9
10 #include "txgbe_osdep.h"
11 #include "txgbe_devids.h"
12
13 struct txgbe_mac_info {
14         u8 perm_addr[ETH_ADDR_LEN];
15         u32 num_rar_entries;
16 };
17
18 struct txgbe_hw {
19         void IOMEM *hw_addr;
20         void *back;
21         struct txgbe_mac_info mac;
22
23         u16 device_id;
24         u16 vendor_id;
25         u16 subsystem_device_id;
26         u16 subsystem_vendor_id;
27
28         bool allow_unsupported_sfp;
29
30         uint64_t isb_dma;
31         void IOMEM *isb_mem;
32 };
33
34 #endif /* _TXGBE_TYPE_H_ */