2 * OS independent declarations
4 * Copyright (C) 2010, Broadcom Corporation
7 * This is UNPUBLISHED PROPRIETARY SOURCE CODE of Broadcom Corporation;
8 * the contents of this file may not be disclosed to third parties, copied
9 * or duplicated in any form, in whole or in part, without the prior
10 * written permission of Broadcom Corporation.
12 * $Id: wlu_pipe.h,v 1.6 2009-08-07 06:57:00 Exp $
17 /* Function prototypes defined in wlu_pipe.c */
19 /* Macros to access globals */
20 extern char *g_rwl_device_name_serial
;
21 #define rwl_get_serial_port_name() (g_rwl_device_name_serial)
22 #define rwl_set_serial_port_name(name) (g_rwl_device_name_serial = name)
23 extern char *g_rwl_buf_mac
;
24 #define rwl_get_wifi_mac() (g_rwl_buf_mac)
26 extern int remote_CDC_tx(void *wl
, uint cmd
, uchar
*buf
, uint buf_len
,
27 uint data_len
, uint flags
, int debug
);
28 extern rem_ioctl_t
*remote_CDC_rx_hdr(void *remote
, int debug
);
29 extern int remote_CDC_rx(void *wl
, rem_ioctl_t
*rem_ptr
, uchar
*readbuf
, uint buflen
, int debug
);
31 extern void* rwl_open_pipe(int remote_type
, char *port
, int ReadTotalTimeout
, int debug
);
32 extern int rwl_close_pipe(int remote_type
, void* hndle
);
34 extern int rwl_sockconnect(int SockDes
, struct sockaddr
*servAddr
, int size
);
36 extern int remote_CDC_DATA_wifi_rx_frag(void *wl
, rem_ioctl_t
*rem_ptr
, uint input_len
,
37 void *input
, bool shell
);
38 extern int remote_CDC_DATA_wifi_rx(void *wl
, struct dot11_action_wifi_vendor_specific
*rec_frame
);
40 remote_CDC_wifi_tx(void *wl
, uint cmd
, uchar
*buf
, uint buf_len
, uint data_len
, uint flags
);
41 extern void rwl_wifi_server_response(void *wl
, struct dot11_action_wifi_vendor_specific
*rec_frame
);
42 extern int rwl_find_remote_wifi_server(void *wl
, char *id
);
43 extern void rwl_wifi_purge_actionframes(void *wl
);
44 extern void rwl_wifi_swap_remote_type(int flag
);
45 extern void remote_wifi_ser_init_cmds(void *wl
);
46 #endif /* _wlu_pipe_h */