Home | History | Annotate | Line # | Download | only in ibus
      1 /*	$NetBSD: ibusvar.h,v 1.20 2011/07/09 17:32:29 matt Exp $	*/
      2 
      3 #ifndef _PMAX_IBUS_IBUSVAR_H_
      4 #define _PMAX_IBUS_IBUSVAR_H_
      5 
      6 #include <sys/bus.h>
      7 
      8 struct ibus_attach_args;
      9 
     10 /*
     11  * Arguments used to attach an ibus "device" to its parent
     12  */
     13 struct ibus_dev_attach_args {
     14 	const char *ida_busname;		/* XXX should be common */
     15 	bus_space_tag_t	ida_memt;
     16 
     17 	int	ida_ndevs;
     18 	struct ibus_attach_args	*ida_devs;
     19 };
     20 
     21 /*
     22  * Arguments used to attach devices to an ibus
     23  */
     24 struct ibus_attach_args {
     25 	const char *ia_name;		/* device name */
     26 	intptr_t ia_cookie;		/* device cookie */
     27 	bus_addr_t ia_addr;		/* device address (KSEG1) */
     28 	bus_size_t ia_basz;		/* badaddr() size */
     29 };
     30 
     31 void	ibusattach(device_t, device_t, void *);
     32 int	ibusprint(void *, const char *);
     33 void	ibus_intr_establish(device_t, void *cookie, int level,
     34 	    int (*handler)(void *), void *arg);
     35 
     36 #endif	/* !_PMAX_IBUS_IBUSVAR_H_ */
     37