1/*
2 * OS Independent Layer
3 *
4 * Copyright 2004, Broadcom Corporation
5 * All Rights Reserved.
6 *
7 * THIS SOFTWARE IS OFFERED "AS IS", AND BROADCOM GRANTS NO WARRANTIES OF ANY
8 * KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. BROADCOM
9 * SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
10 * FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE.
11 * $Id: upnp_osl.h,v 1.1.1.1 2008/10/15 03:31:35 james26_jang Exp $
12 */
13
14#ifndef _upnp_osl_h_
15#define _upnp_osl_h_
16
17#if defined(linux)
18#include <linux_osl.h>
19#else
20#error "Unsupported OSL requested"
21#endif
22#include "typedefs.h"
23
24/* forward declaration - defined in upnp.h */
25struct _if_stats;
26
27
28typedef enum { OSL_LINK_DOWN = 0, OSL_LINK_UP = 1 } osl_link_t;
29
30extern struct in_addr *osl_ifaddr(const char *, struct in_addr *);
31extern int osl_ifstats(char *, struct _if_stats *);
32extern void osl_sys_restart();
33extern void osl_sys_reboot();
34extern osl_link_t osl_link_status(char *devname);
35extern uint osl_max_bitrates(char *devname, ulong *rx, ulong *tx);
36extern void osl_sys_restart();
37extern void osl_sys_reboot();
38extern void osl_igd_disable(char *devname);
39extern void osl_igd_enable(char *devname);
40extern bool osl_wan_isup(char *devname);
41extern bool osl_lan_isup(char *devname);
42extern bool osl_set_macaddr(char *devname, char spoofed[]);
43
44#endif	/* _upnp_osl_h_ */
45