NetBSD/sys/arch/pmax/ibus/ibusvar.h
nisimura 582e9de235 - Have SYS_DEV_xxx device cookie symbols to select and install proper
interrupt handlers into intrtab[] array, rather than the idea of devices
  in 'psuedo' TURBOchannel slots.
- Nuke symbols for psuedo TC slots.
- Abandon never/unlikely used intr_disestablish()s.
2000-02-29 04:41:47 +00:00

41 lines
970 B
C

/* $NetBSD: ibusvar.h,v 1.16 2000/02/29 04:41:49 nisimura Exp $ */
#ifndef _PMAX_IBUS_IBUSVAR_H_
#define _PMAX_IBUS_IBUSVAR_H_
#include <machine/bus.h>
struct ibus_attach_args;
struct ibus_softc {
struct device sc_dev;
};
/*
* Arguments used to attach an ibus "device" to its parent
*/
struct ibus_dev_attach_args {
const char *ida_busname; /* XXX should be common */
bus_space_tag_t ida_memt;
int ida_ndevs;
struct ibus_attach_args *ida_devs;
};
/*
* Arguments used to attach devices to an ibus
*/
struct ibus_attach_args {
const char *ia_name; /* device name */
int ia_cookie; /* device cookie */
u_int32_t ia_addr; /* device address (KSEG1) */
int ia_basz; /* badaddr() size */
};
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));
#endif /* !_PMAX_IBUS_IBUSVAR_H_ */