summaryrefslogtreecommitdiffstats
path: root/sys/dev/aha
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>1998-10-02 04:37:49 +0000
committerimp <imp@FreeBSD.org>1998-10-02 04:37:49 +0000
commit5f8a3330cad165c366602fa8eccdedba3b06b5b3 (patch)
tree97d91ade446b64d540c083315b5105758519e5a0 /sys/dev/aha
parent0ed89e499b6945215e581a1593ca6f907dd9f10a (diff)
downloadFreeBSD-src-5f8a3330cad165c366602fa8eccdedba3b06b5b3.zip
FreeBSD-src-5f8a3330cad165c366602fa8eccdedba3b06b5b3.tar.gz
GC unused stuff.
Diffstat (limited to 'sys/dev/aha')
-rw-r--r--sys/dev/aha/aha.c18
-rw-r--r--sys/dev/aha/ahareg.h44
2 files changed, 12 insertions, 50 deletions
diff --git a/sys/dev/aha/aha.c b/sys/dev/aha/aha.c
index 8dfa9a0..080820e 100644
--- a/sys/dev/aha/aha.c
+++ b/sys/dev/aha/aha.c
@@ -55,7 +55,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: aha.c,v 1.5 1998/09/30 00:10:44 imp Exp $
+ * $Id: aha.c,v 1.6 1998/10/01 04:53:55 imp Exp $
*/
#include <sys/param.h>
@@ -85,7 +85,7 @@
struct aha_softc *aha_softcs[NAHA];
#define MIN(a, b) ((a) < (b) ? (a) : (b))
-#define PRVERBOSE(x) if (bootverbose) printf x
+#define PRVERB(x) if (bootverbose) printf x
/* Macro to determine that a rev is potentially a new valid one
* so that the driver doesn't keep breaking on new revs as it
@@ -312,8 +312,7 @@ aha_probe(struct aha_softc* aha)
(u_int8_t*)&board_id, sizeof(board_id),
DEFAULT_CMD_TIMEOUT);
if (error != 0) {
- if (bootverbose)
- printf("%s: INQUIRE failed %x\n", aha_name(aha), error);
+ PRVERB(("%s: INQUIRE failed %x\n", aha_name(aha), error));
return (ENXIO);
}
aha->fw_major = board_id.firmware_rev_major;
@@ -1370,10 +1369,9 @@ ahareset(struct aha_softc* aha, int hard_reset)
DELAY(100);
}
if (timeout == 0) {
- if (bootverbose)
- printf("%s: ahareset - Diagnostic Active failed to "
- "assert. status = 0x%x\n", aha_name(aha),
- status);
+ PRVERB(("%s: ahareset - Diagnostic Active failed to "
+ "assert. status = 0x%x\n", aha_name(aha),
+ status));
return (ETIMEDOUT);
}
@@ -1565,9 +1563,7 @@ aha_cmd(struct aha_softc *aha, aha_op_t opcode, u_int8_t *params,
* If the command was rejected by the controller, tell the caller.
*/
if ((status & CMD_INVALID) != 0) {
- if (bootverbose)
- printf("%s: Invalid Command 0x%x\n", aha_name(aha),
- opcode);
+ PRVERB(("%s: Invalid Command 0x%x\n", aha_name(aha), opcode));
/*
* Some early adapters may not recover properly from
* an invalid command. If it appears that the controller
diff --git a/sys/dev/aha/ahareg.h b/sys/dev/aha/ahareg.h
index 547074c..7af8b53 100644
--- a/sys/dev/aha/ahareg.h
+++ b/sys/dev/aha/ahareg.h
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: ahareg.h,v 1.1 1998/09/15 07:39:52 gibbs Exp $
+ * $Id: ahareg.h,v 1.2 1998/10/01 04:53:55 imp Exp $
*/
#ifndef _AHAREG_H_
@@ -90,21 +90,10 @@
#define IMB_LOADED 0x01 /* Incoming Mailbox loaded */
/*
- * Definitions for the "undocumented" geometry register
+ * Definitions for the "undocumented" geometry register, we just need
+ * its location.
*/
-typedef enum {
- GEOM_NODISK,
- GEOM_64x32,
- GEOM_128x32,
- GEOM_255x32
-} disk_geom_t;
-
#define GEOMETRY_REG 0x03
-#define DISK0_GEOMETRY 0x03
-#define DISK1_GEOMETRY 0x0c
-#define EXTENDED_TRANSLATION 0x10
-#define GEOMETRY_DISK0(g_reg) (g_reg & DISK0_GEOMETRY)
-#define GEOMETRY_DISK1(g_reg) ((g_reg & DISK1_GEOMETRY) >> 2)
#define AHA_NREGS (4)
@@ -157,30 +146,6 @@ struct aha_extbios
u_int8_t mailboxlock; /* mail box lock code to unlock it */
};
-/* This is really a bustech command, but we use it to differentiate between */
-/* the aha and bt */
-typedef struct {
- u_int8_t bus_type;
- u_int8_t bios_addr;
- u_int16_t max_sg;
- u_int8_t num_mboxes;
- u_int8_t mbox_base[4];
- u_int8_t :2,
- sync_neg10MB :1,
- floppy_disable :1,
- floppy_secondary_port :1,
- burst_mode_enabled :1,
- level_trigger_ints :1,
- :1;
- u_int8_t fw_ver_bytes_2_to_4[3];
- u_int8_t wide_bus :1,
- diff_bus :1,
- scam_capable :1,
- ultra_scsi :1,
- auto_term :1,
- :3;
-} esetup_info_data_t;
-
typedef struct {
u_int8_t num_mboxes;
u_int8_t base_addr[3];
@@ -189,7 +154,8 @@ typedef struct {
typedef struct {
u_int8_t board_type;
/* These values are mostly from the aha-1540CP technical reference, but */
-/* with other values from the old aha1542.c driver. */
+/* with other values from the old aha1542.c driver. The values from the */
+/* aha-1540CP technical manual are used where conflicts arise */
#define BOARD_1540_16HEAD_BIOS 0x00
#define BOARD_1540_64HEAD_BIOS 0x30
#define BOARD_1542 0x41 /* aha-1540/1542 w/64-h bios */
OpenPOWER on IntegriCloud