blob: 570152b460fda124846cd7709377d3d3daa7d6e7 [file] [log] [blame]
Ratan Guptabbe45792018-03-23 00:22:55 +05301namespace phosphor
2{
3namespace network
4{
5namespace ncsi
6{
7
8/* @brief This function will ask underlying NCSI driver
9 * to set a specific package or package/channel
10 * combination as the preferred choice.
11 * This function talks with the NCSI driver over
12 * netlink messages.
13 * @param[in] ifindex - Interface Index.
14 * @param[in] package - NCSI Package.
15 * @param[in] channel - Channel number with in the package.
16 * @returns 0 on success and negative value for failure.
17 */
18int setChannel(int ifindex, int package, int channel);
19
20/* @brief This function will ask underlying NCSI driver
21 * to clear any preferred setting from the given
22 * interface.
23 * This function talks with the NCSI driver over
24 * netlink messages.
25 * @param[in] ifindex - Interface Index.
26 * @returns 0 on success and negative value for failure.
27 */
28int clearInterface(int ifindex);
29
Ratan Guptaaac603e2018-03-23 00:25:54 +053030/* @brief This function is used to dump all the info
31 * of the package and the channels underlying
32 * the package.
33 * @param[in] ifindex - Interface Index.
34 * @param[in] package - NCSI Package.
35 * @returns 0 on success and negative value for failure.
36 */
37int getInfo(int ifindex, int package);
38
Ratan Guptabbe45792018-03-23 00:22:55 +053039}//namespace ncsi
40}//namespace network
41}//namespace phosphor
42