Mass update of isa drivers using compatability shims to use

COMPAT_ISA_DRIVER() so that we can get rid of the evil isa_compat.h table.
This commit is contained in:
Peter Wemm 2000-05-28 13:40:48 +00:00
parent 23dff9e066
commit 6a4c2576dc
44 changed files with 446 additions and 57 deletions

View File

@ -50,16 +50,17 @@
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/sockio.h>
#include <sys/socket.h>
#include <sys/bus.h>
#include <net/if.h>
#ifdef NETGRAPH
#include <netgraph/ng_message.h>
#include <netgraph/netgraph.h>
#include <sys/kernel.h>
#include <sys/syslog.h>
#include <i386/isa/if_ar.h>
#else /* NETGRAPH */
@ -74,6 +75,10 @@
#include <i386/isa/ic/hd64570.h>
#include <i386/isa/isa_device.h>
#ifndef COMPAT_OLDISA
#error "The ar device requires the old isa compatibility shims"
#endif
#ifndef NETGRAPH
#include "sppp.h"
#if NSPPP <= 0
@ -218,7 +223,13 @@ static int irqtable[16] = {
7 /* 15 */
};
struct isa_driver ardriver = {arprobe, arattach_isa, "ar"};
struct isa_driver ardriver = {
INTR_TYPE_NET,
arprobe,
arattach_isa,
"ar"
};
COMPAT_ISA_DRIVER(ar, ardriver);
struct ar_hardc *arattach_pci(int unit, vm_offset_t mem_addr);
void arintr_hc(struct ar_hardc *hc);

View File

@ -50,16 +50,17 @@
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/sockio.h>
#include <sys/socket.h>
#include <sys/bus.h>
#include <net/if.h>
#ifdef NETGRAPH
#include <netgraph/ng_message.h>
#include <netgraph/netgraph.h>
#include <sys/kernel.h>
#include <sys/syslog.h>
#include <i386/isa/if_ar.h>
#else /* NETGRAPH */
@ -74,6 +75,10 @@
#include <i386/isa/ic/hd64570.h>
#include <i386/isa/isa_device.h>
#ifndef COMPAT_OLDISA
#error "The ar device requires the old isa compatibility shims"
#endif
#ifndef NETGRAPH
#include "sppp.h"
#if NSPPP <= 0
@ -218,7 +223,13 @@ static int irqtable[16] = {
7 /* 15 */
};
struct isa_driver ardriver = {arprobe, arattach_isa, "ar"};
struct isa_driver ardriver = {
INTR_TYPE_NET,
arprobe,
arattach_isa,
"ar"
};
COMPAT_ISA_DRIVER(ar, ardriver);
struct ar_hardc *arattach_pci(int unit, vm_offset_t mem_addr);
void arintr_hc(struct ar_hardc *hc);

View File

@ -78,6 +78,7 @@
#include <sys/kernel.h>
#include <sys/malloc.h>
#include <sys/syslog.h>
#include <sys/bus.h>
#include <machine/clock.h>
#include <machine/ipl.h>
#ifndef SMP
@ -89,6 +90,10 @@
#include <i386/isa/cyreg.h>
#include <i386/isa/ic/cd1400.h>
#ifndef COMPAT_OLDISA
#error "The cy device requires the old isa compatibility shims"
#endif
#ifdef SMP
#define disable_intr() COM_DISABLE_INTR()
#define enable_intr() COM_ENABLE_INTR()
@ -361,8 +366,12 @@ static struct com_s *p_com_addr[NSIO];
#define com_addr(unit) (p_com_addr[unit])
struct isa_driver siodriver = {
sioprobe, sioattach, driver_name
INTR_TYPE_TTY | INTR_TYPE_FAST,
sioprobe,
sioattach,
driver_name
};
COMPAT_ISA_DRIVER(cy, cydriver); /* XXX */
static d_open_t sioopen;
static d_close_t sioclose;

View File

@ -78,6 +78,7 @@
#include <sys/kernel.h>
#include <sys/malloc.h>
#include <sys/syslog.h>
#include <sys/bus.h>
#include <machine/clock.h>
#include <machine/ipl.h>
#ifndef SMP
@ -89,6 +90,10 @@
#include <i386/isa/cyreg.h>
#include <i386/isa/ic/cd1400.h>
#ifndef COMPAT_OLDISA
#error "The cy device requires the old isa compatibility shims"
#endif
#ifdef SMP
#define disable_intr() COM_DISABLE_INTR()
#define enable_intr() COM_ENABLE_INTR()
@ -361,8 +366,12 @@ static struct com_s *p_com_addr[NSIO];
#define com_addr(unit) (p_com_addr[unit])
struct isa_driver siodriver = {
sioprobe, sioattach, driver_name
INTR_TYPE_TTY | INTR_TYPE_FAST,
sioprobe,
sioattach,
driver_name
};
COMPAT_ISA_DRIVER(cy, cydriver); /* XXX */
static d_open_t sioopen;
static d_close_t sioclose;

View File

@ -52,6 +52,7 @@
#include <sys/fcntl.h>
#include <sys/kernel.h>
#include <sys/sysctl.h>
#include <sys/bus.h>
#include <machine/clock.h>
@ -60,6 +61,10 @@
#include <i386/isa/isa_device.h>
#ifndef COMPAT_OLDISA
#error "The dgb device requires the old isa compatibility shims"
#endif
#include <gnu/i386/isa/dgbios.h>
#include <gnu/i386/isa/dgfep.h>
@ -197,8 +202,13 @@ static void disc_optim __P((struct tty *tp, struct termios *t));
struct isa_driver dgbdriver = {
dgbprobe, dgbattach, "dgb",0
INTR_TYPE_TTY,
dgbprobe,
dgbattach,
"dgb",
0
};
COMPAT_ISA_DRIVER(dgb, dgbdriver);
static d_open_t dgbopen;
static d_close_t dgbclose;

View File

@ -55,6 +55,7 @@
#include <sys/fcntl.h>
#include <sys/kernel.h>
#include <sys/sysctl.h>
#include <sys/bus.h>
#include <machine/clock.h>
@ -63,6 +64,10 @@
#include <i386/isa/isa_device.h>
#ifndef COMPAT_OLDISA
#error "The dgm device requires the old isa compatibility shims"
#endif
#include <gnu/i386/isa/dgmfep.h>
#include <gnu/i386/isa/dgmbios.h>
#include <gnu/i386/isa/dgmreg.h>
@ -200,8 +205,13 @@ static void disc_optim __P((struct tty *tp, struct termios *t));
struct isa_driver dgmdriver = {
dgmprobe, dgmattach, "dgm",0
INTR_TYPE_TTY,
dgmprobe,
dgmattach,
"dgm",
0
};
COMPAT_ISA_DRIVER(dgm, dgmdriver);
static d_open_t dgmopen;
static d_close_t dgmclose;

View File

@ -75,9 +75,11 @@
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/sockio.h>
#include <sys/mbuf.h>
#include <sys/socket.h>
#include <sys/bus.h>
#include <net/ethernet.h>
#include <net/if.h>
@ -96,6 +98,10 @@
#include <i386/isa/isa_device.h>
#include <i386/isa/icu.h>
#ifndef COMPAT_OLDISA
#error "The fe device requires the old isa compatibility shims"
#endif
/* PCCARD suport */
/* XXX FIXME! doesn't work with new pccard code, must be converted! */
#ifdef notdef
@ -264,11 +270,13 @@ static void fe_emptybuffer ( struct fe_softc * );
/* Driver struct used in the config code. This must be public (external.) */
struct isa_driver fedriver =
{
INTR_TYPE_NET,
fe_probe,
fe_attach,
"fe",
1 /* It's safe to mark as "sensitive" */
};
COMPAT_ISA_DRIVER(fe, fedriver);
/*
* Fe driver specific constants which relate to 86960/86965.

View File

@ -68,11 +68,13 @@
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/sockio.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/socket.h>
#include <sys/syslog.h>
#include <sys/bus.h>
#include <net/ethernet.h>
#include <net/if.h>
@ -90,6 +92,10 @@
#include <dev/lnc/if_lncvar.h>
#include <dev/lnc/if_lncreg.h>
#ifndef COMPAT_OLDISA
#error "The lnc device requires the old isa compatibility shims"
#endif
lnc_softc_t lnc_softc[NLNC];
static char const * const nic_ident[] = {
@ -145,7 +151,13 @@ void mbuf_dump_chain __P((struct mbuf *m));
void lncintr_sc __P((lnc_softc_t *sc));
struct isa_driver lncdriver = {lnc_probe, lnc_attach, "lnc"};
struct isa_driver lncdriver = {
INTR_TYPE_NET,
lnc_probe,
lnc_attach,
"lnc"
};
COMPAT_ISA_DRIVER(lnc, lncdriver);
static __inline void
write_bcr(lnc_softc_t *sc, u_short port, u_short val)

View File

@ -47,12 +47,13 @@ static const char COPYRIGHT[] = "mcd-driver (C)1993 by H.Veit & B.Moore";
#include "mcd.h"
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/conf.h>
#include <sys/fcntl.h>
#include <sys/bio.h>
#include <sys/cdio.h>
#include <sys/disklabel.h>
#include <sys/kernel.h>
#include <sys/bus.h>
#include <machine/clock.h>
@ -194,7 +195,13 @@ static int mcd_close_tray(int unit);
static int mcd_probe(struct isa_device *dev);
static int mcd_attach(struct isa_device *dev);
struct isa_driver mcddriver = { mcd_probe, mcd_attach, "mcd" };
struct isa_driver mcddriver = {
INTR_TYPE_BIO,
mcd_probe,
mcd_attach,
"mcd"
};
COMPAT_ISA_DRIVER(mcd, mcddriver);
static d_open_t mcdopen;
static d_close_t mcdclose;

View File

@ -39,13 +39,14 @@
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/tty.h>
#include <sys/proc.h>
#include <sys/conf.h>
#include <sys/dkstat.h>
#include <sys/fcntl.h>
#include <sys/bus.h>
#include <sys/interrupt.h>
#include <sys/kernel.h>
#include <machine/clock.h>
#include <machine/ipl.h>
@ -81,8 +82,12 @@ static int rcattach __P((struct isa_device *));
/* For isa routines */
struct isa_driver rcdriver = {
rcprobe, rcattach, "rc"
INTR_TYPE_TTY,
rcprobe,
rcattach,
"rc"
};
COMPAT_ISA_DRIVER(rc, rcdriver);
static d_open_t rcopen;
static d_close_t rcclose;

View File

@ -40,12 +40,13 @@
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/fcntl.h>
#include <sys/malloc.h>
#include <sys/tty.h>
#include <sys/proc.h>
#include <sys/conf.h>
#include <sys/kernel.h>
#include <sys/bus.h>
#include <i386/isa/isa_device.h>
@ -787,8 +788,12 @@ COMPAT_PCI_DRIVER (rp_pci, rp_pcidevice);
static timeout_t rpdtrwakeup;
struct isa_driver rpdriver = {
rpprobe, rpattach, "rp"
};
INTR_TYPE_TTY,
rpprobe,
rpattach,
"rp"
};
COMPAT_ISA_DRIVER(rp, rpdriver);
static char driver_name[] = "rp";

View File

@ -50,11 +50,12 @@
#include "scd.h"
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/conf.h>
#include <sys/bio.h>
#include <sys/cdio.h>
#include <sys/disklabel.h>
#include <sys/kernel.h>
#include <sys/bus.h>
#include <machine/clock.h>
#include <machine/stdarg.h>
@ -168,7 +169,13 @@ static int scd_toc_entry(int unit, struct ioc_read_toc_single_entry *te);
static int scd_probe(struct isa_device *dev);
static int scd_attach(struct isa_device *dev);
struct isa_driver scddriver = { scd_probe, scd_attach, "scd" };
struct isa_driver scddriver = {
INTR_TYPE_BIO,
scd_probe,
scd_attach,
"scd"
};
COMPAT_ISA_DRIVER(scd, scddriver);
/* For canceling our timeout */
static struct callout_handle tohandle = CALLOUT_HANDLE_INITIALIZER(&tohanle);

View File

@ -67,6 +67,7 @@
#include <sys/mbuf.h>
#include <sys/sockio.h>
#include <sys/socket.h>
#include <sys/bus.h>
#include <net/if.h>
#ifdef NETGRAPH
@ -89,6 +90,10 @@
#endif /* NETGRAPH */
/* #define USE_MODEMCK */
#ifndef COMPAT_OLDISA
#error "The sr device requires the old isa compatibility shims"
#endif
#ifndef BUGGY
#define BUGGY 0
#endif
@ -254,7 +259,13 @@ static int sr_irqtable[16] = {
static int srprobe(struct isa_device *id);
static int srattach_isa(struct isa_device *id);
struct isa_driver srdriver = {srprobe, srattach_isa, "sr"};
struct isa_driver srdriver = {
INTR_TYPE_NET,
srprobe,
srattach_isa,
"sr"
};
COMPAT_ISA_DRIVER(sr, srdriver);
/*
* Baud Rate table for Sync Mode.

View File

@ -67,6 +67,7 @@
#include <sys/mbuf.h>
#include <sys/sockio.h>
#include <sys/socket.h>
#include <sys/bus.h>
#include <net/if.h>
#ifdef NETGRAPH
@ -89,6 +90,10 @@
#endif /* NETGRAPH */
/* #define USE_MODEMCK */
#ifndef COMPAT_OLDISA
#error "The sr device requires the old isa compatibility shims"
#endif
#ifndef BUGGY
#define BUGGY 0
#endif
@ -254,7 +259,13 @@ static int sr_irqtable[16] = {
static int srprobe(struct isa_device *id);
static int srattach_isa(struct isa_device *id);
struct isa_driver srdriver = {srprobe, srattach_isa, "sr"};
struct isa_driver srdriver = {
INTR_TYPE_NET,
srprobe,
srattach_isa,
"sr"
};
COMPAT_ISA_DRIVER(sr, srdriver);
/*
* Baud Rate table for Sync Mode.

View File

@ -194,13 +194,14 @@ WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/sockio.h>
#include <sys/mbuf.h>
#include <sys/socket.h>
#include <sys/syslog.h>
#include <sys/proc.h>
#include <sys/bus.h>
#include <sys/kernel.h>
#include <sys/sysctl.h>
#include <net/ethernet.h>
@ -227,6 +228,10 @@ WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include <i386/isa/if_wl.h>
#include <machine/if_wl_wavelan.h>
#ifndef COMPAT_OLDISA
#error "The wl device requires the old isa compatibility shims"
#endif
static char t_packet[ETHERMTU + sizeof(struct ether_header) + sizeof(long)];
struct wl_softc{
@ -263,8 +268,13 @@ static int wlprobe(struct isa_device *);
static int wlattach(struct isa_device *);
struct isa_driver wldriver = {
wlprobe, wlattach, "wl", 0
INTR_TYPE_NET,
wlprobe,
wlattach,
"wl",
0
};
COMPAT_ISA_DRIVER(wl, wldriver);
/*
* XXX The Wavelan appears to be prone to dropping stuff if you talk to

View File

@ -52,6 +52,7 @@
#include <sys/fcntl.h>
#include <sys/kernel.h>
#include <sys/sysctl.h>
#include <sys/bus.h>
#include <machine/clock.h>
@ -60,6 +61,10 @@
#include <i386/isa/isa_device.h>
#ifndef COMPAT_OLDISA
#error "The dgb device requires the old isa compatibility shims"
#endif
#include <gnu/i386/isa/dgbios.h>
#include <gnu/i386/isa/dgfep.h>
@ -197,8 +202,13 @@ static void disc_optim __P((struct tty *tp, struct termios *t));
struct isa_driver dgbdriver = {
dgbprobe, dgbattach, "dgb",0
INTR_TYPE_TTY,
dgbprobe,
dgbattach,
"dgb",
0
};
COMPAT_ISA_DRIVER(dgb, dgbdriver);
static d_open_t dgbopen;
static d_close_t dgbclose;

View File

@ -55,6 +55,7 @@
#include <sys/fcntl.h>
#include <sys/kernel.h>
#include <sys/sysctl.h>
#include <sys/bus.h>
#include <machine/clock.h>
@ -63,6 +64,10 @@
#include <i386/isa/isa_device.h>
#ifndef COMPAT_OLDISA
#error "The dgm device requires the old isa compatibility shims"
#endif
#include <gnu/i386/isa/dgmfep.h>
#include <gnu/i386/isa/dgmbios.h>
#include <gnu/i386/isa/dgmreg.h>
@ -200,8 +205,13 @@ static void disc_optim __P((struct tty *tp, struct termios *t));
struct isa_driver dgmdriver = {
dgmprobe, dgmattach, "dgm",0
INTR_TYPE_TTY,
dgmprobe,
dgmattach,
"dgm",
0
};
COMPAT_ISA_DRIVER(dgm, dgmdriver);
static d_open_t dgmopen;
static d_close_t dgmclose;

View File

@ -47,6 +47,7 @@
#include <sys/poll.h>
#include <sys/select.h>
#include <sys/uio.h>
#include <sys/bus.h>
#include <machine/asc_ioctl.h>
@ -54,6 +55,10 @@
#include <i386/isa/isa_device.h>
#include <i386/isa/ascreg.h>
#ifndef COMPAT_OLDISA
#error "The asc device requires the old isa compatibility shims"
#endif
/***
*** CONSTANTS & DEFINES
***
@ -173,7 +178,14 @@ static struct asc_unit unittab[NASC];
***/
static int ascprobe (struct isa_device *isdp);
static int ascattach(struct isa_device *isdp);
struct isa_driver ascdriver = { ascprobe, ascattach, "asc" };
struct isa_driver ascdriver = {
INTR_TYPE_TTY,
ascprobe,
ascattach,
"asc"
};
COMPAT_ISA_DRIVER(asc, ascdriver);
static ointhand2_t ascintr;

View File

@ -42,6 +42,7 @@
#include "opt_pc98.h"
#include "bs.h"
#include <i386/isa/bs/bsif.h>
#include <sys/bus.h>
#endif /* __FreeBSD__ */
#include <sys/bio.h>
@ -88,10 +89,12 @@ static ointhand2_t bsintr;
static int bs_dmarangecheck __P((caddr_t, unsigned));
struct isa_driver bsdriver = {
INTR_TYPE_CAM,
bsprobe,
bsattach,
"bs"
};
COMPAT_ISA_DRIVER(bs, bsdriver);
#if 0
struct scsi_device bs_dev = {
NULL, /* Use default error handler */

View File

@ -112,14 +112,20 @@
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/conf.h>
#include <sys/uio.h>
#include <sys/malloc.h>
#include <sys/bus.h>
#include <i386/isa/isa_device.h>
#include <i386/isa/ctxreg.h>
#include <machine/ioctl_ctx.h>
#include <machine/md_var.h>
#ifndef COMPAT_OLDISA
#error "The ctx device requires the old isa compatibility shims"
#endif
static int waitvb(int port);
/* state flags */
@ -129,7 +135,13 @@ static int waitvb(int port);
static int ctxprobe __P((struct isa_device *devp));
static int ctxattach __P((struct isa_device *devp));
struct isa_driver ctxdriver = {ctxprobe, ctxattach, "ctx"};
struct isa_driver ctxdriver = {
INTR_TYPE_MISC,
ctxprobe,
ctxattach,
"ctx"
};
COMPAT_ISA_DRIVER(ctx, ctxdriver);
static d_open_t ctxopen;
static d_close_t ctxclose;

View File

@ -78,6 +78,7 @@
#include <sys/kernel.h>
#include <sys/malloc.h>
#include <sys/syslog.h>
#include <sys/bus.h>
#include <machine/clock.h>
#include <machine/ipl.h>
#ifndef SMP
@ -89,6 +90,10 @@
#include <i386/isa/cyreg.h>
#include <i386/isa/ic/cd1400.h>
#ifndef COMPAT_OLDISA
#error "The cy device requires the old isa compatibility shims"
#endif
#ifdef SMP
#define disable_intr() COM_DISABLE_INTR()
#define enable_intr() COM_ENABLE_INTR()
@ -361,8 +366,12 @@ static struct com_s *p_com_addr[NSIO];
#define com_addr(unit) (p_com_addr[unit])
struct isa_driver siodriver = {
sioprobe, sioattach, driver_name
INTR_TYPE_TTY | INTR_TYPE_FAST,
sioprobe,
sioattach,
driver_name
};
COMPAT_ISA_DRIVER(cy, cydriver); /* XXX */
static d_open_t sioopen;
static d_close_t sioclose;

View File

@ -23,13 +23,19 @@
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/conf.h>
#include <sys/uio.h>
#include <sys/malloc.h>
#include <sys/bus.h>
#include <i386/isa/gpibreg.h>
#include <i386/isa/gpib.h>
#include <i386/isa/isa_device.h>
#ifndef COMPAT_OLDISA
#error "The gpib device requires the old isa compatibility shims"
#endif
#define MIN(a,b) ((a < b) ? a : b)
#define GPIBPRI (PZERO+8)|PCATCH
@ -57,7 +63,13 @@ static char spoll(unsigned char device);
static int gpprobe(struct isa_device *dvp);
static int gpattach(struct isa_device *dvp);
struct isa_driver gpdriver = {gpprobe, gpattach, "gp"};
struct isa_driver gpdriver = {
INTR_TYPE_TTY,
gpprobe,
gpattach,
"gp"
};
COMPAT_ISA_DRIVER(gp, gpdriver);
static d_open_t gpopen;
static d_close_t gpclose;

View File

@ -42,6 +42,7 @@
#include <sys/malloc.h>
#include <sys/kernel.h>
#include <sys/uio.h>
#include <sys/bus.h>
#include <machine/gsc.h>
@ -49,6 +50,10 @@
#include <i386/isa/isa_device.h>
#include <i386/isa/gscreg.h>
#ifndef COMPAT_OLDISA
#error "The gsc device requires the old isa compatibility shims"
#endif
/***********************************************************************
*
* CONSTANTS & DEFINES
@ -175,7 +180,13 @@ static struct gsc_unit unittab[NGSC];
static int gscprobe (struct isa_device *isdp);
static int gscattach(struct isa_device *isdp);
struct isa_driver gscdriver = { gscprobe, gscattach, "gsc" };
struct isa_driver gscdriver = {
INTR_TYPE_TTY,
gscprobe,
gscattach,
"gsc"
};
COMPAT_ISA_DRIVER(gsc, gscdriver);
static d_open_t gscopen;
static d_close_t gscclose;

View File

@ -50,16 +50,17 @@
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/sockio.h>
#include <sys/socket.h>
#include <sys/bus.h>
#include <net/if.h>
#ifdef NETGRAPH
#include <netgraph/ng_message.h>
#include <netgraph/netgraph.h>
#include <sys/kernel.h>
#include <sys/syslog.h>
#include <i386/isa/if_ar.h>
#else /* NETGRAPH */
@ -74,6 +75,10 @@
#include <i386/isa/ic/hd64570.h>
#include <i386/isa/isa_device.h>
#ifndef COMPAT_OLDISA
#error "The ar device requires the old isa compatibility shims"
#endif
#ifndef NETGRAPH
#include "sppp.h"
#if NSPPP <= 0
@ -218,7 +223,13 @@ static int irqtable[16] = {
7 /* 15 */
};
struct isa_driver ardriver = {arprobe, arattach_isa, "ar"};
struct isa_driver ardriver = {
INTR_TYPE_NET,
arprobe,
arattach_isa,
"ar"
};
COMPAT_ISA_DRIVER(ar, ardriver);
struct ar_hardc *arattach_pci(int unit, vm_offset_t mem_addr);
void arintr_hc(struct ar_hardc *hc);

View File

@ -35,12 +35,18 @@
#include <sys/sockio.h>
#include <sys/socket.h>
#include <sys/conf.h>
#include <sys/bus.h>
#include <net/if.h>
#include <net/bpf.h>
#include <i386/isa/isa_device.h>
#ifndef COMPAT_OLDISA
#error "The cx device requires the old isa compatibility shims"
#endif
#define watchdog_func_t void(*)(struct ifnet *)
#define start_func_t void(*)(struct ifnet*)
@ -294,7 +300,13 @@ cxattach (struct isa_device *id)
return (1);
}
struct isa_driver cxdriver = { cxprobe, cxattach, "cx" };
struct isa_driver cxdriver = {
INTR_TYPE_NET,
cxprobe,
cxattach,
"cx"
};
COMPAT_ISA_DRIVER(cx, cxdriver);
/*
* Process an ioctl request.

View File

@ -25,10 +25,12 @@
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/sockio.h>
#include <sys/mbuf.h>
#include <sys/socket.h>
#include <sys/syslog.h>
#include <sys/bus.h>
#include <net/ethernet.h>
#include <net/if.h>
@ -43,6 +45,10 @@
#include <i386/isa/isa_device.h>
#include <i386/isa/if_elreg.h>
#ifndef COMPAT_OLDISA
#error "The el device requires the old isa compatibility shims"
#endif
/* For debugging convenience */
#ifdef EL_DEBUG
#define dprintf(x) printf x
@ -75,8 +81,12 @@ static __inline void el_hardreset(void *);
/* isa_driver structure for autoconf */
struct isa_driver eldriver = {
el_probe, el_attach, "el"
INTR_TYPE_NET,
el_probe,
el_attach,
"el"
};
COMPAT_ISA_DRIVER(el, eldriver);
/* Probe routine. See if the card is there and at the right place. */
static int

View File

@ -75,9 +75,11 @@
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/sockio.h>
#include <sys/mbuf.h>
#include <sys/socket.h>
#include <sys/bus.h>
#include <net/ethernet.h>
#include <net/if.h>
@ -96,6 +98,10 @@
#include <i386/isa/isa_device.h>
#include <i386/isa/icu.h>
#ifndef COMPAT_OLDISA
#error "The fe device requires the old isa compatibility shims"
#endif
/* PCCARD suport */
/* XXX FIXME! doesn't work with new pccard code, must be converted! */
#ifdef notdef
@ -264,11 +270,13 @@ static void fe_emptybuffer ( struct fe_softc * );
/* Driver struct used in the config code. This must be public (external.) */
struct isa_driver fedriver =
{
INTR_TYPE_NET,
fe_probe,
fe_attach,
"fe",
1 /* It's safe to mark as "sensitive" */
};
COMPAT_ISA_DRIVER(fe, fedriver);
/*
* Fe driver specific constants which relate to 86960/86965.

View File

@ -41,10 +41,12 @@
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/mbuf.h>
#include <sys/socket.h>
#include <sys/sockio.h>
#include <sys/malloc.h>
#include <sys/bus.h>
#include <net/ethernet.h>
#include <net/if.h>
@ -65,6 +67,10 @@
#include <net/bpf.h>
#ifndef COMPAT_OLDISA
#error "The le device requires the old isa compatibility shims"
#endif
/* Forward declarations */
typedef struct le_softc le_softc_t;
typedef struct le_board le_board_t;
@ -248,8 +254,12 @@ static const le_board_t le_boards[] = {
* This tells the autoconf code how to set us up.
*/
struct isa_driver ledriver = {
le_probe, le_attach, "le",
INTR_TYPE_NET,
le_probe,
le_attach,
"le",
};
COMPAT_ISA_DRIVER(le, ledriver);
static unsigned le_intrs[NLE];

View File

@ -65,10 +65,12 @@
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/sockio.h>
#include <sys/mbuf.h>
#include <sys/socket.h>
#include <sys/syslog.h>
#include <sys/bus.h>
#include <net/ethernet.h>
#include <net/if.h>
@ -96,6 +98,10 @@
#include <i386/isa/if_rdpreg.h>
#include <i386/isa/intr_machdep.h>
#ifndef COMPAT_OLDISA
#error "The rdp device requires the old isa compatibility shims"
#endif
#define IOCTL_CMD_T u_long
/*
@ -188,11 +194,13 @@ static void rdp_93c46_cmd(struct rdp_softc *, u_short, unsigned);
static u_short rdp_93c46_read(struct rdp_softc *);
struct isa_driver rdpdriver = {
INTR_TYPE_NET,
rdp_probe,
rdp_attach,
"rdp",
1 /* we wanna get a chance before lptN */
};
COMPAT_ISA_DRIVER(rdp, rdpdriver);
/*
* REDP-specific functions.

View File

@ -67,6 +67,7 @@
#include <sys/mbuf.h>
#include <sys/sockio.h>
#include <sys/socket.h>
#include <sys/bus.h>
#include <net/if.h>
#ifdef NETGRAPH
@ -89,6 +90,10 @@
#endif /* NETGRAPH */
/* #define USE_MODEMCK */
#ifndef COMPAT_OLDISA
#error "The sr device requires the old isa compatibility shims"
#endif
#ifndef BUGGY
#define BUGGY 0
#endif
@ -254,7 +259,13 @@ static int sr_irqtable[16] = {
static int srprobe(struct isa_device *id);
static int srattach_isa(struct isa_device *id);
struct isa_driver srdriver = {srprobe, srattach_isa, "sr"};
struct isa_driver srdriver = {
INTR_TYPE_NET,
srprobe,
srattach_isa,
"sr"
};
COMPAT_ISA_DRIVER(sr, srdriver);
/*
* Baud Rate table for Sync Mode.

View File

@ -194,13 +194,14 @@ WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/sockio.h>
#include <sys/mbuf.h>
#include <sys/socket.h>
#include <sys/syslog.h>
#include <sys/proc.h>
#include <sys/bus.h>
#include <sys/kernel.h>
#include <sys/sysctl.h>
#include <net/ethernet.h>
@ -227,6 +228,10 @@ WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include <i386/isa/if_wl.h>
#include <machine/if_wl_wavelan.h>
#ifndef COMPAT_OLDISA
#error "The wl device requires the old isa compatibility shims"
#endif
static char t_packet[ETHERMTU + sizeof(struct ether_header) + sizeof(long)];
struct wl_softc{
@ -263,8 +268,13 @@ static int wlprobe(struct isa_device *);
static int wlattach(struct isa_device *);
struct isa_driver wldriver = {
wlprobe, wlattach, "wl", 0
INTR_TYPE_NET,
wlprobe,
wlattach,
"wl",
0
};
COMPAT_ISA_DRIVER(wl, wldriver);
/*
* XXX The Wavelan appears to be prone to dropping stuff if you talk to

View File

@ -51,6 +51,7 @@
#include <sys/conf.h>
#include <sys/fcntl.h>
#include <sys/uio.h>
#include <sys/bus.h>
#include <machine/clock.h>
#include <vm/vm.h>
#include <vm/pmap.h>
@ -58,6 +59,10 @@
#include <machine/cdk.h>
#include <machine/comstats.h>
#ifndef COMPAT_OLDISA
#error "The stli device requires the old isa compatibility shims"
#endif
/*****************************************************************************/
/*
@ -622,8 +627,12 @@ static char *stli_stalgetmemptr(stlibrd_t *brdp, unsigned long offset,
* Declare the driver isa structure.
*/
struct isa_driver stlidriver = {
stliprobe, stliattach, stli_drvname
INTR_TYPE_TTY,
stliprobe,
stliattach,
stli_drvname
};
COMPAT_ISA_DRIVER(stli, stlidriver);
/*****************************************************************************/

View File

@ -54,6 +54,7 @@
#define b_actf bio_queue.tqe_next
#include <sys/dataacq.h>
#include <sys/conf.h>
#include <sys/bus.h>
#ifdef LOUTB
#include <machine/clock.h>
@ -277,8 +278,14 @@ static struct ctlr **labpcs; /* XXX: Should be dynamic */
static int labpcattach(struct isa_device *dev);
static int labpcprobe(struct isa_device *dev);
struct isa_driver labpcdriver =
{ labpcprobe, labpcattach, "labpc", 0 };
struct isa_driver labpcdriver = {
INTR_TYPE_TTY,
labpcprobe,
labpcattach,
"labpc",
0
};
COMPAT_ISA_DRIVER(labpc, labpcdriver);
static d_open_t labpcopen;
static d_close_t labpcclose;

View File

@ -27,6 +27,7 @@
#include <sys/conf.h>
#include <sys/kernel.h>
#include <sys/uio.h>
#include <sys/bus.h>
#include <sys/malloc.h>
#include <sys/timetc.h>
@ -619,8 +620,12 @@ SYSCTL_OPAQUE(_debug, OID_AUTO, loran_timecounter, CTLFLAG_RD,
/**********************************************************************/
struct isa_driver lorandriver = {
loranprobe, loranattach, "loran"
INTR_TYPE_TTY | INTR_TYPE_FAST,
loranprobe,
loranattach,
"loran"
};
COMPAT_ISA_DRIVER(loran, lorandriver);
#define CDEV_MAJOR 94
static struct cdevsw loran_cdevsw = {

View File

@ -360,9 +360,14 @@ static char MATCDCOPYRIGHT[] = "Matsushita CD-ROM driver, Copr. 1994,1995 Frank
#include <sys/conf.h>
#include <sys/kernel.h>
#include <sys/bus.h>
#include <i386/isa/isa_device.h>
#ifndef COMPAT_OLDISA
#error "The matcd device requires the old isa compatibility shims"
#endif
/*---------------------------------------------------------------------------
Defines and structures
---------------------------------------------------------------------------*/
@ -495,8 +500,13 @@ struct matcd_read2 {
static int matcd_probe(struct isa_device *dev);
static int matcd_attach(struct isa_device *dev);
struct isa_driver matcddriver={matcd_probe, matcd_attach,
"matcdc"};
struct isa_driver matcddriver={
INTR_TYPE_BIO,
matcd_probe,
matcd_attach,
"matcdc"
};
COMPAT_ISA_DRIVER(matcd, matcddriver);
static d_open_t matcdopen;

View File

@ -47,12 +47,13 @@ static const char COPYRIGHT[] = "mcd-driver (C)1993 by H.Veit & B.Moore";
#include "mcd.h"
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/conf.h>
#include <sys/fcntl.h>
#include <sys/bio.h>
#include <sys/cdio.h>
#include <sys/disklabel.h>
#include <sys/kernel.h>
#include <sys/bus.h>
#include <machine/clock.h>
@ -194,7 +195,13 @@ static int mcd_close_tray(int unit);
static int mcd_probe(struct isa_device *dev);
static int mcd_attach(struct isa_device *dev);
struct isa_driver mcddriver = { mcd_probe, mcd_attach, "mcd" };
struct isa_driver mcddriver = {
INTR_TYPE_BIO,
mcd_probe,
mcd_attach,
"mcd"
};
COMPAT_ISA_DRIVER(mcd, mcddriver);
static d_open_t mcdopen;
static d_close_t mcdclose;

View File

@ -39,13 +39,14 @@
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/tty.h>
#include <sys/proc.h>
#include <sys/conf.h>
#include <sys/dkstat.h>
#include <sys/fcntl.h>
#include <sys/bus.h>
#include <sys/interrupt.h>
#include <sys/kernel.h>
#include <machine/clock.h>
#include <machine/ipl.h>
@ -81,8 +82,12 @@ static int rcattach __P((struct isa_device *));
/* For isa routines */
struct isa_driver rcdriver = {
rcprobe, rcattach, "rc"
INTR_TYPE_TTY,
rcprobe,
rcattach,
"rc"
};
COMPAT_ISA_DRIVER(rc, rcdriver);
static d_open_t rcopen;
static d_close_t rcclose;

View File

@ -40,12 +40,13 @@
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/fcntl.h>
#include <sys/malloc.h>
#include <sys/tty.h>
#include <sys/proc.h>
#include <sys/conf.h>
#include <sys/kernel.h>
#include <sys/bus.h>
#include <i386/isa/isa_device.h>
@ -787,8 +788,12 @@ COMPAT_PCI_DRIVER (rp_pci, rp_pcidevice);
static timeout_t rpdtrwakeup;
struct isa_driver rpdriver = {
rpprobe, rpattach, "rp"
};
INTR_TYPE_TTY,
rpprobe,
rpattach,
"rp"
};
COMPAT_ISA_DRIVER(rp, rpdriver);
static char driver_name[] = "rp";

View File

@ -50,11 +50,12 @@
#include "scd.h"
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/conf.h>
#include <sys/bio.h>
#include <sys/cdio.h>
#include <sys/disklabel.h>
#include <sys/kernel.h>
#include <sys/bus.h>
#include <machine/clock.h>
#include <machine/stdarg.h>
@ -168,7 +169,13 @@ static int scd_toc_entry(int unit, struct ioc_read_toc_single_entry *te);
static int scd_probe(struct isa_device *dev);
static int scd_attach(struct isa_device *dev);
struct isa_driver scddriver = { scd_probe, scd_attach, "scd" };
struct isa_driver scddriver = {
INTR_TYPE_BIO,
scd_probe,
scd_attach,
"scd"
};
COMPAT_ISA_DRIVER(scd, scddriver);
/* For canceling our timeout */
static struct callout_handle tohandle = CALLOUT_HANDLE_INITIALIZER(&tohanle);

View File

@ -56,10 +56,12 @@ error "Can only have 1 spigot configured."
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/conf.h>
#include <sys/proc.h>
#include <sys/signalvar.h>
#include <sys/mman.h>
#include <sys/bus.h>
#include <machine/frame.h>
#include <machine/md_var.h>
@ -85,7 +87,13 @@ static struct spigot_softc {
static int spigot_probe(struct isa_device *id);
static int spigot_attach(struct isa_device *id);
struct isa_driver spigotdriver = {spigot_probe, spigot_attach, "spigot"};
struct isa_driver spigotdriver = {
INTR_TYPE_MISC,
spigot_probe,
spigot_attach,
"spigot"
};
COMPAT_ISA_DRIVER(spigot, spigotdriver);
static d_open_t spigot_open;
static d_close_t spigot_close;

View File

@ -50,6 +50,7 @@
#include <sys/proc.h>
#include <sys/conf.h>
#include <sys/fcntl.h>
#include <sys/bus.h>
#include <i386/isa/isa_device.h>
#include <i386/isa/ic/scd1400.h>
#include <machine/comstats.h>
@ -494,8 +495,12 @@ static void stlpciintr(void * arg);
* Declare the driver isa structure.
*/
struct isa_driver stldriver = {
stlprobe, stlattach, "stl"
INTR_TYPE_TTY,
stlprobe,
stlattach,
"stl"
};
COMPAT_ISA_DRIVER(stl, stldriver);
/*****************************************************************************/

View File

@ -142,12 +142,13 @@
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/conf.h>
#include <sys/kernel.h>
#include <sys/conf.h>
#include <sys/uio.h>
#include <sys/syslog.h>
#include <sys/select.h>
#include <sys/poll.h>
#include <sys/bus.h>
#define MIN(a,b) ((a)<(b)?(a):(b))
#ifdef HIRESTIME
@ -156,6 +157,10 @@
#include <i386/isa/isa_device.h>
#ifndef COMPAT_OLDISA
#error "The tw device requires the old isa compatibility shims"
#endif
/*
* Transmission is done by calling write() to send three byte packets of data.
* The first byte contains a four bit house code (0=A to 15=P).
@ -207,8 +212,12 @@ static int twprobe(struct isa_device *idp);
static int twattach(struct isa_device *idp);
struct isa_driver twdriver = {
twprobe, twattach, "tw"
INTR_TYPE_TTY,
twprobe,
twattach,
"tw"
};
COMPAT_ISA_DRIVER(tw, twdriver);
static d_open_t twopen;
static d_close_t twclose;

View File

@ -67,12 +67,16 @@
#include <sys/malloc.h>
#include <sys/mtio.h>
#include <sys/conf.h>
#include <sys/bus.h>
#include <machine/clock.h>
#include <i386/isa/isa_device.h>
#include <i386/isa/wtreg.h>
#ifndef COMPAT_OLDISA
#error "The wt device requires the old isa compatibility shims"
#endif
/*
* Uncomment this to enable internal device tracing.
@ -271,7 +275,13 @@ wtattach (struct isa_device *id)
return (1);
}
struct isa_driver wtdriver = { wtprobe, wtattach, "wt", };
struct isa_driver wtdriver = {
INTR_TYPE_BIO,
wtprobe,
wtattach,
"wt",
};
COMPAT_ISA_DRIVER(wt, wtdriver);
/*
* Open routine, called on every device open.

View File

@ -54,6 +54,7 @@
#include <net/if.h>
#ifdef __FreeBSD__
#include <sys/bus.h>
#include <machine/i4b_debug.h>
#include <machine/i4b_ioctl.h>
#include <i386/isa/isa_device.h>
@ -67,6 +68,10 @@
#include <i4b/include/i4b_mbuf.h>
#include <i4b/tina-dd/i4b_tina_ioctl.h>
#ifndef COMPAT_OLDISA
#error "The tina device requires the old isa compatibility shims"
#endif
static int openflag = 0;
int tinaprobe(struct isa_device *dev);
@ -74,11 +79,13 @@ int tinaattach(struct isa_device *dev);
void tinaintr(int unit);
struct isa_driver tinadriver = {
INTR_TYPE_NET,
tinaprobe,
tinaattach,
"tina",
0
};
COMPAT_ISA_DRIVER(tina, tinadriver);
static struct tina_softc {
int sc_unit;