From 55d24dba50995dd9d9cdacc358c55c844b6a2d60 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Thu, 2 Feb 2017 01:18:12 -0500 Subject: [PATCH] mitsup95: Add USB IDs for Mitsubishi P93D Unfortunately, it's not identical to the P95 from an operational perspective. --- README | 7 ++++++- backend_common.h | 1 + backend_mitsup95d.c | 4 +++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/README b/README index e008bf5..1f4555c 100644 --- a/README +++ b/README @@ -63,6 +63,7 @@ Mitsubishi CP-9000DW, CP-9500DW, and CP-9600DW-S Mitsubishi CP-9800DW, CP-9800DW-S, CP-9810DW, and CP-9820DW-S Mitsubishi CP-D707DW + Mitsubishi P93D Olmec OP900 and OP900II Shinko CHC-S1245 (aka Sinfonia E1) Shinko CHC-S6245 (aka Sinfonia CE1) @@ -674,7 +675,11 @@ Mitsubishi P95DW - This backend does not support additional commands. + Work-in-progress printers: + + Mitsubishi P93D + +This backend does not support additional commands. *************************************************************************** BACKEND=dnpds40 diff --git a/backend_common.h b/backend_common.h index f1f129f..21a3a7c 100644 --- a/backend_common.h +++ b/backend_common.h @@ -117,6 +117,7 @@ enum { P_MITSU_9800, P_MITSU_9800S, P_MITSU_9810, + P_MITSU_P93D, P_MITSU_P95D, P_DNP_DS40, P_DNP_DS80, diff --git a/backend_mitsup95d.c b/backend_mitsup95d.c index e5edd1a..ec50409 100644 --- a/backend_mitsup95d.c +++ b/backend_mitsup95d.c @@ -44,6 +44,7 @@ #include "backend_common.h" #define USB_VID_MITSU 0x06D3 +#define USB_PID_MITSU_P93D 0x0398 #define USB_PID_MITSU_P95D 0x3b10 /* Private data stucture */ @@ -397,7 +398,7 @@ static int mitsup95d_cmdline_arg(void *vctx, int argc, char **argv) /* Exported */ struct dyesub_backend mitsup95d_backend = { .name = "Mitsubishi P95D", - .version = "0.02", + .version = "0.03", .uri_prefix = "mitsup95d", .cmdline_arg = mitsup95d_cmdline_arg, .init = mitsup95d_init, @@ -406,6 +407,7 @@ struct dyesub_backend mitsup95d_backend = { .read_parse = mitsup95d_read_parse, .main_loop = mitsup95d_main_loop, .devices = { + { USB_VID_MITSU, USB_PID_MITSU_P93D, P_MITSU_P93D, ""}, { USB_VID_MITSU, USB_PID_MITSU_P95D, P_MITSU_P95D, ""}, { 0, 0, 0, ""} }