2 * Copyright (c) 2005-2009 Brocade Communications Systems, Inc.
6 * Linux driver for Brocade Fibre Channel Host Bus Adapter.
8 * This program is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License (GPL) Version 2 as
10 * published by the Free Software Foundation
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
18 #ifndef __BFA_DEFS_ETHPORT_H__
19 #define __BFA_DEFS_ETHPORT_H__
21 #include <defs/bfa_defs_status.h>
22 #include <defs/bfa_defs_port.h>
23 #include <protocol/types.h>
24 #include <cna/pstats/phyport_defs.h>
25 #include <cna/pstats/ethport_defs.h>
27 struct bna_tx_info_s
{
41 struct bna_rx_queue_info_s
{
58 struct bna_rx_q_set_s
{
62 struct bna_rx_queue_info_s rx_queue
[2];
65 struct bna_port_stats_s
{
66 struct bna_tx_info_s tx_stats
;
68 struct bna_rx_q_set_s rx_qset
[8];
71 struct bfa_ethport_stats_s
{
72 struct bna_stats_txf txf_stats
[1];
73 struct bna_stats_rxf rxf_stats
[1];
74 struct bnad_drv_stats drv_stats
;
78 * Ethernet port events
79 * Arguments below are in BFAL context from Mgmt
80 * BFA_PORT_AEN_ETH_LINKUP: [in]: mac [out]: mac
81 * BFA_PORT_AEN_ETH_LINKDOWN: [in]: mac [out]: mac
82 * BFA_PORT_AEN_ETH_ENABLE: [in]: mac [out]: mac
83 * BFA_PORT_AEN_ETH_DISABLE: [in]: mac [out]: mac
86 enum bfa_ethport_aen_event
{
87 BFA_ETHPORT_AEN_LINKUP
= 1, /* Base Port Ethernet link up event */
88 BFA_ETHPORT_AEN_LINKDOWN
= 2, /* Base Port Ethernet link down event */
89 BFA_ETHPORT_AEN_ENABLE
= 3, /* Base Port Ethernet link enable event */
90 BFA_ETHPORT_AEN_DISABLE
= 4, /* Base Port Ethernet link disable
94 struct bfa_ethport_aen_data_s
{
95 mac_t mac
; /* MAC address of the physical port */
99 #endif /* __BFA_DEFS_ETHPORT_H__ */