.. | .. |
---|
1 | | -// SPDX-License-Identifier: GPL-2.0+ |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0+ */ |
---|
2 | 2 | /* |
---|
3 | 3 | * Copyright (c) 1996, 2003 VIA Networking Technologies, Inc. |
---|
4 | 4 | * All rights reserved. |
---|
.. | .. |
---|
46 | 46 | #define TOP_RATE_2M 0x00200000 |
---|
47 | 47 | #define TOP_RATE_1M 0x00100000 |
---|
48 | 48 | |
---|
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); |
---|
53 | 53 | |
---|
54 | 54 | void vnt_get_phy_field(struct vnt_private *priv, u32 frame_length, |
---|
55 | 55 | u16 tx_rate, u8 pkt_type, struct vnt_phy_field *phy); |
---|
56 | 56 | |
---|
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); |
---|
61 | 61 | |
---|
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); |
---|
64 | 64 | |
---|
65 | 65 | /* 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); |
---|
74 | 75 | |
---|
75 | 76 | #endif /* __BASEBAND_H__ */ |
---|