aba28bd9dec1a6874fc8539a85d03e05c805c4a8
[openwrt.git] / target / linux / brcm-2.4 / files / arch / mips / bcm947xx / include / hndchipc.h
1 /*
2 * HND SiliconBackplane chipcommon support.
3 *
4 * Copyright 2007, 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 *
12 */
13
14 #ifndef _hndchipc_h_
15 #define _hndchipc_h_
16
17 typedef void (*sb_serial_init_fn)(void *regs, uint irq, uint baud_base, uint reg_shift);
18
19 extern void sb_serial_init(sb_t *sbh, sb_serial_init_fn add);
20
21 extern void *sb_jtagm_init(sb_t *sbh, uint clkd, bool exttap);
22 extern void sb_jtagm_disable(osl_t *osh, void *h);
23 extern uint32 jtag_rwreg(osl_t *osh, void *h, uint32 ir, uint32 dr);
24
25 typedef void (*cc_isr_fn)(void* cbdata, uint32 ccintst);
26
27 extern bool sb_cc_register_isr(sb_t *sbh, cc_isr_fn isr, uint32 ccintmask, void *cbdata);
28 extern void sb_cc_isr(sb_t *sbh, chipcregs_t *regs);
29
30 #endif /* _hndchipc_h_ */
This page took 0.041749 seconds and 3 git commands to generate.