summaryrefslogtreecommitdiff
path: root/backend/fujitsu-scsi.h
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2015-01-02 20:06:30 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2015-01-02 20:06:30 +0100
commitb2802d98d4486d6afc585062f4ca02fddf829dc5 (patch)
treeb74907ddd07161872edfa3d8be1a4ece63a6ec62 /backend/fujitsu-scsi.h
parent29eaee2cf7c71df75a2d31f82738cc3a060f7a88 (diff)
Release 1.0.25+git20150102-1
Diffstat (limited to 'backend/fujitsu-scsi.h')
-rw-r--r--backend/fujitsu-scsi.h24
1 files changed, 23 insertions, 1 deletions
diff --git a/backend/fujitsu-scsi.h b/backend/fujitsu-scsi.h
index 52ac7c6..de6652c 100644
--- a/backend/fujitsu-scsi.h
+++ b/backend/fujitsu-scsi.h
@@ -330,6 +330,7 @@ putnbyte (unsigned char *pnt, unsigned int value, unsigned int nbytes)
#define get_IN_skew_check(in) getbitfield(in+0x6d, 1, 7)
#define get_IN_new_fd_roll(in) getbitfield(in+0x6d, 1, 6)
+#define get_IN_paper_prot_2(in) getbitfield(in+0x6d, 1, 1)
#define get_IN_evpd_len(in) getnbyte(in + 0x6f, 1)
@@ -364,8 +365,20 @@ putnbyte (unsigned char *pnt, unsigned int value, unsigned int nbytes)
/*byte 75 is poorly documented*/
+#define get_IN_erp_lot6_supp(in) getbitfield(in+0x76, 1, 7)
+#define get_IN_mode_change_jpeg(in) getbitfield(in+0x76, 1, 5)
+#define get_IN_mode_change_irdc(in) getbitfield(in+0x76, 1, 4)
+#define get_IN_mode_change_iomf(in) getbitfield(in+0x76, 1, 3)
#define get_IN_sync_next_feed(in) getbitfield(in+0x76, 0x07, 0)
+#define get_IN_imp_func3(in) getbitfield(in+0x77, 1, 7)
+
+#define get_IN_reset_ms(in) getbitfield(in+0x78, 1, 7)
+#define get_IN_read_size(in) getbitfield(in+0x78, 1, 6)
+#define get_IN_start_end_ms(in) getbitfield(in+0x78, 1, 5)
+
+#define get_IN_op_halt(in) getbitfield(in+0x7a, 1, 7)
+
/* some scanners need evpd inquiry data manipulated */
#define set_IN_page_length(in,val) in[0x04]=val
@@ -429,6 +442,7 @@ putnbyte (unsigned char *pnt, unsigned int value, unsigned int nbytes)
#define set_MSEL_df_paperprot(sb, val) setbitfield(sb + 3, 3, 6, val)
#define set_MSEL_df_stapledet(sb, val) setbitfield(sb + 3, 3, 4, val)
#define set_MSEL_df_recovery(sb, val) setbitfield(sb + 3, 3, 2, val)
+#define set_MSEL_df_paperprot2(sb, val) setbitfield(sb + 5, 3, 6, val)
#define set_MSEL_dropout_front(sb, val) setbitfield(sb + 0x02, 0x0f, 0, val)
#define set_MSEL_dropout_back(sb, val) setbitfield(sb + 0x02, 0x0f, 4, val)
@@ -548,6 +562,13 @@ putnbyte (unsigned char *pnt, unsigned int value, unsigned int nbytes)
#define set_SD_preread_composition(sb, val) putnbyte(sb + 0x1c, val, 1)
#define set_SD_preread_escan(sb, val) putnbyte(sb + 0x1d, val, 1)
+#define SD_powoff_string "SET POWOFF TIME "
+#define SD_powoff_stringlen 16
+#define SD_powoff_len 18
+#define set_SD_powoff_disable(in, val) setbitfield(in + 16, 1, 7, val)
+#define set_SD_powoff_interval(in, val) setbitfield(in + 16, 0x7f, 0, val)
+#define set_SD_powoff_notify(sb, val) putnbyte(sb + 0x17, val, 1)
+
/* ==================================================================== */
/* SET_WINDOW */
#define SET_WINDOW_code 0x24
@@ -675,9 +696,10 @@ putnbyte (unsigned char *pnt, unsigned int value, unsigned int nbytes)
#define OBJECT_POSITION_code 0x31
#define OBJECT_POSITION_len 10
-#define set_OP_autofeed(b,val) setbitfield(b+0x01, 0x07, 0, val)
+#define set_OP_action(b,val) setbitfield(b+0x01, 0x07, 0, val)
#define OP_Discharge 0x00
#define OP_Feed 0x01
+#define OP_Halt 0x04
/* ==================================================================== */
/* SET_SUBWINDOW */