Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
3cc8ff9f
Commit
3cc8ff9f
authored
Mar 31, 2013
by
Rafał Miłecki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
b43: N-PHY: move tables init function to tables file
Signed-off-by:
Rafał Miłecki
<
zajec5@gmail.com
>
parent
9a98979e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
16 deletions
+12
-16
drivers/net/wireless/b43/phy_n.c
drivers/net/wireless/b43/phy_n.c
+0
-12
drivers/net/wireless/b43/tables_nphy.c
drivers/net/wireless/b43/tables_nphy.c
+11
-2
drivers/net/wireless/b43/tables_nphy.h
drivers/net/wireless/b43/tables_nphy.h
+1
-2
No files found.
drivers/net/wireless/b43/phy_n.c
View file @
3cc8ff9f
...
@@ -4858,18 +4858,6 @@ static void b43_nphy_set_rx_core_state(struct b43_wldev *dev, u8 mask)
...
@@ -4858,18 +4858,6 @@ static void b43_nphy_set_rx_core_state(struct b43_wldev *dev, u8 mask)
* N-PHY init
* N-PHY init
**************************************************/
**************************************************/
/*
* Upload the N-PHY tables.
* http://bcm-v4.sipsolutions.net/802.11/PHY/N/InitTables
*/
static
void
b43_nphy_tables_init
(
struct
b43_wldev
*
dev
)
{
if
(
dev
->
phy
.
rev
<
3
)
b43_nphy_rev0_1_2_tables_init
(
dev
);
else
b43_nphy_rev3plus_tables_init
(
dev
);
}
/* http://bcm-v4.sipsolutions.net/802.11/PHY/N/MIMOConfig */
/* http://bcm-v4.sipsolutions.net/802.11/PHY/N/MIMOConfig */
static
void
b43_nphy_update_mimo_config
(
struct
b43_wldev
*
dev
,
s32
preamble
)
static
void
b43_nphy_update_mimo_config
(
struct
b43_wldev
*
dev
,
s32
preamble
)
{
{
...
...
drivers/net/wireless/b43/tables_nphy.c
View file @
3cc8ff9f
...
@@ -3097,7 +3097,7 @@ void b43_ntab_write_bulk(struct b43_wldev *dev, u32 offset,
...
@@ -3097,7 +3097,7 @@ void b43_ntab_write_bulk(struct b43_wldev *dev, u32 offset,
#define ntab_upload(dev, offset, data) do { \
#define ntab_upload(dev, offset, data) do { \
b43_ntab_write_bulk(dev, offset, offset##_SIZE, data); \
b43_ntab_write_bulk(dev, offset, offset##_SIZE, data); \
} while (0)
} while (0)
void
b43_nphy_rev0_1_2_tables_init
(
struct
b43_wldev
*
dev
)
static
void
b43_nphy_tables_init_rev0
(
struct
b43_wldev
*
dev
)
{
{
/* Static tables */
/* Static tables */
ntab_upload
(
dev
,
B43_NTAB_FRAMESTRUCT
,
b43_ntab_framestruct
);
ntab_upload
(
dev
,
B43_NTAB_FRAMESTRUCT
,
b43_ntab_framestruct
);
...
@@ -3133,7 +3133,7 @@ void b43_nphy_rev0_1_2_tables_init(struct b43_wldev *dev)
...
@@ -3133,7 +3133,7 @@ void b43_nphy_rev0_1_2_tables_init(struct b43_wldev *dev)
#define ntab_upload_r3(dev, offset, data) do { \
#define ntab_upload_r3(dev, offset, data) do { \
b43_ntab_write_bulk(dev, offset, ARRAY_SIZE(data), data); \
b43_ntab_write_bulk(dev, offset, ARRAY_SIZE(data), data); \
} while (0)
} while (0)
void
b43_nphy_rev3plus_tables_init
(
struct
b43_wldev
*
dev
)
static
void
b43_nphy_tables_init_rev3
(
struct
b43_wldev
*
dev
)
{
{
struct
ssb_sprom
*
sprom
=
dev
->
dev
->
bus_sprom
;
struct
ssb_sprom
*
sprom
=
dev
->
dev
->
bus_sprom
;
...
@@ -3174,6 +3174,15 @@ void b43_nphy_rev3plus_tables_init(struct b43_wldev *dev)
...
@@ -3174,6 +3174,15 @@ void b43_nphy_rev3plus_tables_init(struct b43_wldev *dev)
B43_WARN_ON
(
1
);
B43_WARN_ON
(
1
);
}
}
/* http://bcm-v4.sipsolutions.net/802.11/PHY/N/InitTables */
void
b43_nphy_tables_init
(
struct
b43_wldev
*
dev
)
{
if
(
dev
->
phy
.
rev
>=
3
)
b43_nphy_tables_init_rev3
(
dev
);
else
b43_nphy_tables_init_rev0
(
dev
);
}
/* http://bcm-v4.sipsolutions.net/802.11/PHY/N/GetIpaGainTbl */
/* http://bcm-v4.sipsolutions.net/802.11/PHY/N/GetIpaGainTbl */
static
const
u32
*
b43_nphy_get_ipa_gain_table
(
struct
b43_wldev
*
dev
)
static
const
u32
*
b43_nphy_get_ipa_gain_table
(
struct
b43_wldev
*
dev
)
{
{
...
...
drivers/net/wireless/b43/tables_nphy.h
View file @
3cc8ff9f
...
@@ -182,8 +182,7 @@ void b43_ntab_write(struct b43_wldev *dev, u32 offset, u32 value);
...
@@ -182,8 +182,7 @@ void b43_ntab_write(struct b43_wldev *dev, u32 offset, u32 value);
void
b43_ntab_write_bulk
(
struct
b43_wldev
*
dev
,
u32
offset
,
void
b43_ntab_write_bulk
(
struct
b43_wldev
*
dev
,
u32
offset
,
unsigned
int
nr_elements
,
const
void
*
_data
);
unsigned
int
nr_elements
,
const
void
*
_data
);
void
b43_nphy_rev0_1_2_tables_init
(
struct
b43_wldev
*
dev
);
void
b43_nphy_tables_init
(
struct
b43_wldev
*
dev
);
void
b43_nphy_rev3plus_tables_init
(
struct
b43_wldev
*
dev
);
const
u32
*
b43_nphy_get_tx_gain_table
(
struct
b43_wldev
*
dev
);
const
u32
*
b43_nphy_get_tx_gain_table
(
struct
b43_wldev
*
dev
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment