linux/drivers/scsi/bfa/include/defs/bfa_defs_ethport.h
<<
>>
Prefs
   1/*
   2 * Copyright (c) 2005-2009 Brocade Communications Systems, Inc.
   3 * All rights reserved
   4 * www.brocade.com
   5 *
   6 * Linux driver for Brocade Fibre Channel Host Bus Adapter.
   7 *
   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
  11 *
  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.
  16 */
  17
  18#ifndef __BFA_DEFS_ETHPORT_H__
  19#define __BFA_DEFS_ETHPORT_H__
  20
  21#include <defs/bfa_defs_status.h>
  22#include <protocol/types.h>
  23#include <cna/pstats/phyport_defs.h>
  24#include <cna/pstats/ethport_defs.h>
  25
  26struct bna_tx_info_s {
  27        u32    miniport_state;
  28        u32    adapter_state;
  29        u64    tx_count;
  30        u64    tx_wi;
  31        u64    tx_sg;
  32        u64    tx_tcp_chksum;
  33        u64    tx_udp_chksum;
  34        u64    tx_ip_chksum;
  35        u64    tx_lsov1;
  36        u64    tx_lsov2;
  37        u64    tx_max_sg_len ;
  38};
  39
  40struct bna_rx_queue_info_s {
  41        u16    q_id ;
  42        u16    buf_size ;
  43        u16    buf_count ;
  44        u16    rsvd ;
  45        u64    rx_count ;
  46        u64    rx_dropped ;
  47        u64    rx_unsupported ;
  48        u64    rx_internal_err ;
  49        u64    rss_count ;
  50        u64    vlan_count ;
  51        u64    rx_tcp_chksum ;
  52        u64    rx_udp_chksum ;
  53        u64    rx_ip_chksum ;
  54        u64    rx_hds ;
  55};
  56
  57struct bna_rx_q_set_s {
  58        u16    q_set_type;
  59        u32    miniport_state;
  60        u32    adapter_state;
  61        struct bna_rx_queue_info_s    rx_queue[2];
  62};
  63
  64struct bna_port_stats_s {
  65        struct bna_tx_info_s   tx_stats;
  66        u16        qset_count ;
  67        struct bna_rx_q_set_s  rx_qset[8];
  68};
  69
  70struct bfa_ethport_stats_s {
  71        struct bna_stats_txf    txf_stats[1];
  72        struct bna_stats_rxf    rxf_stats[1];
  73        struct bnad_drv_stats drv_stats;
  74};
  75
  76/**
  77 * Ethernet port events
  78 * Arguments below are in BFAL context from Mgmt
  79 * BFA_PORT_AEN_ETH_LINKUP:    [in]: mac [out]: mac
  80 * BFA_PORT_AEN_ETH_LINKDOWN:  [in]: mac [out]: mac
  81 * BFA_PORT_AEN_ETH_ENABLE:  [in]: mac [out]: mac
  82 * BFA_PORT_AEN_ETH_DISABLE:  [in]: mac [out]: mac
  83 *
  84 */
  85enum bfa_ethport_aen_event {
  86        BFA_ETHPORT_AEN_LINKUP = 1, /*  Base Port Ethernet link up event */
  87        BFA_ETHPORT_AEN_LINKDOWN = 2, /*  Base Port Ethernet link down event */
  88        BFA_ETHPORT_AEN_ENABLE = 3, /*  Base Port Ethernet link enable event */
  89        BFA_ETHPORT_AEN_DISABLE = 4, /*  Base Port Ethernet link disable
  90                                      * event */
  91};
  92
  93struct bfa_ethport_aen_data_s {
  94        mac_t mac;      /*  MAC address of the physical port */
  95};
  96
  97
  98#endif /* __BFA_DEFS_ETHPORT_H__ */
  99
lxr.linux.no kindly hosted by Redpill Linpro AS, provider of Linux consulting and operations services since 1995.