summaryrefslogtreecommitdiffstats
path: root/backend_sinfonia.h
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2019-05-21 11:07:49 -0400
committerSolomon Peachy <pizza@shaftnet.org>2019-05-22 18:59:09 -0400
commit971b0ccf4d8dc058af41ea721f32228ce7f9a720 (patch)
treecc6c82a07b33f7f576f0bcf6d17f8e85e0b1a703 /backend_sinfonia.h
parent8b250e8d1d4998d1b8d9f04fbef296a09a880ed9 (diff)
downloadselphy_print-971b0ccf4d8dc058af41ea721f32228ce7f9a720.tar.gz
selphy_print-971b0ccf4d8dc058af41ea721f32228ce7f9a720.tar.bz2
selphy_print-971b0ccf4d8dc058af41ea721f32228ce7f9a720.zip
kodak: Add preliminary support for Kodak 7000-series, 8810, and 6900
6900 in particular is _very_ preliminary. Also unifies some more common sinfonia code.
Diffstat (limited to 'backend_sinfonia.h')
-rw-r--r--backend_sinfonia.h29
1 files changed, 28 insertions, 1 deletions
diff --git a/backend_sinfonia.h b/backend_sinfonia.h
index 6d81826..13eef49 100644
--- a/backend_sinfonia.h
+++ b/backend_sinfonia.h
@@ -27,7 +27,7 @@
*
*/
-#define LIBSINFONIA_VER "0.1"
+#define LIBSINFONIA_VER "0.02"
#define SINFONIA_HDR1_LEN 0x10
#define SINFONIA_HDR2_LEN 0x64
@@ -62,6 +62,10 @@ struct sinfonia_printjob {
int sinfonia_read_parse(int data_fd, uint32_t model,
struct sinfonia_printjob *job);
+int sinfonia_raw10_read_parse(int data_fd, struct sinfonia_printjob *job);
+int sinfonia_raw18_read_parse(int data_fd, struct sinfonia_printjob *job);
+void sinfonia_cleanup_job(const void *vjob);
+
#define BANK_STATUS_FREE 0x00
#define BANK_STATUS_XFER 0x01
#define BANK_STATUS_FULL 0x02
@@ -226,6 +230,28 @@ struct sinfonia_seteeprom_cmd {
uint8_t data[256]; /* Maxlen */
} __attribute__((packed));
+struct sinfonia_printcmd10_hdr {
+ struct sinfonia_cmd_hdr hdr;
+ uint8_t jobid;
+ uint16_t copies;
+ uint16_t columns;
+ uint16_t rows;
+ uint8_t media;
+ uint8_t oc_mode;
+ uint8_t method;
+} __attribute__((packed));
+
+struct sinfonia_printcmd18_hdr {
+ struct sinfonia_cmd_hdr hdr;
+ uint8_t jobid;
+ uint16_t copies;
+ uint16_t columns;
+ uint16_t rows;
+ uint8_t media;
+ uint8_t oc_mode;
+ uint8_t method;
+} __attribute__((packed));
+
#define CODE_4x6 0x00
#define CODE_3_5x5 0x01
#define CODE_5x7 0x03
@@ -316,6 +342,7 @@ const char *sinfonia_cmd_names(uint16_t v);
#define KODAK6_MEDIA_UNK 0x03
#define KODAK6_MEDIA_6TR2 0x2c // 396-2941
#define KODAK6_MEDIA_NONE 0x00
+#define KODAK7_MEDIA_6R 0x29
const char *kodak6_mediatypes(int type);
void kodak6_dumpmediacommon(int type);