Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/bwn/if_bwn_misc.h
Show All 34 Lines | |||||
* These are the functions used by the PHY code. | * These are the functions used by the PHY code. | ||||
* | * | ||||
* They currently live in the driver itself; at least until they | * They currently live in the driver itself; at least until they | ||||
* are broken out into smaller pieces. | * are broken out into smaller pieces. | ||||
*/ | */ | ||||
struct bwn_mac; | struct bwn_mac; | ||||
extern int bwn_gpio_control(struct bwn_mac *, uint32_t); | |||||
extern uint64_t bwn_hf_read(struct bwn_mac *); | extern uint64_t bwn_hf_read(struct bwn_mac *); | ||||
extern void bwn_hf_write(struct bwn_mac *, uint64_t); | extern void bwn_hf_write(struct bwn_mac *, uint64_t); | ||||
extern void bwn_dummy_transmission(struct bwn_mac *mac, int ofdm, int paon); | extern void bwn_dummy_transmission(struct bwn_mac *mac, int ofdm, int paon); | ||||
extern void bwn_ram_write(struct bwn_mac *, uint16_t, uint32_t); | extern void bwn_ram_write(struct bwn_mac *, uint16_t, uint32_t); | ||||
extern void bwn_mac_suspend(struct bwn_mac *); | extern void bwn_mac_suspend(struct bwn_mac *); | ||||
extern void bwn_mac_enable(struct bwn_mac *); | extern void bwn_mac_enable(struct bwn_mac *); | ||||
extern int bwn_switch_channel(struct bwn_mac *, int); | extern int bwn_switch_channel(struct bwn_mac *, int); | ||||
extern uint16_t bwn_shm_read_2(struct bwn_mac *, uint16_t, uint16_t); | extern uint16_t bwn_shm_read_2(struct bwn_mac *, uint16_t, uint16_t); | ||||
extern void bwn_shm_write_2(struct bwn_mac *, uint16_t, uint16_t, | extern void bwn_shm_write_2(struct bwn_mac *, uint16_t, uint16_t, | ||||
uint16_t); | uint16_t); | ||||
extern uint32_t bwn_shm_read_4(struct bwn_mac *, uint16_t, uint16_t); | extern uint32_t bwn_shm_read_4(struct bwn_mac *, uint16_t, uint16_t); | ||||
extern void bwn_shm_write_4(struct bwn_mac *, uint16_t, uint16_t, | extern void bwn_shm_write_4(struct bwn_mac *, uint16_t, uint16_t, | ||||
uint32_t); | uint32_t); | ||||
/* This is only for SIBA core */ | extern int bwn_reset_core(struct bwn_mac *, int g_mode); | ||||
extern void bwn_reset_core(struct bwn_mac *, int g_mode); | |||||
extern void bwn_psctl(struct bwn_mac *, uint32_t); | extern void bwn_psctl(struct bwn_mac *, uint32_t); | ||||
#endif | #endif |