summaryrefslogtreecommitdiff
path: root/sys/dev/microcode
diff options
context:
space:
mode:
authorthorpej <thorpej@NetBSD.org>2003-08-29 01:52:16 +0000
committerthorpej <thorpej@NetBSD.org>2003-08-29 01:52:16 +0000
commit6095f5f091082753fb9688bf3980bbfb774d1d4b (patch)
tree56674e393b7b6b5bddb30fdba927a790539f3233 /sys/dev/microcode
parentd532b6f4e620bb7742c87fe184c44cdb7b567a6b (diff)
Add some missing definitions for the LUNLEN register.
Diffstat (limited to 'sys/dev/microcode')
-rw-r--r--sys/dev/microcode/aic7xxx/aic79xx.reg5
-rw-r--r--sys/dev/microcode/aic7xxx/aic79xx_reg.h3
2 files changed, 7 insertions, 1 deletions
diff --git a/sys/dev/microcode/aic7xxx/aic79xx.reg b/sys/dev/microcode/aic7xxx/aic79xx.reg
index 704650a3e7f..b0704337ece 100644
--- a/sys/dev/microcode/aic7xxx/aic79xx.reg
+++ b/sys/dev/microcode/aic7xxx/aic79xx.reg
@@ -1,4 +1,4 @@
-/* $NetBSD: aic79xx.reg,v 1.5 2003/08/29 01:28:53 thorpej Exp $ */
+/* $NetBSD: aic79xx.reg,v 1.6 2003/08/29 01:52:16 thorpej Exp $ */
/*
* Aic79xx register and scratch ram definitions.
@@ -1379,7 +1379,10 @@ register LUNLEN {
address 0x030
access_mode RW
modes M_CFG
+ mask ILUNLEN 0x0F
+ mask TLUNLEN 0xF0
}
+const LUNLEN_SINGLE_LEVEL_LUN 0xF
/*
* CDB Limit
diff --git a/sys/dev/microcode/aic7xxx/aic79xx_reg.h b/sys/dev/microcode/aic7xxx/aic79xx_reg.h
index 497bd5dddd9..7a68e4781a6 100644
--- a/sys/dev/microcode/aic7xxx/aic79xx_reg.h
+++ b/sys/dev/microcode/aic7xxx/aic79xx_reg.h
@@ -2557,6 +2557,8 @@ ahd_reg_print_t ahd_scb_disconnected_lists_print;
#define SHORTTHRESH 0x2f
#define LUNLEN 0x30
+#define TLUNLEN 0xf0
+#define ILUNLEN 0x0f
#define CDBLIMIT 0x31
@@ -3718,6 +3720,7 @@ ahd_reg_print_t ahd_scb_disconnected_lists_print;
#define BUS_32_BIT 0x02
#define SEEOP_EWEN_ADDR 0xc0
#define AHD_AMPLITUDE_MASK 0x07
+#define LUNLEN_SINGLE_LEVEL_LUN 0x0f
#define DST_MODE_SHIFT 0x04
#define AHD_TIMER_MAX_TICKS 0xffff
#define STATUS_PKT_SENSE 0xff