diff options
Diffstat (limited to 'include/net/dsa.h')
| -rw-r--r-- | include/net/dsa.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/net/dsa.h b/include/net/dsa.h index ed3c34bbb67a..92be34791963 100644 --- a/include/net/dsa.h +++ b/include/net/dsa.h | |||
| @@ -275,6 +275,16 @@ struct dsa_switch_driver { | |||
| 275 | int (*get_regs_len)(struct dsa_switch *ds, int port); | 275 | int (*get_regs_len)(struct dsa_switch *ds, int port); |
| 276 | void (*get_regs)(struct dsa_switch *ds, int port, | 276 | void (*get_regs)(struct dsa_switch *ds, int port, |
| 277 | struct ethtool_regs *regs, void *p); | 277 | struct ethtool_regs *regs, void *p); |
| 278 | |||
| 279 | /* | ||
| 280 | * Bridge integration | ||
| 281 | */ | ||
| 282 | int (*port_join_bridge)(struct dsa_switch *ds, int port, | ||
| 283 | u32 br_port_mask); | ||
| 284 | int (*port_leave_bridge)(struct dsa_switch *ds, int port, | ||
| 285 | u32 br_port_mask); | ||
| 286 | int (*port_stp_update)(struct dsa_switch *ds, int port, | ||
| 287 | u8 state); | ||
| 278 | }; | 288 | }; |
| 279 | 289 | ||
| 280 | void register_switch_driver(struct dsa_switch_driver *type); | 290 | void register_switch_driver(struct dsa_switch_driver *type); |
