hxge_txdma.h revision fe930412c257f961ae67039de3b164b83717976a
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_HXGE_HXGE_TXDMA_H
#define _SYS_HXGE_HXGE_TXDMA_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
#include <hxge_txdma_hw.h>
#include <hpi_txdma.h>
#define TXDMA_RECLAIM_PENDING_DEFAULT 64
#define TX_FULL_MARK 3
/*
* Transmit load balancing definitions.
*/
#define HXGE_TX_LB_TCPUDP 0 /* default policy */
/*
* Descriptor ring empty:
* (1) head index is equal to tail index.
* (2) wrapped around bits are the same.
* Descriptor ring full:
* (1) head index is equal to tail index.
* (2) wrapped around bits are different.
*
*/
typedef struct _tx_msg_t {
int head;
int tail;
} tx_msg_t, *p_tx_msg_t;
/*
* TX Statistics.
*/
typedef struct _hxge_tx_ring_stats_t {
typedef struct _hxge_tdc_sys_stats {
typedef struct _tx_ring_t {
struct hxge_tdc_cfg *tdc_p;
} tx_ring_t, *p_tx_ring_t;
/* Transmit Mailbox */
typedef struct _tx_mbox_t {
} tx_mbox_t, *p_tx_mbox_t;
typedef struct _tx_rings_t {
} tx_rings_t, *p_tx_rings_t;
typedef struct _tx_mbox_areas_t {
/*
* Transmit prototypes.
*/
#ifdef __cplusplus
}
#endif
#endif /* _SYS_HXGE_HXGE_TXDMA_H */