/*
* Copyright (C) 2007-2014 VMware, Inc. All rights reserved.
*
* The contents of this file are subject to the terms of the Common
* Development and Distribution License (the "License") version 1.0
* and no later version. You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
*
* See the License for the specific language governing permissions
* and limitations under the License.
*/
/*
* Copyright (c) 2012, 2016 by Delphix. All rights reserved.
*/
#ifndef _VMXNET3_H_
#define _VMXNET3_H_
#include <sys/ethernet.h>
#include <sys/ddi_impldefs.h>
#include <sys/mac_provider.h>
#include <sys/mac_ether.h>
#include <vmxnet3_defs.h>
typedef struct vmxnet3_dmabuf_t {
typedef struct vmxnet3_cmdring_t {
typedef struct vmxnet3_compring_t {
typedef struct vmxnet3_metatx_t {
typedef struct vmxnet3_txqueue_t {
typedef struct vmxnet3_rxbuf_t {
typedef struct vmxnet3_bufdesc_t {
typedef struct vmxnet3_rxpool_t {
unsigned int nBufs;
unsigned int nBufsLimit;
typedef struct vmxnet3_rxqueue_t {
typedef struct vmxnet3_softc_t {
int instance;
int intrType;
int intrMaskMode;
int intrCap;
typedef struct vmxnet3_kstats_t {
int vmxnet3_dmaerr2errno(int);
int def);
extern int vmxnet3s_debug;
/* Logging stuff */
#ifdef DEBUG
if (Level <= vmxnet3s_debug) { \
} \
}
#else
#endif
/* Default ring size */
/* Register access helpers */
(Value))
(Value))
/* Misc helpers */
sizeof (Vmxnet3_TxQueueDesc)))
/* Rings handling */
(Idx)++; \
(Idx) = 0; \
} \
}
if ((Idx) == 0) { \
} \
(Idx)--; \
}
#endif /* _VMXNET3_H_ */