summaryrefslogtreecommitdiff
path: root/sys/scsi/ss.c
diff options
context:
space:
mode:
authorkstailey <kstailey@cvs.openbsd.org>1997-04-05 23:34:21 +0000
committerkstailey <kstailey@cvs.openbsd.org>1997-04-05 23:34:21 +0000
commitc946b1add650b86ce31bf6d02f57179d393a5bac (patch)
treeb38e38f5ece9e16d5941cfc92807aa0943ac79ee /sys/scsi/ss.c
parent929c3d10230b4cb4fda51d299938ee25f120b9bd (diff)
add quirk table entry for the Ultima A6000C
Diffstat (limited to 'sys/scsi/ss.c')
-rw-r--r--sys/scsi/ss.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/sys/scsi/ss.c b/sys/scsi/ss.c
index 9fcf60980c1..0a944917e3b 100644
--- a/sys/scsi/ss.c
+++ b/sys/scsi/ss.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ss.c,v 1.31 1997/04/05 22:59:13 kstailey Exp $ */
+/* $OpenBSD: ss.c,v 1.32 1997/04/05 23:34:20 kstailey Exp $ */
/* $NetBSD: ss.c,v 1.10 1996/05/05 19:52:55 christos Exp $ */
/*
@@ -78,7 +78,7 @@ struct quirkdata {
#define SS_Q_REV_CONTRAST 0x0040 /* reverse contrast control in s/w */
#define SS_Q_HALFTONE 0x0080 /* uses non-zero halftone */
#define SS_Q_SET_RIF 0x0100 /* set RIF bit */
-#define SS_Q_PADDING_TYPE 0x0200 /* does not pad to byte boundary */
+#define SS_Q_PADDING_TYPE 0x0200 /* does not truncate to byte boundary */
#define SS_Q_BIT_ORDERING 0x0400 /* needs non-zero bit ordering */
long window_descriptor_length;
u_int8_t brightness;
@@ -142,6 +142,15 @@ void get_buffer_status __P((struct ss_softc *, struct buf *));
struct ss_quirk_inquiry_pattern ss_quirk_patterns[] = {
{{T_SCANNER, T_FIXED,
+ "ULTIMA ", "A6000C PLUS ", " "}, {
+ "Ultima A6000C",
+ SS_Q_HALFTONE |
+ SS_Q_PADDING_TYPE,
+ 0, 0, 0, 0, { 3, 0 }, 0, 0,
+ ULTIMA_AC6000C,
+ NULL, NULL, NULL
+ }},
+ {{T_SCANNER, T_FIXED,
"RICOH ", "IS50 ", " "}, {
"Ricoh IS-50",
SS_Q_WINDOW_DESC_LEN |
@@ -800,7 +809,7 @@ ss_set_window(ss, sio)
if (ss->quirkdata->quirks & SS_Q_PADDING_TYPE)
window_data.pad_type = ss->quirkdata->pad_type;
else
- window_data.pad_type = 3; /* 3 = pad to byte boundary */
+ window_data.pad_type = 3; /* 3 = truncate to byte boundary */
if (ss->quirkdata->quirks & SS_Q_BIT_ORDERING)
_lto2l(ss->quirkdata->bit_ordering, window_data.bit_ordering);