xref: /netbsd-src/sys/arch/hppa/dev/ssiovar.h (revision 6d3ceb1d619615401b17c9aa3e4bc674a1cb048b)
1*6d3ceb1dSskrll /*	$NetBSD: ssiovar.h,v 1.1 2014/02/24 07:23:43 skrll Exp $	*/
2*6d3ceb1dSskrll 
3*6d3ceb1dSskrll /*	$OpenBSD: ssiovar.h,v 1.1 2007/06/19 22:51:26 kettenis Exp $	*/
4*6d3ceb1dSskrll 
5*6d3ceb1dSskrll /*
6*6d3ceb1dSskrll  * Copyright (c) 2007 Mark Kettenis
7*6d3ceb1dSskrll  *
8*6d3ceb1dSskrll  * Permission to use, copy, modify, and distribute this software for any
9*6d3ceb1dSskrll  * purpose with or without fee is hereby granted, provided that the above
10*6d3ceb1dSskrll  * copyright notice and this permission notice appear in all copies.
11*6d3ceb1dSskrll  *
12*6d3ceb1dSskrll  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
13*6d3ceb1dSskrll  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
14*6d3ceb1dSskrll  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
15*6d3ceb1dSskrll  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
16*6d3ceb1dSskrll  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
17*6d3ceb1dSskrll  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
18*6d3ceb1dSskrll  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
19*6d3ceb1dSskrll  */
20*6d3ceb1dSskrll 
21*6d3ceb1dSskrll struct ssio_attach_args {
22*6d3ceb1dSskrll 	const char *saa_name;
23*6d3ceb1dSskrll 	bus_space_tag_t saa_iot;
24*6d3ceb1dSskrll 	bus_addr_t saa_iobase;
25*6d3ceb1dSskrll 	int saa_irq;
26*6d3ceb1dSskrll };
27*6d3ceb1dSskrll 
28*6d3ceb1dSskrll #define ssiocf_irq	cf_loc[0]
29*6d3ceb1dSskrll #define SSIO_UNK_IRQ	-1
30*6d3ceb1dSskrll 
31*6d3ceb1dSskrll void *ssio_intr_establish(int, int, int (*)(void *), void *, const char *);
32