Path: blob/next/external/cache/sources/wl/dhd/dhdu.h
18293 views
/*1* Definitions for DHD command-line utility2*3* $Copyright Open Broadcom Corporation$4*5* $Id: dhdu.h 294362 2011-11-06 22:26:56Z $6*/78#ifndef _dhdu_h_9#define _dhdu_h_1011#include "dhdu_cmd.h"1213extern char *dhdu_av0;1415/* parse common option */16extern int dhd_option(char ***pargv, char **pifname, int *phelp);17extern void dhd_cmd_init(void);1819/* print usage */20extern void dhd_cmd_usage(cmd_t *cmd);21extern void dhd_usage(cmd_t *port_cmds);22extern void dhd_cmds_usage(cmd_t *port_cmds);2324/* print helpers */25extern void dhd_printlasterror(void *dhd);26extern void dhd_printint(int val);2728/* check driver version */29extern int dhd_check(void *dhd);3031/* utility functions */32struct ipv4_addr;33int dhd_ether_atoe(const char *a, struct ether_addr *n);34int dhd_atoip(const char *a, struct ipv4_addr *n);3536#define USAGE_ERROR -1 /* Error code for Usage */37#define IOCTL_ERROR -2 /* Error code for ioctl failure */38#define COMMAND_ERROR -3 /* Error code for general command failure */3940/* integer output format */41#define INT_FMT_DEC 0 /* signed integer */42#define INT_FMT_UINT 1 /* unsigned integer */43#define INT_FMT_HEX 2 /* hexdecimal */4445/* command line argument usage */46#define CMD_ERR -1 /* Error for command */47#define CMD_OPT 0 /* a command line option */48#define CMD_DHD 1 /* the start of a dhd command */4950#endif /* _dhdu_h_ */515253