linux/drivers/net/wireless/mediatek/mt76/mt7915/init.c

// SPDX-License-Identifier: ISC
/* Copyright (C) 2020 MediaTek Inc. */

#include <linux/etherdevice.h>
#include <linux/hwmon.h>
#include <linux/hwmon-sysfs.h>
#include <linux/of.h>
#include <linux/thermal.h>
#include "mt7915.h"
#include "mac.h"
#include "mcu.h"
#include "coredump.h"
#include "eeprom.h"

static const struct ieee80211_iface_limit if_limits[] =;

static const struct ieee80211_iface_combination if_comb[] =;

static ssize_t mt7915_thermal_temp_show(struct device *dev,
					struct device_attribute *attr,
					char *buf)
{}

static ssize_t mt7915_thermal_temp_store(struct device *dev,
					 struct device_attribute *attr,
					 const char *buf, size_t count)
{}

static SENSOR_DEVICE_ATTR_RO(temp1_input, mt7915_thermal_temp, 0);
static SENSOR_DEVICE_ATTR_RW(temp1_crit, mt7915_thermal_temp, 1);
static SENSOR_DEVICE_ATTR_RW(temp1_max, mt7915_thermal_temp, 2);
static SENSOR_DEVICE_ATTR_RO(throttle1, mt7915_thermal_temp, 3);

static struct attribute *mt7915_hwmon_attrs[] =;
ATTRIBUTE_GROUPS();

static int
mt7915_thermal_get_max_throttle_state(struct thermal_cooling_device *cdev,
				      unsigned long *state)
{}

static int
mt7915_thermal_get_cur_throttle_state(struct thermal_cooling_device *cdev,
				      unsigned long *state)
{}

static int
mt7915_thermal_set_cur_throttle_state(struct thermal_cooling_device *cdev,
				      unsigned long state)
{}

static const struct thermal_cooling_device_ops mt7915_thermal_ops =;

static void mt7915_unregister_thermal(struct mt7915_phy *phy)
{}

static int mt7915_thermal_init(struct mt7915_phy *phy)
{}

static void mt7915_led_set_config(struct led_classdev *led_cdev,
				  u8 delay_on, u8 delay_off)
{}

static int mt7915_led_set_blink(struct led_classdev *led_cdev,
				unsigned long *delay_on,
				unsigned long *delay_off)
{}

static void mt7915_led_set_brightness(struct led_classdev *led_cdev,
				      enum led_brightness brightness)
{}

static void __mt7915_init_txpower(struct mt7915_phy *phy,
				  struct ieee80211_supported_band *sband)
{}

void mt7915_init_txpower(struct mt7915_phy *phy)
{}

static void
mt7915_regd_notifier(struct wiphy *wiphy,
		     struct regulatory_request *request)
{}

static void
mt7915_init_wiphy(struct mt7915_phy *phy)
{}

static void
mt7915_mac_init_band(struct mt7915_dev *dev, u8 band)
{}

static void
mt7915_init_led_mux(struct mt7915_dev *dev)
{}

void mt7915_mac_init(struct mt7915_dev *dev)
{}

int mt7915_txbf_init(struct mt7915_dev *dev)
{}

static struct mt7915_phy *
mt7915_alloc_ext_phy(struct mt7915_dev *dev)
{}

static int
mt7915_register_ext_phy(struct mt7915_dev *dev, struct mt7915_phy *phy)
{}

static void mt7915_init_work(struct work_struct *work)
{}

void mt7915_wfsys_reset(struct mt7915_dev *dev)
{}

static bool mt7915_band_config(struct mt7915_dev *dev)
{}

static int
mt7915_init_hardware(struct mt7915_dev *dev, struct mt7915_phy *phy2)
{}

void mt7915_set_stream_vht_txbf_caps(struct mt7915_phy *phy)
{}

static void
mt7915_set_stream_he_txbf_caps(struct mt7915_phy *phy,
			       struct ieee80211_sta_he_cap *he_cap, int vif)
{}

static int
mt7915_init_he_caps(struct mt7915_phy *phy, enum nl80211_band band,
		    struct ieee80211_sband_iftype_data *data)
{}

void mt7915_set_stream_he_caps(struct mt7915_phy *phy)
{}

static void mt7915_unregister_ext_phy(struct mt7915_dev *dev)
{}

static void mt7915_stop_hardware(struct mt7915_dev *dev)
{}

int mt7915_register_device(struct mt7915_dev *dev)
{}

void mt7915_unregister_device(struct mt7915_dev *dev)
{}