summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1996-01-04 21:13:23 +0000
committerwollman <wollman@FreeBSD.org>1996-01-04 21:13:23 +0000
commit39d3a9a3d35d380cd5627d8f1fa68782a1d614c0 (patch)
tree334713baaeaaaca13f522ab35fdd0c97996ced19
parent9414d04bd673656f336b114777ba2eca834ae893 (diff)
downloadFreeBSD-src-39d3a9a3d35d380cd5627d8f1fa68782a1d614c0.zip
FreeBSD-src-39d3a9a3d35d380cd5627d8f1fa68782a1d614c0.tar.gz
Convert DDB to new-style option.
-rw-r--r--sys/amd64/amd64/locore.S3
-rw-r--r--sys/amd64/amd64/locore.s3
-rw-r--r--sys/amd64/amd64/machdep.c1
-rw-r--r--sys/amd64/amd64/trap.c3
-rw-r--r--sys/amd64/amd64/tsc.c4
-rw-r--r--sys/amd64/isa/clock.c4
-rw-r--r--sys/conf/options1
-rw-r--r--sys/dev/sio/sio.c4
-rw-r--r--sys/dev/syscons/syscons.c4
-rw-r--r--sys/i386/eisa/aha1742.c3
-rw-r--r--sys/i386/i386/locore.s3
-rw-r--r--sys/i386/i386/machdep.c1
-rw-r--r--sys/i386/i386/trap.c3
-rw-r--r--sys/i386/i386/tsc.c4
-rw-r--r--sys/i386/isa/aic6360.c269
-rw-r--r--sys/i386/isa/clock.c4
-rw-r--r--sys/i386/isa/pcvt/pcvt_kbd.c2
-rw-r--r--sys/i386/isa/sio.c4
-rw-r--r--sys/i386/isa/syscons.c4
-rw-r--r--sys/isa/atrtc.c4
-rw-r--r--sys/isa/sio.c4
-rw-r--r--sys/isa/syscons.c4
-rw-r--r--sys/kern/subr_clist.c3
-rw-r--r--sys/kern/subr_prf.c4
-rw-r--r--sys/kern/subr_trap.c3
-rw-r--r--sys/kern/tty_subr.c3
-rw-r--r--sys/kern/vfs_export.c3
-rw-r--r--sys/kern/vfs_subr.c3
-rw-r--r--sys/ufs/ffs/ffs_subr.c4
-rw-r--r--sys/vm/vm_glue.c1
-rw-r--r--sys/vm/vm_map.c3
-rw-r--r--sys/vm/vm_object.c3
-rw-r--r--sys/vm/vm_page.c3
33 files changed, 75 insertions, 294 deletions
diff --git a/sys/amd64/amd64/locore.S b/sys/amd64/amd64/locore.S
index 251cef3..c76bbd7 100644
--- a/sys/amd64/amd64/locore.S
+++ b/sys/amd64/amd64/locore.S
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)locore.s 7.3 (Berkeley) 5/13/91
- * $Id: locore.s,v 1.58 1995/12/25 14:40:49 davidg Exp $
+ * $Id: locore.s,v 1.59 1995/12/28 21:01:54 davidg Exp $
*/
/*
@@ -45,6 +45,7 @@
* Bruce Evans, Wolfgang Solfrank, and many others.
*/
+#include "opt_ddb.h"
#include "assym.s" /* system definitions */
#include <machine/psl.h> /* processor status longword defs */
#include <machine/pte.h> /* page table entry definitions */
diff --git a/sys/amd64/amd64/locore.s b/sys/amd64/amd64/locore.s
index 251cef3..c76bbd7 100644
--- a/sys/amd64/amd64/locore.s
+++ b/sys/amd64/amd64/locore.s
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)locore.s 7.3 (Berkeley) 5/13/91
- * $Id: locore.s,v 1.58 1995/12/25 14:40:49 davidg Exp $
+ * $Id: locore.s,v 1.59 1995/12/28 21:01:54 davidg Exp $
*/
/*
@@ -45,6 +45,7 @@
* Bruce Evans, Wolfgang Solfrank, and many others.
*/
+#include "opt_ddb.h"
#include "assym.s" /* system definitions */
#include <machine/psl.h> /* processor status longword defs */
#include <machine/pte.h> /* page table entry definitions */
diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c
index f3a73ee..bd3f4bc 100644
--- a/sys/amd64/amd64/machdep.c
+++ b/sys/amd64/amd64/machdep.c
@@ -41,6 +41,7 @@
#include "npx.h"
#include "isa.h"
#include "opt_sysvipc.h"
+#include "opt_ddb.h"
#include <sys/param.h>
#include <sys/systm.h>
diff --git a/sys/amd64/amd64/trap.c b/sys/amd64/amd64/trap.c
index d099d24..39afcdd 100644
--- a/sys/amd64/amd64/trap.c
+++ b/sys/amd64/amd64/trap.c
@@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* from: @(#)trap.c 7.4 (Berkeley) 5/13/91
- * $Id: trap.c,v 1.68 1995/12/19 14:47:41 davidg Exp $
+ * $Id: trap.c,v 1.69 1996/01/03 21:41:36 wollman Exp $
*/
/*
@@ -43,6 +43,7 @@
*/
#include "opt_ktrace.h"
+#include "opt_ddb.h"
#include <sys/param.h>
#include <sys/systm.h>
diff --git a/sys/amd64/amd64/tsc.c b/sys/amd64/amd64/tsc.c
index b7c6a2a..6dc5896 100644
--- a/sys/amd64/amd64/tsc.c
+++ b/sys/amd64/amd64/tsc.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)clock.c 7.2 (Berkeley) 5/12/91
- * $Id: clock.c,v 1.42 1995/12/20 20:57:33 wollman Exp $
+ * $Id: clock.c,v 1.43 1995/12/24 08:10:52 davidg Exp $
*/
/*
@@ -47,6 +47,8 @@
/*
* Primitive clock interrupt routines.
*/
+#include "opt_ddb.h"
+
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/time.h>
diff --git a/sys/amd64/isa/clock.c b/sys/amd64/isa/clock.c
index b7c6a2a..6dc5896 100644
--- a/sys/amd64/isa/clock.c
+++ b/sys/amd64/isa/clock.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)clock.c 7.2 (Berkeley) 5/12/91
- * $Id: clock.c,v 1.42 1995/12/20 20:57:33 wollman Exp $
+ * $Id: clock.c,v 1.43 1995/12/24 08:10:52 davidg Exp $
*/
/*
@@ -47,6 +47,8 @@
/*
* Primitive clock interrupt routines.
*/
+#include "opt_ddb.h"
+
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/time.h>
diff --git a/sys/conf/options b/sys/conf/options
index 2a2fe63..3dba59e 100644
--- a/sys/conf/options
+++ b/sys/conf/options
@@ -1,3 +1,4 @@
+DDB
KTRACE
PROCFS
SYSVSHM opt_sysvipc.h
diff --git a/sys/dev/sio/sio.c b/sys/dev/sio/sio.c
index 0e6329d..d0797c6 100644
--- a/sys/dev/sio/sio.c
+++ b/sys/dev/sio/sio.c
@@ -31,10 +31,12 @@
* SUCH DAMAGE.
*
* from: @(#)com.c 7.5 (Berkeley) 5/16/91
- * $Id: sio.c,v 1.131 1995/12/29 12:50:54 bde Exp $
+ * $Id: sio.c,v 1.132 1995/12/30 03:52:58 bde Exp $
*/
#include "sio.h"
+#include "opt_ddb.h"
+
/*
* Serial driver, based on 386BSD-0.1 com driver.
* Mostly rewritten to use pseudo-DMA.
diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c
index 9dc2e14..b868dd9 100644
--- a/sys/dev/syscons/syscons.c
+++ b/sys/dev/syscons/syscons.c
@@ -25,11 +25,13 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: syscons.c,v 1.137 1995/12/10 15:54:55 bde Exp $
+ * $Id: syscons.c,v 1.138 1995/12/14 22:03:03 bde Exp $
*/
#include "sc.h"
#include "apm.h"
+#include "opt_ddb.h"
+
#if NSC > 0
#include <sys/param.h>
#include <sys/systm.h>
diff --git a/sys/i386/eisa/aha1742.c b/sys/i386/eisa/aha1742.c
index 7168125..c0d335a 100644
--- a/sys/i386/eisa/aha1742.c
+++ b/sys/i386/eisa/aha1742.c
@@ -14,12 +14,13 @@
*
* commenced: Sun Sep 27 18:14:01 PDT 1992
*
- * $Id: aha1742.c,v 1.44 1995/12/10 13:33:47 phk Exp $
+ * $Id: aha1742.c,v 1.45 1995/12/14 23:26:53 bde Exp $
*/
#include <sys/types.h>
#ifdef KERNEL /* don't laugh, it compiles as a program too.. look */
+#include "opt_ddb.h"
#include "ahb.h"
#include <sys/param.h>
#include <sys/kernel.h>
diff --git a/sys/i386/i386/locore.s b/sys/i386/i386/locore.s
index 251cef3..c76bbd7 100644
--- a/sys/i386/i386/locore.s
+++ b/sys/i386/i386/locore.s
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)locore.s 7.3 (Berkeley) 5/13/91
- * $Id: locore.s,v 1.58 1995/12/25 14:40:49 davidg Exp $
+ * $Id: locore.s,v 1.59 1995/12/28 21:01:54 davidg Exp $
*/
/*
@@ -45,6 +45,7 @@
* Bruce Evans, Wolfgang Solfrank, and many others.
*/
+#include "opt_ddb.h"
#include "assym.s" /* system definitions */
#include <machine/psl.h> /* processor status longword defs */
#include <machine/pte.h> /* page table entry definitions */
diff --git a/sys/i386/i386/machdep.c b/sys/i386/i386/machdep.c
index f3a73ee..bd3f4bc 100644
--- a/sys/i386/i386/machdep.c
+++ b/sys/i386/i386/machdep.c
@@ -41,6 +41,7 @@
#include "npx.h"
#include "isa.h"
#include "opt_sysvipc.h"
+#include "opt_ddb.h"
#include <sys/param.h>
#include <sys/systm.h>
diff --git a/sys/i386/i386/trap.c b/sys/i386/i386/trap.c
index d099d24..39afcdd 100644
--- a/sys/i386/i386/trap.c
+++ b/sys/i386/i386/trap.c
@@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* from: @(#)trap.c 7.4 (Berkeley) 5/13/91
- * $Id: trap.c,v 1.68 1995/12/19 14:47:41 davidg Exp $
+ * $Id: trap.c,v 1.69 1996/01/03 21:41:36 wollman Exp $
*/
/*
@@ -43,6 +43,7 @@
*/
#include "opt_ktrace.h"
+#include "opt_ddb.h"
#include <sys/param.h>
#include <sys/systm.h>
diff --git a/sys/i386/i386/tsc.c b/sys/i386/i386/tsc.c
index b7c6a2a..6dc5896 100644
--- a/sys/i386/i386/tsc.c
+++ b/sys/i386/i386/tsc.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)clock.c 7.2 (Berkeley) 5/12/91
- * $Id: clock.c,v 1.42 1995/12/20 20:57:33 wollman Exp $
+ * $Id: clock.c,v 1.43 1995/12/24 08:10:52 davidg Exp $
*/
/*
@@ -47,6 +47,8 @@
/*
* Primitive clock interrupt routines.
*/
+#include "opt_ddb.h"
+
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/time.h>
diff --git a/sys/i386/isa/aic6360.c b/sys/i386/isa/aic6360.c
index b8defba..ab735f86 100644
--- a/sys/i386/isa/aic6360.c
+++ b/sys/i386/isa/aic6360.c
@@ -31,7 +31,7 @@
*/
/*
- * $Id: aic6360.c,v 1.16 1995/12/10 13:38:19 phk Exp $
+ * $Id: aic6360.c,v 1.17 1995/12/15 00:53:51 bde Exp $
*
* Acknowledgements: Many of the algorithms used in this driver are
* inspired by the work of Julian Elischer (julian@tfs.com) and
@@ -108,42 +108,27 @@
#error "I said not yet! Start paying attention... grumble"
#endif
-#ifdef __FreeBSD__
+#include "opt_ddb.h"
#include <aic.h>
-#endif
#include <sys/types.h>
#include <sys/param.h>
-#ifdef __FreeBSD__
#include <sys/kernel.h>
-#endif
#include <sys/systm.h>
#include <sys/errno.h>
#include <sys/ioctl.h>
-#ifdef __FreeBSD__
#include <sys/malloc.h>
-#else
-#include <sys/device.h>
-#endif
#include <sys/buf.h>
#include <sys/proc.h>
#include <sys/queue.h>
-#ifndef __FreeBSD__
-#include <machine/pio.h>
-#endif
#include <scsi/scsi_all.h>
#include <scsi/scsiconf.h>
-#ifdef __FreeBSD__
#include <sys/devconf.h>
#include <machine/clock.h>
#include <i386/isa/isa_device.h>
#include <sys/kernel.h>
-#else
-#include <i386/isa/isavar.h>
-#include <i386/isa/icu.h>
-#endif
/* Definitions, most of them has turned out to be unneccesary, but here they
* are anyway.
@@ -509,11 +494,7 @@ struct aic_dma_seg {
long len;
};
-#ifdef __FreeBSD__
#define DELAYCOUNT 16
-#else
-extern int delaycount;
-#endif
#define FUDGE(X) ((X)>>1) /* get 1 ms spincount */
#define MINIFUDGE(X) ((X)>>4) /* get (approx) 125us spincount */
@@ -577,24 +558,11 @@ struct aic_tinfo {
#define LOGLINE(p)
#endif
-#ifdef __FreeBSD__
static struct aic_data { /* One of these per adapter */
-#else
-struct aic_softc { /* One of these per adapter */
- /* Auto config stuff */
- struct device sc_dev; /* This one has to go first! */
- struct isadev sc_id;
- struct intrhand sc_ih;
- struct scsi_link sc_link; /* prototype for subdevs */
- int id_irq; /* IRQ on the EISA bus */
- int id_drq; /* DRQ on the EISA bus */
-#endif
u_short iobase; /* Base I/O port */
-#ifdef __FreeBSD__
struct scsi_link sc_link; /* prototype for subdevs */
int aic_int; /* IRQ on the EISA bus */
int aic_dma; /* DRQ on the EISA bus */
-#endif
/* Lists of command blocks */
TAILQ_HEAD(acb_list, acb) free_list, ready_list, nexus_list;
struct acb *nexus; /* current command */
@@ -642,11 +610,7 @@ struct aic_softc { /* One of these per adapter */
u_char imess[AIC_MAX_MSG_LEN + 1];
u_char *imp; /* Message pointer (for multibyte messages) */
u_char imlen;
-#ifdef __FreeBSD__
} *aicdata[NAIC];
-#else
-};
-#endif
#define AIC_SHOWACBS 0x01
#define AIC_SHOWINTS 0x02
@@ -672,50 +636,26 @@ static int aic_debug = 0; /* AIC_SHOWSTART|AIC_SHOWMISC|AIC_SHOWTRAC; */
#define AIC_START(str)
#endif
-#ifdef __FreeBSD__
static int aicprobe __P((struct isa_device *));
static int aicattach __P((struct isa_device *));
-#else
-static int aicprobe __P((struct device *, struct device *, void *));
-static void aicattach __P((struct device *, struct device *, void *));
-#endif
static void aic_minphys __P((struct buf *));
-#ifdef __FreeBSD__
static u_int32 aic_adapter_info __P((int));
static void aic_init __P((struct aic_data *));
static int aic_find __P((struct aic_data *));
-#else
-static u_int aic_adapter_info __P((struct aic_softc *));
-int aicintr __P((struct aic_softc *));
-static void aic_init __P((struct aic_softc *));
-#endif
static void aic_done __P((struct acb *));
static void aic_dataout __P((struct aic_data *aic));
-#ifdef __FreeBSD__
static void aic_datain __P((struct aic_data *aic));
static int32 aic_scsi_cmd __P((struct scsi_xfer *));
static int aic_poll __P((int, struct acb *));
-#else
-static void aic_datain __P((struct aic_softc *aic));
-static int aic_scsi_cmd __P((struct scsi_xfer *));
-static int aic_poll __P((struct aic_softc *, struct acb *));
-#endif
void aic_add_timeout __P((struct acb *, int));
void aic_remove_timeout __P((struct acb *));
static void aic6360_reset __P((struct aic_data *aic));
static u_short aicphase __P((struct aic_data *aic));
static void aic_msgin __P((struct aic_data *aic));
static void aic_msgout __P((struct aic_data *aic));
-#ifdef __FreeBSD__
static timeout_t aic_timeout;
static void aic_sched __P((struct aic_data *));
static void aic_scsi_reset __P((struct aic_data *));
-#else
-static void aic_timeout __P((void *arg));
-static int aic_find __P((struct aic_softc *));
-static void aic_sched __P((struct aic_softc *));
-static void aic_scsi_reset __P((struct aic_softc *));
-#endif
#if AIC_DEBUG
void aic_print_active_acb __P((void));
void aic_dump6360 __P((void));
@@ -723,16 +663,11 @@ void aic_dump_driver __P((void));
#endif
/* Linkup to the rest of the kernel */
-#ifdef __FreeBSD__
struct isa_driver aicdriver = {
aicprobe, aicattach, "aic"
};
static int aicunit = 0;
-#else
-struct cfdriver aiccd = {
- NULL, "aic", aicprobe, aicattach, DV_DULL, sizeof(struct aic_softc)
-#endif
static struct scsi_adapter aic_switch = {
aic_scsi_cmd,
@@ -741,9 +676,7 @@ static struct scsi_adapter aic_switch = {
0,
aic_adapter_info,
"aic"
-#ifdef __FreeBSD__
,0 , 0
-#endif
};
static struct scsi_device aic_dev = {
@@ -785,24 +718,12 @@ aic_registerdev(struct isa_device *id)
* returns non-zero value if a controller is found.
*/
static int
-#ifdef __FreeBSD__
aicprobe(dev)
struct isa_device *dev;
-#else
-aicprobe(parent, self, aux)
- struct device *parent, *self;
- void *aux;
-#endif
{
-#ifdef __FreeBSD__
int unit = aicunit;
struct aic_data *aic;
-#else
- struct aic_softc *aic = (void *)self;
- struct isa_attach_args *ia = aux;
-#endif
-#ifdef __FreeBSD__
if (unit >= NAIC) {
printf("aic%d: unit number too high\n", unit);
return 0;
@@ -834,36 +755,6 @@ aicprobe(parent, self, aux)
}
aicunit++;
return 0x20;
-#else
-#ifdef NEWCONFIG
- if (ia->ia_iobase == IOBASEUNK)
- return 0;
-#endif
- aic->iobase = ia->ia_iobase;
- if (aic_find(aic) != 0)
- return 0;
-#ifdef NEWCONFIG
- if (ia->ia_irq == IRQUNK)
- ia->ia_irq = (1 << aic->aic_int);
- else if (ia->ia_irq != (1 << aic->aic_int)) {
- printf("aic%d: irq mismatch, %x != %x\n",
- aic->sc_dev.dv_unit, ia->ia_irq, 1 << aic->aic_int);
- return 0;
- }
-
- if (ia->ia_drq == DRQUNK)
- ia->ia_drq = aic->aic_dma;
- else if (ia->ia_drq != aic->aic_dma) {
- printf("aic%d: drq mismatch, %x != %x\n",
- aic->sc_dev.dv_unit, ia->ia_drq, aic->aic_dma);
- return 0;
-#endif
- }
- ia->ia_msize = 0;
- ia->ia_iosize = 0x20;
- return 1;
- }
-#endif
}
/* Do the real search-for-device.
@@ -871,11 +762,7 @@ aicprobe(parent, self, aux)
*/
static int
aic_find(aic)
-#ifdef __FreeBSD__
struct aic_data *aic;
-#else
- struct aic_softc *aic;
-#endif
{
u_short iobase = aic->iobase;
char chip_id[sizeof(IDSTRING)]; /* For chips that support it */
@@ -919,35 +806,17 @@ aic_find(aic)
return 0;
}
-#ifndef __FreeBSD__
-int
-aicprint()
-{
-}
-#endif
/*
* Attach the AIC6360, fill out some high and low level data structures
*/
-#ifdef __FreeBSD__
static int
aicattach(dev)
struct isa_device *dev;
-#else
-void
-aicattach(parent, self, aux)
- struct device *parent, *self;
- void *aux;
-#endif
{
-#ifdef __FreeBSD__
int unit = dev->id_unit;
struct aic_data *aic = aicdata[unit];
struct scsibus_data *scbus;
-#else
- struct isa_attach_args *ia = aux;
- struct aic_softc *aic = (void *)self;
-#endif
AIC_TRACE(("aicattach\n"));
aic->state = 0;
@@ -957,16 +826,11 @@ aicattach(parent, self, aux)
/*
* Fill in the prototype scsi_link
*/
-#ifdef __FreeBSD__
aic->sc_link.adapter_unit = unit;
-#else
- aic->sc_link.adapter_softc = aic;
-#endif
aic->sc_link.adapter_targ = AIC_SCSI_HOSTID;
aic->sc_link.adapter = &aic_switch;
aic->sc_link.device = &aic_dev;
-#ifdef __FreeBSD__
/*
* Prepare the scsibus_data area for the upperlevel
* scsi code.
@@ -983,18 +847,6 @@ aicattach(parent, self, aux)
scsi_attachdevs(scbus);
return 1;
-#else
- printf("\n");
-#ifdef NEWCONFIG
- isa_establish(&aic->sc_id, &aic->sc_dev);
-#endif
- aic->sc_ih.ih_fun = aicintr;
- aic->sc_ih.ih_arg = aic;
- aic->sc_ih.ih_level = IPL_BIO;
- intr_establish(ia->ia_irq, &aic->sc_ih);
-
- config_found(self, &aic->sc_link, aicprint);
-#endif
}
@@ -1005,11 +857,7 @@ aicattach(parent, self, aux)
*/
static void
aic6360_reset(aic)
-#ifdef __FreeBSD__
struct aic_data *aic;
-#else
- struct aic_softc *aic;
-#endif
{
u_short iobase = aic->iobase;
@@ -1043,26 +891,14 @@ aic6360_reset(aic)
/* Pull the SCSI RST line for 500 us */
static void
aic_scsi_reset(aic)
-#ifdef __FreeBSD__
struct aic_data *aic;
-#else
- struct aic_softc *aic;
-#endif
{
u_short iobase = aic->iobase;
outb(SCSISEQ, SCSIRSTO);
-#ifdef __FreeBSD__
DELAY(500);
-#else
- delay(500);
-#endif
outb(SCSISEQ, 0);
-#ifdef __FreeBSD__
DELAY(50);
-#else
- delay(50);
-#endif
}
/*
@@ -1071,11 +907,7 @@ aic_scsi_reset(aic)
*/
static void
aic_init(aic)
-#ifdef __FreeBSD__
struct aic_data *aic;
-#else
- struct aic_softc *aic;
-#endif
{
u_short iobase = aic->iobase;
struct acb *acb;
@@ -1157,21 +989,13 @@ aic_init(aic)
* This function is called by the higher level SCSI-driver to queue/run
* SCSI-commands.
*/
-#ifdef __FreeBSD__
static int32
-#else
-static int
-#endif
aic_scsi_cmd(xs)
struct scsi_xfer *xs;
{
struct scsi_link *sc = xs->sc_link;
-#ifdef __FreeBSD__
int unit = sc->adapter_unit;
struct aic_data *aic = aicdata[unit];
-#else
- struct aic_softc *aic = sc->adapter_softc;
-#endif
struct acb *acb;
int s = 0;
int flags;
@@ -1230,11 +1054,7 @@ aic_scsi_cmd(xs)
}
/* Not allowed to use interrupts, use polling instead */
-#ifdef __FreeBSD__
return aic_poll(unit, acb);
-#else
- return aic_poll(aic, acb);
-#endif
}
/*
@@ -1251,15 +1071,9 @@ aic_minphys(bp)
}
-#ifdef __FreeBSD__
static u_int32
aic_adapter_info(unit)
int unit;
-#else
-static u_int
-aic_adapter_info(aic)
- struct aic_softc *aic;
-#endif
{
AIC_TRACE(("aic_adapter_info\n"));
@@ -1270,18 +1084,11 @@ aic_adapter_info(aic)
* Used when interrupt driven I/O isn't allowed, e.g. during boot.
*/
static int
-#ifdef __FreeBSD__
aic_poll(unit, acb)
int unit;
-#else
-aic_poll(aic, acb)
- struct aic_softc *aic;
-#endif
struct acb *acb;
{
-#ifdef __FreeBSD__
struct aic_data *aic = aicdata[unit];
-#endif
register u_short iobase = aic->iobase;
struct scsi_xfer *xs = acb->xs;
int count = xs->timeout * 10;
@@ -1289,18 +1096,10 @@ aic_poll(aic, acb)
AIC_TRACE(("aic_poll\n"));
while (count) {
if (inb(DMASTAT) & INTSTAT)
-#ifdef __FreeBSD__
aicintr(unit);
-#else
- aicintr(aic);
-#endif
if (xs->flags & ITSDONE)
break;
-#ifdef __FreeBSD__
DELAY(100);
-#else
- delay(100);
-#endif
count--;
}
if (count == 0) {
@@ -1327,11 +1126,7 @@ aic_poll(aic, acb)
*/
static inline u_short
aicphase(aic)
-#ifdef __FreeBSD__
struct aic_data *aic;
-#else
- struct aic_softc *aic;
-#endif
{
register u_short iobase = aic->iobase;
register u_char sstat0, sstat1, scsisig;
@@ -1359,11 +1154,7 @@ aicphase(aic)
*/
static void
aic_sched(aic)
-#ifdef __FreeBSD__
register struct aic_data *aic;
-#else
- register struct aic_softc *aic;
-#endif
{
struct scsi_link *sc;
struct acb *acb;
@@ -1422,12 +1213,8 @@ aic_done(acb)
{
struct scsi_xfer *xs = acb->xs;
struct scsi_link *sc = xs->sc_link;
-#ifdef __FreeBSD__
int unit = sc->adapter_unit;
struct aic_data *aic = aicdata[unit];
-#else
- struct aic_softc *aic = sc->adapter_softc;
-#endif
AIC_TRACE(("aic_done "));
@@ -1519,12 +1306,7 @@ aic_done(acb)
else if (acb->chain.tqe_next) {
TAILQ_REMOVE(&aic->ready_list, acb, chain);
} else {
-#ifdef __FreeBSD__
printf("aic%d: can't find matching acb\n", unit);
-#else
- printf("%s: can't find matching acb\n",
- aic->sc_dev.dv_xname);
-#endif
Debugger("aic6360");
fatal_if_no_DDB();
}
@@ -1581,11 +1363,7 @@ aic_done(acb)
*/
static void
aic_msgin(aic)
-#ifdef __FreeBSD__
register struct aic_data *aic;
-#else
- register struct aic_softc *aic;
-#endif
{
register u_short iobase = aic->iobase;
int spincount, extlen;
@@ -1656,11 +1434,7 @@ aic_msgin(aic)
* Therefore we will spinwait for some small amount of time
* waiting for the next byte.
*/
-#ifdef __FreeBSD__
spincount = DELAYCOUNT * AIC_MSGI_SPIN;
-#else
- spincount = MINIFUDGE(delaycount) * AIC_MSGI_SPIN;
-#endif
LOGLINE(aic);
while (spincount-- && !((sstat1 = inb(SSTAT1)) & REQINIT))
;
@@ -1843,11 +1617,7 @@ aic_msgin(aic)
*/
static void
aic_msgout(aic)
-#ifdef __FreeBSD__
register struct aic_data *aic;
-#else
- register struct aic_softc *aic;
-#endif
{
register u_short iobase = aic->iobase;
struct aic_tinfo *ti;
@@ -2074,11 +1844,7 @@ phasechange:
*/
static void
aic_datain(aic)
-#ifdef __FreeBSD__
register struct aic_data *aic;
-#else
- register struct aic_softc *aic;
-#endif
{
register u_short iobase = aic->iobase;
register u_char dmastat;
@@ -2199,21 +1965,10 @@ aic_datain(aic)
* 2) doesn't support synchronous transfers properly (yet)
*/
-#ifdef __FreeBSD__
void
aicintr(int unit)
-#else
-#error /* the ifdefs for returning unused values were too much trouble */
-int
-aicintr(aic)
- register struct aic_softc *aic;
-#endif
{
-#ifdef __FreeBSD__
struct aic_data *aic = aicdata[unit];
-#else
- struct scsi_xfer *xs;
-#endif
register struct acb *acb;
register struct scsi_link *sc;
register u_short iobase = aic->iobase;
@@ -2371,11 +2126,7 @@ aicintr(aic)
* a "spurious" selection. Shouldn't happen.
*/
printf("aic: unexpected busfree\n");
-#ifdef __FreeBSD__
acb->xs->error = XS_DRIVER_STUFFUP;
-#else
- xs->error = XS_DRIVER_STUFFUP;
-#endif
untimeout(aic_timeout, (caddr_t)acb);
aic_done(acb);
}
@@ -2574,19 +2325,11 @@ static void
aic_timeout(void *arg1) {
int s = splbio();
struct acb *acb = (struct acb *)arg1;
-#ifdef __FreeBSD__
int unit;
struct aic_data *aic;
-#else
- struct aic_softc *aic;
-#endif
-#ifdef __FreeBSD__
unit = acb->xs->sc_link->adapter_unit;
aic = aicdata[unit];
-#else
- aic = acb->xs->sc_link->adapter_softc;
-#endif
sc_print_addr(acb->xs->sc_link);
acb->xs->error = XS_TIMEOUT;
printf("timed out\n");
@@ -2636,11 +2379,7 @@ void
aic_print_active_acb()
{
struct acb *acb;
-#ifdef __FreeBSD__
struct aic_data *aic = aicdata[0];
-#else
- struct aic_softc *aic = aiccd.cd_devs[0];
-#endif
printf("ready list:\n");
for (acb = aic->ready_list.tqh_first; acb; acb = acb->chain.tqe_next)
@@ -2672,11 +2411,7 @@ aic_dump6360()
void
aic_dump_driver()
{
-#ifdef __FreeBSD__
struct aic_data *aic = aicdata[0];
-#else
- struct aic_softc *aic = aiccd.cd_devs[0];
-#endif
struct aic_tinfo *ti;
int i;
diff --git a/sys/i386/isa/clock.c b/sys/i386/isa/clock.c
index b7c6a2a..6dc5896 100644
--- a/sys/i386/isa/clock.c
+++ b/sys/i386/isa/clock.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)clock.c 7.2 (Berkeley) 5/12/91
- * $Id: clock.c,v 1.42 1995/12/20 20:57:33 wollman Exp $
+ * $Id: clock.c,v 1.43 1995/12/24 08:10:52 davidg Exp $
*/
/*
@@ -47,6 +47,8 @@
/*
* Primitive clock interrupt routines.
*/
+#include "opt_ddb.h"
+
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/time.h>
diff --git a/sys/i386/isa/pcvt/pcvt_kbd.c b/sys/i386/isa/pcvt/pcvt_kbd.c
index fbd168e..ae70327 100644
--- a/sys/i386/isa/pcvt/pcvt_kbd.c
+++ b/sys/i386/isa/pcvt/pcvt_kbd.c
@@ -67,6 +67,8 @@
*---------------------------------------------------------------------------*/
#include "vt.h"
+#include "opt_ddb.h"
+
#if NVT > 0
#include "pcvt_hdr.h" /* global include */
diff --git a/sys/i386/isa/sio.c b/sys/i386/isa/sio.c
index 0e6329d..d0797c6 100644
--- a/sys/i386/isa/sio.c
+++ b/sys/i386/isa/sio.c
@@ -31,10 +31,12 @@
* SUCH DAMAGE.
*
* from: @(#)com.c 7.5 (Berkeley) 5/16/91
- * $Id: sio.c,v 1.131 1995/12/29 12:50:54 bde Exp $
+ * $Id: sio.c,v 1.132 1995/12/30 03:52:58 bde Exp $
*/
#include "sio.h"
+#include "opt_ddb.h"
+
/*
* Serial driver, based on 386BSD-0.1 com driver.
* Mostly rewritten to use pseudo-DMA.
diff --git a/sys/i386/isa/syscons.c b/sys/i386/isa/syscons.c
index 9dc2e14..b868dd9 100644
--- a/sys/i386/isa/syscons.c
+++ b/sys/i386/isa/syscons.c
@@ -25,11 +25,13 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: syscons.c,v 1.137 1995/12/10 15:54:55 bde Exp $
+ * $Id: syscons.c,v 1.138 1995/12/14 22:03:03 bde Exp $
*/
#include "sc.h"
#include "apm.h"
+#include "opt_ddb.h"
+
#if NSC > 0
#include <sys/param.h>
#include <sys/systm.h>
diff --git a/sys/isa/atrtc.c b/sys/isa/atrtc.c
index b7c6a2a..6dc5896 100644
--- a/sys/isa/atrtc.c
+++ b/sys/isa/atrtc.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)clock.c 7.2 (Berkeley) 5/12/91
- * $Id: clock.c,v 1.42 1995/12/20 20:57:33 wollman Exp $
+ * $Id: clock.c,v 1.43 1995/12/24 08:10:52 davidg Exp $
*/
/*
@@ -47,6 +47,8 @@
/*
* Primitive clock interrupt routines.
*/
+#include "opt_ddb.h"
+
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/time.h>
diff --git a/sys/isa/sio.c b/sys/isa/sio.c
index 0e6329d..d0797c6 100644
--- a/sys/isa/sio.c
+++ b/sys/isa/sio.c
@@ -31,10 +31,12 @@
* SUCH DAMAGE.
*
* from: @(#)com.c 7.5 (Berkeley) 5/16/91
- * $Id: sio.c,v 1.131 1995/12/29 12:50:54 bde Exp $
+ * $Id: sio.c,v 1.132 1995/12/30 03:52:58 bde Exp $
*/
#include "sio.h"
+#include "opt_ddb.h"
+
/*
* Serial driver, based on 386BSD-0.1 com driver.
* Mostly rewritten to use pseudo-DMA.
diff --git a/sys/isa/syscons.c b/sys/isa/syscons.c
index 9dc2e14..b868dd9 100644
--- a/sys/isa/syscons.c
+++ b/sys/isa/syscons.c
@@ -25,11 +25,13 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: syscons.c,v 1.137 1995/12/10 15:54:55 bde Exp $
+ * $Id: syscons.c,v 1.138 1995/12/14 22:03:03 bde Exp $
*/
#include "sc.h"
#include "apm.h"
+#include "opt_ddb.h"
+
#if NSC > 0
#include <sys/param.h>
#include <sys/systm.h>
diff --git a/sys/kern/subr_clist.c b/sys/kern/subr_clist.c
index c0fb632..ff44c3d 100644
--- a/sys/kern/subr_clist.c
+++ b/sys/kern/subr_clist.c
@@ -6,12 +6,13 @@
* of this software, nor does the author assume any responsibility
* for damages incurred with its use.
*
- * $Id: tty_subr.c,v 1.19 1995/12/14 08:32:04 phk Exp $
+ * $Id: tty_subr.c,v 1.20 1995/12/14 23:01:45 bde Exp $
*/
/*
* clist support routines
*/
+#include "opt_ddb.h"
#include <sys/param.h>
#include <sys/kernel.h>
diff --git a/sys/kern/subr_prf.c b/sys/kern/subr_prf.c
index 83e6f09..79802ec 100644
--- a/sys/kern/subr_prf.c
+++ b/sys/kern/subr_prf.c
@@ -36,9 +36,11 @@
* SUCH DAMAGE.
*
* @(#)subr_prf.c 8.3 (Berkeley) 1/21/94
- * $Id: subr_prf.c,v 1.18 1995/08/24 12:54:11 davidg Exp $
+ * $Id: subr_prf.c,v 1.19 1995/12/14 08:31:41 phk Exp $
*/
+#include "opt_ddb.h"
+
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/reboot.h>
diff --git a/sys/kern/subr_trap.c b/sys/kern/subr_trap.c
index d099d24..39afcdd 100644
--- a/sys/kern/subr_trap.c
+++ b/sys/kern/subr_trap.c
@@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* from: @(#)trap.c 7.4 (Berkeley) 5/13/91
- * $Id: trap.c,v 1.68 1995/12/19 14:47:41 davidg Exp $
+ * $Id: trap.c,v 1.69 1996/01/03 21:41:36 wollman Exp $
*/
/*
@@ -43,6 +43,7 @@
*/
#include "opt_ktrace.h"
+#include "opt_ddb.h"
#include <sys/param.h>
#include <sys/systm.h>
diff --git a/sys/kern/tty_subr.c b/sys/kern/tty_subr.c
index c0fb632..ff44c3d 100644
--- a/sys/kern/tty_subr.c
+++ b/sys/kern/tty_subr.c
@@ -6,12 +6,13 @@
* of this software, nor does the author assume any responsibility
* for damages incurred with its use.
*
- * $Id: tty_subr.c,v 1.19 1995/12/14 08:32:04 phk Exp $
+ * $Id: tty_subr.c,v 1.20 1995/12/14 23:01:45 bde Exp $
*/
/*
* clist support routines
*/
+#include "opt_ddb.h"
#include <sys/param.h>
#include <sys/kernel.h>
diff --git a/sys/kern/vfs_export.c b/sys/kern/vfs_export.c
index 19a7dc2..cd0c7247 100644
--- a/sys/kern/vfs_export.c
+++ b/sys/kern/vfs_export.c
@@ -36,12 +36,13 @@
* SUCH DAMAGE.
*
* @(#)vfs_subr.c 8.13 (Berkeley) 4/18/94
- * $Id: vfs_subr.c,v 1.49 1995/12/17 21:23:19 phk Exp $
+ * $Id: vfs_subr.c,v 1.50 1996/01/02 18:13:20 davidg Exp $
*/
/*
* External virtual filesystem routines
*/
+#include "opt_ddb.h"
#include <sys/param.h>
#include <sys/systm.h>
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index 19a7dc2..cd0c7247 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -36,12 +36,13 @@
* SUCH DAMAGE.
*
* @(#)vfs_subr.c 8.13 (Berkeley) 4/18/94
- * $Id: vfs_subr.c,v 1.49 1995/12/17 21:23:19 phk Exp $
+ * $Id: vfs_subr.c,v 1.50 1996/01/02 18:13:20 davidg Exp $
*/
/*
* External virtual filesystem routines
*/
+#include "opt_ddb.h"
#include <sys/param.h>
#include <sys/systm.h>
diff --git a/sys/ufs/ffs/ffs_subr.c b/sys/ufs/ffs/ffs_subr.c
index 0ad07cd..f33ad94d 100644
--- a/sys/ufs/ffs/ffs_subr.c
+++ b/sys/ufs/ffs/ffs_subr.c
@@ -31,13 +31,15 @@
* SUCH DAMAGE.
*
* @(#)ffs_subr.c 8.2 (Berkeley) 9/21/93
- * $Id: ffs_subr.c,v 1.5 1995/09/04 00:20:55 dyson Exp $
+ * $Id: ffs_subr.c,v 1.6 1995/12/17 21:09:31 phk Exp $
*/
#include <sys/param.h>
#include <ufs/ffs/fs.h>
#ifdef KERNEL
+#include "opt_ddb.h"
+
#include <sys/systm.h>
#include <sys/vnode.h>
#include <ufs/ffs/ffs_extern.h>
diff --git a/sys/vm/vm_glue.c b/sys/vm/vm_glue.c
index 71648ca..c6ff0e0 100644
--- a/sys/vm/vm_glue.c
+++ b/sys/vm/vm_glue.c
@@ -63,6 +63,7 @@
*/
#include "opt_sysvipc.h"
+#include "opt_ddb.h"
#include <sys/param.h>
#include <sys/systm.h>
diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c
index d7a6dfc..3bfb8ad 100644
--- a/sys/vm/vm_map.c
+++ b/sys/vm/vm_map.c
@@ -61,12 +61,13 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: vm_map.c,v 1.29 1995/12/11 04:58:12 dyson Exp $
+ * $Id: vm_map.c,v 1.30 1995/12/14 09:54:59 phk Exp $
*/
/*
* Virtual memory mapping module.
*/
+#include "opt_ddb.h"
#include <sys/param.h>
#include <sys/systm.h>
diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c
index 37bf211..7ba53e8 100644
--- a/sys/vm/vm_object.c
+++ b/sys/vm/vm_object.c
@@ -61,12 +61,13 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: vm_object.c,v 1.60 1995/12/14 09:55:03 phk Exp $
+ * $Id: vm_object.c,v 1.61 1996/01/04 18:32:31 davidg Exp $
*/
/*
* Virtual memory object module.
*/
+#include "opt_ddb.h"
#include <sys/param.h>
#include <sys/systm.h>
diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c
index facc875..325b5d5 100644
--- a/sys/vm/vm_page.c
+++ b/sys/vm/vm_page.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)vm_page.c 7.4 (Berkeley) 5/7/91
- * $Id: vm_page.c,v 1.43 1995/12/14 09:55:07 phk Exp $
+ * $Id: vm_page.c,v 1.44 1995/12/17 07:19:58 bde Exp $
*/
/*
@@ -67,6 +67,7 @@
/*
* Resident memory management module.
*/
+#include "opt_ddb.h"
#include <sys/param.h>
#include <sys/systm.h>
OpenPOWER on IntegriCloud