linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/feature.c

// SPDX-License-Identifier: ISC
/*
 * Copyright (c) 2014 Broadcom Corporation
 */

#include <linux/netdevice.h>
#include <linux/module.h>

#include <brcm_hw_ids.h>
#include <brcmu_wifi.h>
#include "core.h"
#include "bus.h"
#include "debug.h"
#include "fwil.h"
#include "fwil_types.h"
#include "fwvid.h"
#include "feature.h"
#include "common.h"

#define BRCMF_FW_UNSUPPORTED

/*
 * expand feature list to array of feature strings.
 */
#define BRCMF_FEAT_DEF
static const char *brcmf_feat_names[] =;
#undef BRCMF_FEAT_DEF

struct brcmf_feat_fwcap {};

static const struct brcmf_feat_fwcap brcmf_fwcap_map[] =;

#ifdef DEBUG
/*
 * expand quirk list to array of quirk strings.
 */
#define BRCMF_QUIRK_DEF
static const char * const brcmf_quirk_names[] =;
#undef BRCMF_QUIRK_DEF

/**
 * brcmf_feat_debugfs_read() - expose feature info to debugfs.
 *
 * @seq: sequence for debugfs entry.
 * @data: raw data pointer.
 */
static int brcmf_feat_debugfs_read(struct seq_file *seq, void *data)
{}
#else
static int brcmf_feat_debugfs_read(struct seq_file *seq, void *data)
{
	return 0;
}
#endif /* DEBUG */

struct brcmf_feat_fwfeat {};

static const struct brcmf_feat_fwfeat brcmf_feat_fwfeat_map[] =;

static void brcmf_feat_firmware_overrides(struct brcmf_pub *drv)
{}

struct brcmf_feat_wlcfeat {};

static const struct brcmf_feat_wlcfeat brcmf_feat_wlcfeat_map[] =;

static void brcmf_feat_wlc_version_overrides(struct brcmf_pub *drv)
{}

/**
 * brcmf_feat_iovar_int_get() - determine feature through iovar query.
 *
 * @ifp: interface to query.
 * @id: feature id.
 * @name: iovar name.
 */
static void brcmf_feat_iovar_int_get(struct brcmf_if *ifp,
				     enum brcmf_feat_id id, char *name)
{}

static void brcmf_feat_iovar_data_set(struct brcmf_if *ifp,
				      enum brcmf_feat_id id, char *name,
				      const void *data, size_t len)
{}

#define MAX_CAPS_BUFFER_SIZE
static void brcmf_feat_firmware_capabilities(struct brcmf_if *ifp)
{}

/**
 * brcmf_feat_fwcap_debugfs_read() - expose firmware capabilities to debugfs.
 *
 * @seq: sequence for debugfs entry.
 * @data: raw data pointer.
 */
static int brcmf_feat_fwcap_debugfs_read(struct seq_file *seq, void *data)
{}

void brcmf_feat_attach(struct brcmf_pub *drvr)
{}

void brcmf_feat_debugfs_create(struct brcmf_pub *drvr)
{}

bool brcmf_feat_is_enabled(struct brcmf_if *ifp, enum brcmf_feat_id id)
{}

bool brcmf_feat_is_quirk_enabled(struct brcmf_if *ifp,
				 enum brcmf_feat_quirk quirk)
{}