mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
[swconfig] allow loading port maps from OF
Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36283 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -98,6 +98,7 @@ struct switch_dev_ops {
|
||||
};
|
||||
|
||||
struct switch_dev {
|
||||
struct device_node *of_node;
|
||||
const struct switch_dev_ops *ops;
|
||||
/* will be automatically filled */
|
||||
char devname[IFNAMSIZ];
|
||||
@@ -118,6 +119,7 @@ struct switch_dev {
|
||||
|
||||
struct mutex sw_mutex;
|
||||
struct switch_port *portbuf;
|
||||
struct switch_portmap *portmap;
|
||||
|
||||
char buf[128];
|
||||
|
||||
@@ -131,6 +133,11 @@ struct switch_port {
|
||||
u32 flags;
|
||||
};
|
||||
|
||||
struct switch_portmap {
|
||||
u32 virt;
|
||||
const char *s;
|
||||
};
|
||||
|
||||
struct switch_val {
|
||||
const struct switch_attr *attr;
|
||||
int port_vlan;
|
||||
|
||||
Reference in New Issue
Block a user