summaryrefslogtreecommitdiffstats
path: root/sys/dev/dpt/dpt_control.c
diff options
context:
space:
mode:
authorgibbs <gibbs@FreeBSD.org>1998-09-15 08:33:38 +0000
committergibbs <gibbs@FreeBSD.org>1998-09-15 08:33:38 +0000
commit589d4a338b39b4f9e27060b9b9c717ae520f8905 (patch)
treec4a36ecfbf82749363f81dbb7ccb7eed321da23b /sys/dev/dpt/dpt_control.c
parent766d4620976e348ecb44cd6fc16aeceee88fe1ca (diff)
downloadFreeBSD-src-589d4a338b39b4f9e27060b9b9c717ae520f8905.zip
FreeBSD-src-589d4a338b39b4f9e27060b9b9c717ae520f8905.tar.gz
Conver the DPT driver to CAM. The dpt_control interface is not yet
functional, but will be in another day or so.
Diffstat (limited to 'sys/dev/dpt/dpt_control.c')
-rw-r--r--sys/dev/dpt/dpt_control.c33
1 files changed, 4 insertions, 29 deletions
diff --git a/sys/dev/dpt/dpt_control.c b/sys/dev/dpt/dpt_control.c
index 6de9f47..ba4bec9 100644
--- a/sys/dev/dpt/dpt_control.c
+++ b/sys/dev/dpt/dpt_control.c
@@ -36,7 +36,7 @@
* future.
*/
-#ident "$Id: dpt_control.c,v 1.7 1998/07/13 09:52:51 bde Exp $"
+#ident "$Id: dpt_control.c,v 1.8 1998/08/05 00:54:36 eivind Exp $"
#include "opt_dpt.h"
@@ -54,7 +54,7 @@
#include <vm/pmap.h>
#include <scsi/scsiconf.h>
-#include <sys/dpt.h>
+#include <dev/dpt/dpt.h>
#define INLINE __inline
@@ -100,33 +100,8 @@ NULL, -1};
static struct buf *dpt_inbuf[DPT_MAX_ADAPTERS];
static char dpt_rw_command[DPT_MAX_ADAPTERS][DPT_RW_CMD_LEN + 1];
-#ifdef DPT_MEASURE_PERFORMANCE
-void
-dpt_reset_performance(dpt_softc_t *dpt)
-{
- int ndx;
-
- /* Zero out all command counters */
- bzero(&dpt->performance, sizeof(dpt_perf_t));
- for ( ndx = 0; ndx < 256; ndx ++ )
- dpt->performance.min_command_time[ndx] = BIG_ENOUGH;
-
- dpt->performance.min_intr_time = BIG_ENOUGH;
- dpt->performance.min_waiting_time = BIG_ENOUGH;
- dpt->performance.min_submit_time = BIG_ENOUGH;
- dpt->performance.min_complete_time = BIG_ENOUGH;
- dpt->performance.min_eata_tries = BIG_ENOUGH;
-
- for (ndx = 0; ndx < 10; ndx++ ) {
- dpt->performance.read_by_size_min_time[ndx] = BIG_ENOUGH;
- dpt->performance.write_by_size_min_time[ndx] = BIG_ENOUGH;
- }
-
-}
-#endif /* DPT_MEASURE_PERFORMANCE */
-
-/**
+/*
* Given a minor device number,
* return the pointer to its softc structure
*/
@@ -395,7 +370,7 @@ dpt_get_sysinfo(void)
dpt_sysinfo.flags |= SI_BusTypeValid;
dpt_sysinfo.busType = HBA_BUS_PCI;
-#warning "O/S Version determination is an ugly hack"
+ /* XXX Use _FreeBSD_Version_ */
dpt_sysinfo.osType = OS_FREEBSD;
dpt_sysinfo.osMajorVersion = osrelease[0] - '0';
if (osrelease[1] == '.')
OpenPOWER on IntegriCloud