1/* 2 * HND SiliconBackplane chipcommon support. 3 * 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. 17 * 18 * $Id: hndchipc.h,v 13.7 2008/11/13 23:38:15 Exp $ 19 */ 20 21#ifndef _hndchipc_h_ 22#define _hndchipc_h_ 23 24typedef void (*si_serial_init_fn)(void *regs, uint irq, uint baud_base, uint reg_shift); 25 26extern void si_serial_init(si_t *sih, si_serial_init_fn add); 27 28extern void *hnd_jtagm_init(si_t *sih, uint clkd, bool exttap); 29extern void hnd_jtagm_disable(si_t *sih, void *h); 30extern uint32 jtag_scan(si_t *sih, void *h, uint irsz, uint32 ir0, uint32 ir1, 31 uint drsz, uint32 dr0, uint32 *dr1, bool rti); 32 33typedef void (*cc_isr_fn)(void* cbdata, uint32 ccintst); 34 35extern bool si_cc_register_isr(si_t *sih, cc_isr_fn isr, uint32 ccintmask, void *cbdata); 36extern void si_cc_isr(si_t *sih, chipcregs_t *regs); 37 38#endif /* _hndchipc_h_ */ 39