Path: blob/next/external/cache/sources/wl/dhd/dhdu_cmd.h
18293 views
/*1* Command structure for dhd command line utility, copied from wl utility2*3* $Copyright Open Broadcom Corporation$4*5* $Id: dhdu_cmd.h 241182 2011-02-17 21:50:03Z $6*/78#ifndef _dhdu_cmd_h_9#define _dhdu_cmd_h_1011typedef struct cmd cmd_t;12typedef int (cmd_func_t)(void *dhd, cmd_t *cmd, char **argv);1314/* generic command line argument handler */15struct cmd {16char *name;17cmd_func_t *func;18int get;19int set;20char *help;21};2223/* list of command line arguments */24extern cmd_t dhd_cmds[];25extern cmd_t dhd_varcmd;2627/* Special set cmds to do download via dev node interface if present */28#define DHD_DLDN_ST 0x40029#define DHD_DLDN_WRITE (DHD_DLDN_ST + 1)30#define DHD_DLDN_END (DHD_DLDN_ST + 2)3132/* per-port ioctl handlers */33extern int dhd_get(void *dhd, int cmd, void *buf, int len);34extern int dhd_set(void *dhd, int cmd, void *buf, int len);3536#endif /* _dhdu_cmd_h_ */373839