2000-02-29 07:41:47 +03:00
|
|
|
/* $NetBSD: ibusvar.h,v 1.16 2000/02/29 04:41:49 nisimura Exp $ */
|
1998-04-19 06:52:45 +04:00
|
|
|
|
2000-01-14 18:52:00 +03:00
|
|
|
#ifndef _PMAX_IBUS_IBUSVAR_H_
|
|
|
|
#define _PMAX_IBUS_IBUSVAR_H_
|
1998-04-19 06:52:45 +04:00
|
|
|
|
1999-11-17 03:10:00 +03:00
|
|
|
#include <machine/bus.h>
|
1999-03-15 10:52:05 +03:00
|
|
|
|
1998-04-19 06:52:45 +04:00
|
|
|
struct ibus_attach_args;
|
|
|
|
|
1999-11-17 03:10:00 +03:00
|
|
|
struct ibus_softc {
|
|
|
|
struct device sc_dev;
|
|
|
|
};
|
1998-04-19 06:52:45 +04:00
|
|
|
|
1999-04-24 12:01:01 +04:00
|
|
|
/*
|
1999-03-15 10:52:05 +03:00
|
|
|
* Arguments used to attach an ibus "device" to its parent
|
1998-04-19 06:52:45 +04:00
|
|
|
*/
|
|
|
|
struct ibus_dev_attach_args {
|
1999-11-17 03:10:00 +03:00
|
|
|
const char *ida_busname; /* XXX should be common */
|
|
|
|
bus_space_tag_t ida_memt;
|
|
|
|
|
|
|
|
int ida_ndevs;
|
|
|
|
struct ibus_attach_args *ida_devs;
|
1998-04-19 06:52:45 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Arguments used to attach devices to an ibus
|
|
|
|
*/
|
|
|
|
struct ibus_attach_args {
|
2000-02-29 07:41:47 +03:00
|
|
|
const char *ia_name; /* device name */
|
|
|
|
int ia_cookie; /* device cookie */
|
|
|
|
u_int32_t ia_addr; /* device address (KSEG1) */
|
1999-11-24 03:04:06 +03:00
|
|
|
int ia_basz; /* badaddr() size */
|
1998-04-19 06:52:45 +04:00
|
|
|
};
|
|
|
|
|
2000-01-08 04:02:35 +03:00
|
|
|
void ibusattach __P((struct device *, struct device *, void *));
|
|
|
|
int ibusprint __P((void *, const char *));
|
|
|
|
void ibus_intr_establish __P((struct device *, void * cookie, int level,
|
|
|
|
int (*handler)(void *), void *arg));
|
1998-04-19 06:52:45 +04:00
|
|
|
|
2000-01-14 18:52:00 +03:00
|
|
|
#endif /* !_PMAX_IBUS_IBUSVAR_H_ */
|