[PATCH 3/3] b43: LCN-PHY: load TX gain table on init

Rafał Miłecki zajec5 at gmail.com
Sat Sep 3 15:40:36 EDT 2011


W dniu 3 września 2011 21:01 użytkownik Rafał Miłecki
<zajec5 at gmail.com> napisał:
> Values and ops were taken from MMIO dump of wl. struct was copied from
> brcmsmac.

To get table I've simply used vim and RegExp plus find&replace:

:%s/phy_write(0x0455) <- 0x....\n phy_read(0x0456) -> 0x....\n
phy_read(0x0457) -> 0x....\n\(.*\n.*\n.*\n\)/\1\r/
:%s/phy_write(0x0455) <- 0x....\nphy_write(0x0457) <-
0x\(....\)\nphy_write(0x0456) <- 0x\(....\)/0x\1\2/
:%s/0x\(..\)\(..\)\(..\)\(..\)\n0x\(.\)\(..\).....\n/\t{ 0x\4, 0x\3,
0x\2, 0x\5, 0x\6 },/

-- 
Rafał



More information about the b43-dev mailing list