/*
* 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 _SYS_NXGE_NXGE_ZCP_HW_H
#define _SYS_NXGE_NXGE_ZCP_HW_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
#include <nxge_defs.h>
/*
* Neptune Zerocopy Hardware definitions
* Updated to reflect PRM-0.8.
*/
typedef union _zcp_reset_cfifo {
struct {
#if defined(_BIG_ENDIAN)
#endif
struct {
#if defined(_BIT_FIELDS_HTOL)
#elif defined(_BIT_FIELDS_LTOH)
#endif
} ldw;
#if !defined(_BIG_ENDIAN)
#endif
} bits;
/* NOTE: Same as RX_LOG_PAGE_HDL */
/* Data Structures */
typedef union zcp_config_reg_u {
struct {
#if defined(_BIG_ENDIAN)
#endif
struct {
#if defined(_BIT_FIELDS_HTOL)
#elif defined(_BIT_FIELDS_LTOH)
#endif
} ldw;
#if !defined(_BIG_ENDIAN)
#endif
} bits;
typedef union zcp_int_stat_reg_u {
struct {
#if defined(_BIG_ENDIAN)
#endif
struct {
#if defined(_BIT_FIELDS_HTOL)
#elif defined(_BIT_FIELDS_LTOH)
#endif
} ldw;
#if !defined(_BIG_ENDIAN)
#endif
} bits;
typedef union zcp_bam_region_reg_u {
struct {
#if defined(_BIG_ENDIAN)
#endif
struct {
#if defined(_BIT_FIELDS_HTOL)
#elif defined(_BIT_FIELDS_LTOH)
#endif
} ldw;
#if !defined(_BIG_ENDIAN)
#endif
} bits;
typedef union zcp_dst_region_reg_u {
struct {
#if defined(_BIG_ENDIAN)
#endif
struct {
#if defined(_BIT_FIELDS_HTOL)
#elif defined(_BIT_FIELDS_LTOH)
#endif
} ldw;
#if !defined(_BIG_ENDIAN)
#endif
} bits;
typedef enum tbuf_size_e {
TBUF_4K = 0,
} tbuf_size_t;
typedef enum tbuf_num_e {
TBUF_NUM_4 = 0,
} tbuf_num_t;
typedef enum tmode_e {
TMODE_BASIC = 0,
} tmode_t;
typedef struct tte_sflow_attr_s {
union {
struct {
#if defined(_BIG_ENDIAN)
#endif
struct {
#if defined(_BIT_FIELDS_HTOL)
#elif defined(_BIT_FIELDS_LTOH)
#endif
} ldw;
#if !defined(_BIG_ENDIAN)
#endif
} bits;
} qw0;
union {
struct {
#if defined(_BIG_ENDIAN)
#endif
struct {
#if defined(_BIT_FIELDS_HTOL)
#elif defined(_BIT_FIELDS_LTOH)
#endif
} ldw;
#if !defined(_BIG_ENDIAN)
#endif
} bits;
} qw1;
union {
struct {
#if defined(_BIG_ENDIAN)
#endif
struct {
#if defined(_BIT_FIELDS_HTOL)
#elif defined(_BIT_FIELDS_LTOH)
#endif
} ldw;
#if !defined(_BIG_ENDIAN)
#endif
} bits;
} qw2;
union {
struct {
#if defined(_BIG_ENDIAN)
#endif
struct {
#if defined(_BIT_FIELDS_HTOL)
#elif defined(_BIT_FIELDS_LTOH)
#endif
} ldw;
#if !defined(_BIG_ENDIAN)
#endif
} bits;
} qw3;
union {
struct {
#if defined(_BIG_ENDIAN)
#endif
struct {
#if defined(_BIT_FIELDS_HTOL)
#elif defined(_BIT_FIELDS_LTOH)
#endif
} ldw;
#if !defined(_BIG_ENDIAN)
#endif
} bits;
} qw4;
typedef enum tring_size_e {
TRING_SIZE_8 = 0,
} tring_size_t;
typedef struct tte_dflow_attr_s {
union {
struct {
#if defined(_BIG_ENDIAN)
#endif
struct {
#if defined(_BIT_FIELDS_HTOL)
#elif defined(_BIT_FIELDS_LTOH)
#endif
} ldw;
#if !defined(_BIG_ENDIAN)
#endif
} bits;
} qw0;
union {
struct {
#if defined(_BIG_ENDIAN)
#endif
struct {
#if defined(_BIT_FIELDS_HTOL)
#elif defined(_BIT_FIELDS_LTOH)
#endif
} ldw;
#if !defined(_BIG_ENDIAN)
#endif
} bits;
} qw1;
union {
struct {
#if defined(_BIG_ENDIAN)
#endif
struct {
#if defined(_BIT_FIELDS_HTOL)
#elif defined(_BIT_FIELDS_LTOH)
#endif
} ldw;
#if !defined(_BIG_ENDIAN)
#endif
} bits;
} qw2;
union {
struct {
#if defined(_BIG_ENDIAN)
#endif
struct {
#if defined(_BIT_FIELDS_HTOL)
#elif defined(_BIT_FIELDS_LTOH)
#endif
} ldw;
#if !defined(_BIG_ENDIAN)
#endif
} bits;
} qw3;
union {
struct {
#if defined(_BIG_ENDIAN)
#endif
struct {
#if defined(_BIT_FIELDS_HTOL)
#elif defined(_BIT_FIELDS_LTOH)
#endif
} ldw;
#if !defined(_BIG_ENDIAN)
#endif
} bits;
} qw4;
typedef struct zcp_ram_unit_s {
typedef enum dmaw_type_e {
DMAW_NO_CROSS_BUF = 0,
} dmaw_type_t;
typedef union zcp_ram_data_u {
typedef union zcp_ram_access_u {
struct {
#if defined(_BIG_ENDIAN)
#endif
struct {
#if defined(_BIT_FIELDS_HTOL)
#elif defined(_BIT_FIELDS_LTOH)
#endif
} ldw;
#if !defined(_BIG_ENDIAN)
#endif
} bits;
#define ZCP_RAM_WR 0
#define ZCP_RAM_SEL_BAM0 0
typedef union zcp_ram_benable_u {
struct {
#if defined(_BIG_ENDIAN)
#endif
struct {
#if defined(_BIT_FIELDS_HTOL)
#elif defined(_BIT_FIELDS_LTOH)
#endif
} ldw;
#if !defined(_BIG_ENDIAN)
#endif
} bits;
typedef union zcp_training_vector_u {
struct {
#if defined(_BIG_ENDIAN)
#endif
struct {
#if defined(_BIT_FIELDS_HTOL)
#elif defined(_BIT_FIELDS_LTOH)
#endif
} ldw;
#if !defined(_BIG_ENDIAN)
#endif
} bits;
typedef union zcp_state_machine_u {
struct {
#if defined(_BIG_ENDIAN)
#endif
struct {
#if defined(_BIT_FIELDS_HTOL)
#elif defined(_BIT_FIELDS_LTOH)
#endif
} ldw;
#if !defined(_BIG_ENDIAN)
#endif
} bits;
typedef struct zcp_hdr_s {
} zcp_hdr_t;
typedef union _zcp_ecc_ctrl {
struct {
#if defined(_BIG_ENDIAN)
#endif
struct {
#if defined(_BIT_FIELDS_HTOL)
#elif defined(_BIT_FIELDS_LTOH)
#else
#endif
} w0;
#if !defined(_BIG_ENDIAN)
#endif
} bits;
#ifdef __cplusplus
}
#endif
#endif /* _SYS_NXGE_NXGE_ZCP_HW_H */