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/shared/wlu_pipe.h
Views: 3959
1
/*
2
* OS independent declarations
3
*
4
* $Copyright (C) 2008 Broadcom Corporation$
5
*
6
* $Id: wlu_pipe.h 287128 2011-09-30 04:27:53Z estucki $
7
*/
8
#ifndef _wlu_pipe_h
9
#define _wlu_pipe_h
10
11
/* Function prototypes defined in wlu_pipe.c */
12
13
/* Macros to access globals */
14
extern char *g_rwl_device_name_serial;
15
#define rwl_get_serial_port_name() (g_rwl_device_name_serial)
16
#define rwl_set_serial_port_name(name) (g_rwl_device_name_serial = name)
17
extern char *g_rwl_buf_mac;
18
#define rwl_get_wifi_mac() (g_rwl_buf_mac)
19
20
extern int remote_CDC_tx(void *wl, uint cmd, uchar *buf, uint buf_len,
21
uint data_len, uint flags, int debug);
22
extern rem_ioctl_t *remote_CDC_rx_hdr(void *remote, int debug);
23
extern int remote_CDC_rx(void *wl, rem_ioctl_t *rem_ptr, uchar *readbuf, uint buflen, int debug);
24
25
extern void* rwl_open_pipe(int remote_type, char *port, int ReadTotalTimeout, int debug);
26
extern int rwl_close_pipe(int remote_type, void* hndle);
27
28
#ifdef RWL_SOCKET
29
extern int rwl_sockconnect(int SockDes, struct sockaddr *servAddr, int size);
30
#endif /* RWL_SOCKET */
31
32
extern int remote_CDC_DATA_wifi_rx_frag(void *wl, rem_ioctl_t *rem_ptr, uint input_len,
33
void *input, bool shell);
34
extern int remote_CDC_DATA_wifi_rx(void *wl, struct dot11_action_wifi_vendor_specific *rec_frame);
35
extern int
36
remote_CDC_wifi_tx(void *wl, uint cmd, uchar *buf, uint buf_len, uint data_len, uint flags);
37
extern void rwl_wifi_server_response(void *wl, struct dot11_action_wifi_vendor_specific *rec_frame);
38
extern int rwl_find_remote_wifi_server(void *wl, char *id);
39
extern void rwl_wifi_purge_actionframes(void *wl);
40
extern void rwl_wifi_swap_remote_type(int flag);
41
extern void remote_wifi_ser_init_cmds(void *wl);
42
#endif /* _wlu_pipe_h */
43
44