Resync with broadcom drivers 5.100.138.20 and utilities.
[tomato.git] / release / src-rt / include / hndchipc.h
blobffc82f51855221cffd4f6167db22491b752bcdfe
1 /*
2 * HND SiliconBackplane chipcommon support.
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: hndchipc.h,v 13.7 2008-11-13 23:38:15 Exp $
21 #ifndef _hndchipc_h_
22 #define _hndchipc_h_
24 typedef void (*si_serial_init_fn)(void *regs, uint irq, uint baud_base, uint reg_shift);
26 extern void si_serial_init(si_t *sih, si_serial_init_fn add);
28 extern void *hnd_jtagm_init(si_t *sih, uint clkd, bool exttap);
29 extern void hnd_jtagm_disable(si_t *sih, void *h);
30 extern uint32 jtag_scan(si_t *sih, void *h, uint irsz, uint32 ir0, uint32 ir1,
31 uint drsz, uint32 dr0, uint32 *dr1, bool rti);
33 typedef void (*cc_isr_fn)(void* cbdata, uint32 ccintst);
35 extern bool si_cc_register_isr(si_t *sih, cc_isr_fn isr, uint32 ccintmask, void *cbdata);
36 extern void si_cc_isr(si_t *sih, chipcregs_t *regs);
38 #endif /* _hndchipc_h_ */