forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-11 04dd17822334871b23ea2862f7798fb0e0007777
kernel/drivers/staging/vt6655/baseband.h
....@@ -1,4 +1,4 @@
1
-// SPDX-License-Identifier: GPL-2.0+
1
+/* SPDX-License-Identifier: GPL-2.0+ */
22 /*
33 * Copyright (c) 1996, 2003 VIA Networking Technologies, Inc.
44 * All rights reserved.
....@@ -46,30 +46,31 @@
4646 #define TOP_RATE_2M 0x00200000
4747 #define TOP_RATE_1M 0x00100000
4848
49
-unsigned int BBuGetFrameTime(unsigned char byPreambleType,
50
- unsigned char byPktType,
51
- unsigned int cbFrameLength,
52
- unsigned short wRate);
49
+unsigned int bb_get_frame_time(unsigned char by_preamble_type,
50
+ unsigned char by_pkt_type,
51
+ unsigned int cb_frame_length,
52
+ unsigned short w_rate);
5353
5454 void vnt_get_phy_field(struct vnt_private *priv, u32 frame_length,
5555 u16 tx_rate, u8 pkt_type, struct vnt_phy_field *phy);
5656
57
-bool BBbReadEmbedded(struct vnt_private *priv, unsigned char byBBAddr,
58
- unsigned char *pbyData);
59
-bool BBbWriteEmbedded(struct vnt_private *priv, unsigned char byBBAddr,
60
- unsigned char byData);
57
+bool bb_read_embedded(struct vnt_private *priv, unsigned char by_bb_addr,
58
+ unsigned char *pby_data);
59
+bool bb_write_embedded(struct vnt_private *priv, unsigned char by_bb_addr,
60
+ unsigned char by_data);
6161
62
-void BBvSetShortSlotTime(struct vnt_private *priv);
63
-void BBvSetVGAGainOffset(struct vnt_private *priv, unsigned char byData);
62
+void bb_set_short_slot_time(struct vnt_private *priv);
63
+void bb_set_vga_gain_offset(struct vnt_private *priv, unsigned char by_data);
6464
6565 /* VT3253 Baseband */
66
-bool BBbVT3253Init(struct vnt_private *priv);
67
-void BBvSoftwareReset(struct vnt_private *priv);
68
-void BBvPowerSaveModeON(struct vnt_private *priv);
69
-void BBvPowerSaveModeOFF(struct vnt_private *priv);
70
-void BBvSetTxAntennaMode(struct vnt_private *priv, unsigned char byAntennaMode);
71
-void BBvSetRxAntennaMode(struct vnt_private *priv, unsigned char byAntennaMode);
72
-void BBvSetDeepSleep(struct vnt_private *priv, unsigned char byLocalID);
73
-void BBvExitDeepSleep(struct vnt_private *priv, unsigned char byLocalID);
66
+bool bb_vt3253_init(struct vnt_private *priv);
67
+void bb_software_reset(struct vnt_private *priv);
68
+void bb_power_save_mode_on(struct vnt_private *priv);
69
+void bb_power_save_mode_off(struct vnt_private *priv);
70
+void bb_set_tx_antenna_mode(struct vnt_private *priv,
71
+ unsigned char by_antenna_mode);
72
+void bb_set_rx_antenna_mode(struct vnt_private *priv,
73
+ unsigned char by_antenna_mode);
74
+void bb_set_deep_sleep(struct vnt_private *priv, unsigned char by_local_id);
7475
7576 #endif /* __BASEBAND_H__ */