Пример #1
0
	{"gpio_gap", item_dev_size(gpio_gap), 0, item_dev_addr(gpio_gap),
	 OFFSET_BT_DEV | SHOW_HEX}
	,
	{"hscfgcmd", item_dev_size(hscfgcmd), 0, item_dev_addr(hscfgcmd),
	 OFFSET_BT_DEV | SHOW_INT}
	,
	{"sdio_pull_cfg", item_dev_size(sdio_pull_cfg), 0,
	 item_dev_addr(sdio_pull_cfg), OFFSET_BT_DEV | SHOW_HEX}
	,
	{"sdio_pull_ctrl", item_dev_size(sdio_pull_ctrl), 0,
	 item_dev_addr(sdio_pull_ctrl), OFFSET_BT_DEV | SHOW_INT}
	,
};

static struct item_data status_items[] = {
	{"version", item_adapter_size(drv_ver), 0, item_adapter_addr(drv_ver),
	 OFFSET_BT_ADAPTER | SHOW_STRING},
	{"tx_dnld_rdy", item_dev_size(tx_dnld_rdy), 0,
	 item_dev_addr(tx_dnld_rdy),
	 OFFSET_BT_DEV | SHOW_INT},
	{"psmode", item_adapter_size(psmode), 0, item_adapter_addr(psmode),
	 OFFSET_BT_ADAPTER | SHOW_INT},
	{"hs_state", item_adapter_size(hs_state), 0,
	 item_adapter_addr(hs_state),
	 OFFSET_BT_ADAPTER | SHOW_INT},
	{"hs_skip", item_adapter_size(hs_skip), 0, item_adapter_addr(hs_skip),
	 OFFSET_BT_ADAPTER | SHOW_INT},
	{"ps_state", item_adapter_size(ps_state), 0,
	 item_adapter_addr(ps_state),
	 OFFSET_BT_ADAPTER | SHOW_INT},
	{"WakeupTries", item_adapter_size(WakeupTries), 0,
Пример #2
0
    {"hscmd", item_dev_size(hscmd), 0, item_dev_addr(hscmd),
     OFFSET_BT_DEV | SHOW_INT}
    ,
    {"gpio_gap", item_dev_size(gpio_gap), 0, item_dev_addr(gpio_gap),
     OFFSET_BT_DEV | SHOW_HEX}
    ,
    {"hscfgcmd", item_dev_size(hscfgcmd), 0, item_dev_addr(hscfgcmd),
     OFFSET_BT_DEV | SHOW_INT}
    ,
};

static struct item_data status_items[] = {
    {"version", 0, (u32) driver_version, 0, SHOW_STRING},
    {"tx_dnld_rdy", item_dev_size(tx_dnld_rdy), 0, item_dev_addr(tx_dnld_rdy),
     OFFSET_BT_DEV | SHOW_INT},
    {"psmode", item_adapter_size(psmode), 0, item_adapter_addr(psmode),
     OFFSET_BT_ADAPTER | SHOW_INT},
    {"hs_state", item_adapter_size(hs_state), 0, item_adapter_addr(hs_state),
     OFFSET_BT_ADAPTER | SHOW_INT},
    {"ps_state", item_adapter_size(ps_state), 0, item_adapter_addr(ps_state),
     OFFSET_BT_ADAPTER | SHOW_INT},
    {"irq_recv", item_adapter_size(irq_recv), 0, item_adapter_addr(irq_recv),
     OFFSET_BT_ADAPTER | SHOW_INT},
    {"irq_done", item_adapter_size(irq_done), 0, item_adapter_addr(irq_done),
     OFFSET_BT_ADAPTER | SHOW_INT},
    {"skb_pending", item_adapter_size(skb_pending), 0,
     item_adapter_addr(skb_pending), OFFSET_BT_ADAPTER | SHOW_INT},
};

static struct item_data debug_items[] = {
    {"sdcmd52rw", 0, (u32) cmd52_string, 0, SHOW_STRING},