Last active
September 14, 2016 00:02
-
-
Save landonf/2d33d30b9b00d4d2b343431ef3755df7 to your computer and use it in GitHub Desktop.
Using libclang as an automated porting assistant. Code: https://github.com/landonf/srcport
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
landonf:srcport> ./obj/srcport --src-path="${FREEBSD_SRC}" --host-path="${FREEBSD_SRC}/sys/dev/siba" \ | |
${FREEBSD_SRC}/sys/dev/bwn/*.c -- \ | |
-I${FREEBSD_SRC}/sys -I${FREEBSD_SRC}/sys/sys -I${FREEBSD_OBJ} \ | |
-I${FREEBSD_OBJ}/../modules/bwn_pci \ | |
-D_KERNEL -nostdinc -fno-builtin \ | |
-Wno-pointer-sign -Wno-format | |
Scanning /home/landonf/Documents/Code/FreeBSD/freebsd/sys/dev/bwn/bwn_mac.c | |
Scanning /home/landonf/Documents/Code/FreeBSD/freebsd/sys/dev/bwn/if_bwn.c | |
Scanning /home/landonf/Documents/Code/FreeBSD/freebsd/sys/dev/bwn/if_bwn_pci.c | |
Scanning /home/landonf/Documents/Code/FreeBSD/freebsd/sys/dev/bwn/if_bwn_phy_common.c | |
Scanning /home/landonf/Documents/Code/FreeBSD/freebsd/sys/dev/bwn/if_bwn_phy_g.c | |
Scanning /home/landonf/Documents/Code/FreeBSD/freebsd/sys/dev/bwn/if_bwn_phy_lp.c | |
Scanning /home/landonf/Documents/Code/FreeBSD/freebsd/sys/dev/bwn/if_bwn_phy_n.c | |
Scanning /home/landonf/Documents/Code/FreeBSD/freebsd/sys/dev/bwn/if_bwn_util.c | |
/* | |
* Declared in: | |
* /home/landonf/Documents/Code/FreeBSD/freebsd/sys/dev/siba/siba_ids.h | |
*/ | |
/* | |
* Declared at: | |
* siba_ids.h:36 | |
* | |
* Referenced by: | |
* if_bwn.c:485, 486, 487, 488... | |
*/ | |
struct siba_devid { | |
uint16_t sd_vendor; | |
uint16_t sd_device; | |
uint8_t sd_rev; | |
char *sd_desc; | |
}; | |
/* | |
* Declared at: | |
* siba_ids.h:42 | |
* | |
* Referenced by: | |
* if_bwn.c:485, 486, 487, 488... | |
*/ | |
#define SIBA_DEV(_vendor, _cid, _rev, _msg) { SIBA_VID_##_vendor, SIBA_DEVID_##_cid, _rev, _msg } | |
/* | |
* Declared at: | |
* siba_ids.h:64 | |
* | |
* Referenced by: | |
* if_bwn.c:485, 486, 487, 488... | |
*/ | |
#define SIBA_DEVID_80211 0x812 | |
/* | |
* Declared at: | |
* siba_ids.h:86 | |
* | |
* Referenced by: | |
* if_bwn.c:485, 486, 487, 488... | |
*/ | |
#define SIBA_VID_BROADCOM 0x4243 | |
/* | |
* Declared in: | |
* /home/landonf/Documents/Code/FreeBSD/freebsd/sys/dev/siba/sibareg.h | |
*/ | |
/* | |
* Declared at: | |
* sibareg.h:96 | |
* | |
* Referenced by: | |
* if_bwn_phy_common.c:208, 208 | |
*/ | |
#define SIBA_CC_CHIPCTL_ADDR 0x0650 | |
/* | |
* Declared at: | |
* sibareg.h:97 | |
* | |
* Referenced by: | |
* if_bwn_phy_common.c:209, 209, 210, 210... | |
*/ | |
#define SIBA_CC_CHIPCTL_DATA 0x0654 | |
/* | |
* Declared at: | |
* sibareg.h:255 | |
* | |
* Referenced by: | |
* if_bwn.c:2872, 2873, 2964, 2965... | |
*/ | |
#define SIBA_DMA_TRANSLATION_MASK 0xc0000000 | |
/* | |
* Declared at: | |
* sibareg.h:264 | |
* | |
* Referenced by: | |
* if_bwn.c:1362, 1364, 1364, 1365... | |
* if_bwn_phy_common.c:154, 154, 159, 159... | |
*/ | |
#define SIBA_TGSLOW 0x0f98 | |
/* | |
* Declared at: | |
* sibareg.h:269 | |
* | |
* Referenced by: | |
* if_bwn.c:1362, 1362, 1367, 4725... | |
* if_bwn_phy_common.c:156, 156, 158 | |
*/ | |
#define SIBA_TGSLOW_FGC 0x00020000 | |
/* | |
* Declared at: | |
* sibareg.h:270 | |
* | |
* Referenced by: | |
* if_bwn.c:1160, 1160, 3940, 3940 | |
*/ | |
#define SIBA_TGSHIGH 0x0f9c | |
/* | |
* Declared at: | |
* sibareg.h:273 | |
* | |
* Referenced by: | |
* if_bwn.c:2551, 2551, 3610, 3610 | |
*/ | |
#define SIBA_TGSHIGH_DMA64 0x10000000 | |
/* | |
* Declared at: | |
* sibareg.h:559 | |
* | |
* Referenced by: | |
* if_bwn.c:788 | |
*/ | |
#define SIBA_BOARDVENDOR_DELL 0x1028 | |
/* | |
* Declared at: | |
* sibareg.h:560 | |
* | |
* Referenced by: | |
* if_bwn.c:6036 | |
* if_bwn_phy_g.c:293, 318, 324, 332... | |
*/ | |
#define SIBA_BOARDVENDOR_BCM 0x14e4 | |
/* | |
* Declared at: | |
* sibareg.h:561 | |
* | |
* Referenced by: | |
* if_bwn_phy_g.c:294, 320, 334, 346 | |
*/ | |
#define SIBA_BOARD_BCM4309G 0x0421 | |
/* | |
* Declared at: | |
* sibareg.h:563 | |
* | |
* Referenced by: | |
* if_bwn.c:6037 | |
* if_bwn_phy_g.c:326, 352, 947, 1814... | |
*/ | |
#define SIBA_BOARD_BU4306 0x0416 | |
/* | |
* Declared at: | |
* sibareg.h:578 | |
* | |
* Referenced by: | |
* if_bwn_phy_lp.c:1507 | |
*/ | |
#define SIBA_CHIPPACK_BCM4712S 1 | |
/* | |
* Declared in: | |
* /home/landonf/Documents/Code/FreeBSD/freebsd/sys/dev/siba/sibavar.h | |
*/ | |
/* | |
* Declared at: | |
* sibavar.h:37 | |
* | |
* Referenced by: | |
* if_bwn.c:792, 2069, 2069, 2100... | |
*/ | |
enum siba_type { | |
SIBA_TYPE_SSB, | |
SIBA_TYPE_PCI, | |
SIBA_TYPE_PCMCIA | |
}; | |
/* | |
* Declared at: | |
* sibavar.h:39 | |
* | |
* Referenced by: | |
* if_bwn.c:792, 2069 | |
*/ | |
/* | |
* Declared at: | |
* sibavar.h:40 | |
* | |
* Referenced by: | |
* if_bwn.c:2100, 6948 | |
*/ | |
/* | |
* Declared at: | |
* sibavar.h:66 | |
* | |
* Referenced by: | |
* if_bwn.c:503 | |
*/ | |
static inline uint16_t siba_get_vendor(device_t dev) { | |
uintptr_t v; | |
BUS_READ_IVAR(device_get_parent(dev), dev, SIBA_IVAR_VENDOR, &v); | |
return ((uint16_t)v); | |
}; | |
/* | |
* Declared at: | |
* sibavar.h:67 | |
* | |
* Referenced by: | |
* if_bwn.c:504 | |
*/ | |
static inline uint16_t siba_get_device(device_t dev) { | |
uintptr_t v; | |
BUS_READ_IVAR(device_get_parent(dev), dev, SIBA_IVAR_DEVICE, &v); | |
return ((uint16_t)v); | |
}; | |
/* | |
* Declared at: | |
* sibavar.h:68 | |
* | |
* Referenced by: | |
* if_bwn.c:505, 557, 979, 1474... | |
*/ | |
static inline uint8_t siba_get_revid(device_t dev) { | |
uintptr_t v; | |
BUS_READ_IVAR(device_get_parent(dev), dev, SIBA_IVAR_REVID, &v); | |
return ((uint8_t)v); | |
}; | |
/* | |
* Declared at: | |
* sibavar.h:70 | |
* | |
* Referenced by: | |
* if_bwn.c:793, 794, 795, 796... | |
*/ | |
static inline uint16_t siba_get_pci_vendor(device_t dev) { | |
uintptr_t v; | |
BUS_READ_IVAR(device_get_parent(dev), dev, SIBA_IVAR_PCI_VENDOR, &v); | |
return ((uint16_t)v); | |
}; | |
/* | |
* Declared at: | |
* sibavar.h:71 | |
* | |
* Referenced by: | |
* if_bwn.c:531, 532, 533, 793... | |
*/ | |
static inline uint16_t siba_get_pci_device(device_t dev) { | |
uintptr_t v; | |
BUS_READ_IVAR(device_get_parent(dev), dev, SIBA_IVAR_PCI_DEVICE, &v); | |
return ((uint16_t)v); | |
}; | |
/* | |
* Declared at: | |
* sibavar.h:72 | |
* | |
* Referenced by: | |
* if_bwn.c:783, 788, 793, 794... | |
* if_bwn_phy_g.c:293, 317, 323, 331... | |
*/ | |
static inline uint16_t siba_get_pci_subvendor(device_t dev) { | |
uintptr_t v; | |
BUS_READ_IVAR(device_get_parent(dev), dev, SIBA_IVAR_PCI_SUBVENDOR, &v); | |
return ((uint16_t)v); | |
}; | |
/* | |
* Declared at: | |
* sibavar.h:73 | |
* | |
* Referenced by: | |
* if_bwn.c:784, 793, 794, 795... | |
* if_bwn_phy_g.c:294, 319, 325, 333... | |
* if_bwn_phy_lp.c:1482 | |
*/ | |
static inline uint16_t siba_get_pci_subdevice(device_t dev) { | |
uintptr_t v; | |
BUS_READ_IVAR(device_get_parent(dev), dev, SIBA_IVAR_PCI_SUBDEVICE, &v); | |
return ((uint16_t)v); | |
}; | |
/* | |
* Declared at: | |
* sibavar.h:74 | |
* | |
* Referenced by: | |
* if_bwn.c:785, 789 | |
* if_bwn_phy_g.c:295, 298, 321, 335... | |
* if_bwn_phy_lp.c:1305 | |
*/ | |
static inline uint8_t siba_get_pci_revid(device_t dev) { | |
uintptr_t v; | |
BUS_READ_IVAR(device_get_parent(dev), dev, SIBA_IVAR_PCI_REVID, &v); | |
return ((uint8_t)v); | |
}; | |
/* | |
* Declared at: | |
* sibavar.h:75 | |
* | |
* Referenced by: | |
* if_bwn.c:557, 789, 1405, 3471... | |
* if_bwn_phy_common.c:91 | |
* if_bwn_phy_g.c:167, 354, 928 | |
* if_bwn_phy_lp.c:690, 1322, 1332, 1358... | |
*/ | |
static inline uint16_t siba_get_chipid(device_t dev) { | |
uintptr_t v; | |
BUS_READ_IVAR(device_get_parent(dev), dev, SIBA_IVAR_CHIPID, &v); | |
return ((uint16_t)v); | |
}; | |
/* | |
* Declared at: | |
* sibavar.h:76 | |
* | |
* Referenced by: | |
* if_bwn.c:1406, 1408, 3595 | |
* if_bwn_phy_lp.c:1323, 1333, 1359, 2740 | |
*/ | |
static inline uint16_t siba_get_chiprev(device_t dev) { | |
uintptr_t v; | |
BUS_READ_IVAR(device_get_parent(dev), dev, SIBA_IVAR_CHIPREV, &v); | |
return ((uint16_t)v); | |
}; | |
/* | |
* Declared at: | |
* sibavar.h:77 | |
* | |
* Referenced by: | |
* if_bwn_phy_g.c:929 | |
* if_bwn_phy_lp.c:1507 | |
*/ | |
static inline uint8_t siba_get_chippkg(device_t dev) { | |
uintptr_t v; | |
BUS_READ_IVAR(device_get_parent(dev), dev, SIBA_IVAR_CHIPPKG, &v); | |
return ((uint8_t)v); | |
}; | |
/* | |
* Declared at: | |
* sibavar.h:78 | |
* | |
* Referenced by: | |
* if_bwn.c:792, 2069, 2100, 6948 | |
*/ | |
static inline enum siba_type siba_get_type(device_t dev) { | |
uintptr_t v; | |
BUS_READ_IVAR(device_get_parent(dev), dev, SIBA_IVAR_TYPE, &v); | |
return ((enum siba_type)v); | |
}; | |
/* | |
* Declared at: | |
* sibavar.h:79 | |
* | |
* Referenced by: | |
* if_bwn_phy_lp.c:800, 901, 1595, 1677 | |
*/ | |
static inline uint32_t siba_get_cc_pmufreq(device_t dev) { | |
uintptr_t v; | |
BUS_READ_IVAR(device_get_parent(dev), dev, SIBA_IVAR_CC_PMUFREQ, &v); | |
return ((uint32_t)v); | |
}; | |
/* | |
* Declared at: | |
* sibavar.h:81 | |
* | |
* Referenced by: | |
* if_bwn.c:2267 | |
*/ | |
static inline uint16_t siba_get_cc_powerdelay(device_t dev) { | |
uintptr_t v; | |
BUS_READ_IVAR(device_get_parent(dev), dev, SIBA_IVAR_CC_POWERDELAY, &v); | |
return ((uint16_t)v); | |
}; | |
/* | |
* Declared at: | |
* sibavar.h:82 | |
* | |
* Referenced by: | |
* if_bwn.c:2070 | |
*/ | |
static inline uint8_t siba_get_pcicore_revid(device_t dev) { | |
uintptr_t v; | |
BUS_READ_IVAR(device_get_parent(dev), dev, SIBA_IVAR_PCICORE_REVID, &v); | |
return ((uint8_t)v); | |
}; | |
/* | |
* Declared at: | |
* sibavar.h:87 | |
* | |
* Referenced by: | |
* if_bwn_phy_g.c:3268 | |
*/ | |
enum { | |
SIBA_CCODE_WORLD, | |
SIBA_CCODE_THAILAND, | |
SIBA_CCODE_ISRAEL, | |
SIBA_CCODE_JORDAN, | |
SIBA_CCODE_CHINA, | |
SIBA_CCODE_JAPAN, | |
SIBA_CCODE_USA_CANADA_ANZ, | |
SIBA_CCODE_EUROPE, | |
SIBA_CCODE_USA_LOW, | |
SIBA_CCODE_JAPAN_HIGH, | |
SIBA_CCODE_ALL, | |
SIBA_CCODE_NONE | |
}; | |
/* | |
* Declared at: | |
* sibavar.h:93 | |
* | |
* Referenced by: | |
* if_bwn_phy_g.c:3268 | |
*/ | |
/* | |
* Declared at: | |
* sibavar.h:339 | |
* | |
* Referenced by: | |
* if_bwn.c:671 | |
*/ | |
static inline uint8_t *siba_sprom_get_mac_80211bg(device_t dev) { | |
uintptr_t v; | |
siba_read_sprom(device_get_parent(dev), dev, SIBA_SPROMVAR_MAC_80211BG, &v); | |
return ((uint8_t *)v); | |
}; | |
/* | |
* Declared at: | |
* sibavar.h:341 | |
* | |
* Referenced by: | |
* if_bwn.c:671, 671 | |
*/ | |
static inline uint8_t *siba_sprom_get_mac_80211a(device_t dev) { | |
uintptr_t v; | |
siba_read_sprom(device_get_parent(dev), dev, SIBA_SPROMVAR_MAC_80211A, &v); | |
return ((uint8_t *)v); | |
}; | |
/* | |
* Declared at: | |
* sibavar.h:347 | |
* | |
* Referenced by: | |
* if_bwn_phy_g.c:3268 | |
*/ | |
static inline uint8_t siba_sprom_get_ccode(device_t dev) { | |
uintptr_t v; | |
siba_read_sprom(device_get_parent(dev), dev, SIBA_SPROMVAR_CCODE, &v); | |
return ((uint8_t)v); | |
}; | |
/* | |
* Declared at: | |
* sibavar.h:348 | |
* | |
* Referenced by: | |
* if_bwn.c:6523 | |
*/ | |
static inline uint8_t siba_sprom_get_ant_a(device_t dev) { | |
uintptr_t v; | |
siba_read_sprom(device_get_parent(dev), dev, SIBA_SPROMVAR_ANT_A, &v); | |
return ((uint8_t)v); | |
}; | |
/* | |
* Declared at: | |
* sibavar.h:349 | |
* | |
* Referenced by: | |
* if_bwn.c:6521 | |
*/ | |
static inline uint8_t siba_sprom_get_ant_bg(device_t dev) { | |
uintptr_t v; | |
siba_read_sprom(device_get_parent(dev), dev, SIBA_SPROMVAR_ANT_BG, &v); | |
return ((uint8_t)v); | |
}; | |
/* | |
* Declared at: | |
* sibavar.h:350 | |
* | |
* Referenced by: | |
* if_bwn_phy_g.c:163 | |
*/ | |
static inline uint16_t siba_sprom_get_pa0b0(device_t dev) { | |
uintptr_t v; | |
siba_read_sprom(device_get_parent(dev), dev, SIBA_SPROMVAR_PA0B0, &v); | |
return ((uint16_t)v); | |
}; | |
/* | |
* Declared at: | |
* sibavar.h:351 | |
* | |
* Referenced by: | |
* if_bwn_phy_g.c:164 | |
*/ | |
static inline uint16_t siba_sprom_get_pa0b1(device_t dev) { | |
uintptr_t v; | |
siba_read_sprom(device_get_parent(dev), dev, SIBA_SPROMVAR_PA0B1, &v); | |
return ((uint16_t)v); | |
}; | |
/* | |
* Declared at: | |
* sibavar.h:352 | |
* | |
* Referenced by: | |
* if_bwn_phy_g.c:165 | |
*/ | |
static inline uint16_t siba_sprom_get_pa0b2(device_t dev) { | |
uintptr_t v; | |
siba_read_sprom(device_get_parent(dev), dev, SIBA_SPROMVAR_PA0B2, &v); | |
return ((uint16_t)v); | |
}; | |
/* | |
* Declared at: | |
* sibavar.h:362 | |
* | |
* Referenced by: | |
* if_bwn.c:7167 | |
*/ | |
static inline uint8_t siba_sprom_get_gpio0(device_t dev) { | |
uintptr_t v; | |
siba_read_sprom(device_get_parent(dev), dev, SIBA_SPROMVAR_GPIO0, &v); | |
return ((uint8_t)v); | |
}; | |
/* | |
* Declared at: | |
* sibavar.h:363 | |
* | |
* Referenced by: | |
* if_bwn.c:7168 | |
*/ | |
static inline uint8_t siba_sprom_get_gpio1(device_t dev) { | |
uintptr_t v; | |
siba_read_sprom(device_get_parent(dev), dev, SIBA_SPROMVAR_GPIO1, &v); | |
return ((uint8_t)v); | |
}; | |
/* | |
* Declared at: | |
* sibavar.h:364 | |
* | |
* Referenced by: | |
* if_bwn.c:7169 | |
*/ | |
static inline uint8_t siba_sprom_get_gpio2(device_t dev) { | |
uintptr_t v; | |
siba_read_sprom(device_get_parent(dev), dev, SIBA_SPROMVAR_GPIO2, &v); | |
return ((uint8_t)v); | |
}; | |
/* | |
* Declared at: | |
* sibavar.h:365 | |
* | |
* Referenced by: | |
* if_bwn.c:7170 | |
*/ | |
static inline uint8_t siba_sprom_get_gpio3(device_t dev) { | |
uintptr_t v; | |
siba_read_sprom(device_get_parent(dev), dev, SIBA_SPROMVAR_GPIO3, &v); | |
return ((uint8_t)v); | |
}; | |
/* | |
* Declared at: | |
* sibavar.h:369 | |
* | |
* Referenced by: | |
* if_bwn_phy_g.c:666 | |
*/ | |
static inline void siba_sprom_set_maxpwr_bg(device_t dev, uint16_t t) { | |
uintptr_t v = (uintptr_t)t; | |
siba_write_sprom(device_get_parent(dev), dev, SIBA_SPROMVAR_MAXPWR_BG, v); | |
}; | |
/* | |
* Declared at: | |
* sibavar.h:369 | |
* | |
* Referenced by: | |
* if_bwn_phy_g.c:660 | |
*/ | |
static inline uint16_t siba_sprom_get_maxpwr_bg(device_t dev) { | |
uintptr_t v; | |
siba_read_sprom(device_get_parent(dev), dev, SIBA_SPROMVAR_MAXPWR_BG, &v); | |
return ((uint16_t)v); | |
}; | |
/* | |
* Declared at: | |
* sibavar.h:370 | |
* | |
* Referenced by: | |
* if_bwn_phy_lp.c:600 | |
*/ | |
static inline uint8_t siba_sprom_get_rxpo2g(device_t dev) { | |
uintptr_t v; | |
siba_read_sprom(device_get_parent(dev), dev, SIBA_SPROMVAR_RXPO2G, &v); | |
return ((uint8_t)v); | |
}; | |
/* | |
* Declared at: | |
* sibavar.h:371 | |
* | |
* Referenced by: | |
* if_bwn_phy_lp.c:611 | |
*/ | |
static inline uint8_t siba_sprom_get_rxpo5g(device_t dev) { | |
uintptr_t v; | |
siba_read_sprom(device_get_parent(dev), dev, SIBA_SPROMVAR_RXPO5G, &v); | |
return ((uint8_t)v); | |
}; | |
/* | |
* Declared at: | |
* sibavar.h:373 | |
* | |
* Referenced by: | |
* if_bwn_phy_g.c:162 | |
*/ | |
static inline uint8_t siba_sprom_get_tssi_bg(device_t dev) { | |
uintptr_t v; | |
siba_read_sprom(device_get_parent(dev), dev, SIBA_SPROMVAR_TSSI_BG, &v); | |
return ((uint8_t)v); | |
}; | |
/* | |
* Declared at: | |
* sibavar.h:374 | |
* | |
* Referenced by: | |
* if_bwn_phy_lp.c:598 | |
*/ | |
static inline uint8_t siba_sprom_get_tri2g(device_t dev) { | |
uintptr_t v; | |
siba_read_sprom(device_get_parent(dev), dev, SIBA_SPROMVAR_TRI2G, &v); | |
return ((uint8_t)v); | |
}; | |
/* | |
* Declared at: | |
* sibavar.h:375 | |
* | |
* Referenced by: | |
* if_bwn_phy_lp.c:607 | |
*/ | |
static inline uint8_t siba_sprom_get_tri5gl(device_t dev) { | |
uintptr_t v; | |
siba_read_sprom(device_get_parent(dev), dev, SIBA_SPROMVAR_TRI5GL, &v); | |
return ((uint8_t)v); | |
}; | |
/* | |
* Declared at: | |
* sibavar.h:376 | |
* | |
* Referenced by: | |
* if_bwn_phy_lp.c:608 | |
*/ | |
static inline uint8_t siba_sprom_get_tri5g(device_t dev) { | |
uintptr_t v; | |
siba_read_sprom(device_get_parent(dev), dev, SIBA_SPROMVAR_TRI5G, &v); | |
return ((uint8_t)v); | |
}; | |
/* | |
* Declared at: | |
* sibavar.h:377 | |
* | |
* Referenced by: | |
* if_bwn_phy_lp.c:609 | |
*/ | |
static inline uint8_t siba_sprom_get_tri5gh(device_t dev) { | |
uintptr_t v; | |
siba_read_sprom(device_get_parent(dev), dev, SIBA_SPROMVAR_TRI5GH, &v); | |
return ((uint8_t)v); | |
}; | |
/* | |
* Declared at: | |
* sibavar.h:378 | |
* | |
* Referenced by: | |
* if_bwn_phy_lp.c:603 | |
*/ | |
static inline uint8_t siba_sprom_get_rssisav2g(device_t dev) { | |
uintptr_t v; | |
siba_read_sprom(device_get_parent(dev), dev, SIBA_SPROMVAR_RSSISAV2G, &v); | |
return ((uint8_t)v); | |
}; | |
/* | |
* Declared at: | |
* sibavar.h:379 | |
* | |
* Referenced by: | |
* if_bwn_phy_lp.c:602 | |
*/ | |
static inline uint8_t siba_sprom_get_rssismc2g(device_t dev) { | |
uintptr_t v; | |
siba_read_sprom(device_get_parent(dev), dev, SIBA_SPROMVAR_RSSISMC2G, &v); | |
return ((uint8_t)v); | |
}; | |
/* | |
* Declared at: | |
* sibavar.h:380 | |
* | |
* Referenced by: | |
* if_bwn_phy_lp.c:601 | |
*/ | |
static inline uint8_t siba_sprom_get_rssismf2g(device_t dev) { | |
uintptr_t v; | |
siba_read_sprom(device_get_parent(dev), dev, SIBA_SPROMVAR_RSSISMF2G, &v); | |
return ((uint8_t)v); | |
}; | |
/* | |
* Declared at: | |
* sibavar.h:381 | |
* | |
* Referenced by: | |
* if_bwn_phy_lp.c:599 | |
*/ | |
static inline uint8_t siba_sprom_get_bxa2g(device_t dev) { | |
uintptr_t v; | |
siba_read_sprom(device_get_parent(dev), dev, SIBA_SPROMVAR_BXA2G, &v); | |
return ((uint8_t)v); | |
}; | |
/* | |
* Declared at: | |
* sibavar.h:382 | |
* | |
* Referenced by: | |
* if_bwn_phy_lp.c:614 | |
*/ | |
static inline uint8_t siba_sprom_get_rssisav5g(device_t dev) { | |
uintptr_t v; | |
siba_read_sprom(device_get_parent(dev), dev, SIBA_SPROMVAR_RSSISAV5G, &v); | |
return ((uint8_t)v); | |
}; | |
/* | |
* Declared at: | |
* sibavar.h:383 | |
* | |
* Referenced by: | |
* if_bwn_phy_lp.c:613 | |
*/ | |
static inline uint8_t siba_sprom_get_rssismc5g(device_t dev) { | |
uintptr_t v; | |
siba_read_sprom(device_get_parent(dev), dev, SIBA_SPROMVAR_RSSISMC5G, &v); | |
return ((uint8_t)v); | |
}; | |
/* | |
* Declared at: | |
* sibavar.h:384 | |
* | |
* Referenced by: | |
* if_bwn_phy_lp.c:612 | |
*/ | |
static inline uint8_t siba_sprom_get_rssismf5g(device_t dev) { | |
uintptr_t v; | |
siba_read_sprom(device_get_parent(dev), dev, SIBA_SPROMVAR_RSSISMF5G, &v); | |
return ((uint8_t)v); | |
}; | |
/* | |
* Declared at: | |
* sibavar.h:385 | |
* | |
* Referenced by: | |
* if_bwn_phy_lp.c:610 | |
*/ | |
static inline uint8_t siba_sprom_get_bxa5g(device_t dev) { | |
uintptr_t v; | |
siba_read_sprom(device_get_parent(dev), dev, SIBA_SPROMVAR_BXA5G, &v); | |
return ((uint8_t)v); | |
}; | |
/* | |
* Declared at: | |
* sibavar.h:391 | |
* | |
* Referenced by: | |
* if_bwn.c:786, 790, 800 | |
*/ | |
static inline void siba_sprom_set_bf_lo(device_t dev, uint16_t t) { | |
uintptr_t v = (uintptr_t)t; | |
siba_write_sprom(device_get_parent(dev), dev, SIBA_SPROMVAR_BF_LO, v); | |
}; | |
/* | |
* Declared at: | |
* sibavar.h:391 | |
* | |
* Referenced by: | |
* if_bwn.c:787, 791, 801, 2056... | |
* if_bwn_phy_g.c:661, 710, 809, 896... | |
* if_bwn_phy_lp.c:1453, 1484, 1489, 3370... | |
*/ | |
static inline uint16_t siba_sprom_get_bf_lo(device_t dev) { | |
uintptr_t v; | |
siba_read_sprom(device_get_parent(dev), dev, SIBA_SPROMVAR_BF_LO, &v); | |
return ((uint16_t)v); | |
}; | |
/* | |
* Declared at: | |
* sibavar.h:392 | |
* | |
* Referenced by: | |
* if_bwn_phy_lp.c:1455, 1469, 1477, 1499... | |
*/ | |
static inline uint16_t siba_sprom_get_bf_hi(device_t dev) { | |
uintptr_t v; | |
siba_read_sprom(device_get_parent(dev), dev, SIBA_SPROMVAR_BF_HI, &v); | |
return ((uint16_t)v); | |
}; | |
/* | |
* Declared at: | |
* sibavar.h:529 | |
* | |
* Referenced by: | |
* if_bwn_phy_lp.c:1456 | |
*/ | |
#define SIBA_LDO_PAREF 0 | |
/* | |
* Declared at: | |
* sibavar.h:639 | |
* | |
* Referenced by: | |
* if_bwn.c:1159, 2014, 2109 | |
*/ | |
void siba_powerup(device_t, int); | |
/* | |
* Declared at: | |
* sibavar.h:640 | |
* | |
* Referenced by: | |
* if_bwn.c:1331, 2122, 2180 | |
*/ | |
int siba_powerdown(device_t); | |
/* | |
* Declared at: | |
* sibavar.h:641 | |
* | |
* Referenced by: | |
* if_bwn.c:1390, 1414, 1416, 1478... | |
* if_bwn_phy_g.c:472, 489, 1215, 1251... | |
* if_bwn_phy_lp.c:465, 496 | |
* if_bwn_phy_n.c:161, 187 | |
*/ | |
uint16_t siba_read_2(device_t, uint16_t); | |
/* | |
* Declared at: | |
* sibavar.h:642 | |
* | |
* Referenced by: | |
* if_bwn.c:1011, 1413, 1415, 1476... | |
* if_bwn_phy_common.c:96, 97, 100, 101... | |
* if_bwn_phy_g.c:471, 479, 480, 488... | |
* if_bwn_phy_lp.c:464, 472, 473, 481... | |
* if_bwn_phy_n.c:160, 168, 169, 186... | |
*/ | |
void siba_write_2(device_t, uint16_t, uint16_t); | |
/* | |
* Declared at: | |
* sibavar.h:643 | |
* | |
* Referenced by: | |
* if_bwn.c:997, 1160, 1362, 1365... | |
* if_bwn_phy_common.c:154, 189 | |
* if_bwn_phy_g.c:418, 3592 | |
*/ | |
uint32_t siba_read_4(device_t, uint16_t); | |
/* | |
* Declared at: | |
* sibavar.h:644 | |
* | |
* Referenced by: | |
* if_bwn.c:1364, 1369, 1379, 1477... | |
* if_bwn_phy_common.c:159, 194 | |
* if_bwn_phy_g.c:3590, 3601 | |
*/ | |
void siba_write_4(device_t, uint16_t, uint32_t); | |
/* | |
* Declared at: | |
* sibavar.h:645 | |
* | |
* Referenced by: | |
* if_bwn.c:1358 | |
*/ | |
void siba_dev_up(device_t, uint32_t); | |
/* | |
* Declared at: | |
* sibavar.h:646 | |
* | |
* Referenced by: | |
* if_bwn.c:1329, 2179 | |
*/ | |
void siba_dev_down(device_t, uint32_t); | |
/* | |
* Declared at: | |
* sibavar.h:647 | |
* | |
* Referenced by: | |
* if_bwn.c:2015 | |
*/ | |
int siba_dev_isup(device_t); | |
/* | |
* Declared at: | |
* sibavar.h:648 | |
* | |
* Referenced by: | |
* if_bwn.c:2038 | |
*/ | |
void siba_pcicore_intr(device_t); | |
/* | |
* Declared at: | |
* sibavar.h:649 | |
* | |
* Referenced by: | |
* if_bwn.c:2874, 2967, 3080 | |
*/ | |
uint32_t siba_dma_translation(device_t); | |
/* | |
* Declared at: | |
* sibavar.h:651 | |
* | |
* Referenced by: | |
* if_bwn.c:5500, 5556 | |
*/ | |
void siba_read_multi_2(device_t, void *, size_t, uint16_t); | |
/* | |
* Declared at: | |
* sibavar.h:652 | |
* | |
* Referenced by: | |
* if_bwn.c:5497, 5539 | |
*/ | |
void siba_read_multi_4(device_t, void *, size_t, uint16_t); | |
/* | |
* Declared at: | |
* sibavar.h:654 | |
* | |
* Referenced by: | |
* if_bwn.c:6625 | |
*/ | |
void siba_write_multi_2(device_t, const void *, size_t, uint16_t); | |
/* | |
* Declared at: | |
* sibavar.h:655 | |
* | |
* Referenced by: | |
* if_bwn.c:6582 | |
*/ | |
void siba_write_multi_4(device_t, const void *, size_t, uint16_t); | |
/* | |
* Declared at: | |
* sibavar.h:656 | |
* | |
* Referenced by: | |
* if_bwn.c:3725, 4852, 4853, 4966... | |
*/ | |
void siba_barrier(device_t, int); | |
/* | |
* Declared at: | |
* sibavar.h:657 | |
* | |
* Referenced by: | |
* if_bwn_phy_lp.c:1456 | |
*/ | |
void siba_cc_pmu_set_ldovolt(device_t, int, uint32_t); | |
/* | |
* Declared at: | |
* sibavar.h:658 | |
* | |
* Referenced by: | |
* if_bwn_phy_lp.c:1457, 1463 | |
*/ | |
void siba_cc_pmu_set_ldoparef(device_t, uint8_t); | |
/* | |
* Declared at: | |
* sibavar.h:659 | |
* | |
* Referenced by: | |
* if_bwn.c:2218, 2224, 3443, 3487 | |
*/ | |
void siba_gpio_set(device_t, uint32_t); | |
/* | |
* Declared at: | |
* sibavar.h:660 | |
* | |
* Referenced by: | |
* if_bwn.c:3484 | |
*/ | |
uint32_t siba_gpio_get(device_t); | |
/* | |
* Declared at: | |
* sibavar.h:661 | |
* | |
* Referenced by: | |
* if_bwn.c:2040 | |
*/ | |
void siba_fix_imcfglobug(device_t); | |
/* | |
* Declared at: | |
* sibavar.h:669 | |
* | |
* Referenced by: | |
* if_bwn_phy_common.c:210 | |
*/ | |
void siba_cc_set32(device_t dev, uint32_t, uint32_t); | |
/* | |
* Declared at: | |
* sibavar.h:670 | |
* | |
* Referenced by: | |
* if_bwn_phy_common.c:209, 211 | |
*/ | |
void siba_cc_mask32(device_t dev, uint32_t, uint32_t); | |
/* | |
* Declared at: | |
* sibavar.h:672 | |
* | |
* Referenced by: | |
* if_bwn_phy_common.c:208 | |
*/ | |
void siba_cc_write32(device_t dev, uint32_t, uint32_t); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment