CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
orangepi-xunlong

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: orangepi-xunlong/orangepi-build
Path: blob/next/external/cache/sources/wl/dhd/dhdu.h
Views: 3960
1
/*
2
* Definitions for DHD command-line utility
3
*
4
* $Copyright Open Broadcom Corporation$
5
*
6
* $Id: dhdu.h 294362 2011-11-06 22:26:56Z $
7
*/
8
9
#ifndef _dhdu_h_
10
#define _dhdu_h_
11
12
#include "dhdu_cmd.h"
13
14
extern char *dhdu_av0;
15
16
/* parse common option */
17
extern int dhd_option(char ***pargv, char **pifname, int *phelp);
18
extern void dhd_cmd_init(void);
19
20
/* print usage */
21
extern void dhd_cmd_usage(cmd_t *cmd);
22
extern void dhd_usage(cmd_t *port_cmds);
23
extern void dhd_cmds_usage(cmd_t *port_cmds);
24
25
/* print helpers */
26
extern void dhd_printlasterror(void *dhd);
27
extern void dhd_printint(int val);
28
29
/* check driver version */
30
extern int dhd_check(void *dhd);
31
32
/* utility functions */
33
struct ipv4_addr;
34
int dhd_ether_atoe(const char *a, struct ether_addr *n);
35
int dhd_atoip(const char *a, struct ipv4_addr *n);
36
37
#define USAGE_ERROR -1 /* Error code for Usage */
38
#define IOCTL_ERROR -2 /* Error code for ioctl failure */
39
#define COMMAND_ERROR -3 /* Error code for general command failure */
40
41
/* integer output format */
42
#define INT_FMT_DEC 0 /* signed integer */
43
#define INT_FMT_UINT 1 /* unsigned integer */
44
#define INT_FMT_HEX 2 /* hexdecimal */
45
46
/* command line argument usage */
47
#define CMD_ERR -1 /* Error for command */
48
#define CMD_OPT 0 /* a command line option */
49
#define CMD_DHD 1 /* the start of a dhd command */
50
51
#endif /* _dhdu_h_ */
52
53