mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

Create the new module rtl8192d-common and move some code into it from rtl8192de. Now the rtl8192de driver (PCI) and the new rtl8192du driver (USB) can share some of the code. This is mostly the code that required little effort to make it shareable. There are a few more functions which they could share, with more changes. Add phy_iq_calibrate member to struct rtl_hal_ops to allow moving the TX power tracking code from dm.c. The other changes in this patch are adjusting whitespace, renaming some functions, making some arrays const, and making checkpatch.pl less unhappy. rtl8192de is compile-tested only. rtl8192d-common is tested with the new rtl8192du driver. Signed-off-by: Bitterblue Smith <rtl8821cerfe2@gmail.com> Signed-off-by: Ping-Ke Shih <pkshih@realtek.com> Link: https://msgid.link/69c4358a-6fbf-4433-92a6-341c83e9dd48@gmail.com
29 lines
1.3 KiB
C
29 lines
1.3 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/* Copyright(c) 2009-2012 Realtek Corporation.*/
|
|
|
|
#ifndef __RTL92DE_HW_H__
|
|
#define __RTL92DE_HW_H__
|
|
|
|
void rtl92de_get_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val);
|
|
void rtl92de_interrupt_recognized(struct ieee80211_hw *hw,
|
|
struct rtl_int *int_vec);
|
|
int rtl92de_hw_init(struct ieee80211_hw *hw);
|
|
void rtl92de_card_disable(struct ieee80211_hw *hw);
|
|
void rtl92de_enable_interrupt(struct ieee80211_hw *hw);
|
|
void rtl92de_disable_interrupt(struct ieee80211_hw *hw);
|
|
int rtl92de_set_network_type(struct ieee80211_hw *hw, enum nl80211_iftype type);
|
|
void rtl92de_set_check_bssid(struct ieee80211_hw *hw, bool check_bssid);
|
|
void rtl92de_set_beacon_related_registers(struct ieee80211_hw *hw);
|
|
void rtl92de_set_beacon_interval(struct ieee80211_hw *hw);
|
|
void rtl92de_update_interrupt_mask(struct ieee80211_hw *hw,
|
|
u32 add_msr, u32 rm_msr);
|
|
void rtl92de_set_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val);
|
|
|
|
void rtl92de_write_dword_dbi(struct ieee80211_hw *hw, u16 offset, u32 value,
|
|
u8 direct);
|
|
u32 rtl92de_read_dword_dbi(struct ieee80211_hw *hw, u16 offset, u8 direct);
|
|
void rtl92de_suspend(struct ieee80211_hw *hw);
|
|
void rtl92de_resume(struct ieee80211_hw *hw);
|
|
void rtl92d_linked_set_reg(struct ieee80211_hw *hw);
|
|
|
|
#endif
|