hxge_common.h revision 6afd6cae9f08dc0b5e9999820ce01095af9d2eab
/*
* 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_COMMON_H
#define _SYS_HXGE_HXGE_COMMON_H
#include <hxge_defs.h>
#include <hxge_pfc.h>
#include <hxge_common_impl.h>
#ifdef __cplusplus
extern "C" {
#endif
#define HXGE_DMA_START B_TRUE
#define HXGE_DMA_STOP B_FALSE
#define HXGE_TIMER_RESO 2
#define HXGE_TIMER_LDG 2
/*
* Receive and Transmit DMA definitions
*/
#ifdef _DMA_USES_VIRTADDR
#define HXGE_DMA_BLOCK 1
#else
#endif
#define HXGE_RBR_RBB_MIN 128
#if defined(__sparc)
#else
#endif
#define HXGE_RCR_DEFAULT HXGE_RCR_SZ
#define HXGE_TX_RING_DEFAULT 2048
#define RBR_BKSIZE_4K 0
#define RBR_BKSIZE_8K 1
#define RBR_BUFSZ2_2K 0
#define RBR_BUFSZ2_4K 1
#define RBR_BUFSZ1_1K 0
#define RBR_BUFSZ1_2K 1
#define RBR_BUFSZ1_1K_BYTES 1024
#define RBR_BUFSZ0_256B 0
#define RBR_BUFSZ0_512B 1
#define RBR_BUFSZ0_1K 2
#define RBR_BUFSZ0_256_BYTES 256
#define RBR_BUFSZ0_512_BYTES 512
#define RBR_BUFSZ0_1K_BYTES 1024
/*
* VLAN table configuration
*/
typedef struct hxge_mv_cfg {
typedef struct hxge_param_map {
#if defined(_BIG_ENDIAN)
#else
#endif
typedef struct hxge_hw_pt_cfg {
/* per port configuration */
typedef struct hxge_dma_pt_cfg {
/* classification configuration */
typedef struct hxge_class_pt_cfg {
/* VLAN table */
/* class config value */
typedef struct hxge_hw_list {
struct hxge_hw_list *next;
#ifdef __cplusplus
}
#endif
#endif /* _SYS_HXGE_HXGE_COMMON_H */