1955dc68cSSamuel Mendoza-Jonas /* 2955dc68cSSamuel Mendoza-Jonas * Copyright Samuel Mendoza-Jonas, IBM Corporation 2018. 3955dc68cSSamuel Mendoza-Jonas * 4955dc68cSSamuel Mendoza-Jonas * This program is free software; you can redistribute it and/or modify 5955dc68cSSamuel Mendoza-Jonas * it under the terms of the GNU General Public License as published by 6955dc68cSSamuel Mendoza-Jonas * the Free Software Foundation; either version 2 of the License, or 7955dc68cSSamuel Mendoza-Jonas * (at your option) any later version. 8955dc68cSSamuel Mendoza-Jonas */ 9955dc68cSSamuel Mendoza-Jonas 10955dc68cSSamuel Mendoza-Jonas #ifndef __NCSI_NETLINK_H__ 11955dc68cSSamuel Mendoza-Jonas #define __NCSI_NETLINK_H__ 12955dc68cSSamuel Mendoza-Jonas 13955dc68cSSamuel Mendoza-Jonas #include <linux/netdevice.h> 14955dc68cSSamuel Mendoza-Jonas 15955dc68cSSamuel Mendoza-Jonas #include "internal.h" 16955dc68cSSamuel Mendoza-Jonas 179771b8ccSJustin.Lee1@Dell.com int ncsi_send_netlink_rsp(struct ncsi_request *nr, 189771b8ccSJustin.Lee1@Dell.com struct ncsi_package *np, 199771b8ccSJustin.Lee1@Dell.com struct ncsi_channel *nc); 209771b8ccSJustin.Lee1@Dell.com int ncsi_send_netlink_timeout(struct ncsi_request *nr, 219771b8ccSJustin.Lee1@Dell.com struct ncsi_package *np, 229771b8ccSJustin.Lee1@Dell.com struct ncsi_channel *nc); 239771b8ccSJustin.Lee1@Dell.com int ncsi_send_netlink_err(struct net_device *dev, 249771b8ccSJustin.Lee1@Dell.com u32 snd_seq, 259771b8ccSJustin.Lee1@Dell.com u32 snd_portid, 269771b8ccSJustin.Lee1@Dell.com struct nlmsghdr *nlhdr, 279771b8ccSJustin.Lee1@Dell.com int err); 289771b8ccSJustin.Lee1@Dell.com 29955dc68cSSamuel Mendoza-Jonas int ncsi_init_netlink(struct net_device *dev); 30955dc68cSSamuel Mendoza-Jonas int ncsi_unregister_netlink(struct net_device *dev); 31955dc68cSSamuel Mendoza-Jonas 32955dc68cSSamuel Mendoza-Jonas #endif /* __NCSI_NETLINK_H__ */ 33