xref: /openbmc/linux/net/ncsi/ncsi-netlink.h (revision c67e8ec0)
1 /*
2  * Copyright Samuel Mendoza-Jonas, IBM Corporation 2018.
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  */
9 
10 #ifndef __NCSI_NETLINK_H__
11 #define __NCSI_NETLINK_H__
12 
13 #include <linux/netdevice.h>
14 
15 #include "internal.h"
16 
17 int ncsi_send_netlink_rsp(struct ncsi_request *nr,
18 			  struct ncsi_package *np,
19 			  struct ncsi_channel *nc);
20 int ncsi_send_netlink_timeout(struct ncsi_request *nr,
21 			      struct ncsi_package *np,
22 			      struct ncsi_channel *nc);
23 int ncsi_send_netlink_err(struct net_device *dev,
24 			  u32 snd_seq,
25 			  u32 snd_portid,
26 			  struct nlmsghdr *nlhdr,
27 			  int err);
28 
29 int ncsi_init_netlink(struct net_device *dev);
30 int ncsi_unregister_netlink(struct net_device *dev);
31 
32 #endif /* __NCSI_NETLINK_H__ */
33