1
2
3
4
5
6
7#ifndef __QETH_L2_H__
8#define __QETH_L2_H__
9
10#include "qeth_core.h"
11
12extern const struct attribute_group *qeth_l2_attr_groups[];
13
14int qeth_l2_create_device_attributes(struct device *);
15void qeth_l2_remove_device_attributes(struct device *);
16void qeth_l2_setup_bridgeport_attrs(struct qeth_card *card);
17int qeth_bridgeport_query_ports(struct qeth_card *card,
18 enum qeth_sbp_roles *role,
19 enum qeth_sbp_states *state);
20int qeth_bridgeport_setrole(struct qeth_card *card, enum qeth_sbp_roles role);
21int qeth_bridgeport_an_set(struct qeth_card *card, int enable);
22
23int qeth_l2_vnicc_set_state(struct qeth_card *card, u32 vnicc, bool state);
24int qeth_l2_vnicc_get_state(struct qeth_card *card, u32 vnicc, bool *state);
25int qeth_l2_vnicc_set_timeout(struct qeth_card *card, u32 timeout);
26int qeth_l2_vnicc_get_timeout(struct qeth_card *card, u32 *timeout);
27bool qeth_l2_vnicc_is_in_use(struct qeth_card *card);
28
29struct qeth_mac {
30 u8 mac_addr[ETH_ALEN];
31 u8 disp_flag:2;
32 struct hlist_node hnode;
33};
34
35#endif
36