mac_impl.h revision 1f8aaf0dbb5709114b4d2925d6b4ce5f931819ed
/*
* 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 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_MAC_IMPL_H
#define _SYS_MAC_IMPL_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
/*
* Statistics maintained internally by the mac module.
*/
enum mac_mod_stat {
};
typedef struct mac_multicst_addr_s mac_multicst_addr_t;
struct mac_multicst_addr_s {
};
typedef struct mac_notify_fn_s mac_notify_fn_t;
struct mac_notify_fn_s {
void *mnf_arg;
};
typedef struct mac_rx_fn_s mac_rx_fn_t;
struct mac_rx_fn_s {
void *mrf_arg;
};
typedef struct mac_txloop_fn_s mac_txloop_fn_t;
struct mac_txloop_fn_s {
void *mtf_arg;
};
typedef struct mactype_s {
const char *mt_ident;
} mactype_t;
/*
* Each registered MAC is associated with a mac_t structure.
*/
typedef struct mac_impl_s {
const char *mi_drvname;
void *mi_driver; /* Driver private data */
void *mi_pdata;
void *mi_resource_add_arg;
/* for removal */
} mac_impl_t;
typedef struct mac_notify_task_arg {
extern void mac_init(void);
extern int mac_fini(void);
extern void mac_stat_create(mac_impl_t *);
extern void mac_stat_destroy(mac_impl_t *);
#ifdef __cplusplus
}
#endif
#endif /* _SYS_MAC_IMPL_H */