PERFORCE change 132314 for review

Hans Petter Selasky hselasky at FreeBSD.org
Wed Jan 2 09:50:05 PST 2008


http://perforce.freebsd.org/chv.cgi?CH=132314

Change 132314 by hselasky at hselasky_laptop001 on 2008/01/02 17:49:59

	
	The if_zyd firmware should be static and
	constant. We de-const it using USBD_ADD_BYTES()
	before passing it to the loader.

Affected files ...

.. //depot/projects/usb/src/sys/dev/usb/if_zydfw.h#6 edit

Differences ...

==== //depot/projects/usb/src/sys/dev/usb/if_zydfw.h#6 (text+ko) ====

@@ -26,7 +26,7 @@
 
 /*	$FreeBSD: src/sys/dev/usb/if_zydfw.h,v 1.2 2007/11/03 19:24:51 sam Exp $	*/
 
-uint8_t zd1211_firmware[] = {
+static const uint8_t zd1211_firmware[] = {
 	0x08, 0x91, 0xFF, 0xED, 0x09, 0x93, 0x1E, 0xEE,
 	0xD1, 0x94, 0x11, 0xEE, 0x88, 0xD4, 0xD1, 0x96,
 	0xD1, 0x98, 0x5C, 0x99, 0x5C, 0x99, 0x4C, 0x99,
@@ -672,9 +672,9 @@
 /*
  * current zd1211b firmware version.
  */
-#define ZD1211B_FIRMWARE_VER		4705
+#define	ZD1211B_FIRMWARE_VER		4705
 
-uint8_t zd1211b_firmware[] = {
+static const uint8_t zd1211b_firmware[] = {
 	0x08, 0x91, 0xff, 0xed, 0x09, 0x93, 0x1e, 0xee, 0xd1, 0x94, 0x11,
 	0xee, 0x88, 0xd4, 0xd1, 0x96, 0xd1, 0x98, 0x5c, 0x99, 0x5c, 0x99,
 	0x4c, 0x99, 0x04, 0x9d, 0xd1, 0x98, 0xd1, 0x9a, 0x03, 0xee, 0xf4,


More information about the p4-projects mailing list