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 * 19 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 20 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 21 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 23 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 24 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 25 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 27 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29 * POSSIBILITY OF SUCH DAMAGE. 30 */ 31 32/* 33 * 1 EXT -> IO5(INT0, INT1, INT2), IO3(INT0, INT1) 34 * 2 SM 35 * 3 USBWAKE 36 * 4 USB 37 * 5 DISP 38 * 6 C2SC 39 * 7 C1SC 40 * 8 PCC -> C1IO, C1RI, C2IO, C2RI 41 */ 42 43/* Logical interrupt line # */ 44#define PLUM_INT_C1IO 0 45#define PLUM_INT_C1RI 1 46#define PLUM_INT_C1SC 2 47#define PLUM_INT_C2IO 3 48#define PLUM_INT_C2RI 4 49#define PLUM_INT_C2SC 5 50#define PLUM_INT_DISP 6 51#define PLUM_INT_USB 7 52#define PLUM_INT_USBWAKE 8 53#define PLUM_INT_SM 9 54#define PLUM_INT_EXT5IO0 10 55#define PLUM_INT_EXT5IO1 11 56#define PLUM_INT_EXT5IO2 12 57#define PLUM_INT_EXT5IO3 13 58#define PLUM_INT_EXT3IO0 14 59#define PLUM_INT_EXT3IO1 15 60 61#define PLUM_INTR_MAX 16 62#define LEGAL_PRUM_INTR(x) (((x) >= 0) && ((x) < PLUM_INTR_MAX)) 63 64void *plum_intr_establish(plum_chipset_tag_t, int, int, int, int (*)(void *), 65 void *); 66void plum_intr_disestablish(plum_chipset_tag_t, void *); 67