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: hndchipc.h,v 1.1.1.1 2008/10/15 03:25:54 james26_jang Exp $
13 */
14
15#ifndef _hndchipc_h_
16#define _hndchipc_h_
17
18typedef void (*sb_serial_init_fn)(void *regs, uint irq, uint baud_base, uint reg_shift);
19
20extern void sb_serial_init(sb_t *sbh, sb_serial_init_fn add);
21
22extern void *sb_jtagm_init(sb_t *sbh, uint clkd, bool exttap);
23extern void sb_jtagm_disable(osl_t *osh, void *h);
24extern uint32 jtag_rwreg(osl_t *osh, void *h, uint32 ir, uint32 dr);
25
26typedef	void (*cc_isr_fn)(void* cbdata, uint32 ccintst);
27
28extern bool sb_cc_register_isr(sb_t *sbh, cc_isr_fn isr, uint32 ccintmask, void *cbdata);
29extern void sb_cc_isr(sb_t *sbh, chipcregs_t *regs);
30
31#endif /* _hndchipc_h_ */
32