/*
* 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 2010 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _VR_H
#define _VR_H
#ifdef __cplusplus
extern "C" {
#endif
/*
* Number of descriptor entries for each ring. The no. of descriptors is bound
* to 4K per ring (256 entries a 16 bytes).
*/
/*
* The number of TX interrupts to "schedule" on the ring.
*/
/*
* The the periodic check interval of 2 seconds, in nano seconds
*/
/*
* The number of TX checks that must pass without progress before we decide
* to reset the adapter.
*/
/*
* All possible interrupts with the unwanted commented.
*/
VR_ICR0_TX_DONE | \
VR_ICR0_RX_ERR | \
VR_ICR0_TX_ERR | \
VR_ICR0_BUSERR | \
/* VR_ICR0_STATSMAX | */ \
/* VR_ICR0_RX_EARLY | */ \
VR_ICR0_RX_NOBUF | \
VR_ICR0_TX_ABORT | \
/* VR_ICR1_TIMER1 | */ \
/* VR_ICR1_PHYEVENT | */ \
/* VR_ICR1_TDERR | */ \
/* VR_ICR1_SSRCI | */ \
/* VR_ICR1_UINTR_SET| */ \
/* VR_ICR1_UINTR_CLR| */ \
/* VR_ICR1_PWEI */)
/*
* Our definitions of RX and TX errors.
*/
#define VR_TX_MAX_INTR_DISTANCE \
/*
* PCI identification for the Rhine's.
*/
/*
* Feature bits for the different cards.
*/
#define VR_FEATURE_NONE (0)
/*
* Bug bits for the different cards.
*/
#define VR_BUG_NONE (0)
/*
* Clear bit b in register r.
*/
/*
* Set bit b in register r.
*/
/*
* Set bits b in register r to value v.
*/
/*
* The descriptor as used by the MAC.
*/
typedef struct {
/*
* A structure describing an DMA object.
*/
typedef struct data_dma {
char *buf;
/*
* A descriptor as used by the host.
*/
typedef struct vr_desc {
} vr_desc_t;
typedef struct vr_ring {
} vr_ring_t;
typedef struct {
} vr_tx_t;
typedef struct {
} vr_rx_t;
typedef enum {
typedef enum {
typedef enum {
typedef enum {
/*
* Pause variations.
*/
typedef enum {
/*
* Type of medium attachement unit.
*/
typedef enum {
} vr_mau_t;
typedef struct {
} vr_link_t;
typedef enum {
typedef struct {
} mii_t;
/*
* A structure defining the various types of cards and their habits.
*/
typedef struct {
} chip_info_t;
/*
* A structure describing the card.
*/
typedef struct {
} vr_chip_t;
/*
* Operational parameters.
*/
typedef struct {
} vr_param_t;
typedef enum {
VR_SUCCESS = 0,
} vr_result_t;
typedef struct {
} vr_stats_t;
/*
* Access attributes for the card.
*/
typedef struct {
} vr_acc_t;
/*
* Instance state structure.
*/
typedef struct {
int nsets;
} vr_t;
/*
* Function prototypes.
*/
int vr_mac_start(void *vrp);
void vr_mac_stop(void *vrp);
int vr_mac_set_ether_addr(void *vrp,
void *pr_val);
#ifdef __cplusplus
}
#endif
#endif /* _VR_H */