| //===================================================================== |
| // Device related include |
| //===================================================================== |
| #ifdef WB_LINUX |
| #include "linux/wb35reg_f.h" |
| #include "linux/wb35tx_f.h" |
| #include "linux/wb35rx_f.h" |
| #else |
| #include "wb35reg_f.h" |
| #include "wb35tx_f.h" |
| #include "wb35rx_f.h" |
| #endif |
| |
| //==================================================================================== |
| // Function declaration |
| //==================================================================================== |
| void hal_remove_mapping_key( phw_data_t pHwData, u8 *pmac_addr ); |
| void hal_remove_default_key( phw_data_t pHwData, u32 index ); |
| unsigned char hal_set_mapping_key( phw_data_t adapter, u8 *pmac_addr, u8 null_key, u8 wep_on, u8 *ptx_tsc, u8 *prx_tsc, u8 key_type, u8 key_len, u8 *pkey_data ); |
| unsigned char hal_set_default_key( phw_data_t adapter, u8 index, u8 null_key, u8 wep_on, u8 *ptx_tsc, u8 *prx_tsc, u8 key_type, u8 key_len, u8 *pkey_data ); |
| void hal_clear_all_default_key( phw_data_t pHwData ); |
| void hal_clear_all_group_key( phw_data_t pHwData ); |
| void hal_clear_all_mapping_key( phw_data_t pHwData ); |
| void hal_clear_all_key( phw_data_t pHwData ); |
| void hal_get_ethernet_address( phw_data_t pHwData, u8 *current_address ); |
| void hal_set_ethernet_address( phw_data_t pHwData, u8 *current_address ); |
| void hal_get_permanent_address( phw_data_t pHwData, u8 *pethernet_address ); |
| unsigned char hal_init_hardware( phw_data_t pHwData, struct wb35_adapter * adapter ); |
| void hal_set_power_save_mode( phw_data_t pHwData, unsigned char power_save, unsigned char wakeup, unsigned char dtim ); |
| void hal_get_power_save_mode( phw_data_t pHwData, u8 *pin_pwr_save ); |
| void hal_set_slot_time( phw_data_t pHwData, u8 type ); |
| #define hal_set_atim_window( _A, _ATM ) |
| void hal_set_rates( phw_data_t pHwData, u8 *pbss_rates, u8 length, unsigned char basic_rate_set ); |
| #define hal_set_basic_rates( _A, _R, _L ) hal_set_rates( _A, _R, _L, TRUE ) |
| #define hal_set_op_rates( _A, _R, _L ) hal_set_rates( _A, _R, _L, FALSE ) |
| void hal_start_bss( phw_data_t pHwData, u8 mac_op_mode ); |
| void hal_join_request( phw_data_t pHwData, u8 bss_type ); // 0:BSS STA 1:IBSS STA// |
| void hal_stop_sync_bss( phw_data_t pHwData ); |
| void hal_resume_sync_bss( phw_data_t pHwData); |
| void hal_set_aid( phw_data_t pHwData, u16 aid ); |
| void hal_set_bssid( phw_data_t pHwData, u8 *pbssid ); |
| void hal_get_bssid( phw_data_t pHwData, u8 *pbssid ); |
| void hal_set_beacon_period( phw_data_t pHwData, u16 beacon_period ); |
| void hal_set_listen_interval( phw_data_t pHwData, u16 listen_interval ); |
| void hal_set_cap_info( phw_data_t pHwData, u16 capability_info ); |
| void hal_set_ssid( phw_data_t pHwData, u8 *pssid, u8 ssid_len ); |
| void hal_set_current_channel( phw_data_t pHwData, ChanInfo channel ); |
| void hal_set_current_channel_ex( phw_data_t pHwData, ChanInfo channel ); |
| void hal_get_current_channel( phw_data_t pHwData, ChanInfo *channel ); |
| void hal_set_accept_broadcast( phw_data_t pHwData, u8 enable ); |
| void hal_set_accept_multicast( phw_data_t pHwData, u8 enable ); |
| void hal_set_accept_beacon( phw_data_t pHwData, u8 enable ); |
| void hal_set_multicast_address( phw_data_t pHwData, u8 *address, u8 number ); |
| u8 hal_get_accept_beacon( phw_data_t pHwData ); |
| void hal_stop( phw_data_t pHwData ); |
| void hal_halt( phw_data_t pHwData, void *ppa_data ); |
| void hal_start_tx0( phw_data_t pHwData ); |
| void hal_set_phy_type( phw_data_t pHwData, u8 PhyType ); |
| void hal_get_phy_type( phw_data_t pHwData, u8 *PhyType ); |
| unsigned char hal_reset_hardware( phw_data_t pHwData, void* ppa ); |
| void hal_set_cwmin( phw_data_t pHwData, u8 cwin_min ); |
| #define hal_get_cwmin( _A ) ( (_A)->cwmin ) |
| void hal_set_cwmax( phw_data_t pHwData, u16 cwin_max ); |
| #define hal_get_cwmax( _A ) ( (_A)->cwmax ) |
| void hal_set_rsn_wpa( phw_data_t pHwData, u32 * RSN_IE_Bitmap , u32 * RSN_OUI_type , unsigned char bDesiredAuthMode); |
| //s32 hal_get_rssi( phw_data_t pHwData, u32 HalRssi ); |
| s32 hal_get_rssi( phw_data_t pHwData, u32 *HalRssiArry, u8 Count ); |
| s32 hal_get_rssi_bss( phw_data_t pHwData, u16 idx, u8 Count ); |
| void hal_set_connect_info( phw_data_t pHwData, unsigned char boConnect ); |
| u8 hal_get_est_sq3( phw_data_t pHwData, u8 Count ); |
| void hal_led_control_1a( phw_data_t pHwData ); |
| void hal_led_control( void* S1, phw_data_t pHwData, void* S3, void* S4 ); |
| void hal_set_rf_power( phw_data_t pHwData, u8 PowerIndex ); // 20060621 Modify |
| void hal_reset_counter( phw_data_t pHwData ); |
| void hal_set_radio_mode( phw_data_t pHwData, unsigned char boValue); |
| void hal_descriptor_indicate( phw_data_t pHwData, PDESCRIPTOR pDes ); |
| u8 hal_get_antenna_number( phw_data_t pHwData ); |
| void hal_set_antenna_number( phw_data_t pHwData, u8 number ); |
| u32 hal_get_bss_pk_cnt( phw_data_t pHwData ); |
| #define hal_get_region_from_EEPROM( _A ) ( (_A)->reg.EEPROMRegion ) |
| void hal_set_accept_promiscuous ( phw_data_t pHwData, u8 enable); |
| #define hal_get_tx_buffer( _A, _B ) Wb35Tx_get_tx_buffer( _A, _B ) |
| u8 hal_get_hw_radio_off ( phw_data_t pHwData ); |
| #define hal_software_set( _A ) (_A->SoftwareSet) |
| #define hal_driver_init_OK( _A ) (_A->IsInitOK) |
| #define hal_rssi_boundary_high( _A ) (_A->RSSI_high) |
| #define hal_rssi_boundary_low( _A ) (_A->RSSI_low) |
| #define hal_scan_interval( _A ) (_A->Scan_Interval) |
| void hal_scan_status_indicate( phw_data_t pHwData, u8 status); // 0: complete, 1: in progress |
| void hal_system_power_change( phw_data_t pHwData, u32 PowerState ); // 20051230 -=D0 1=D1 .. |
| void hal_surprise_remove( phw_data_t pHwData ); |
| |
| #define PHY_DEBUG( msg, args... ) |
| |
| |
| |
| void hal_rate_change( phw_data_t pHwData ); // Notify the HAL rate is changing 20060613.1 |
| unsigned char hal_get_dxx_reg( phw_data_t pHwData, u16 number, u32 * pValue ); |
| unsigned char hal_set_dxx_reg( phw_data_t pHwData, u16 number, u32 value ); |
| #define hal_get_time_count( _P ) (_P->time_count/10) // return 100ms count |
| #define hal_detect_error( _P ) (_P->WbUsb.DetectCount) |
| unsigned char hal_set_LED( phw_data_t pHwData, u32 Mode ); // 20061108 for WPS led control |
| |
| //------------------------------------------------------------------------- |
| // The follow function is unused for IS89C35 |
| //------------------------------------------------------------------------- |
| #define hal_disable_interrupt(_A) |
| #define hal_enable_interrupt(_A) |
| #define hal_get_interrupt_type( _A) |
| #define hal_get_clear_interrupt(_A) |
| #define hal_ibss_disconnect(_A) hal_stop_sync_bss(_A) |
| #define hal_join_request_stop(_A) |
| unsigned char hal_idle( phw_data_t pHwData ); |
| #define hw_get_cxx_reg( _A, _B, _C ) |
| #define hw_set_cxx_reg( _A, _B, _C ) |
| #define hw_get_dxx_reg( _A, _B, _C ) hal_get_dxx_reg( _A, _B, (u32 *)_C ) |
| #define hw_set_dxx_reg( _A, _B, _C ) hal_set_dxx_reg( _A, _B, (u32)_C ) |
| |
| |