npi_ipp.h revision 4496171313bed39e96f21bc2f9faf2868e267ae3
/*
* 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 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _NPI_IPP_H
#define _NPI_IPP_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
#include <npi.h>
#include <nxge_ipp_hw.h>
/* IBTP IPP Configuration */
typedef enum ipp_config_e {
} ipp_config_t;
typedef enum ipp_iconfig_e {
typedef enum ipp_counter_e {
CNT_IPP_DISCARD_PKT = 0x00000001,
CNT_IPP_TCP_CKSUM_ERR = 0x00000002,
CNT_IPP_ECC_ERR = 0x00000004,
CNT_IPP_ALL = 0x00000007
typedef enum ipp_port_cnt_idx_e {
HWCI_IPP_PKT_DISCARD = 0,
/* IPP specific errors */
#define IPP_MAX_PKT_BYTES_INVALID 0x50
#define IPP_FIFO_ADDR_INVALID 0x51
/* IPP error return macros */
#define NPI_IPP_PORT_INVALID(portn)\
#define NPI_IPP_OPCODE_INVALID(portn)\
#define NPI_IPP_CONFIG_INVALID(portn)\
#define NPI_IPP_MAX_PKT_BYTES_INVALID(portn)\
((IPP_BLK_ID << NPI_BLOCK_ID_SHIFT) |\
#define NPI_IPP_COUNTER_INVALID(portn)\
#define NPI_IPP_RESET_FAILED(portn)\
#define NPI_IPP_FIFO_ADDR_INVALID(portn)\
((IPP_BLK_ID << NPI_BLOCK_ID_SHIFT) |\
}
}
/* IPP NPI function prototypes */
uint16_t *);
uint16_t *);
uint32_t);
ipp_status_t *);
uint16_t *);
uint16_t *);
uint32_t *);
uint16_t *);
uint16_t *);
uint8_t *);
uint16_t *);
uint16_t *);
#ifdef __cplusplus
}
#endif
#endif /* _NPI_IPP_H */