1224110Sjchandra/*-
2224110Sjchandra * Copyright 2003-2011 Netlogic Microsystems (Netlogic). All rights
3224110Sjchandra * reserved.
4224110Sjchandra *
5224110Sjchandra * Redistribution and use in source and binary forms, with or without
6224110Sjchandra * modification, are permitted provided that the following conditions are
7224110Sjchandra * met:
8224110Sjchandra *
9224110Sjchandra * 1. Redistributions of source code must retain the above copyright
10224110Sjchandra *    notice, this list of conditions and the following disclaimer.
11224110Sjchandra * 2. Redistributions in binary form must reproduce the above copyright
12224110Sjchandra *    notice, this list of conditions and the following disclaimer in
13224110Sjchandra *    the documentation and/or other materials provided with the
14224110Sjchandra *    distribution.
15224110Sjchandra *
16224110Sjchandra * THIS SOFTWARE IS PROVIDED BY Netlogic Microsystems ``AS IS'' AND
17224110Sjchandra * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18224110Sjchandra * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
19224110Sjchandra * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL NETLOGIC OR CONTRIBUTORS BE
20224110Sjchandra * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21224110Sjchandra * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22224110Sjchandra * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23224110Sjchandra * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24224110Sjchandra * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25224110Sjchandra * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
26224110Sjchandra * THE POSSIBILITY OF SUCH DAMAGE.
27224110Sjchandra *
28225394Sjchandra * NETLOGIC_BSD
29224110Sjchandra * $FreeBSD$
30225394Sjchandra */
31224110Sjchandra
32224110Sjchandra#ifndef _RMI_INTERRUPT_H_
33224110Sjchandra#define _RMI_INTERRUPT_H_
34224110Sjchandra
35224110Sjchandra/* Defines for the IRQ numbers */
36224110Sjchandra
37224110Sjchandra#define IRQ_IPI			41  /* 8-39 are mapped by PIC intr 0-31 */
38224110Sjchandra#define IRQ_MSGRING             6
39224110Sjchandra#define IRQ_TIMER               7
40224110Sjchandra
41224110Sjchandra/*
42224110Sjchandra * XLR needs custom pre and post handlers for PCI/PCI-e interrupts
43224110Sjchandra * XXX: maybe follow i386 intsrc model
44224110Sjchandra */
45224110Sjchandravoid xlp_establish_intr(const char *name, driver_filter_t filt,
46224110Sjchandra    driver_intr_t handler, void *arg, int irq, int flags,
47224110Sjchandra    void **cookiep, void (*busack)(int));
48224110Sjchandravoid xlp_enable_irq(int irq);
49224110Sjchandra
50224110Sjchandra#endif				/* _RMI_INTERRUPT_H_ */
51