12874c5fdSThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-or-later */ 2955dc68cSSamuel Mendoza-Jonas /* 3955dc68cSSamuel Mendoza-Jonas * Copyright Samuel Mendoza-Jonas, IBM Corporation 2018. 4955dc68cSSamuel Mendoza-Jonas */ 5955dc68cSSamuel Mendoza-Jonas 6955dc68cSSamuel Mendoza-Jonas #ifndef __NCSI_NETLINK_H__ 7955dc68cSSamuel Mendoza-Jonas #define __NCSI_NETLINK_H__ 8955dc68cSSamuel Mendoza-Jonas 9955dc68cSSamuel Mendoza-Jonas #include <linux/netdevice.h> 10955dc68cSSamuel Mendoza-Jonas 11955dc68cSSamuel Mendoza-Jonas #include "internal.h" 12955dc68cSSamuel Mendoza-Jonas 139771b8ccSJustin.Lee1@Dell.com int ncsi_send_netlink_rsp(struct ncsi_request *nr, 149771b8ccSJustin.Lee1@Dell.com struct ncsi_package *np, 159771b8ccSJustin.Lee1@Dell.com struct ncsi_channel *nc); 169771b8ccSJustin.Lee1@Dell.com int ncsi_send_netlink_timeout(struct ncsi_request *nr, 179771b8ccSJustin.Lee1@Dell.com struct ncsi_package *np, 189771b8ccSJustin.Lee1@Dell.com struct ncsi_channel *nc); 199771b8ccSJustin.Lee1@Dell.com int ncsi_send_netlink_err(struct net_device *dev, 209771b8ccSJustin.Lee1@Dell.com u32 snd_seq, 219771b8ccSJustin.Lee1@Dell.com u32 snd_portid, 229771b8ccSJustin.Lee1@Dell.com struct nlmsghdr *nlhdr, 239771b8ccSJustin.Lee1@Dell.com int err); 249771b8ccSJustin.Lee1@Dell.com 25955dc68cSSamuel Mendoza-Jonas int ncsi_init_netlink(struct net_device *dev); 26955dc68cSSamuel Mendoza-Jonas int ncsi_unregister_netlink(struct net_device *dev); 27955dc68cSSamuel Mendoza-Jonas 28955dc68cSSamuel Mendoza-Jonas #endif /* __NCSI_NETLINK_H__ */ 29