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