]>
git.ipfire.org Git - people/ms/mstpd.git/blob - driver_deps.c
2 * driver_deps.c Driver-specific code.
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version
7 * 2 of the License, or (at your option) any later version.
9 * Authors: Vitalii Demianets <vitas@nppfactor.kiev.ua>
15 #include <asm/byteorder.h>
21 * Set new state (BR_STATE_xxx) for the given port and MSTI.
22 * Return new actual state (BR_STATE_xxx) from driver.
24 int driver_set_new_state(per_tree_port_t
*ptp
, int new_state
)
26 /* TODO: insert driver-specific code here */
30 void driver_flush_all_fids(per_tree_port_t
*ptp
)
32 /* TODO: do real flushing.
33 * Make it asynchronous, with completion function calling
34 * MSTP_IN_all_fids_flushed(ptp)
36 MSTP_IN_all_fids_flushed(ptp
);