nexmon – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | /* |
2 | * Definitions for DHD command-line utility |
||
3 | * |
||
4 | * Copyright (C) 1999-2013, Broadcom Corporation |
||
5 | * |
||
6 | * Permission to use, copy, modify, and/or distribute this software for any |
||
7 | * purpose with or without fee is hereby granted, provided that the above |
||
8 | * copyright notice and this permission notice appear in all copies. |
||
9 | * |
||
10 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
||
11 | * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
||
12 | * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY |
||
13 | * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
||
14 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION |
||
15 | * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN |
||
16 | * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
||
17 | * |
||
18 | * $Id: dhdu.h 379386 2013-01-17 07:20:55Z $ |
||
19 | */ |
||
20 | |||
21 | #ifndef _dhdu_h_ |
||
22 | #define _dhdu_h_ |
||
23 | |||
24 | #include "dhdu_cmd.h" |
||
25 | |||
26 | extern char *dhdu_av0; |
||
27 | |||
28 | /* parse common option */ |
||
29 | extern int dhd_option(char ***pargv, char **pifname, int *phelp); |
||
30 | extern void dhd_cmd_init(void); |
||
31 | |||
32 | /* print usage */ |
||
33 | extern void dhd_cmd_usage(cmd_t *cmd); |
||
34 | extern void dhd_usage(cmd_t *port_cmds); |
||
35 | extern void dhd_cmds_usage(cmd_t *port_cmds); |
||
36 | |||
37 | /* print helpers */ |
||
38 | extern void dhd_printlasterror(void *dhd); |
||
39 | extern void dhd_printint(int val); |
||
40 | |||
41 | /* check driver version */ |
||
42 | extern int dhd_check(void *dhd); |
||
43 | |||
44 | /* utility functions */ |
||
45 | struct ipv4_addr; |
||
46 | int dhd_ether_atoe(const char *a, struct ether_addr *n); |
||
47 | int dhd_atoip(const char *a, struct ipv4_addr *n); |
||
48 | |||
49 | /* integer output format */ |
||
50 | #define INT_FMT_DEC 0 /* signed integer */ |
||
51 | #define INT_FMT_UINT 1 /* unsigned integer */ |
||
52 | #define INT_FMT_HEX 2 /* hexdecimal */ |
||
53 | |||
54 | /* command line argument usage */ |
||
55 | #define CMD_ERR -1 /* Error for command */ |
||
56 | #define CMD_OPT 0 /* a command line option */ |
||
57 | #define CMD_DHD 1 /* the start of a dhd command */ |
||
58 | |||
59 | #endif /* _dhdu_h_ */ |