2022-11-21 13:55:48 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
|
|
|
|
|
|
#ifndef __DSA_SWITCH_H
|
|
|
|
|
#define __DSA_SWITCH_H
|
|
|
|
|
|
2022-11-21 13:55:49 +00:00
|
|
|
struct dsa_switch_tree;
|
2022-11-21 13:55:48 +00:00
|
|
|
struct dsa_switch;
|
|
|
|
|
|
2022-11-21 13:55:49 +00:00
|
|
|
int dsa_tree_notify(struct dsa_switch_tree *dst, unsigned long e, void *v);
|
|
|
|
|
int dsa_broadcast(unsigned long e, void *v);
|
|
|
|
|
|
2022-11-21 13:55:48 +00:00
|
|
|
int dsa_switch_register_notifier(struct dsa_switch *ds);
|
|
|
|
|
void dsa_switch_unregister_notifier(struct dsa_switch *ds);
|
|
|
|
|
|
|
|
|
|
#endif
|