1 /* $NetBSD: plumicuvar.h,v 1.2 2001/09/15 12:47:06 uch Exp $ */ 2 3 /*- 4 * Copyright (c) 1999 The NetBSD Foundation, Inc. 5 * All rights reserved. 6 * 7 * This code is derived from software contributed to The NetBSD Foundation 8 * by UCHIYAMA Yasushi. 9 * 10 * Redistribution and use in source and binary forms, with or without 11 * modification, are permitted provided that the following conditions 12 * are met: 13 * 1. Redistributions of source code must retain the above copyright 14 * notice, this list of conditions and the following disclaimer. 15 * 2. Redistributions in binary form must reproduce the above copyright 16 * notice, this list of conditions and the following disclaimer in the 17 * documentation and/or other materials provided with the distribution. 18 * 3. All advertising materials mentioning features or use of this software 19 * must display the following acknowledgement: 20 * This product includes software developed by the NetBSD 21 * Foundation, Inc. and its contributors. 22 * 4. Neither the name of The NetBSD Foundation nor the names of its 23 * contributors may be used to endorse or promote products derived 24 * from this software without specific prior written permission. 25 * 26 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 27 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 28 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 29 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 30 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 31 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 32 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 33 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 34 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 35 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 36 * POSSIBILITY OF SUCH DAMAGE. 37 */ 38 39 /* 40 * 1 EXT -> IO5(INT0, INT1, INT2), IO3(INT0, INT1) 41 * 2 SM 42 * 3 USBWAKE 43 * 4 USB 44 * 5 DISP 45 * 6 C2SC 46 * 7 C1SC 47 * 8 PCC -> C1IO, C1RI, C2IO, C2RI 48 */ 49 50 /* Logical interrupt line # */ 51 #define PLUM_INT_C1IO 0 52 #define PLUM_INT_C1RI 1 53 #define PLUM_INT_C1SC 2 54 #define PLUM_INT_C2IO 3 55 #define PLUM_INT_C2RI 4 56 #define PLUM_INT_C2SC 5 57 #define PLUM_INT_DISP 6 58 #define PLUM_INT_USB 7 59 #define PLUM_INT_USBWAKE 8 60 #define PLUM_INT_SM 9 61 #define PLUM_INT_EXT5IO0 10 62 #define PLUM_INT_EXT5IO1 11 63 #define PLUM_INT_EXT5IO2 12 64 #define PLUM_INT_EXT5IO3 13 65 #define PLUM_INT_EXT3IO0 14 66 #define PLUM_INT_EXT3IO1 15 67 68 #define PLUM_INTR_MAX 16 69 #define LEGAL_PRUM_INTR(x) (((x) >= 0) && ((x) < PLUM_INTR_MAX)) 70 71 void *plum_intr_establish(plum_chipset_tag_t, int, int, int, int (*)(void *), 72 void *); 73 void plum_intr_disestablish(plum_chipset_tag_t, void *); 74