summaryrefslogtreecommitdiff
path: root/openpicc/dfu/usb_strings_dfu.h
blob: 24fde2f26aebb2dfaa359916f033f8d932b68d51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
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