GUI: Fix Tomato RAF theme for all builds. Compilation typo.
[tomato.git] / release / src-rt-6.x.4708 / et / sys / et_export.h
blob48b78fd68c21df0c969e818877dffeee8d4864fd
1 /*
2 * Required functions exported by the port-specific (os-dependent) driver
3 * to common (os-independent) driver code.
5 * Copyright (C) 2012, Broadcom Corporation. All Rights Reserved.
6 *
7 * Permission to use, copy, modify, and/or distribute this software for any
8 * purpose with or without fee is hereby granted, provided that the above
9 * copyright notice and this permission notice appear in all copies.
11 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
12 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
13 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
14 * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
16 * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
17 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18 * $Id: et_export.h 381881 2013-01-30 06:04:30Z $
21 #ifndef _et_export_h_
22 #define _et_export_h_
24 /* misc callbacks */
25 extern void et_init(void *et, uint options);
26 extern void et_reset(void *et);
27 extern void et_link_up(void *et);
28 extern void et_link_down(void *et);
29 extern int et_up(void *et);
30 extern int et_down(void *et, int reset);
31 extern void et_dump(void *et, struct bcmstrbuf *b);
32 extern void et_intrson(void *et);
34 /* for BCM5222 dual-phy shared mdio contortion */
35 extern void *et_phyfind(void *et, uint coreunit);
36 extern uint16 et_phyrd(void *et, uint phyaddr, uint reg);
37 extern void et_phywr(void *et, uint reg, uint phyaddr, uint16 val);
38 #ifdef HNDCTF
39 extern void et_dump_ctf(void *et, struct bcmstrbuf *b);
40 #endif
41 #ifdef BCMDBG_CTRACE
42 extern void et_dump_ctrace(void *et, struct bcmstrbuf *b);
43 #endif
44 #endif /* _et_export_h_ */