1139969Simp/*	$NetBSD: ap_ms104_sh4var.h,v 1.1 2010/04/06 15:54:29 nonaka Exp $	*/
21556Srgrimes
31556Srgrimes/*-
41556Srgrimes * Copyright (C) 2009 NONAKA Kimihiro <nonaka@netbsd.org>
51556Srgrimes * All rights reserved.
61556Srgrimes *
71556Srgrimes * Redistribution and use in source and binary forms, with or without
81556Srgrimes * modification, are permitted provided that the following conditions
91556Srgrimes * are met:
101556Srgrimes * 1. Redistributions of source code must retain the above copyright
111556Srgrimes *    notice, this list of conditions and the following disclaimer.
121556Srgrimes * 2. Redistributions in binary form must reproduce the above copyright
131556Srgrimes *    notice, this list of conditions and the following disclaimer in the
141556Srgrimes *    documentation and/or other materials provided with the distribution.
151556Srgrimes *
161556Srgrimes * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
171556Srgrimes * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
181556Srgrimes * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
191556Srgrimes * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
201556Srgrimes * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
211556Srgrimes * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
221556Srgrimes * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
231556Srgrimes * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
241556Srgrimes * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
251556Srgrimes * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
261556Srgrimes */
271556Srgrimes
281556Srgrimes#ifndef	AP_MS104_SH4VAR_H_
291556Srgrimes#define	AP_MS104_SH4VAR_H_
301556Srgrimes
311556Srgrimes#include <sys/bus.h>
321556Srgrimes
33114433Sobrienextern struct _bus_space ap_ms104_sh4_bus_io;
341556Srgrimesextern struct _bus_space ap_ms104_sh4_bus_mem;
3520420Ssteveextern struct _bus_space ap_ms104_sh4_bus_att;
361556Srgrimes
371556Srgrimesvoid machine_init(void);
381556Srgrimesvoid extintr_init(void);
391556Srgrimesvoid *extintr_establish(int, int, int, int (*)(void *), void *);
401556Srgrimesvoid extintr_disestablish(void *);
4136049Scharniervoid gpio_intr_init(void);
42114433Sobrienvoid *gpio_intr_establish(int, int (*)(void *), void *);
4336049Scharniervoid gpior_intr_disestablish(void *);
4492974Sobrien
4592974Sobrien#endif	/* AP_MS104_SH4VAR_H_ */
461556Srgrimes