Resync with broadcom drivers 5.100.138.20 and utilities.
[tomato.git] / release / src-rt / include / hndcpu.h
blob819fab8feb29753ef35f466d1a1fb457468d3cb4
1 /*
2 * HND SiliconBackplane MIPS/ARM cores software interface.
4 * Copyright (C) 2010, Broadcom Corporation. All Rights Reserved.
5 *
6 * Permission to use, copy, modify, and/or distribute this software for any
7 * purpose with or without fee is hereby granted, provided that the above
8 * copyright notice and this permission notice appear in all copies.
9 *
10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
13 * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
15 * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
16 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18 * $Id: hndcpu.h,v 13.10.128.1 2010-10-21 03:13:28 Exp $
21 #ifndef _hndcpu_h_
22 #define _hndcpu_h_
24 #if defined(mips)
25 #include <hndmips.h>
26 #elif defined(__arm__) || defined(__thumb__) || defined(__thumb2__)
27 #include <hndarm.h>
28 #endif
30 extern uint si_irq(si_t *sih);
31 extern uint32 si_cpu_clock(si_t *sih);
32 extern uint32 si_mem_clock(si_t *sih);
33 extern void hnd_cpu_wait(si_t *sih);
34 extern void hnd_cpu_jumpto(void *addr);
35 extern void hnd_cpu_reset(si_t *sih);
36 extern void si_router_coma(si_t *sih, int reset, int delay);
37 extern void si_dmc_phyctl(si_t *sih, uint32 phyctl_val);
39 #endif /* _hndcpu_h_ */