usbmodeswitch: Updated to v.1.2.6 from shibby's branch.
[tomato.git] / release / src-rt / include / hndarm.h
blob1f8c610aed046d284fd969359a6e2de0ccb47375
1 /*
2 * HND SiliconBackplane ARM core 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: hndarm.h,v 13.12 2008-03-28 19:05:46 Exp $
21 #ifndef _hndarm_h_
22 #define _hndarm_h_
24 #include <sbhndarm.h>
26 extern void *hndarm_armr;
27 extern uint32 hndarm_rev;
30 extern void si_arm_init(si_t *sih);
32 extern void enable_arm_ints(uint32 which);
33 extern void disable_arm_ints(uint32 which);
35 extern uint32 get_arm_cyclecount(void);
36 extern void set_arm_cyclecount(uint32 ticks);
38 extern uint32 get_arm_inttimer(void);
39 extern void set_arm_inttimer(uint32 ticks);
41 extern uint32 get_arm_intmask(void);
42 extern void set_arm_intmask(uint32 ticks);
44 extern uint32 get_arm_intstatus(void);
45 extern void set_arm_intstatus(uint32 ticks);
47 extern void arm_wfi(si_t *sih);
48 extern void arm_jumpto(void *addr);
50 #endif /* _hndarm_h_ */