Home | History | Annotate | Line # | Download | only in ibus
ibusvar.h revision 1.2.2.3
      1 /*	$NetBSD: ibusvar.h,v 1.2.2.3 1999/03/15 08:40:31 nisimura Exp $	*/
      2 
      3 #ifndef __IBUSVAR_H
      4 #define __IBUSVAR_H
      5 
      6 struct ibus_attach_args {
      7 	char	*ia_name;		/* Device name. */
      8 	u_int32_t ia_addr;		/* Device address. */
      9 	void	*ia_cookie;		/* Device cookie */
     10 };
     11 
     12 struct ibus_dev_attach_args {
     13 	const char *ibd_busname;		/* XXX should be common */
     14 #ifdef notyet
     15 	bus_space_tag_t	iba_memt;
     16 #endif
     17 	void (*ibd_establish)
     18 		__P((struct device *, void *, int, int (*)(void *), void *));
     19 	void (*ibd_disestablish) __P((struct device *, void *));
     20 	int ibd_ndevs;
     21 	struct ibus_attach_args	*ibd_devs;
     22 };
     23 
     24 struct ibus_softc {
     25 	struct device	ibd_dev;
     26 	int		ibd_ndevs;
     27 	struct ibus_attach_args *ibd_devs;
     28 	void (*ibd_establish)
     29 		__P((struct device *, void *, int, int (*)(void *), void *));
     30 	void (*ibd_disestablish) __P((struct device *, void *));
     31 };
     32 
     33 void ibus_devattach __P((struct device *, void *));
     34 
     35 void ibus_intr_establish
     36 		__P((struct device *, void *, int, int (*)(void *), void *));
     37 void ibus_intr_disestablish __P((struct device *, void *));
     38 
     39 #endif /* __IBUSVAR_H */
     40