Home | History | Annotate | Line # | Download | only in ibus
ibusvar.h revision 1.5.4.1
      1  1.5.4.1   thorpej /*	$NetBSD: ibusvar.h,v 1.5.4.1 1999/06/21 00:58:51 thorpej Exp $	*/
      2      1.1  jonathan 
      3      1.1  jonathan #ifndef __IBUSVAR_H
      4      1.1  jonathan #define __IBUSVAR_H
      5      1.1  jonathan 
      6      1.5  nisimura #include <mips/cpuregs.h>
      7      1.5  nisimura 
      8      1.1  jonathan /*
      9      1.5  nisimura  * function types for interrupt establish/disestablish
     10      1.1  jonathan  */
     11      1.1  jonathan struct ibus_attach_args;
     12      1.2       mrg typedef int (ibus_intr_establish_t) __P((void * cookie, int level,
     13      1.5  nisimura 			int (*handler)(intr_arg_t), intr_arg_t arg));
     14      1.2       mrg typedef int (ibus_intr_disestablish_t)  __P((struct ibus_attach_args *));
     15      1.1  jonathan 
     16      1.1  jonathan 
     17  1.5.4.1   thorpej /*
     18      1.5  nisimura  * Arguments used to attach an ibus "device" to its parent
     19      1.1  jonathan  */
     20      1.1  jonathan struct ibus_dev_attach_args {
     21      1.1  jonathan 	const char *ibd_busname;		/* XXX should be common */
     22      1.1  jonathan #ifdef notyet
     23      1.1  jonathan 	bus_space_tag_t	iba_memt;
     24      1.1  jonathan #endif
     25      1.1  jonathan 	ibus_intr_establish_t	(*ibd_establish);
     26      1.1  jonathan 	ibus_intr_disestablish_t (*ibd_disestablish);
     27      1.1  jonathan 	int			ibd_ndevs;
     28      1.1  jonathan 	struct ibus_attach_args	*ibd_devs;
     29      1.1  jonathan };
     30      1.1  jonathan 
     31      1.1  jonathan /*
     32      1.1  jonathan  * Arguments used to attach devices to an ibus
     33      1.1  jonathan  */
     34      1.1  jonathan struct ibus_attach_args {
     35      1.1  jonathan 	char	*ia_name;		/* Device name. */
     36      1.3  jonathan 	int	ia_cookie;		/* Device slot (table entry). */
     37      1.4  nisimura 	u_int32_t ia_addr;		/* Device address. */
     38      1.1  jonathan };
     39      1.1  jonathan 
     40      1.1  jonathan 
     41      1.1  jonathan /*
     42      1.5  nisimura  * interrupt establish functions.
     43  1.5.4.1   thorpej  * These call up to system-specific code to
     44      1.1  jonathan  * recompute spl levels.
     45      1.1  jonathan  */
     46      1.1  jonathan void	ibus_intr_establish __P((void * cookie, int level,
     47      1.5  nisimura 			int (*handler)(intr_arg_t), intr_arg_t arg));
     48      1.1  jonathan void	ibus_intr_disestablish __P((struct ibus_attach_args *));
     49      1.4  nisimura int	ibusprint __P((void *aux, const char *pnp));
     50      1.1  jonathan 
     51      1.1  jonathan #endif /* __IBUSVAR_H */
     52