[kernel] generic-2.6/2.6.24: refresh patches
[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 * $Id$
13 */
14
15 #ifndef _hndchipc_h_
16 #define _hndchipc_h_
17
18 typedef void (*sb_serial_init_fn)(void *regs, uint irq, uint baud_base, uint reg_shift);
19
20 extern void sb_serial_init(sb_t *sbh, sb_serial_init_fn add);
21
22 extern void *sb_jtagm_init(sb_t *sbh, uint clkd, bool exttap);
23 extern void sb_jtagm_disable(osl_t *osh, void *h);
24 extern uint32 jtag_rwreg(osl_t *osh, void *h, uint32 ir, uint32 dr);
25
26 typedef void (*cc_isr_fn)(void* cbdata, uint32 ccintst);
27
28 extern bool sb_cc_register_isr(sb_t *sbh, cc_isr_fn isr, uint32 ccintmask, void *cbdata);
29 extern void sb_cc_isr(sb_t *sbh, chipcregs_t *regs);
30
31 #endif /* _hndchipc_h_ */
This page took 0.056006 seconds and 5 git commands to generate.