summaryrefslogtreecommitdiffstats
path: root/sys/dev/dpt/dpt_scsi.c
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>1998-03-11 00:30:16 +0000
committerjulian <julian@FreeBSD.org>1998-03-11 00:30:16 +0000
commit81765fc2bb4eca9e2fba44a1004110868b8ff7fc (patch)
treea1a11cc749302ec51aadb78ae74e5bbfa22dd6c4 /sys/dev/dpt/dpt_scsi.c
parent46304bfe5a3c7beb586dc61aff63d7190373e424 (diff)
downloadFreeBSD-src-81765fc2bb4eca9e2fba44a1004110868b8ff7fc.zip
FreeBSD-src-81765fc2bb4eca9e2fba44a1004110868b8ff7fc.tar.gz
Add EISA support for DPT drivers
Submitted by: Matthew Dodd Reviewd by: shimon@simon-shapiro.org (DPT author)
Diffstat (limited to 'sys/dev/dpt/dpt_scsi.c')
-rw-r--r--sys/dev/dpt/dpt_scsi.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/sys/dev/dpt/dpt_scsi.c b/sys/dev/dpt/dpt_scsi.c
index 0fbb3c7..38ce29c 100644
--- a/sys/dev/dpt/dpt_scsi.c
+++ b/sys/dev/dpt/dpt_scsi.c
@@ -64,7 +64,7 @@
* 3. dpt_handle_timeouts potentially inserts into the queue
*/
-#ident "$Id: dpt_scsi.c,v 1.3 1998/02/20 13:11:45 bde Exp $"
+#ident "$Id: dpt_scsi.c,v 1.4 1998/02/25 11:56:37 bde Exp $"
#define _DPT_C_
#include "opt_dpt.h"
@@ -92,6 +92,10 @@
#define INLINE __inline
#define INLINE_Q
+/* dpt_isa.c, dpt_eisa.c, and dpt_pci.c need this in a central place */
+
+int dpt_controllers_present = 0;
+
/* Function Prototypes */
static INLINE u_int32_t dpt_inl(dpt_softc_t * dpt, u_int32_t offset);
@@ -199,7 +203,8 @@ static void dptminphys(struct buf * bp);
static void dpt_sintr(void);
void dpt_intr(void *arg);
static char *scsi_cmd_name(u_int8_t cmd);
-static dpt_rb_t
+
+dpt_rb_t
dpt_register_buffer(int unit,
u_int8_t channel,
u_int8_t target,
@@ -209,7 +214,7 @@ dpt_register_buffer(int unit,
u_int16_t offset,
dpt_rec_buff callback,
dpt_rb_op_t op);
-static int
+int
dpt_send_buffer(int unit,
u_int8_t channel,
u_int8_t target,
@@ -479,7 +484,7 @@ dpt_set_target(int redo, dpt_softc_t * dpt,
of receipt of buffers.
*/
-static int
+int
dpt_send_buffer(int unit,
u_int8_t channel,
u_int8_t target,
@@ -628,7 +633,7 @@ dpt_target_done(dpt_softc_t * dpt, int bus, dpt_ccb_t * ccb)
* by the target mode code.
*/
-static dpt_rb_t
+dpt_rb_t
dpt_register_buffer(int unit,
u_int8_t channel,
u_int8_t target,
@@ -697,7 +702,8 @@ valid_unit:
splx(ospl);
return (NO_RESOURCES);
}
- dpt_set_target(0, dpt, channel, target, lun, mode, length, offset, ccb);
+ dpt_set_target(0, dpt, channel, target, lun, mode, length,
+ offset, ccb);
return (SUCCESSFULLY_REGISTERED);
} else
return (NOT_REGISTERED);
OpenPOWER on IntegriCloud