mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-23 04:36:40 +07:00
955dc68cb9
Add a generic netlink family for NCSI. This supports three commands; NCSI_CMD_PKG_INFO which returns information on packages and their associated channels, NCSI_CMD_SET_INTERFACE which allows a specific package or package/channel combination to be set as the preferred choice, and NCSI_CMD_CLEAR_INTERFACE which clears any preferred setting. Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com> Signed-off-by: David S. Miller <davem@davemloft.net>
21 lines
561 B
C
21 lines
561 B
C
/*
|
|
* Copyright Samuel Mendoza-Jonas, IBM Corporation 2018.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*/
|
|
|
|
#ifndef __NCSI_NETLINK_H__
|
|
#define __NCSI_NETLINK_H__
|
|
|
|
#include <linux/netdevice.h>
|
|
|
|
#include "internal.h"
|
|
|
|
int ncsi_init_netlink(struct net_device *dev);
|
|
int ncsi_unregister_netlink(struct net_device *dev);
|
|
|
|
#endif /* __NCSI_NETLINK_H__ */
|