canonselphy: Rearrange a little, no functional change.
This commit is contained in:
parent
158cb50128
commit
aeeb1e3404
|
@ -37,6 +37,41 @@
|
|||
|
||||
#include "backend_common.h"
|
||||
|
||||
/* Exported */
|
||||
#define USB_VID_CANON 0x04a9
|
||||
#define USB_PID_CANON_CP10 0x304A
|
||||
#define USB_PID_CANON_CP100 0x3063
|
||||
#define USB_PID_CANON_CP200 0x307C
|
||||
#define USB_PID_CANON_CP220 0x30BD
|
||||
#define USB_PID_CANON_CP300 0x307D
|
||||
#define USB_PID_CANON_CP330 0x30BE
|
||||
#define USB_PID_CANON_CP400 0x30F6
|
||||
#define USB_PID_CANON_CP500 0x30F5
|
||||
#define USB_PID_CANON_CP510 0x3128
|
||||
#define USB_PID_CANON_CP520 520 // XXX 316f? 3172? (related to cp740/cp750)
|
||||
#define USB_PID_CANON_CP530 0x31b1
|
||||
#define USB_PID_CANON_CP600 0x310B
|
||||
#define USB_PID_CANON_CP710 0x3127
|
||||
#define USB_PID_CANON_CP720 0x3143
|
||||
#define USB_PID_CANON_CP730 0x3142
|
||||
#define USB_PID_CANON_CP740 0x3171
|
||||
#define USB_PID_CANON_CP750 0x3170
|
||||
#define USB_PID_CANON_CP760 0x31AB
|
||||
#define USB_PID_CANON_CP770 0x31AA
|
||||
#define USB_PID_CANON_CP780 0x31DD
|
||||
#define USB_PID_CANON_CP790 0x31E7
|
||||
#define USB_PID_CANON_CP800 0x3214
|
||||
#define USB_PID_CANON_CP810 0x3256
|
||||
#define USB_PID_CANON_CP820 820 // XXX
|
||||
#define USB_PID_CANON_CP900 0x3255
|
||||
#define USB_PID_CANON_CP910 910 // XXX
|
||||
#define USB_PID_CANON_ES1 0x3141
|
||||
#define USB_PID_CANON_ES2 0x3185
|
||||
#define USB_PID_CANON_ES20 0x3186
|
||||
#define USB_PID_CANON_ES3 0x31AF
|
||||
#define USB_PID_CANON_ES30 0x31B0
|
||||
#define USB_PID_CANON_ES40 0x31EE
|
||||
|
||||
#define READBACK_LEN 12
|
||||
|
||||
struct printer_data {
|
||||
|
@ -523,9 +558,6 @@ static void canonselphy_attach(void *vctx, struct libusb_device_handle *dev,
|
|||
|
||||
device = libusb_get_device(dev);
|
||||
libusb_get_device_descriptor(device, &desc);
|
||||
|
||||
#define USB_PID_CANON_CP790 0x31E7
|
||||
#define USB_PID_CANON_ES40 0x31EE
|
||||
|
||||
if (desc.idProduct == USB_PID_CANON_CP790)
|
||||
printer_type = P_CP790;
|
||||
|
@ -892,41 +924,6 @@ top:
|
|||
return 0;
|
||||
}
|
||||
|
||||
/* Exported */
|
||||
#define USB_VID_CANON 0x04a9
|
||||
#define USB_PID_CANON_CP10 0x304A
|
||||
#define USB_PID_CANON_CP100 0x3063
|
||||
#define USB_PID_CANON_CP200 0x307C
|
||||
#define USB_PID_CANON_CP220 0x30BD
|
||||
#define USB_PID_CANON_CP300 0x307D
|
||||
#define USB_PID_CANON_CP330 0x30BE
|
||||
#define USB_PID_CANON_CP400 0x30F6
|
||||
#define USB_PID_CANON_CP500 0x30F5
|
||||
#define USB_PID_CANON_CP510 0x3128
|
||||
#define USB_PID_CANON_CP520 520 // XXX 316f? 3172? (related to cp740/cp750)
|
||||
#define USB_PID_CANON_CP530 0x31b1
|
||||
#define USB_PID_CANON_CP600 0x310B
|
||||
#define USB_PID_CANON_CP710 0x3127
|
||||
#define USB_PID_CANON_CP720 0x3143
|
||||
#define USB_PID_CANON_CP730 0x3142
|
||||
#define USB_PID_CANON_CP740 0x3171
|
||||
#define USB_PID_CANON_CP750 0x3170
|
||||
#define USB_PID_CANON_CP760 0x31AB
|
||||
#define USB_PID_CANON_CP770 0x31AA
|
||||
#define USB_PID_CANON_CP780 0x31DD
|
||||
#define USB_PID_CANON_CP790 0x31E7
|
||||
#define USB_PID_CANON_CP800 0x3214
|
||||
#define USB_PID_CANON_CP810 0x3256
|
||||
#define USB_PID_CANON_CP820 820 // XXX
|
||||
#define USB_PID_CANON_CP900 0x3255
|
||||
#define USB_PID_CANON_CP910 910 // XXX
|
||||
#define USB_PID_CANON_ES1 0x3141
|
||||
#define USB_PID_CANON_ES2 0x3185
|
||||
#define USB_PID_CANON_ES20 0x3186
|
||||
#define USB_PID_CANON_ES3 0x31AF
|
||||
#define USB_PID_CANON_ES30 0x31B0
|
||||
#define USB_PID_CANON_ES40 0x31EE
|
||||
|
||||
struct dyesub_backend canonselphy_backend = {
|
||||
.name = "Canon SELPHY CP/ES",
|
||||
.version = "0.80",
|
||||
|
|
Loading…
Reference in a new issue