Home | History | Annotate | Download | only in dhdutil
      1 /*
      2  * Common code for dhd command line utility.
      3  *
      4  * Copyright (C) 1999-2011, 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_common.h,v 1.4.34.1 2011-02-05 00:43:28 Exp $
     19  */
     20 
     21 /* Common header file for dhdu_linux.c and dhdu_ndis.c */
     22 
     23 #ifndef _dhdu_common_h
     24 #define _dhdu_common_h
     25 
     26 /* DHD utility function declarations */
     27 extern int dhd_check(void *dhd);
     28 extern int dhd_atoip(const char *a, struct ipv4_addr *n);
     29 extern int dhd_option(char ***pargv, char **pifname, int *phelp);
     30 void dhd_usage(cmd_t *port_cmds);
     31 
     32 static int process_args(struct ifreq* ifr, char **argv);
     33 
     34 
     35 #define dtoh32(i) i
     36 #define dtoh16(i) i
     37 
     38 #endif  /* _dhdu_common_h_ */
     39