WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
board.h 文件参考
#include <linux/platform_device.h>
#include <linux/regulator/consumer.h>
#include <linux/regulator/driver.h>
#include <linux/regulator/machine.h>
#include "oal_plat_type.h"
#include "hcc_bus.h"
board.h 的引用(Include)关系图:

浏览源代码.

结构体

struct  bd_init_s
 
struct  board_info
 
struct  bus_table
 

宏定义

#define BOARD_SUCC   (0)
 
#define BOARD_FAIL   (-1)
 
#define VERSION_FPGA   (0)
 
#define VERSION_ASIC   (1)
 
#define WIFI_TAS_DISABLE   (0)
 
#define WIFI_TAS_ENABLE   (1)
 
#define PMU_CLK_REQ_DISABLE   (0)
 
#define PMU_CLK_REQ_ENABLE   (1)
 
#define GPIO_LOWLEVEL   (0)
 
#define GPIO_HIGHLEVEL   (1)
 
#define NO_NEED_POWER_PREPARE   (0)
 
#define NEED_POWER_PREPARE   (1)
 
#define PINMUX_SET_INIT   (0)
 
#define PINMUX_SET_SUCC   (1)
 
#define INI_BT_BUS   "board_info.bt_bus"
 
#define INI_WIFI_BUS   "board_info.wlan_bus"
 
#define DOWNLOAD_MODE_SDIO   "sdio"
 
#define DOWNLOAD_MODE_PCIE   "pcie"
 
#define DOWNLOAD_MODE_UART   "uart"
 
#define DOWNLOAD_MODE_USB   "usb"
 
#define BOARD_VERSION_LEN   (128)
 
#define DOWNLOAD_CHANNEL_LEN   (64)
 
#define BT_BUS_NAME_LEN   5
 
#define INI_SSI_DUMP_EN   "ssi_dump_enable"
 

类型定义

typedef struct bd_init_s bd_init_t
 

枚举

enum  board_power { WLAN_POWER = 0x0 , BFGX_POWER = 0x1 , POWER_BUTT }
 
enum  board_power_state { BOARD_POWER_OFF = 0x0 , BOARD_POWER_ON = 0x1 }
 

函数

board_infoget_board_info (void)
 
osal_s32 get_wlan_bus_type (void)
 
osal_s32 get_bt_bus_type (void)
 
osal_s32 hh503_board_init (void)
 
void hh503_board_exit (void)
 
osal_s32 board_host_wakeup_dev_set (int value)
 
osal_s32 board_get_host_wakeup_dev_stat (void)
 
osal_s32 board_wifi_tas_set (int value)
 
osal_s32 board_power_on_etc (osal_u32 subsystem)
 
osal_s32 board_power_off_etc (osal_u32 subsystem)
 
osal_s32 board_power_reset (osal_u32 subsystem)
 
osal_s32 board_wlan_gpio_power_on (void)
 
osal_s32 board_wlan_gpio_power_off (void)
 
int board_get_bwkup_gpio_val_etc (void)
 
int board_get_wlan_wkup_gpio_val_etc (void)
 
osal_s32 get_board_gpio_etc (const char *gpio_node, const char *gpio_prop, osal_s32 *physical_gpio)
 
void boart_power_state_change (osal_s32 flag)
 
osal_s32 get_board_custmize_etc (const char *cust_node, const char *cust_prop, const char **cust_prop_val)
 
osal_s32 get_board_dts_node_etc (struct device_node **np, const char *node_prop)
 
int board_is_support_wkup_gpio (void)
 

宏定义说明

◆ BOARD_FAIL

#define BOARD_FAIL   (-1)

◆ BOARD_SUCC

#define BOARD_SUCC   (0)

◆ BOARD_VERSION_LEN

#define BOARD_VERSION_LEN   (128)

◆ BT_BUS_NAME_LEN

#define BT_BUS_NAME_LEN   5

◆ DOWNLOAD_CHANNEL_LEN

#define DOWNLOAD_CHANNEL_LEN   (64)

◆ DOWNLOAD_MODE_PCIE

#define DOWNLOAD_MODE_PCIE   "pcie"

◆ DOWNLOAD_MODE_SDIO

#define DOWNLOAD_MODE_SDIO   "sdio"

◆ DOWNLOAD_MODE_UART

#define DOWNLOAD_MODE_UART   "uart"

◆ DOWNLOAD_MODE_USB

#define DOWNLOAD_MODE_USB   "usb"

◆ GPIO_HIGHLEVEL

#define GPIO_HIGHLEVEL   (1)

◆ GPIO_LOWLEVEL

#define GPIO_LOWLEVEL   (0)

◆ INI_BT_BUS

#define INI_BT_BUS   "board_info.bt_bus"

◆ INI_SSI_DUMP_EN

#define INI_SSI_DUMP_EN   "ssi_dump_enable"

◆ INI_WIFI_BUS

#define INI_WIFI_BUS   "board_info.wlan_bus"

◆ NEED_POWER_PREPARE

#define NEED_POWER_PREPARE   (1)

◆ NO_NEED_POWER_PREPARE

#define NO_NEED_POWER_PREPARE   (0)

◆ PINMUX_SET_INIT

#define PINMUX_SET_INIT   (0)

◆ PINMUX_SET_SUCC

#define PINMUX_SET_SUCC   (1)

◆ PMU_CLK_REQ_DISABLE

#define PMU_CLK_REQ_DISABLE   (0)

◆ PMU_CLK_REQ_ENABLE

#define PMU_CLK_REQ_ENABLE   (1)

◆ VERSION_ASIC

#define VERSION_ASIC   (1)

◆ VERSION_FPGA

#define VERSION_FPGA   (0)

◆ WIFI_TAS_DISABLE

#define WIFI_TAS_DISABLE   (0)

◆ WIFI_TAS_ENABLE

#define WIFI_TAS_ENABLE   (1)

类型定义说明

◆ bd_init_t

typedef struct bd_init_s bd_init_t

枚举类型说明

◆ board_power

枚举值
WLAN_POWER 
BFGX_POWER 
POWER_BUTT 

◆ board_power_state

枚举值
BOARD_POWER_OFF 
BOARD_POWER_ON 

函数说明

◆ board_get_bwkup_gpio_val_etc()

int board_get_bwkup_gpio_val_etc ( void  )
extern

◆ board_get_host_wakeup_dev_stat()

osal_s32 board_get_host_wakeup_dev_stat ( void  )
extern

◆ board_get_wlan_wkup_gpio_val_etc()

int board_get_wlan_wkup_gpio_val_etc ( void  )
extern

◆ board_host_wakeup_dev_set()

osal_s32 board_host_wakeup_dev_set ( int  value)
extern

◆ board_is_support_wkup_gpio()

int board_is_support_wkup_gpio ( void  )

◆ board_power_off_etc()

osal_s32 board_power_off_etc ( osal_u32  subsystem)
extern

◆ board_power_on_etc()

osal_s32 board_power_on_etc ( osal_u32  subsystem)
extern

◆ board_power_reset()

osal_s32 board_power_reset ( osal_u32  subsystem)
extern

◆ board_wifi_tas_set()

osal_s32 board_wifi_tas_set ( int  value)
extern

◆ board_wlan_gpio_power_off()

osal_s32 board_wlan_gpio_power_off ( void  )
extern

◆ board_wlan_gpio_power_on()

osal_s32 board_wlan_gpio_power_on ( void  )
extern

◆ boart_power_state_change()

void boart_power_state_change ( osal_s32  flag)
extern

◆ get_board_custmize_etc()

osal_s32 get_board_custmize_etc ( const char *  cust_node,
const char *  cust_prop,
const char **  cust_prop_val 
)
extern

◆ get_board_dts_node_etc()

osal_s32 get_board_dts_node_etc ( struct device_node **  np,
const char *  node_prop 
)
extern

◆ get_board_gpio_etc()

osal_s32 get_board_gpio_etc ( const char *  gpio_node,
const char *  gpio_prop,
osal_s32 physical_gpio 
)
extern

◆ get_board_info()

board_info * get_board_info ( void  )

◆ get_bt_bus_type()

osal_s32 get_bt_bus_type ( void  )

◆ get_wlan_bus_type()

osal_s32 get_wlan_bus_type ( void  )

◆ hh503_board_exit()

void hh503_board_exit ( void  )

◆ hh503_board_init()

osal_s32 hh503_board_init ( void  )