dls_impl.h revision 12554c89453ad4722e4a8e4af492e416d696138e
/*
* 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_DLS_IMPL_H
#define _SYS_DLS_IMPL_H
#pragma ident "%Z%%M% %I% %E% SMI"
#include <sys/dls_soft_ring.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct dls_multicst_addr_s dls_multicst_addr_t;
struct dls_multicst_addr_s {
};
typedef struct dls_link_s dls_link_t;
struct dls_link_s {
char dl_name[MAXNAMELEN];
const mac_info_t *dl_mip;
};
typedef struct dls_impl_s dls_impl_t;
typedef struct dls_head_s dls_head_t;
typedef struct dls_vlan_s {
} dls_vlan_t;
struct dls_impl_s {
const mac_info_t *di_mip;
void *di_rx_arg;
const mac_txinfo_t *di_txinfo;
};
struct dls_head_s {
};
extern void dls_link_init(void);
extern int dls_link_fini(void);
extern void dls_link_rele(dls_link_t *);
extern int dls_mac_hold(dls_link_t *);
extern void dls_mac_rele(dls_link_t *);
extern void dls_mac_stat_create(dls_vlan_t *);
extern void dls_mac_stat_destroy(dls_vlan_t *);
extern void dls_vlan_init(void);
extern int dls_vlan_fini(void);
extern int dls_vlan_create(const char *, const char *, uint_t,
uint16_t);
extern int dls_vlan_destroy(const char *);
extern void dls_vlan_rele(dls_vlan_t *);
extern int dls_vlan_walk(int (*)(dls_vlan_t *, void *), void *);
extern int dls_vlan_rele_by_name(const char *);
extern void dls_minor_rele(minor_t);
extern int dls_vlan_getzoneid(char *, zoneid_t *);
extern void dls_init(void);
extern int dls_fini(void);
dls_rx_t *, void **);
dls_rx_t *, void **);
#ifdef __cplusplus
}
#endif
#endif /* _SYS_DLS_IMPL_H */