summaryrefslogtreecommitdiff
path: root/openpicc/dfu/usb_strings_dfu.h
diff options
context:
space:
mode:
authorhenryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2007-11-07 16:28:57 +0000
committerhenryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2007-11-07 16:28:57 +0000
commit39cb47ed0951074afb24687fcb6e66947b4f8ef8 (patch)
tree53c25e96487b86ac64113180d3731e73d75c13c5 /openpicc/dfu/usb_strings_dfu.h
parent2306bcac783751b073babef1bf60dd196cfef73d (diff)
Start working at dfu by copying from main openpcd repository (with modifications), doesn't boot application yet
git-svn-id: https://svn.openpcd.org:2342/trunk@315 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
Diffstat (limited to 'openpicc/dfu/usb_strings_dfu.h')
-rw-r--r--openpicc/dfu/usb_strings_dfu.h120
1 files changed, 120 insertions, 0 deletions
diff --git a/openpicc/dfu/usb_strings_dfu.h b/openpicc/dfu/usb_strings_dfu.h
new file mode 100644
index 0000000..24fde2f
--- /dev/null
+++ b/openpicc/dfu/usb_strings_dfu.h
@@ -0,0 +1,120 @@
+#ifndef _USB_STRINGS_H
+#define _USB_STRINGS_H
+
+/* THIS FILE IS AUTOGENERATED, DO NOT MODIFY MANUALLY */
+
+#include <usb_ch9.h>
+#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
+
+static const struct {
+ struct usb_descriptor_header hdr;
+ u_int16_t wData[];
+} __attribute__((packed)) string0 = {
+ .hdr = {
+ .bLength = sizeof(struct usb_descriptor_header) + 1 * sizeof(u_int16_t),
+ .bDescriptorType = USB_DT_STRING,
+ },
+ .wData = {0x0409 /* English */ },
+};
+
+/* String 1 "bitmanufaktur.de IT Solutions and hmw-consulting.de" */
+static const struct {
+ struct usb_descriptor_header hdr;
+ u_int16_t wData[];
+} __attribute__((packed)) string1 = {
+ .hdr = {
+ .bLength = sizeof(struct usb_descriptor_header) + 51 * sizeof(u_int16_t),
+ .bDescriptorType = USB_DT_STRING,
+ },
+ .wData = { 0x0062, 0x0069, 0x0074, 0x006d, 0x0061, 0x006e,
+ 0x0075, 0x0066, 0x0061, 0x006b, 0x0074, 0x0075,
+ 0x0072, 0x002e, 0x0064, 0x0065, 0x0020, 0x0049,
+ 0x0054, 0x0020, 0x0053, 0x006f, 0x006c, 0x0075,
+ 0x0074, 0x0069, 0x006f, 0x006e, 0x0073, 0x0020,
+ 0x0061, 0x006e, 0x0064, 0x0020, 0x0068, 0x006d,
+ 0x0077, 0x002d, 0x0063, 0x006f, 0x006e, 0x0073,
+ 0x0075, 0x006c, 0x0074, 0x0069, 0x006e, 0x0067,
+ 0x002e, 0x0064, 0x0065, },
+};
+
+/* String 2 "OpenPICC RFID Simulator - DFU Mode" */
+static const struct {
+ struct usb_descriptor_header hdr;
+ u_int16_t wData[];
+} __attribute__((packed)) string2 = {
+ .hdr = {
+ .bLength = sizeof(struct usb_descriptor_header) + 34 * sizeof(u_int16_t),
+ .bDescriptorType = USB_DT_STRING,
+ },
+ .wData = { 0x004f, 0x0070, 0x0065, 0x006e, 0x0050, 0x0049,
+ 0x0043, 0x0043, 0x0020, 0x0052, 0x0046, 0x0049,
+ 0x0044, 0x0020, 0x0053, 0x0069, 0x006d, 0x0075,
+ 0x006c, 0x0061, 0x0074, 0x006f, 0x0072, 0x0020,
+ 0x002d, 0x0020, 0x0044, 0x0046, 0x0055, 0x0020,
+ 0x004d, 0x006f, 0x0064, 0x0065, },
+};
+
+/* String 3 "OpenPIIC DFU Configuration" */
+static const struct {
+ struct usb_descriptor_header hdr;
+ u_int16_t wData[];
+} __attribute__((packed)) string3 = {
+ .hdr = {
+ .bLength = sizeof(struct usb_descriptor_header) + 26 * sizeof(u_int16_t),
+ .bDescriptorType = USB_DT_STRING,
+ },
+ .wData = { 0x004f, 0x0070, 0x0065, 0x006e, 0x0050, 0x0049,
+ 0x0049, 0x0043, 0x0020, 0x0044, 0x0046, 0x0055,
+ 0x0020, 0x0043, 0x006f, 0x006e, 0x0066, 0x0069,
+ 0x0067, 0x0075, 0x0072, 0x0061, 0x0074, 0x0069,
+ 0x006f, 0x006e, },
+};
+
+/* String 4 "OpenPICC DFU Interface - Application Partition" */
+static const struct {
+ struct usb_descriptor_header hdr;
+ u_int16_t wData[];
+} __attribute__((packed)) string4 = {
+ .hdr = {
+ .bLength = sizeof(struct usb_descriptor_header) + 46 * sizeof(u_int16_t),
+ .bDescriptorType = USB_DT_STRING,
+ },
+ .wData = { 0x004f, 0x0070, 0x0065, 0x006e, 0x0050, 0x0049,
+ 0x0043, 0x0043, 0x0020, 0x0044, 0x0046, 0x0055,
+ 0x0020, 0x0049, 0x006e, 0x0074, 0x0065, 0x0072,
+ 0x0066, 0x0061, 0x0063, 0x0065, 0x0020, 0x002d,
+ 0x0020, 0x0041, 0x0070, 0x0070, 0x006c, 0x0069,
+ 0x0063, 0x0061, 0x0074, 0x0069, 0x006f, 0x006e,
+ 0x0020, 0x0050, 0x0061, 0x0072, 0x0074, 0x0069,
+ 0x0074, 0x0069, 0x006f, 0x006e, },
+};
+
+/* String 5 "OpenPICC DFU Interface - Bootloader Partition" */
+static const struct {
+ struct usb_descriptor_header hdr;
+ u_int16_t wData[];
+} __attribute__((packed)) string5 = {
+ .hdr = {
+ .bLength = sizeof(struct usb_descriptor_header) + 45 * sizeof(u_int16_t),
+ .bDescriptorType = USB_DT_STRING,
+ },
+ .wData = { 0x004f, 0x0070, 0x0065, 0x006e, 0x0050, 0x0049,
+ 0x0043, 0x0043, 0x0020, 0x0044, 0x0046, 0x0055,
+ 0x0020, 0x0049, 0x006e, 0x0074, 0x0065, 0x0072,
+ 0x0066, 0x0061, 0x0063, 0x0065, 0x0020, 0x002d,
+ 0x0020, 0x0042, 0x006f, 0x006f, 0x0074, 0x006c,
+ 0x006f, 0x0061, 0x0064, 0x0065, 0x0072, 0x0020,
+ 0x0050, 0x0061, 0x0072, 0x0074, 0x0069, 0x0074,
+ 0x0069, 0x006f, 0x006e, },
+};
+
+static const struct usb_descriptor_header *usb_strings[] = {
+ (struct usb_descriptor_header *) &string0,
+ (struct usb_descriptor_header *) &string1,
+ (struct usb_descriptor_header *) &string2,
+ (struct usb_descriptor_header *) &string3,
+ (struct usb_descriptor_header *) &string4,
+ (struct usb_descriptor_header *) &string5,
+};
+
+#endif /* _USB_STRINGS_H */
personal git repositories of Harald Welte. Your mileage may vary