#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/skbuff.h>
#include <net/ncsi.h>
#include <net/net_namespace.h>
#include <net/sock.h>
#include <net/genetlink.h>
#include "internal.h"
#include "ncsi-pkt.h"
#include "ncsi-netlink.h"
static u8 decode_bcd_u8(u8 x)
{ … }
static int ncsi_validate_rsp_pkt(struct ncsi_request *nr,
unsigned short payload)
{ … }
static int ncsi_rsp_handler_cis(struct ncsi_request *nr)
{ … }
static int ncsi_rsp_handler_sp(struct ncsi_request *nr)
{ … }
static int ncsi_rsp_handler_dp(struct ncsi_request *nr)
{ … }
static int ncsi_rsp_handler_ec(struct ncsi_request *nr)
{ … }
static int ncsi_rsp_handler_dc(struct ncsi_request *nr)
{ … }
static int ncsi_rsp_handler_rc(struct ncsi_request *nr)
{ … }
static int ncsi_rsp_handler_ecnt(struct ncsi_request *nr)
{ … }
static int ncsi_rsp_handler_dcnt(struct ncsi_request *nr)
{ … }
static int ncsi_rsp_handler_ae(struct ncsi_request *nr)
{ … }
static int ncsi_rsp_handler_sl(struct ncsi_request *nr)
{ … }
static int ncsi_rsp_handler_gls(struct ncsi_request *nr)
{ … }
static int ncsi_rsp_handler_svf(struct ncsi_request *nr)
{ … }
static int ncsi_rsp_handler_ev(struct ncsi_request *nr)
{ … }
static int ncsi_rsp_handler_dv(struct ncsi_request *nr)
{ … }
static int ncsi_rsp_handler_sma(struct ncsi_request *nr)
{ … }
static int ncsi_rsp_handler_ebf(struct ncsi_request *nr)
{ … }
static int ncsi_rsp_handler_dbf(struct ncsi_request *nr)
{ … }
static int ncsi_rsp_handler_egmf(struct ncsi_request *nr)
{ … }
static int ncsi_rsp_handler_dgmf(struct ncsi_request *nr)
{ … }
static int ncsi_rsp_handler_snfc(struct ncsi_request *nr)
{ … }
static int ncsi_rsp_handler_oem_gma(struct ncsi_request *nr, int mfr_id)
{ … }
static int ncsi_rsp_handler_oem_mlx(struct ncsi_request *nr)
{ … }
static int ncsi_rsp_handler_oem_bcm(struct ncsi_request *nr)
{ … }
static int ncsi_rsp_handler_oem_intel(struct ncsi_request *nr)
{ … }
static struct ncsi_rsp_oem_handler { … } ncsi_rsp_oem_handlers[] = …;
static int ncsi_rsp_handler_oem(struct ncsi_request *nr)
{ … }
static int ncsi_rsp_handler_gvi(struct ncsi_request *nr)
{ … }
static int ncsi_rsp_handler_gc(struct ncsi_request *nr)
{ … }
static int ncsi_rsp_handler_gp(struct ncsi_request *nr)
{ … }
static int ncsi_rsp_handler_gcps(struct ncsi_request *nr)
{ … }
static int ncsi_rsp_handler_gns(struct ncsi_request *nr)
{ … }
static int ncsi_rsp_handler_gnpts(struct ncsi_request *nr)
{ … }
static int ncsi_rsp_handler_gps(struct ncsi_request *nr)
{ … }
static int ncsi_rsp_handler_gpuuid(struct ncsi_request *nr)
{ … }
static int ncsi_rsp_handler_pldm(struct ncsi_request *nr)
{ … }
static int ncsi_rsp_handler_netlink(struct ncsi_request *nr)
{ … }
static int ncsi_rsp_handler_gmcma(struct ncsi_request *nr)
{ … }
static struct ncsi_rsp_handler { … } ncsi_rsp_handlers[] = …;
int ncsi_rcv_rsp(struct sk_buff *skb, struct net_device *dev,
struct packet_type *pt, struct net_device *orig_dev)
{ … }