1231057Sdim/* $NetBSD: timer_jazziovar.h,v 1.5 2005/12/11 12:16:39 christos Exp $ */ 2231057Sdim 3246705Sandrew/*- 4246705Sandrew * Copyright (c) 2001 The NetBSD Foundation, Inc. 5231057Sdim * All rights reserved. 6231057Sdim * 7231057Sdim * This code is derived from software contributed to The NetBSD Foundation 8231057Sdim * by SODA Noriyuki. 9231057Sdim * 10231057Sdim * Redistribution and use in source and binary forms, with or without 11231057Sdim * modification, are permitted provided that the following conditions 12231057Sdim * are met: 13231057Sdim * 1. Redistributions of source code must retain the above copyright 14231057Sdim * notice, this list of conditions and the following disclaimer. 15231057Sdim * 2. Redistributions in binary form must reproduce the above copyright 16231057Sdim * notice, this list of conditions and the following disclaimer in the 17231057Sdim * documentation and/or other materials provided with the distribution. 18231057Sdim * 19276479Sdim * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 20288943Sdim * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 21276479Sdim * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 22276479Sdim * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 23249423Sdim * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 24231057Sdim * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 25231057Sdim * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 26234353Sdim * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 27231057Sdim * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 28280031Sdim * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29280031Sdim * POSSIBILITY OF SUCH DAMAGE. 30280031Sdim */ 31280031Sdim 32231057Sdimstruct timer_jazzio_config { 33231057Sdim uint32_t tjc_intr_mask; 34231057Sdim uint32_t (*tjc_intr)(uint32_t, struct clockframe *); 35231057Sdim void (*tjc_init)(int); 36288943Sdim}; 37231057Sdim 38231057Sdimextern struct timer_jazzio_config *timer_jazzio_conf; 39231057Sdimextern struct evcnt timer_jazzio_ev; 40231057Sdim