/*
* This file and its contents are supplied under the terms of the
* Common Development and Distribution License ("CDDL"), version 1.0.
* You may only use this file in accordance with the terms of version
* 1.0 of the CDDL.
*
* A full copy of the text of the CDDL should have accompanied this
* source. A copy of the CDDL is also available via the Internet at
*/
/*
* This file is part of the Chelsio T4 Ethernet driver.
*
* Copyright (C) 2005-2013 Chelsio Communications. All rights reserved.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the LICENSE file included in this
* release for licensing terms and conditions.
*/
#ifndef __CXGBE_COMMON_H
#define __CXGBE_COMMON_H
#include "shared.h"
#include "t4_hw.h"
enum {
};
enum {
};
enum {
};
struct port_stats {
};
struct lb_port_stats {
};
struct tp_tcp_stats {
};
struct tp_usm_stats {
};
struct tp_fcoe_stats {
};
struct tp_err_stats {
};
struct tp_proxy_stats {
};
struct tp_cpl_stats {
};
struct tp_rdma_stats {
};
struct tp_params {
};
struct vpd_params {
unsigned int cclk;
};
struct pci_params {
unsigned int vpd_cap_addr;
unsigned char speed;
unsigned char width;
};
/*
* Firmware device log.
*/
struct devlog_params {
};
struct adapter_params {
unsigned int fw_vers;
unsigned int tp_vers;
unsigned int cim_la_size;
unsigned int portvec;
unsigned int offload;
unsigned char bypass;
unsigned int ofldq_wr_cred;
};
enum { /* chip revisions */
T4_REV_A = 0,
};
struct trace_params {
unsigned short snap_len;
unsigned short min_len;
unsigned char skip_ofst;
unsigned char skip_len;
unsigned char invert;
unsigned char port;
};
struct link_config {
};
#include "adapter.h"
#ifndef PCI_VENDOR_ID_CHELSIO
#endif
unsigned int start_idx);
struct fw_filter_wr;
struct link_config *lc);
int filter_index, int enable);
int filter_index, int *enabled);
unsigned int flags);
size_t n);
size_t n);
unsigned int *valp);
const unsigned int *valp);
unsigned int *valp);
unsigned int *pif_req_wrptr, unsigned int *pif_rsp_wrptr);
struct tp_tcp_stats *v6);
struct tp_fcoe_stats *st);
unsigned int start, unsigned int n);
unsigned int *rss_size);
bool sleep_ok);
unsigned int nblinks);
unsigned int fl1id);
/* common.c */
void *rpl);
void *rpl);
unsigned int ticks);
int is_bypass_device(int device);
#endif /* __CXGBE_COMMON_H */