1*ce099b40Smartin /* $NetBSD: sysasicvar.h,v 1.7 2008/04/28 20:23:16 martin Exp $ */ 2bc069b93Smarcus 3bc069b93Smarcus /*- 4bc069b93Smarcus * Copyright (c) 2001 The NetBSD Foundation, Inc. 5bc069b93Smarcus * All rights reserved. 6bc069b93Smarcus * 7bc069b93Smarcus * This code is derived from software contributed to The NetBSD Foundation 8bc069b93Smarcus * by 9bc069b93Smarcus * 10bc069b93Smarcus * Redistribution and use in source and binary forms, with or without 11bc069b93Smarcus * modification, are permitted provided that the following conditions 12bc069b93Smarcus * are met: 13bc069b93Smarcus * 1. Redistributions of source code must retain the above copyright 14bc069b93Smarcus * notice, this list of conditions and the following disclaimer. 15bc069b93Smarcus * 2. Redistributions in binary form must reproduce the above copyright 16bc069b93Smarcus * notice, this list of conditions and the following disclaimer in the 17bc069b93Smarcus * documentation and/or other materials provided with the distribution. 18bc069b93Smarcus * 19bc069b93Smarcus * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 20bc069b93Smarcus * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 21bc069b93Smarcus * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 22bc069b93Smarcus * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 23bc069b93Smarcus * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 24bc069b93Smarcus * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 25bc069b93Smarcus * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 26bc069b93Smarcus * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 27bc069b93Smarcus * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 28bc069b93Smarcus * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29bc069b93Smarcus * POSSIBILITY OF SUCH DAMAGE. 30bc069b93Smarcus */ 31bc069b93Smarcus 32bc069b93Smarcus #ifndef _DREAMCAST_SYSASICVAR_H_ 33bc069b93Smarcus #define _DREAMCAST_SYSASICVAR_H_ 34bc069b93Smarcus 357710d527Sitohy #define SYSASIC_EVENT_MAPLE_DMADONE 12 367710d527Sitohy #define SYSASIC_EVENT_MAPLE_ERROR 13 37bc069b93Smarcus #define SYSASIC_EVENT_GDROM 32 38bc069b93Smarcus #define SYSASIC_EVENT_AICA 33 39fbc8e474Stsutsui #define SYSASIC_EVENT_8BIT 34 40bc069b93Smarcus #define SYSASIC_EVENT_EXT 35 417710d527Sitohy #define SYSASIC_EVENT_MAX 65 42bc069b93Smarcus 430b5d7fc8Stsutsui #define SYSASIC_IRL9 9 440b5d7fc8Stsutsui #define SYSASIC_IRL11 11 450b5d7fc8Stsutsui #define SYSASIC_IRL13 13 460b5d7fc8Stsutsui 4750a256a3Sperry const char *__pure sysasic_intr_string(int /*ipl*/) __attribute__((const)); 480b5d7fc8Stsutsui void *sysasic_intr_establish(int /*event*/, int /*ipl*/, int /*irl*/, 497710d527Sitohy int (*ih_fun)(void *), void *); 50e8300f36Such void sysasic_intr_disestablish(void *); 517710d527Sitohy void sysasic_intr_enable(void *, int /*on*/); 52bc069b93Smarcus 53bc069b93Smarcus #endif /* !_DREAMCAST_SYSASICVAR_H_ */ 54