summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-12-15 23:49:42 +0000
committerbde <bde@FreeBSD.org>1995-12-15 23:49:42 +0000
commit3c6fecaa2db89256db010149f70dd598df11e983 (patch)
tree63fc8c671acf57e14799934fb9979082d1068d3d /sys
parentbdd118393bb0552b7203f14dbb1050868f022a8c (diff)
downloadFreeBSD-src-3c6fecaa2db89256db010149f70dd598df11e983.zip
FreeBSD-src-3c6fecaa2db89256db010149f70dd598df11e983.tar.gz
Completed function declarations and added prototypes. Sorted prototypes.
Diffstat (limited to 'sys')
-rw-r--r--sys/i386/scsi/aic7xxx.c71
1 files changed, 46 insertions, 25 deletions
diff --git a/sys/i386/scsi/aic7xxx.c b/sys/i386/scsi/aic7xxx.c
index 781aad6..85d317d 100644
--- a/sys/i386/scsi/aic7xxx.c
+++ b/sys/i386/scsi/aic7xxx.c
@@ -24,7 +24,7 @@
*
* commenced: Sun Sep 27 18:14:01 PDT 1992
*
- * $Id: aic7xxx.c,v 1.48 1995/12/06 23:51:37 bde Exp $
+ * $Id: aic7xxx.c,v 1.49 1995/12/07 12:46:28 davidg Exp $
*/
/*
* TODO:
@@ -65,30 +65,6 @@
struct ahc_data *ahcdata[NAHC];
-static void ahc_loadseq __P((u_long iobase));
-static int32 ahc_scsi_cmd();
-static timeout_t ahc_timeout;
-static void ahc_done __P((int unit, struct scb *scbp));
-static struct scb *ahc_get_scb __P((int unit, int flags));
-static void ahc_free_scb();
-static void ahc_scb_timeout __P((int unit, struct ahc_data *ahc,
- struct scb *scb));
-static u_char ahc_abort_wscb __P((int unit, struct scb *scbp, u_char prev,
- u_long iobase, u_char timedout_scb, u_int32 xs_error));
-static int ahc_match_scb __P((struct scb *scb, int target, char channel));
-static int ahc_reset_device __P((int unit, struct ahc_data *ahc,
- int target, char channel, u_char timedout_scb,
- u_int32 xs_error));
-static void ahc_reset_current_bus __P((u_long iobase));
-static int ahc_reset_channel __P((int unit, struct ahc_data *ahc,
- char channel, u_char timedout_scb, u_int32 xs_error));
-static void ahcminphys();
-static void ahc_unbusy_target __P((int target, char channel,
- u_long iobase));
-struct scb *ahc_scb_phys_kv();
-static int ahc_poll __P((int unit, int wait));
-static u_int32 ahc_adapter_info();
-
u_long ahc_unit = 0;
static int ahc_debug = AHC_SHOWABORTS;
@@ -103,6 +79,10 @@ typedef enum {
list_tail
}insert_t;
+static u_int32 ahc_adapter_info __P((int unit));
+static void ahcminphys __P((struct buf *bp));
+static int32 ahc_scsi_cmd __P((struct scsi_xfer *xs));
+
static struct scsi_adapter ahc_switch =
{
ahc_scsi_cmd,
@@ -219,6 +199,47 @@ struct seeprom_config {
\
UNPAUSE_SEQUENCER(ahc);
+static u_char ahc_abort_wscb __P((int unit, struct scb *scbp, u_char prev,
+ u_long iobase, u_char timedout_scb,
+ u_int32 xs_error));
+static void ahc_add_waiting_scb __P((u_long iobase, struct scb *scb,
+ insert_t where));
+static void ahc_done __P((int unit, struct scb *scbp));
+static void ahc_free_scb __P((int unit, struct scb *scb, int flags));
+static void ahc_getscb __P((u_long iobase, struct scb *scb));
+static struct scb *
+ ahc_get_scb __P((int unit, int flags));
+static int ahc_intr __P((int unit));
+static void ahc_loadseq __P((u_long iobase));
+static int ahc_match_scb __P((struct scb *scb, int target, char channel));
+static int ahc_poll __P((int unit, int wait));
+#ifdef AHC_DEBUG
+static void ahc_print_active_scb __P((struct ahc_data *ahc));
+static void ahc_print_scb __P((struct scb *scb));
+#endif
+static int ahc_reset_channel __P((int unit, struct ahc_data *ahc,
+ char channel, u_char timedout_scb,
+ u_int32 xs_error));
+static int ahc_reset_device __P((int unit, struct ahc_data *ahc,
+ int target, char channel,
+ u_char timedout_scb, u_int32 xs_error));
+static void ahc_reset_current_bus __P((u_long iobase));
+static void ahc_scb_timeout __P((int unit, struct ahc_data *ahc,
+ struct scb *scb));
+static void ahc_scsirate __P((u_char *scsirate, int period, int offset,
+ int unit, int target));
+static void ahc_send_scb __P((struct ahc_data *ahc, struct scb *scb));
+static timeout_t
+ ahc_timeout;
+static void ahc_unbusy_target __P((int target, char channel,
+ u_long iobase));
+static int enable_seeprom __P((u_long offset, u_short CS, u_short CK,
+ u_short DO, u_short DI, u_short RDY,
+ u_short MS));
+static void release_seeprom __P((u_long offset, u_short CS, u_short CK,
+ u_short DO, u_short DI, u_short RDY,
+ u_short MS));
+
#ifdef AHC_DEBUG
static void
ahc_print_scb(scb)
OpenPOWER on IntegriCloud