You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.6 KiB
C
39 lines
1.6 KiB
C
/*
|
|
* HND SiliconBackplane chipcommon support.
|
|
*
|
|
* Copyright (C) 2015, Broadcom Corporation. All Rights Reserved.
|
|
*
|
|
* Permission to use, copy, modify, and/or distribute this software for any
|
|
* purpose with or without fee is hereby granted, provided that the above
|
|
* copyright notice and this permission notice appear in all copies.
|
|
*
|
|
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
|
|
* SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
|
|
* OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
|
|
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
*
|
|
* $Id: hndchipc.h 419467 2013-08-21 09:19:48Z $
|
|
*/
|
|
|
|
#ifndef _hndchipc_h_
|
|
#define _hndchipc_h_
|
|
|
|
typedef void (*si_serial_init_fn)(void *regs, uint irq, uint baud_base, uint reg_shift);
|
|
|
|
extern void si_serial_init(si_t *sih, si_serial_init_fn add);
|
|
|
|
extern void *hnd_jtagm_init(si_t *sih, uint clkd, bool exttap);
|
|
extern void hnd_jtagm_disable(si_t *sih, void *h);
|
|
extern uint32 jtag_scan(si_t *sih, void *h, uint irsz, uint32 ir0, uint32 ir1,
|
|
uint drsz, uint32 dr0, uint32 *dr1, bool rti);
|
|
|
|
typedef void (*cc_isr_fn)(void* cbdata, uint32 ccintst);
|
|
|
|
extern bool si_cc_register_isr(si_t *sih, cc_isr_fn isr, uint32 ccintmask, void *cbdata);
|
|
extern void si_cc_isr(si_t *sih, chipcregs_t *regs);
|
|
|
|
#endif /* _hndchipc_h_ */
|