1/*
2 * Required functions exported by the port-specific (os-dependent) driver
3 * to common (os-independent) driver code.
4 *
5 * Copyright (C) 2013, 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.
10 *
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 418172 2013-08-14 06:08:25Z $
19 */
20
21#ifndef _et_export_h_
22#define _et_export_h_
23
24/* misc callbacks */
25extern void et_init(void *et, uint options);
26extern void et_reset(void *et);
27extern void et_link_up(void *et);
28extern void et_link_down(void *et);
29extern int et_up(void *et);
30extern int et_down(void *et, int reset);
31extern void et_dump(void *et, struct bcmstrbuf *b);
32extern void et_intrson(void *et);
33
34/* for BCM5222 dual-phy shared mdio contortion */
35extern void *et_phyfind(void *et, uint coreunit);
36extern uint16 et_phyrd(void *et, uint phyaddr, uint reg);
37extern void et_phywr(void *et, uint reg, uint phyaddr, uint16 val);
38#ifdef HNDCTF
39extern void et_dump_ctf(void *et, struct bcmstrbuf *b);
40#endif
41#ifdef BCMDBG_CTRACE
42extern void et_dump_ctrace(void *et, struct bcmstrbuf *b);
43#endif
44#ifdef ETFA
45extern void et_fa_lock_init(void *et);
46extern void et_fa_lock(void *et);
47extern void et_fa_unlock(void *et);
48extern void *et_fa_get_fa_dev(void *et);
49extern bool et_fa_dev_on(void *dev);
50extern void et_fa_set_dev_on(void *et);
51extern void *et_fa_fs_create(void);
52extern void et_fa_fs_clean(void);
53#endif /* ETFA */
54#endif	/* _et_export_h_ */
55