aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/keyspan.h
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2008-05-30 07:04:03 -0400
committerDavid Woodhouse <David.Woodhouse@intel.com>2008-07-10 09:48:49 -0400
commit2971c579f93bcff26744672ea98c13bef71ded97 (patch)
tree62fc30f86cf9d535fb7c9840baaef20e7332429b /drivers/usb/serial/keyspan.h
parent0a2a736afa91e8a0402c9dbdaf2ee28481a50bd3 (diff)
keyspan: use request_firmware()
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'drivers/usb/serial/keyspan.h')
-rw-r--r--drivers/usb/serial/keyspan.h84
1 files changed, 0 insertions, 84 deletions
diff --git a/drivers/usb/serial/keyspan.h b/drivers/usb/serial/keyspan.h
index 8d6ed0293bfa..b52fb657a244 100644
--- a/drivers/usb/serial/keyspan.h
+++ b/drivers/usb/serial/keyspan.h
@@ -103,90 +103,6 @@ static int keyspan_usa67_send_setup (struct usb_serial *serial,
103 struct usb_serial_port *port, 103 struct usb_serial_port *port,
104 int reset_port); 104 int reset_port);
105 105
106/* Struct used for firmware - increased size of data section
107 to allow Keyspan's 'C' firmware struct to be used unmodified */
108struct ezusb_hex_record {
109 __u16 address;
110 __u8 data_size;
111 __u8 data[64];
112};
113
114/* Conditionally include firmware images, if they aren't
115 included create a null pointer instead. Current
116 firmware images aren't optimised to remove duplicate
117 addresses in the image itself. */
118#ifdef CONFIG_USB_SERIAL_KEYSPAN_USA28
119 #include "keyspan_usa28_fw.h"
120#else
121 static const struct ezusb_hex_record *keyspan_usa28_firmware = NULL;
122#endif
123
124#ifdef CONFIG_USB_SERIAL_KEYSPAN_USA28X
125 #include "keyspan_usa28x_fw.h"
126#else
127 static const struct ezusb_hex_record *keyspan_usa28x_firmware = NULL;
128#endif
129
130#ifdef CONFIG_USB_SERIAL_KEYSPAN_USA28XA
131 #include "keyspan_usa28xa_fw.h"
132#else
133 static const struct ezusb_hex_record *keyspan_usa28xa_firmware = NULL;
134#endif
135
136#ifdef CONFIG_USB_SERIAL_KEYSPAN_USA28XB
137 #include "keyspan_usa28xb_fw.h"
138#else
139 static const struct ezusb_hex_record *keyspan_usa28xb_firmware = NULL;
140#endif
141
142#ifdef CONFIG_USB_SERIAL_KEYSPAN_USA19
143 #include "keyspan_usa19_fw.h"
144#else
145 static const struct ezusb_hex_record *keyspan_usa19_firmware = NULL;
146#endif
147
148#ifdef CONFIG_USB_SERIAL_KEYSPAN_USA19QI
149 #include "keyspan_usa19qi_fw.h"
150#else
151 static const struct ezusb_hex_record *keyspan_usa19qi_firmware = NULL;
152#endif
153
154#ifdef CONFIG_USB_SERIAL_KEYSPAN_MPR
155 #include "keyspan_mpr_fw.h"
156#else
157 static const struct ezusb_hex_record *keyspan_mpr_firmware = NULL;
158#endif
159
160#ifdef CONFIG_USB_SERIAL_KEYSPAN_USA19QW
161 #include "keyspan_usa19qw_fw.h"
162#else
163 static const struct ezusb_hex_record *keyspan_usa19qw_firmware = NULL;
164#endif
165
166#ifdef CONFIG_USB_SERIAL_KEYSPAN_USA18X
167 #include "keyspan_usa18x_fw.h"
168#else
169 static const struct ezusb_hex_record *keyspan_usa18x_firmware = NULL;
170#endif
171
172#ifdef CONFIG_USB_SERIAL_KEYSPAN_USA19W
173 #include "keyspan_usa19w_fw.h"
174#else
175 static const struct ezusb_hex_record *keyspan_usa19w_firmware = NULL;
176#endif
177
178#ifdef CONFIG_USB_SERIAL_KEYSPAN_USA49W
179 #include "keyspan_usa49w_fw.h"
180#else
181 static const struct ezusb_hex_record *keyspan_usa49w_firmware = NULL;
182#endif
183
184#ifdef CONFIG_USB_SERIAL_KEYSPAN_USA49WLC
185 #include "keyspan_usa49wlc_fw.h"
186#else
187 static const struct ezusb_hex_record *keyspan_usa49wlc_firmware = NULL;
188#endif
189
190/* Values used for baud rate calculation - device specific */ 106/* Values used for baud rate calculation - device specific */
191#define KEYSPAN_INVALID_BAUD_RATE (-1) 107#define KEYSPAN_INVALID_BAUD_RATE (-1)
192#define KEYSPAN_BAUD_RATE_OK (0) 108#define KEYSPAN_BAUD_RATE_OK (0)