linux/drivers/net/ethernet/chelsio/cxgb4/t4_hw.h

/*
 * This file is part of the Chelsio T4 Ethernet driver for Linux.
 *
 * Copyright (c) 2003-2014 Chelsio Communications, Inc. All rights reserved.
 *
 * This software is available to you under a choice of one of two
 * licenses.  You may choose to be licensed under the terms of the GNU
 * General Public License (GPL) Version 2, available from the file
 * COPYING in the main directory of this source tree, or the
 * OpenIB.org BSD license below:
 *
 *     Redistribution and use in source and binary forms, with or
 *     without modification, are permitted provided that the following
 *     conditions are met:
 *
 *      - Redistributions of source code must retain the above
 *        copyright notice, this list of conditions and the following
 *        disclaimer.
 *
 *      - Redistributions in binary form must reproduce the above
 *        copyright notice, this list of conditions and the following
 *        disclaimer in the documentation and/or other materials
 *        provided with the distribution.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

#ifndef __T4_HW_H
#define __T4_HW_H

#include <linux/types.h>

enum {};

enum {};

/* SGE context types */
enum ctxt_type {};

enum {};

enum {}; /* response entry types */

enum {};    /* mailbox owners */

enum {};

/* PCI-e memory window access */
enum pcie_memwin {};

struct sge_qstat {};

/*
 * Structure for last 128 bits of response descriptors
 */
struct rsp_ctrl {};

#define RSPD_NEWBUF_S
#define RSPD_NEWBUF_V(x)
#define RSPD_NEWBUF_F

#define RSPD_LEN_S
#define RSPD_LEN_M
#define RSPD_LEN_G(x)

#define RSPD_QID_S
#define RSPD_QID_M
#define RSPD_QID_G(x)

#define RSPD_GEN_S

#define RSPD_TYPE_S
#define RSPD_TYPE_M
#define RSPD_TYPE_G(x)

/* Rx queue interrupt deferral fields: counter enable and timer index */
#define QINTR_CNT_EN_S
#define QINTR_CNT_EN_V(x)
#define QINTR_CNT_EN_F

#define QINTR_TIMER_IDX_S
#define QINTR_TIMER_IDX_M
#define QINTR_TIMER_IDX_V(x)
#define QINTR_TIMER_IDX_G(x)

/*
 * Flash layout.
 */
#define FLASH_START
#define FLASH_MAX_SIZE

enum {};

#undef FLASH_START
#undef FLASH_MAX_SIZE

#define SGE_TIMESTAMP_S
#define SGE_TIMESTAMP_M
#define SGE_TIMESTAMP_V(x)
#define SGE_TIMESTAMP_G(x)

#define I2C_DEV_ADDR_A0
#define I2C_DEV_ADDR_A2
#define I2C_PAGE_SIZE
#define SFP_DIAG_TYPE_ADDR
#define SFP_DIAG_TYPE_LEN
#define SFP_DIAG_ADDRMODE
#define SFP_DIAG_IMPLEMENTED
#define SFF_8472_COMP_ADDR
#define SFF_8472_COMP_LEN
#define SFF_REV_ADDR
#define SFF_REV_LEN

#endif /* __T4_HW_H */