/*
* 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 _NPI_TXDMA_H
#define _NPI_TXDMA_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
#include <npi.h>
#include <nxge_txdma_hw.h>
{ \
status = NPI_SUCCESS; \
if (!TXDMA_CHANNEL_VALID(channel)) { \
} else if (!TXDMA_PAGE_VALID(pn)) { \
} else if (!TXDMA_FUNC_VALID(fn)) { \
} \
}
{ \
status = NPI_SUCCESS; \
if (!TXDMA_CHANNEL_VALID(channel)) { \
} else if (!TXDMA_PAGE_VALID(pn)) { \
} \
}
typedef enum _txdma_cs_cntl_e {
typedef enum _txdma_log_cfg_e {
typedef enum _txdma_ent_msk_cfg_e {
typedef struct _txdma_ring_errlog {
/*
* Register offset (0x200 bytes for each channel) for logical pages registers.
*/
/*
* Register offset (0x200 bytes for each channel) for transmit ring registers.
* (Ring configuration, kick register, event mask, control and status,
* mailbox, prefetch, ring errors).
*/
/*
* Register offset (0x8 bytes for each port) for transmit mapping registers.
*/
/*
* Register offset (0x10 bytes for each channel) for transmit DRR and ring
* usage registers.
*/
/*
* PIO macros to read and write the transmit registers.
*/
/*
* Transmit Descriptor Definitions.
*/
/*
* Transmit NPI error codes
*/
/*
* Transmit DMA Channel NPI Prototypes.
*/
uint32_t);
uint8_t);
uint32_t);
uint32_t);
uint32_t);
uint32_t *);
uint32_t);
int);
#ifdef __cplusplus
}
#endif
#endif /* _NPI_TXDMA_H */