1 This Notice.txt file contains certain notices of software components included
2 with the software that Qualcomm Atheros, Inc. (“Qualcomm Atheros”) is required
3 to provide you. Except where prohibited by the open source license, the
4 content of this notices file is only provided to satisfy Qualcomm Atheros's
5 attribution and notice requirement; your use of these software components
6 together with the Qualcomm Atheros software (Qualcomm Atheros software
7 hereinafter referred to as “Software”) is subject to the terms of your
8 license from Qualcomm Atheros. Compliance with all copyright laws and
9 software license agreements included in the notice section of this file
10 are the responsibility of the user. Except as may be granted by separate
11 express written agreement, this file provides no license to any Qualcomm
12 Atheros patents, trademarks, copyrights, or other intellectual property.
14 Copyright (c) 2014 Qualcomm Atheros, Inc. All rights reserved.
16 Qualcomm is a trademark of Qualcomm Incorporated, registered in the
17 United States and other countries. All Qualcomm Incorporated trademarks
18 are used with permission. Atheros is a trademark of Qualcomm Atheros, Inc.,
19 registered in the United States and other countries. Other products and
20 brand names may be trademarks or registered trademarks of their respective owners.
24 =============================================================================
26 * Copyright (c) 2014 Qualcomm Atheros, Inc.
27 * All Rights Reserved.
28 * Qualcomm Atheros Confidential and Proprietary.
29 *Notifications and licenses are retained for attribution purposes only *
31 Copyright (c) 2002-2004 Sam Leffler, Errno Consulting
32 // All rights reserved.
35 // Redistribution and use in source and binary forms, with or without
36 // modification, are permitted provided that the following conditions
38 // 1. Redistributions of source code must retain the above copyright
39 // notice, this list of conditions and the following disclaimer,
40 // without modification.
41 // 2. Redistributions in binary form must reproduce at minimum a disclaimer
42 // similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any
43 // redistribution must be conditioned upon including a substantially
44 // similar Disclaimer requirement for further binary redistribution.
45 // 3. Neither the names of the above-listed copyright holders nor the names
46 // of any contributors may be used to endorse or promote products derived
47 // from this software without specific prior written permission.
49 // Alternatively, this software may be distributed under the terms of the
50 // GNU General Public License ("GPL") version 2 as published by the Free
51 // Software Foundation.
54 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
55 // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
56 // LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY
57 // AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
58 // THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY,
59 // OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
60 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
61 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
62 // IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
63 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
64 // THE POSSIBILITY OF SUCH DAMAGES.
66 *For this file, which was received with alternative licensing options for
67 * distribution, Qualcomm Atheros, Inc. has selected the BSD license.
74 * AUTHOR: Aaron D. Gifford - http://www.aarongifford.com/
76 * Copyright (c) 2000-2001, Aaron D. Gifford
77 * All rights reserved.
79 * Redistribution and use in source and binary forms, with or without
80 * modification, are permitted provided that the following conditions
82 * 1. Redistributions of source code must retain the above copyright
83 * notice, this list of conditions and the following disclaimer.
84 * 2. Redistributions in binary form must reproduce the above copyright
85 * notice, this list of conditions and the following disclaimer in the
86 * documentation and/or other materials provided with the distribution.
87 * 3. Neither the name of the copyright holder nor the names of contributors
88 * may be used to endorse or promote products derived from this software
89 * without specific prior written permission.
91 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTOR(S) ``AS IS'' AND
92 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
93 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
94 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTOR(S) BE LIABLE
95 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
96 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
97 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
98 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
99 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
100 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
104 p4://qctp411.qualcomm.com/components/rel/wlanfw_protocol_cmn.cnss/1.0.0/src/nan/sha2.c
108 * AUTHOR: Aaron D. Gifford - http://www.aarongifford.com/
110 * Copyright (c) 2000-2001, Aaron D. Gifford
111 * All rights reserved.
113 * Redistribution and use in source and binary forms, with or without
114 * modification, are permitted provided that the following conditions
116 * 1. Redistributions of source code must retain the above copyright
117 * notice, this list of conditions and the following disclaimer.
118 * 2. Redistributions in binary form must reproduce the above copyright
119 * notice, this list of conditions and the following disclaimer in the
120 * documentation and/or other materials provided with the distribution.
121 * 3. Neither the name of the copyright holder nor the names of contributors
122 * may be used to endorse or promote products derived from this software
123 * without specific prior written permission.
125 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTOR(S) ``AS IS'' AND
126 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
127 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
128 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTOR(S) BE LIABLE
129 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
130 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
131 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
132 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
133 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
134 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
138 p4://qctp411.qualcomm.com/components/rel/wlanfw_mac_core.cnss/1.0/romexport/AR6320/hw.3/include/sha2.h
141 * Copyright (c) 1998 The NetBSD Foundation, Inc.
142 * All rights reserved.
144 * This code is derived from software contributed to The NetBSD Foundation
145 * by Lennart Augustsson (lennart@augustsson.net) at
146 * Carlstedt Research & Technology.
148 * Redistribution and use in source and binary forms, with or without
149 * modification, are permitted provided that the following conditions
151 * 1. Redistributions of source code must retain the above copyright
152 * notice, this list of conditions and the following disclaimer.
153 * 2. Redistributions in binary form must reproduce the above copyright
154 * notice, this list of conditions and the following disclaimer in the
155 * documentation and/or other materials provided with the distribution.
156 * 3. All advertising materials mentioning features or use of this software
157 * must display the following acknowledgement:
158 * This product includes software developed by the NetBSD
159 * Foundation, Inc. and its contributors.
160 * 4. Neither the name of The NetBSD Foundation nor the names of its
161 * contributors may be used to endorse or promote products derived
162 * from this software without specific prior written permission.
164 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
165 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
166 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
167 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
168 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
169 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
170 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
171 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
172 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
173 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
174 * POSSIBILITY OF SUCH DAMAGE.
176 p4://qctp411.qualcomm.com/components/rel/wlanfw_mac_core.cnss/1.0/romexport/AR6320/hw.3/include/usb.h
179 * Copyright (c) 2011 Qualcomm Atheros, Inc.
180 * All Rights Reserved.
181 * Qualcomm Atheros Confidential and Proprietary.
182 * Notifications and licenses are retained for attribution purposes only.
185 * For this file, which was received with alternative licensing options for
186 * distribution, Qualcomm Atheros, Inc. has selected the BSD license.
190 * WPA Supplicant / wrapper functions for crypto libraries
191 * Copyright (c) 2004-2005, Jouni Malinen <jkmaline@cc.hut.fi>
193 * This program is free software; you can redistribute it and/or modify
194 * it under the terms of the GNU General Public License version 2 as
195 * published by the Free Software Foundation.
197 * Alternatively, this software may be distributed under the terms of BSD
200 * See README and COPYING for more details.
202 * This file defines the cryptographic functions that need to be implemented
203 * for wpa_supplicant and hostapd. When TLS is not used, internal
204 * implementation of MD5, SHA1, and AES is used and no external libraries are
205 * required. When TLS is enabled (e.g., by enabling EAP-TLS or EAP-PEAP), the
206 * crypto library used by the TLS implementation is expected to be used for
207 * non-TLS needs, too, in order to save space by not implementing these
210 * Wrapper code for using each crypto library is in its own file (crypto*.c)
211 * and one of these files is build and linked in to provide the functions
214 p4://qctp411.qualcomm.com/components/rel/wlanfw_protocol_cmn.cnss/1.0.0/src/supplicant/crypto.h
217 * Copyright (c) 2011 Qualcomm Atheros, Inc.
218 * All Rights Reserved.
219 * Qualcomm Atheros Confidential and Proprietary.
220 * Notifications and licenses are retained for attribution purposes only.
223 * For this file, which was received with alternative licensing options for
224 * distribution, Qualcomm Atheros, Inc. has selected the BSD license.
228 * WPA Supplicant / Configuration file structures
229 * Copyright (c) 2003-2005, Jouni Malinen <jkmaline@cc.hut.fi>
231 * This program is free software; you can redistribute it and/or modify
232 * it under the terms of the GNU General Public License version 2 as
233 * published by the Free Software Foundation.
235 * Alternatively, this software may be distributed under the terms of BSD
238 * See README and COPYING for more details.
240 p4://qctp411.qualcomm.com/components/rel/wlanfw_protocol_cmn.cnss/1.0.0/include/config.h
243 * Copyright (c) 2014 Qualcomm Atheros, Inc.
244 * All Rights Reserved.
245 * Qualcomm Atheros Confidential and Proprietary.
246 * Notifications and licenses are retained for attribution purposes only.
249 * For this file, which was received with alternative licensing options for
250 * distribution, Qualcomm Atheros, Inc. has selected the BSD license.
254 * WPA Supplicant - Common definitions
255 * Copyright (c) 2004-2005, Jouni Malinen <jkmaline@cc.hut.fi>
257 * This program is free software; you can redistribute it and/or modify
258 * it under the terms of the GNU General Public License version 2 as
259 * published by the Free Software Foundation.
261 * Alternatively, this software may be distributed under the terms of BSD
264 * See README and COPYING for more details.
266 p4://qctp411.qualcomm.com/components/rel/wlanfw_protocol_cmn.cnss/1.0.0/include/suppl_auth_api.h
269 * Copyright (c) 2011 Qualcomm Atheros, Inc.
270 * All Rights Reserved.
271 * Qualcomm Atheros Confidential and Proprietary.
272 * Notifications and licenses are retained for attribution purposes only.
275 * For this file, which was received with alternative licensing options for
276 * distribution, Qualcomm Atheros, Inc. has selected the BSD license.
280 * wpa_supplicant - WPA definitions
281 * Copyright (c) 2003-2005, Jouni Malinen <jkmaline@cc.hut.fi>
283 * This program is free software; you can redistribute it and/or modify
284 * it under the terms of the GNU General Public License version 2 as
285 * published by the Free Software Foundation.
287 * Alternatively, this software may be distributed under the terms of BSD
290 * See README and COPYING for more details.
292 p4://qctp411.qualcomm.com/components/rel/wlanfw_protocol_cmn.cnss/1.0.0/include/wpa.h
296 * Copyright (c) 2011 Qualcomm Atheros, Inc.
297 * All Rights Reserved.
298 * Qualcomm Atheros Confidential and Proprietary.
299 * Notifications and licenses are retained for attribution purposes only.
302 * For this file, which was received with alternative licensing options for
303 * distribution, Qualcomm Atheros, Inc. has selected the BSD license.
307 * wpa_supplicant - Internal WPA state machine definitions
308 * Copyright (c) 2004-2005, Jouni Malinen <jkmaline@cc.hut.fi>
310 * This program is free software; you can redistribute it and/or modify
311 * it under the terms of the GNU General Public License version 2 as
312 * published by the Free Software Foundation.
314 * Alternatively, this software may be distributed under the terms of BSD
317 * See README and COPYING for more details.
319 p4://qctp411.qualcomm.com/components/rel/wlanfw_protocol_cmn.cnss/1.0.0/include/wpa_i.h
323 * Copyright (c) 2014 Qualcomm Atheros, Inc.
324 * All Rights Reserved.
325 * Qualcomm Atheros Confidential and Proprietary.
326 * Notifications and licenses are retained for attribution purposes only.
329 * For this file, which was received with alternative licensing options for
330 * distribution, Qualcomm Atheros, Inc. has selected the BSD license.
334 * SHA256 hash implementation and interface functions
335 * Copyright (c) 2003-2006, Jouni Malinen <j@w1.fi>
337 * This program is free software; you can redistribute it and/or modify
338 * it under the terms of the GNU General Public License version 2 as
339 * published by the Free Software Foundation.
341 * Alternatively, this software may be distributed under the terms of BSD
344 * See README and COPYING for more details.
347 p4://qctp411.qualcomm.com/components/rel/wlanfw_protocol_cmn.cnss/1.0.0/src/supplicant/sha256.h
351 * Copyright (c) 2014 Qualcomm Atheros, Inc.
352 * All Rights Reserved.
353 * Qualcomm Atheros Confidential and Proprietary.
354 * Notifications and licenses are retained for attribution purposes only.
357 * For this file, which was received with alternative licensing options for
358 * distribution, Qualcomm Atheros, Inc. has selected the BSD license.
362 * WPA Supplicant - IEEE 802.11r - Fast BSS Transition
363 * Copyright (c) 2006-2007, Jouni Malinen <j@w1.fi>
366 * This program is free software; you can redistribute it and/or modify
367 * it under the terms of the GNU General Public License version 2 as
368 * published by the Free Software Foundation.
370 * Alternatively, this software may be distributed under the terms of BSD
373 * See README and COPYING for more details.
375 p4://qctp411.qualcomm.com/components/rel/wlanfw_protocol_cmn.cnss/1.0.0/src/supplicant/mywpa_ft.h
378 * Copyright (c) 2014 Qualcomm Atheros, Inc.
379 * All Rights Reserved.
380 * Qualcomm Atheros Confidential and Proprietary.
381 * Notifications and licenses are retained for attribution purposes only.
384 * For this file, which was received with alternative licensing options for
385 * distribution, Qualcomm Atheros, Inc. has selected the BSD license.
389 * SHA-256 hash implementation and interface functions
390 * Copyright (c) 2003-2007, Jouni Malinen <j@w1.fi>
392 * This program is free software; you can redistribute it and/or modify
393 * it under the terms of the GNU General Public License version 2 as
394 * published by the Free Software Foundation.
396 * Alternatively, this software may be distributed under the terms of BSD
399 * See README and COPYING for more details.
401 p4://qctp411.qualcomm.com/components/rel/wlanfw_protocol_cmn.cnss/1.0.0/src/supplicant/sha256.c
404 * Copyright (c) 2011 Qualcomm Atheros, Inc.
405 * All Rights Reserved.
406 * Qualcomm Atheros Confidential and Proprietary.
407 * Notifications and licenses are retained for attribution purposes only.
410 * For this file, which was received with alternative licensing options for
411 * distribution, Qualcomm Atheros, Inc. has selected the BSD license.
415 * WPA Supplicant - WPA state machine and EAPOL-Key processing
416 * Copyright (c) 2003-2005, Jouni Malinen <jkmaline@cc.hut.fi>
418 * This program is free software; you can redistribute it and/or modify
419 * it under the terms of the GNU General Public License version 2 as
420 * published by the Free Software Foundation.
422 * Alternatively, this software may be distributed under the terms of BSD
425 * See README and COPYING for more details.
427 p4://qctp411.qualcomm.com/components/rel/wlanfw_protocol_cmn.cnss/1.0.0/src/supplicant/mywpa.c
430 * Copyright (c) 2014 Qualcomm Atheros, Inc.
431 * All Rights Reserved.
432 * Qualcomm Atheros Confidential and Proprietary.
433 * Notifications and licenses are retained for attribution purposes only.
436 * For this file, which was received with alternative licensing options for
437 * distribution, Qualcomm Atheros, Inc. has selected the BSD license.
441 * WPA Supplicant - IEEE 802.11r - Fast BSS Transition
442 * Copyright (c) 2006-2007, Jouni Malinen <j@w1.fi>
445 * This program is free software; you can redistribute it and/or modify
446 * it under the terms of the GNU General Public License version 2 as
447 * published by the Free Software Foundation.
449 * Alternatively, this software may be distributed under the terms of BSD
452 * See README and COPYING for more details.
454 p4://qctp411.qualcomm.com/components/rel/wlanfw_protocol_cmn.cnss/1.0.0/src/supplicant/mywpa_ft.c
457 * Copyright (c) 2014 Qualcomm Atheros, Inc.
458 * All Rights Reserved.
459 * Qualcomm Atheros Confidential and Proprietary.
460 * Notifications and licenses are retained for attribution purposes only.
463 * For this file, which was received with alternative licensing options for
464 * distribution, Qualcomm Atheros, Inc. has selected the BSD license.
468 * WPA definitions shared between hostapd and wpa_supplicant
469 * Copyright (c) 2002-2013, Jouni Malinen <j@w1.fi>
472 * This program is free software; you can redistribute it and/or modify
473 * it under the terms of the GNU General Public License version 2 as
474 * published by the Free Software Foundation.
476 * Alternatively, this software may be distributed under the terms of BSD
479 * See README and COPYING for more details.
481 p4://qctp411.qualcomm.com/components/rel/wlanfw_protocol_cmn.cnss/1.0.0/src/supplicant/mywpa_common.h
484 * Copyright (c) 2011 Qualcomm Atheros, Inc.
485 * All Rights Reserved.
486 * Qualcomm Atheros Confidential and Proprietary.
487 * Notifications and licenses are retained for attribution purposes only.
490 * For this file, which was received with alternative licensing options for
491 * distribution, Qualcomm Atheros, Inc. has selected the BSD license.
495 * MD5 hash implementation and interface functions
496 * Copyright (c) 2003-2005, Jouni Malinen <jkmaline@cc.hut.fi>
498 * This program is free software; you can redistribute it and/or modify
499 * it under the terms of the GNU General Public License version 2 as
500 * published by the Free Software Foundation.
502 * Alternatively, this software may be distributed under the terms of BSD
505 * See README and COPYING for more details.
507 p4://qctp411.qualcomm.com/components/rel/wlanfw_mac_core.cnss/1.0/include/md5_api.h
510 * Copyright (c) 2011 Qualcomm Atheros, Inc.
511 * All Rights Reserved.
512 * Qualcomm Atheros Confidential and Proprietary.
513 * Notifications and licenses are retained for attribution purposes only.
516 * For this file, which was received with alternative licensing options for
517 * distribution, Qualcomm Atheros, Inc. has selected the BSD license.
521 * AES-based functions
523 * - AES Key Wrap Algorithm (128-bit KEK) (RFC3394)
524 * - One-Key CBC MAC (OMAC1) hash with AES-128
525 * - AES-128 CTR mode encryption
526 * - AES-128 EAX mode encryption/decryption
529 * Copyright (c) 2003-2005, Jouni Malinen <jkmaline@cc.hut.fi>
531 * This program is free software; you can redistribute it and/or modify
532 * it under the terms of the GNU General Public License version 2 as
533 * published by the Free Software Foundation.
535 * Alternatively, this software may be distributed under the terms of BSD
538 * See README and COPYING for more details.
540 p4://qctp411.qualcomm.com/components/rel/wlanfw_mac_core.cnss/1.0/romexport/AR6320/hw.3/include/aes_wrap.h
543 * Copyright (c) 2011 Qualcomm Atheros, Inc.
544 * All Rights Reserved.
545 * Qualcomm Atheros Confidential and Proprietary.
546 * Notifications and licenses are retained for attribution purposes only.
549 * For this file, which was received with alternative licensing options for
550 * distribution, Qualcomm Atheros, Inc. has selected the BSD license.
554 * SHA1 hash implementation and interface functions
555 * Copyright (c) 2003-2005, Jouni Malinen <jkmaline@cc.hut.fi>
557 * This program is free software; you can redistribute it and/or modify
558 * it under the terms of the GNU General Public License version 2 as
559 * published by the Free Software Foundation.
561 * Alternatively, this software may be distributed under the terms of BSD
564 * See README and COPYING for more details.
566 p4://qctp411.qualcomm.com/components/rel/wlanfw_mac_core.cnss/1.0/romexport/AR6320/hw.3/include/sha1.h
569 * Copyright (c) 2011 Qualcomm Atheros, Inc.
570 * All Rights Reserved.
571 * Qualcomm Atheros Confidential and Proprietary.
572 * Notifications and licenses are retained for attribution purposes only.
575 * For this file, which was received with alternative licensing options for
576 * distribution, Qualcomm Atheros, Inc. has selected the BSD license.
580 * wpa_supplicant/hostapd / common helper functions, etc.
581 * Copyright (c) 2002-2005, Jouni Malinen <jkmaline@cc.hut.fi>
583 * This program is free software; you can redistribute it and/or modify
584 * it under the terms of the GNU General Public License version 2 as
585 * published by the Free Software Foundation.
587 * Alternatively, this software may be distributed under the terms of BSD
590 * See README and COPYING for more details.
592 p4://qctp411.qualcomm.com/components/rel/wlanfw_mac_core.cnss/1.0/romexport/AR6320/hw.3/include/common.h
595 * Copyright (c) 2011 Qualcomm Atheros, Inc.
596 * All Rights Reserved.
597 * Qualcomm Atheros Confidential and Proprietary.
598 * Notifications and licenses are retained for attribution purposes only.
601 * For this file, which was received with alternative licensing options for
602 * distribution, Qualcomm Atheros, Inc. has selected the BSD license.
605 * Common helper macros, etc.
606 * Copyright (c) 2002-2005, Jouni Malinen <jkmaline@cc.hut.fi>
608 * This program is free software; you can redistribute it and/or modify
609 * it under the terms of the GNU General Public License version 2 as
610 * published by the Free Software Foundation.
612 * Alternatively, this software may be distributed under the terms of BSD
616 p4://qctp411.qualcomm.com/components/rel/wlanfw_mac_core.cnss/1.0/romexport/AR6320/hw.3/include/seccommon.h
619 * COPYRIGHT (C) 1986 Gary S. Brown. You may use this program, or
620 * code or tables extracted from it, as desired without restriction.
622 * First, the polynomial itself and its table of feedback terms. The
624 * X^32+X^26+X^23+X^22+X^16+X^12+X^11+X^10+X^8+X^7+X^5+X^4+X^2+X^1+X^0
626 * Note that we take it "backwards" and put the highest-order term in
627 * the lowest-order bit. The X^32 term is "implied"; the LSB is the
628 * X^31 term, etc. The X^0 term (usually shown as "+1") results in
631 * Note that the usual hardware shift register implementation, which
632 * is what we're using (we're merely optimizing it by doing eight-bit
633 * chunks at a time) shifts bits into the lowest-order term. In our
634 * implementation, that means shifting towards the right. Why do we
635 * do it this way? Because the calculated CRC must be transmitted in
636 * order from highest-order term to lowest-order term. UARTs transmit
637 * characters in order from LSB to MSB. By storing the CRC this way
638 * we hand it to the UART in the order low-byte to high-byte; the UART
639 * sends each low-bit to hight-bit; and the result is transmission bit
640 * by bit from highest- to lowest-order term without requiring any bit
641 * shuffling on our part. Reception works similarly
643 * The feedback terms table consists of 256, 32-bit entries. Notes
645 * The table can be generated at runtime if desired; code to do so
646 * is shown later. It might not be obvious, but the feedback
647 * terms simply represent the results of eight shift/xor opera
648 * tions for all combinations of data and CRC register values
650 * The values must be right-shifted by eight bits by the "updcrc
651 * logic; the shift must be unsigned (bring in zeroes). On some
652 * hardware you could probably optimize the shift in assembler by
653 * using byte-swap instructions
654 * polynomial $edb88320
657 * CRC32 code derived from work by Gary S. Brown.
659 p4://qctp411.qualcomm.com/components/rel/wlanfw_protocol_cmn.cnss/1.0.0/src/nan/wlan_nan_crc.c
663 // Copyright (c) 1991, 1993
664 // The Regents of the University of California. All rights reserved.
665 // $ATH_LICENSE_NULL$
667 // Redistribution and use in source and binary forms, with or without
668 // modification, are permitted provided that the following conditions
670 // 1. Redistributions of source code must retain the above copyright
671 // notice, this list of conditions and the following disclaimer.
672 // 2. Redistributions in binary form must reproduce the above copyright
673 // notice, this list of conditions and the following disclaimer in the
674 // documentation and/or other materials provided with the distribution.
675 // 3. All advertising materials mentioning features or use of this software
676 // must display the following acknowledgement:
677 // This product includes software developed by the University of
678 // California, Berkeley and its contributors.
679 // 4. Neither the name of the University nor the names of its contributors
680 // may be used to endorse or promote products derived from this software
681 // without specific prior written permission.
683 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
684 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
685 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
686 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
687 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
688 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
689 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
690 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
691 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
692 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
695 // @(#)queue.h 8.5 (Berkeley) 8/20/94
696 // $FreeBSD: src/sys/sys/queue.h,v 1.58 2004/04/07 04:19:49 imp Exp $
697 // $Id: //components/rel/wlanfw_cmn.cnss/1.0/cnss_proc/wlan/fwcommon/include/queue.h#1 $
699 p4://qctp411.qualcomm.com/components/rel/wlanfw_cmn.cnss/1.0.0/include/queue.h
703 * Copyright (c) 2012 Qualcomm Atheros, Inc.
704 * All Rights Reserved.
705 * Qualcomm Atheros Confidential and Proprietary.
709 * For this file, which was received with alternative licensing options for
710 * distribution, Qualcomm Atheros, Inc. has selected the BSD license.
714 // Copyright (c) 2002-2004 Sam Leffler, Errno Consulting
715 // All rights reserved.
716 // $ATH_LICENSE_NULL$
718 // Redistribution and use in source and binary forms, with or without
719 // modification, are permitted provided that the following conditions
721 // 1. Redistributions of source code must retain the above copyright
722 // notice, this list of conditions and the following disclaimer,
723 // without modification.
724 // 2. Redistributions in binary form must reproduce at minimum a disclaimer
725 // similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any
726 // redistribution must be conditioned upon including a substantially
727 // similar Disclaimer requirement for further binary redistribution.
728 // 3. Neither the names of the above-listed copyright holders nor the names
729 // of any contributors may be used to endorse or promote products derived
730 // from this software without specific prior written permission.
732 // Alternatively, this software may be distributed under the terms of the
733 // GNU General Public License ("GPL") version 2 as published by the Free
734 // Software Foundation.
737 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
738 // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
739 // LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY
740 // AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
741 // THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY,
742 // OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
743 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
744 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
745 // IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
746 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
747 // THE POSSIBILITY OF SUCH DAMAGES.
749 // $Id: //components/rel/wlanfw.cnss/1.0.1/cnss_proc/wlan/fw/target/src/wlan/proto/include/if_llc.h#3 $
750 // $NetBSD: if_llc.h,v 1.12 1999/11/19 20:41:19 thorpej Exp $
751 // $Id: //components/rel/wlanfw.cnss/1.0.1/cnss_proc/wlan/fw/target/src/wlan/proto/include/if_llc.h#3 $
755 * Copyright (c) 1988, 1993
756 * The Regents of the University of California. All rights reserved.
758 * Redistribution and use in source and binary forms, with or without
759 * modification, are permitted provided that the following conditions
761 * 1. Redistributions of source code must retain the above copyright
762 * notice, this list of conditions and the following disclaimer.
763 * 2. Redistributions in binary form must reproduce the above copyright
764 * notice, this list of conditions and the following disclaimer in the
765 * documentation and/or other materials provided with the distribution.
766 * 3. All advertising materials mentioning features or use of this software
767 * must display the following acknowledgement:
768 * This product includes software developed by the University of
769 * California, Berkeley and its contributors.
770 * 4. Neither the name of the University nor the names of its contributors
771 * may be used to endorse or promote products derived from this software
772 * without specific prior written permission.
774 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
775 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
776 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
777 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
778 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
779 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
780 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
781 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
782 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
783 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
786 * @(#)if_llc.h 8.1 (Berkeley) 6/10/93
787 * $FreeBSD: src/sys/net/if_llc.h,v 1.9 2002/09/23 06:25:08 alfred Exp $
790 p4://qctp411.qualcomm.com/components/rel/wlanfw_protocol_cmn.cnss/1.0.0/include/if_llc.h
793 * Copyright (c) 2012 Qualcomm Atheros, Inc.
794 * All Rights Reserved.
795 * Qualcomm Atheros Confidential and Proprietary.
799 * For this file, which was received with alternative licensing options for
800 * distribution, Qualcomm Atheros, Inc. has selected the BSD license.
804 // Copyright (c) 2002-2004 Sam Leffler, Errno Consulting
805 // All rights reserved.
806 // $ATH_LICENSE_NULL$
808 // Redistribution and use in source and binary forms, with or without
809 // modification, are permitted provided that the following conditions
811 // 1. Redistributions of source code must retain the above copyright
812 // notice, this list of conditions and the following disclaimer,
813 // without modification.
814 // 2. Redistributions in binary form must reproduce at minimum a disclaimer
815 // similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any
816 // redistribution must be conditioned upon including a substantially
817 // similar Disclaimer requirement for further binary redistribution.
818 // 3. Neither the names of the above-listed copyright holders nor the names
819 // of any contributors may be used to endorse or promote products derived
820 // from this software without specific prior written permission.
822 // Alternatively, this software may be distributed under the terms of the
823 // GNU General Public License ("GPL") version 2 as published by the Free
824 // Software Foundation.
827 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
828 // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
829 // LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY
830 // AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
831 // THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY,
832 // OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
833 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
834 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
835 // IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
836 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
837 // THE POSSIBILITY OF SUCH DAMAGES.
840 p4://qctp411.qualcomm.com/components/rel/wlanfw_protocol_cmn.cnss/1.0.0/include/if_ethersubr.h
843 * Copyright (c) 2014 Qualcomm Atheros, Inc.
844 * All Rights Reserved.
845 * Qualcomm Atheros Confidential and Proprietary.
846 * Notifications and licenses are retained for attribution purposes only.
849 * For this file, which was received with alternative licensing options for
850 * distribution, Qualcomm Atheros, Inc. has selected the BSD license.
854 * SHA1 hash implementation and interface functions
855 * Copyright (c) 2003-2005, Jouni Malinen <jkmaline@cc.hut.fi>
857 * This program is free software; you can redistribute it and/or modify
858 * it under the terms of the GNU General Public License version 2 as
859 * published by the Free Software Foundation.
861 * Alternatively, this software may be distributed under the terms of BSD
864 * See README and COPYING for more details.
866 p4://qctp411.qualcomm.com/components/rel/wlanfw_mac_core.cnss/1.0/patch/AR6320/v3/sha1_patch.c
869 * Copyright (c) 2014 Qualcomm Atheros, Inc.
870 * All Rights Reserved.
871 * Qualcomm Atheros Confidential and Proprietary.
872 * Notifications and licenses are retained for attribution purposes only.
875 * For this file, which was received with alternative licensing options for
876 * distribution, Qualcomm Atheros, Inc. has selected the BSD license.
880 * WPA/RSN - Shared functions for supplicant and authenticator
881 * Copyright (c) 2002-2013, Jouni Malinen <j@w1.fi>
884 * This program is free software; you can redistribute it and/or modify
885 * it under the terms of the GNU General Public License version 2 as
886 * published by the Free Software Foundation.
888 * Alternatively, this software may be distributed under the terms of BSD
891 * See README and COPYING for more details.
893 p4://qctp411.qualcomm.com/components/rel/wlanfw_protocol_cmn.cnss/1.0.0/src/supplicant/mywpa_common.c
896 * Copyright (c) 2014 Qualcomm Atheros, Inc.
897 * All Rights Reserved.
898 * Qualcomm Atheros Confidential and Proprietary.
899 * Notifications and licenses are retained for attribution purposes only.
902 * For this file, which was received with alternative licensing options for
903 * distribution, Qualcomm Atheros, Inc. has selected the BSD license.
907 * WPA definitions shared between hostapd and wpa_supplicant
908 * Copyright (c) 2002-2013, Jouni Malinen <j@w1.fi>
911 * This program is free software; you can redistribute it and/or modify
912 * it under the terms of the GNU General Public License version 2 as
913 * published by the Free Software Foundation.
915 * Alternatively, this software may be distributed under the terms of BSD
918 * See README and COPYING for more details.
920 p4://qctp411.qualcomm.com/components/rel/wlanfw_protocol_cmn.cnss/1.0.0/src/supplicant/mywpa_common.h
923 * Copyright (c) 2011 Qualcomm Atheros, Inc.
924 * All Rights Reserved.
925 * Qualcomm Atheros Confidential and Proprietary.
929 //####ECOSGPLCOPYRIGHTBEGIN####
930 // -------------------------------------------
931 // This file is part of eCos, the Embedded Configurable Operating System.
932 // Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
933 // Copyright (C) 2002 Gary Thomas
935 // eCos is free software; you can redistribute it and/or modify it under
936 // the terms of the GNU General Public License as published by the Free
937 // Software Foundation; either version 2 or (at your option) any later version.
939 // eCos is distributed in the hope that it will be useful, but WITHOUT ANY
940 // WARRANTY; without even the implied warranty of MERCHANTABILITY or
941 // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
944 // You should have received a copy of the GNU General Public License along
945 // with eCos; if not, write to the Free Software Foundation, Inc.,
946 // 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
948 // As a special exception, if other files instantiate templates or use macros
949 // or inline functions from this file, or you compile this file and link it
950 // with other works to produce a work based on this file, this file does not
951 // by itself cause the resulting work to be covered by the GNU General Public
952 // License. However the source code for this file must still be made available
953 // in accordance with section (3) of the GNU General Public License.
955 // This exception does not invalidate any other reasons why a work based on
956 // this file might be covered by the GNU General Public License.
958 // Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
959 // at http://sources.redhat.com/ecos/ecos-license/
960 // -------------------------------------------
961 //####ECOSGPLCOPYRIGHTEND####
962 p4://qctp411.qualcomm.com/components/rel/wlanfw_mac_core.cnss/1.0/src/os/common/cmnos_printf.c
964 * Copyright (c) 2011 Qualcomm Atheros, Inc.
965 * All Rights Reserved.
966 * Qualcomm Atheros Confidential and Proprietary.
967 * $ATH_LICENSE_TARGET_C$
970 //####ECOSGPLCOPYRIGHTBEGIN####
971 // -------------------------------------------
972 // This file is part of eCos, the Embedded Configurable Operating System.
973 // Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
975 // eCos is free software; you can redistribute it and/or modify it under
976 // the terms of the GNU General Public License as published by the Free
977 // Software Foundation; either version 2 or (at your option) any later version.
979 // eCos is distributed in the hope that it will be useful, but WITHOUT ANY
980 // WARRANTY; without even the implied warranty of MERCHANTABILITY or
981 // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
984 // You should have received a copy of the GNU General Public License along
985 // with eCos; if not, write to the Free Software Foundation, Inc.,
986 // 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
988 // As a special exception, if other files instantiate templates or use macros
989 // or inline functions from this file, or you compile this file and link it
990 // with other works to produce a work based on this file, this file does not
991 // by itself cause the resulting work to be covered by the GNU General Public
992 // License. However the source code for this file must still be made available
993 // in accordance with section (3) of the GNU General Public License.
995 // This exception does not invalidate any other reasons why a work based on
996 // this file might be covered by the GNU General Public License.
998 // Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
999 // at http://sources.redhat.com/ecos/ecos-license/
1000 // -------------------------------------------
1001 //####ECOSGPLCOPYRIGHTEND####
1002 p4://qctp411.qualcomm.com/components/rel/wlanfw_mac_core.cnss/1.0/src/os/common/cmnos_sscanf.c
1005 * WPA Supplicant - CCX Fast Roaming with CCKM Enhancements
1006 * Copyright (c) 2003-2008, Jouni Malinen <j@w1.fi>
1007 * Copyright (c) 2010-2011, embWiSe Technologies
1009 * Licensed under a proprietary license.
1010 * Notifications and licenses are retained for attribution purposes only.
1012 * Redistribution and use in source and binary forms, with or without
1013 * modification, are permitted provided that the following conditions are
1016 * 1. Redistributions of source code must retain the above copyright
1017 * notice, this list of conditions and the following disclaimer.
1019 * 2. Redistributions in binary form must reproduce the above copyright
1020 * notice, this list of conditions and the following disclaimer in the
1021 * documentation and/or other materials provided with the distribution.
1023 * 3. Neither the name(s) of the above-listed copyright holder(s) nor the
1024 * names of its contributors may be used to endorse or promote products
1025 * derived from this software without specific prior written permission.
1027 /*original files: ccx_cckm.c and part of wpa_common.c in proprietary patch
1028 * of open source supplicant */
1029 p4://qctp411.qualcomm.com/components/rel/wlanfw_protocol_cmn.cnss/1.0.0/src/supplicant/mywpa_cckm.c
1032 * Copyright (c) 2012 Qualcomm Atheros, Inc.
1033 * All Rights Reserved.
1034 * Qualcomm Atheros Confidential and Proprietary.
1038 * For this file, which was received with alternative licensing options for
1039 * distribution, Qualcomm Atheros, Inc. has selected the BSD license.
1043 // Copyright (c) 2002-2004 Sam Leffler, Errno Consulting
1044 // All rights reserved.
1045 // $ATH_LICENSE_NULL$
1047 // Redistribution and use in source and binary forms, with or without
1048 // modification, are permitted provided that the following conditions
1050 // 1. Redistributions of source code must retain the above copyright
1051 // notice, this list of conditions and the following disclaimer,
1052 // without modification.
1053 // 2. Redistributions in binary form must reproduce at minimum a disclaimer
1054 // similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any
1055 // redistribution must be conditioned upon including a substantially
1056 // similar Disclaimer requirement for further binary redistribution.
1057 // 3. Neither the names of the above-listed copyright holders nor the names
1058 // of any contributors may be used to endorse or promote products derived
1059 // from this software without specific prior written permission.
1061 // Alternatively, this software may be distributed under the terms of the
1062 // GNU General Public License ("GPL") version 2 as published by the Free
1063 // Software Foundation.
1066 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1067 // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
1068 // LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY
1069 // AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
1070 // THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY,
1071 // OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
1072 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
1073 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
1074 // IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
1075 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
1076 // THE POSSIBILITY OF SUCH DAMAGES.
1078 // $Id: //components/rel/wlanfw.cnss/1.0.1/cnss_proc/wlan/fw/target/src/wlan/proto/include/if_llc.h#3 $
1079 // $NetBSD: if_llc.h,v 1.12 1999/11/19 20:41:19 thorpej Exp $
1080 // $Id: //components/rel/wlanfw.cnss/1.0.1/cnss_proc/wlan/fw/target/src/wlan/proto/include/if_llc.h#3 $
1084 * Copyright (c) 1988, 1993
1085 * The Regents of the University of California. All rights reserved.
1087 * Redistribution and use in source and binary forms, with or without
1088 * modification, are permitted provided that the following conditions
1090 * 1. Redistributions of source code must retain the above copyright
1091 * notice, this list of conditions and the following disclaimer.
1092 * 2. Redistributions in binary form must reproduce the above copyright
1093 * notice, this list of conditions and the following disclaimer in the
1094 * documentation and/or other materials provided with the distribution.
1095 * 3. All advertising materials mentioning features or use of this software
1096 * must display the following acknowledgement:
1097 * This product includes software developed by the University of
1098 * California, Berkeley and its contributors.
1099 * 4. Neither the name of the University nor the names of its contributors
1100 * may be used to endorse or promote products derived from this software
1101 * without specific prior written permission.
1103 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
1104 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1105 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1106 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
1107 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1108 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
1109 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
1110 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
1111 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
1112 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
1115 * @(#)if_llc.h 8.1 (Berkeley) 6/10/93
1116 * $FreeBSD: src/sys/net/if_llc.h,v 1.9 2002/09/23 06:25:08 alfred Exp $
1118 p4://qctp411.qualcomm.com/components/rel/wlanfw_protocol_cmn.cnss/1.0.0/include/if_llc.h
1121 * Copyright (c) 2011 Qualcomm Atheros, Inc.
1122 * All Rights Reserved.
1123 * Qualcomm Atheros Confidential and Proprietary.
1124 * Notifications and licenses are retained for attribution purposes only.
1127 * For this file, which was received with alternative licensing options for
1128 * distribution, Qualcomm Atheros, Inc. has selected the BSD license.
1132 * AES (Rijndael) cipher
1134 * Modifications to public domain implementation:
1135 * - support only 128-bit keys
1137 * - use C pre-processor to make it easier to change S table access
1138 * - added option (AES_SMALL_TABLES) for reducing code size by about 8 kB at
1139 * cost of reduced throughput (quite small difference on Pentium 4,
1140 * 10-25% when using -O1 or -O2 optimization)
1142 * Copyright (c) 2003-2005, Jouni Malinen <jkmaline@cc.hut.fi>
1144 * This program is free software; you can redistribute it and/or modify
1145 * it under the terms of the GNU General Public License version 2 as
1146 * published by the Free Software Foundation.
1148 * Alternatively, this software may be distributed under the terms of BSD
1151 * See README and COPYING for more details.
1155 * rijndael-alg-fst.c
1157 * @version 3.0 (December 2000)
1159 * Optimised ANSI C code for the Rijndael cipher (now AES)
1161 * @author Vincent Rijmen <vincent.rijmen@esat.kuleuven.ac.be>
1162 * @author Antoon Bosselaers <antoon.bosselaers@esat.kuleuven.ac.be>
1163 * @author Paulo Barreto <paulo.barreto@terra.com.br>
1165 * This code is hereby placed in the public domain.
1167 * THIS SOFTWARE IS PROVIDED BY THE AUTHORS ''AS IS'' AND ANY EXPRESS
1168 * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
1169 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1170 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE
1171 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
1172 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
1173 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
1174 * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
1175 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
1176 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
1177 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1179 p4://qctp411.qualcomm.com/components/rel/wlanfw_mac_core.cnss/1.0/src/misc/crypto/aes.c
1182 * Copyright (c) 2011 Qualcomm Atheros, Inc.
1183 * All Rights Reserved.
1184 * Qualcomm Atheros Confidential and Proprietary.
1185 * Notifications and licenses are retained for attribution purposes only.
1188 * For this file, which was received with alternative licensing options for
1189 * distribution, Qualcomm Atheros, Inc. has selected the BSD license.
1193 * AES-based functions
1195 * - AES Key Wrap Algorithm (128-bit KEK) (RFC3394)
1196 * - One-Key CBC MAC (OMAC1) hash with AES-128
1197 * - AES-128 CTR mode encryption
1198 * - AES-128 EAX mode encryption/decryption
1201 * Copyright (c) 2003-2005, Jouni Malinen <jkmaline@cc.hut.fi>
1203 * This program is free software; you can redistribute it and/or modify
1204 * it under the terms of the GNU General Public License version 2 as
1205 * published by the Free Software Foundation.
1207 * Alternatively, this software may be distributed under the terms of BSD
1210 * See README and COPYING for more details.
1212 p4://qctp411.qualcomm.com/components/rel/wlanfw_mac_core.cnss/1.0/src/misc/crypto/aes_wrap.c
1215 * Copyright (c) 2011 Qualcomm Atheros, Inc.
1216 * All Rights Reserved.
1217 * Qualcomm Atheros Confidential and Proprietary.
1218 * Notifications and licenses are retained for attribution purposes only.
1221 * For this file, which was received with alternative licensing options for
1222 * distribution, Qualcomm Atheros, Inc. has selected the BSD license.
1226 * SHA1 hash implementation and interface functions
1227 * Copyright (c) 2003-2005, Jouni Malinen <jkmaline@cc.hut.fi>
1229 * This program is free software; you can redistribute it and/or modify
1230 * it under the terms of the GNU General Public License version 2 as
1231 * published by the Free Software Foundation.
1233 * Alternatively, this software may be distributed under the terms of BSD
1236 * See README and COPYING for more details.
1238 p4://qctp411.qualcomm.com/components/rel/wlanfw_mac_core.cnss/1.0/src/misc/crypto/sha1.c
1241 * Copyright (c) 2013 Atheros Communications Inc.
1243 * Permission to use, copy, modify, and/or distribute this software for any
1244 * purpose with or without fee is hereby granted, provided that the above
1245 * copyright notice and this permission notice appear in all copies.
1247 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
1248 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
1249 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
1250 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
1251 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
1252 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
1253 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1255 p4://qctp411.qualcomm.com/components/rel/wlanfw_protocol_cmn.cnss/1.0.0/src/wmi/wmi_tlv_platform.c
1258 * Copyright (c) 2012, Atheros Communications Inc.
1260 * Permission to use, copy, modify, and/or distribute this software for any
1261 * purpose with or without fee is hereby granted, provided that the above
1262 * copyright notice and this permission notice appear in all copies.
1264 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
1265 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
1266 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
1267 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
1268 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
1269 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
1270 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1272 p4://qctp411.qualcomm.com/components/rel/wlanfw_protocol_cmn.cnss/1.0.0/include/qvit/qvit_init_api.h
1275 * Copyright (c) 2013 Atheros Communications Inc.
1277 * Permission to use, copy, modify, and/or distribute this software for any
1278 * purpose with or without fee is hereby granted, provided that the above
1279 * copyright notice and this permission notice appear in all copies.
1281 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
1282 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
1283 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
1284 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
1285 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
1286 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
1287 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1289 p4://qctp411.qualcomm.com/components/rel/wlanfw_cmn.cnss/1.0.0/fw_interface/include/wmi_version_whitelist.c
1292 * Copyright (c) 2011 Qualcomm Atheros, Inc.
1293 * All Rights Reserved.
1294 * Qualcomm Atheros Confidential and Proprietary.
1295 * $ATH_LICENSE_TARGET_C$
1299 // $Id: //components/rel/wlanfw.cnss/1.0.1/cnss_proc/wlan/fw/target/src/misc/crypto/md5.c#3 $
1301 // This code implements the MD5 message-digest algorithm.
1302 // The algorithm is due to Ron Rivest. This code was
1303 // written by Colin Plumb in 1993, no copyright is claimed.
1304 // This code is in the public domain; do with it what you wish.
1306 // Equivalent code is available from RSA Data Security, Inc.
1307 // This code has been tested against that, and is equivalent,
1308 // except that you don't need to include two pages of legalese
1311 // To compute the message digest of a chunk of bytes, declare an
1312 // MD5Context structure, pass it to MD5Init, call MD5Update as
1313 // needed on buffers full of bytes, and then call MD5Final, which
1314 // will fill a supplied 16-byte array with the digest.
1316 p4://qctp411.qualcomm.com/components/rel/wlanfw_mac_core.cnss/1.0/src/misc/crypto/md5.c
1319 /*===========================================================================
1320 @file secrsa_encryption.c
1322 This file provides RSA PKCS #1 v1.5 encryption/decryption implementation.
1323 ===========================================================================
1325 EDIT HISTORY FOR FILE
1326 $Header: //components/dev/wlanfw.cnss/1.0.1/dennis.rome_emu_es2_rel_fw/cnss_proc/wlan/fw/target/src/misc/binsig/rsa.c#2 $
1327 $DateTime: 2013/10/21 08:09:59 $
1330 when who what, where, why
1331 -------- --- ----------------------------------------------------------
1332 04/11/11 qxu initial version
1334 Copyright (c) 2011 by QUALCOMM Technologies, Incorporated. All Rights Reserved.
1335 =============================================================================*/
1336 p4://qctp411.qualcomm.com/components/rel/wlanfw_mac_core.cnss/1.0/src/misc/binsig/rsa.c
1338 /* ==========================================================================
1339 * $File: //components/rel/wlanfw.cnss/1.0.1/cnss_proc/wlan/fw/target/include/cil.h $
1341 * $Date: 2013/08/06 $
1342 * $Change: 2161544 $
1344 * Synopsys SS USB3 Linux Software Driver and documentation (hereinafter,
1345 * "Software") is an Unsupported proprietary work of Synopsys, Inc. unless
1346 * otherwise expressly agreed to in writing between Synopsys and you.
1348 * The Software IS NOT an item of Licensed Software or Licensed Product under
1349 * any End User Software License Agreement or Agreement for Licensed Product
1350 * with Synopsys or any supplement thereto. You are permitted to use and
1351 * redistribute this Software in source and binary forms, with or without
1352 * modification, provided that redistributions of source code must retain this
1353 * notice. You may not view, use, disclose, copy or distribute this file or
1354 * any information contained herein except pursuant to this license grant from
1355 * Synopsys. If you do not agree with this notice, including the disclaimer
1356 * below, then you are not authorized to use the Software.
1358 * THIS SOFTWARE IS BEING DISTRIBUTED BY SYNOPSYS SOLELY ON AN "AS IS" BASIS
1359 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1360 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1361 * ARE HEREBY DISCLAIMED. IN NO EVENT SHALL SYNOPSYS BE LIABLE FOR ANY DIRECT,
1362 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
1363 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
1364 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
1365 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
1366 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
1367 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
1369 * ========================================================================== */
1370 p4://qctp411.qualcomm.com/components/rel/wlanfw_mac_core.cnss/1.0/include/cil.h
1372 /* ==========================================================================
1373 * $File: //components/rel/wlanfw.cnss/1.0.1/cnss_proc/wlan/fw/target/include/dev.h $
1375 * $Date: 2013/08/06 $
1376 * $Change: 2161544 $
1378 * Synopsys SS USB3 Linux Software Driver and documentation (hereinafter,
1379 * "Software") is an Unsupported proprietary work of Synopsys, Inc. unless
1380 * otherwise expressly agreed to in writing between Synopsys and you.
1382 * The Software IS NOT an item of Licensed Software or Licensed Product under
1383 * any End User Software License Agreement or Agreement for Licensed Product
1384 * with Synopsys or any supplement thereto. You are permitted to use and
1385 * redistribute this Software in source and binary forms, with or without
1386 * modification, provided that redistributions of source code must retain this
1387 * notice. You may not view, use, disclose, copy or distribute this file or
1388 * any information contained herein except pursuant to this license grant from
1389 * Synopsys. If you do not agree with this notice, including the disclaimer
1390 * below, then you are not authorized to use the Software.
1392 * THIS SOFTWARE IS BEING DISTRIBUTED BY SYNOPSYS SOLELY ON AN "AS IS" BASIS
1393 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1394 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1395 * ARE HEREBY DISCLAIMED. IN NO EVENT SHALL SYNOPSYS BE LIABLE FOR ANY DIRECT,
1396 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
1397 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
1398 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
1399 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
1400 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
1401 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
1403 * ========================================================================== */
1404 p4://qctp411.qualcomm.com/components/rel/wlanfw_mac_core.cnss/1.0/include/dev.h
1406 /* ==========================================================================
1407 * $File: //components/rel/wlanfw.cnss/1.0.1/cnss_proc/wlan/fw/target/include/pcd.h $
1409 * $Date: 2013/08/06 $
1410 * $Change: 2161544 $
1412 * Synopsys SS USB3 Linux Software Driver and documentation (hereinafter,
1413 * "Software") is an Unsupported proprietary work of Synopsys, Inc. unless
1414 * otherwise expressly agreed to in writing between Synopsys and you.
1416 * The Software IS NOT an item of Licensed Software or Licensed Product under
1417 * any End User Software License Agreement or Agreement for Licensed Product
1418 * with Synopsys or any supplement thereto. You are permitted to use and
1419 * redistribute this Software in source and binary forms, with or without
1420 * modification, provided that redistributions of source code must retain this
1421 * notice. You may not view, use, disclose, copy or distribute this file or
1422 * any information contained herein except pursuant to this license grant from
1423 * Synopsys. If you do not agree with this notice, including the disclaimer
1424 * below, then you are not authorized to use the Software.
1426 * THIS SOFTWARE IS BEING DISTRIBUTED BY SYNOPSYS SOLELY ON AN "AS IS" BASIS
1427 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1428 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1429 * ARE HEREBY DISCLAIMED. IN NO EVENT SHALL SYNOPSYS BE LIABLE FOR ANY DIRECT,
1430 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
1431 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
1432 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
1433 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
1434 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
1435 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
1437 * ========================================================================== */
1438 p4://qctp411.qualcomm.com/components/rel/wlanfw_mac_core.cnss/1.0/include/pcd.h
1440 /* ==========================================================================
1441 * $File: //components/rel/wlanfw.cnss/1.0.1/cnss_proc/wlan/fw/target/src/soc/usbhwcore/drv/snps/cil.c $
1443 * $Date: 2013/08/06 $
1444 * $Change: 2161544 $
1446 * Synopsys SS USB3 Linux Software Driver and documentation (hereinafter,
1447 * "Software") is an Unsupported proprietary work of Synopsys, Inc. unless
1448 * otherwise expressly agreed to in writing between Synopsys and you.
1450 * The Software IS NOT an item of Licensed Software or Licensed Product under
1451 * any End User Software License Agreement or Agreement for Licensed Product
1452 * with Synopsys or any supplement thereto. You are permitted to use and
1453 * redistribute this Software in source and binary forms, with or without
1454 * modification, provided that redistributions of source code must retain this
1455 * notice. You may not view, use, disclose, copy or distribute this file or
1456 * any information contained herein except pursuant to this license grant from
1457 * Synopsys. If you do not agree with this notice, including the disclaimer
1458 * below, then you are not authorized to use the Software.
1460 * THIS SOFTWARE IS BEING DISTRIBUTED BY SYNOPSYS SOLELY ON AN "AS IS" BASIS
1461 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1462 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1463 * ARE HEREBY DISCLAIMED. IN NO EVENT SHALL SYNOPSYS BE LIABLE FOR ANY DIRECT,
1464 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
1465 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
1466 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
1467 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
1468 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
1469 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
1471 * ========================================================================== */
1475 * The Core Interface Layer provides basic services for accessing and
1476 * managing the DWC_usb3 hardware. These services are used by both the
1477 * Peripheral Controller Driver and the On The Go Driver.
1479 * The CIL manages the memory map for the core so that the PCD and OTG drivers
1480 * don't have to do this separately. The CIL also performs basic services
1481 * that are not specific to either the Device or OTG modes of operation.
1482 * These services include all functionality that requires specific
1483 * knowledge of the CSR layout or the DMA descriptor (TRB) layout. Also
1484 * included are services for invoking each of the commands provided by
1485 * the DGCMD and DEPCMD registers (see the "Control and Status Registers"
1486 * chapter of the USB3 controller databook for details).
1488 * The Core Interface Layer has the following requirements:
1489 * - Provides basic controller operations.
1490 * - Minimal use of OS services.
1491 * - The OS services used will be abstracted by using inline functions
1495 p4://qctp411.qualcomm.com/components/rel/wlanfw_mac_core.cnss/1.0/src/soc/usbhwcore/drv/snps/cil.c
1497 /* ==========================================================================
1498 * $File: //components/rel/wlanfw.cnss/1.0.1/cnss_proc/wlan/fw/target/src/soc/usbhwcore/drv/snps/pcd_intr.c $
1500 * $Date: 2013/08/06 $
1501 * $Change: 2161544 $
1503 * Synopsys SS USB3 Linux Software Driver and documentation (hereinafter,
1504 * "Software") is an Unsupported proprietary work of Synopsys, Inc. unless
1505 * otherwise expressly agreed to in writing between Synopsys and you.
1507 * The Software IS NOT an item of Licensed Software or Licensed Product under
1508 * any End User Software License Agreement or Agreement for Licensed Product
1509 * with Synopsys or any supplement thereto. You are permitted to use and
1510 * redistribute this Software in source and binary forms, with or without
1511 * modification, provided that redistributions of source code must retain this
1512 * notice. You may not view, use, disclose, copy or distribute this file or
1513 * any information contained herein except pursuant to this license grant from
1514 * Synopsys. If you do not agree with this notice, including the disclaimer
1515 * below, then you are not authorized to use the Software.
1517 * THIS SOFTWARE IS BEING DISTRIBUTED BY SYNOPSYS SOLELY ON AN "AS IS" BASIS
1518 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1519 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1520 * ARE HEREBY DISCLAIMED. IN NO EVENT SHALL SYNOPSYS BE LIABLE FOR ANY DIRECT,
1521 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
1522 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
1523 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
1524 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
1525 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
1526 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
1528 * ========================================================================== */
1531 * This file contains the implementation of the PCD Interrupt handlers.
1533 * The PCD handles the device interrupts. Many conditions can cause a
1534 * device interrupt. When an interrupt occurs, the device interrupt
1535 * service routine determines the cause of the interrupt and
1536 * dispatches handling to the appropriate routine. These interrupt
1537 * handling routines are described below.
1539 p4://qctp411.qualcomm.com/components/rel/wlanfw_mac_core.cnss/1.0/src/soc/usbhwcore/drv/snps/pcd_intr.c
1541 /* ==========================================================================
1542 * $File: //components/rel/wlanfw.cnss/1.0.1/cnss_proc/wlan/fw/target/include/os_dev.h $
1544 * $Date: 2013/08/06 $
1545 * $Change: 2161544 $
1547 * Synopsys SS USB3 Linux Software Driver and documentation (hereinafter,
1548 * "Software") is an Unsupported proprietary work of Synopsys, Inc. unless
1549 * otherwise expressly agreed to in writing between Synopsys and you.
1551 * The Software IS NOT an item of Licensed Software or Licensed Product under
1552 * any End User Software License Agreement or Agreement for Licensed Product
1553 * with Synopsys or any supplement thereto. You are permitted to use and
1554 * redistribute this Software in source and binary forms, with or without
1555 * modification, provided that redistributions of source code must retain this
1556 * notice. You may not view, use, disclose, copy or distribute this file or
1557 * any information contained herein except pursuant to this license grant from
1558 * Synopsys. If you do not agree with this notice, including the disclaimer
1559 * below, then you are not authorized to use the Software.
1561 * THIS SOFTWARE IS BEING DISTRIBUTED BY SYNOPSYS SOLELY ON AN "AS IS" BASIS
1562 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1563 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1564 * ARE HEREBY DISCLAIMED. IN NO EVENT SHALL SYNOPSYS BE LIABLE FOR ANY DIRECT,
1565 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
1566 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
1567 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
1568 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
1569 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
1570 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
1572 * ========================================================================== */
1573 p4://qctp411.qualcomm.com/components/rel/wlanfw_mac_core.cnss/1.0/include/os_dev.h
1575 /* ==========================================================================
1576 * $File: //components/rel/wlanfw.cnss/1.0.1/cnss_proc/wlan/fw/target/src/soc/usbhwcore/drv/snps/cil_intr.c $
1578 * $Date: 2013/08/06 $
1579 * $Change: 2161544 $
1581 * Synopsys SS USB3 Linux Software Driver and documentation (hereinafter,
1582 * "Software") is an Unsupported proprietary work of Synopsys, Inc. unless
1583 * otherwise expressly agreed to in writing between Synopsys and you.
1585 * The Software IS NOT an item of Licensed Software or Licensed Product under
1586 * any End User Software License Agreement or Agreement for Licensed Product
1587 * with Synopsys or any supplement thereto. You are permitted to use and
1588 * redistribute this Software in source and binary forms, with or without
1589 * modification, provided that redistributions of source code must retain this
1590 * notice. You may not view, use, disclose, copy or distribute this file or
1591 * any information contained herein except pursuant to this license grant from
1592 * Synopsys. If you do not agree with this notice, including the disclaimer
1593 * below, then you are not authorized to use the Software.
1595 * THIS SOFTWARE IS BEING DISTRIBUTED BY SYNOPSYS SOLELY ON AN "AS IS" BASIS
1596 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1597 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1598 * ARE HEREBY DISCLAIMED. IN NO EVENT SHALL SYNOPSYS BE LIABLE FOR ANY DIRECT,
1599 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
1600 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
1601 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
1602 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
1603 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
1604 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
1606 * ========================================================================== */
1610 * The Core Interface Layer provides basic services for accessing and
1611 * managing the DWC_usb3 hardware. These services are used by both the
1612 * Peripheral Controller Driver and the On The Go Driver.
1614 * This file contains the common interrupt handling functions.
1616 p4://qctp411.qualcomm.com/components/rel/wlanfw_mac_core.cnss/1.0/src/soc/usbhwcore/drv/snps/cil_intr.c
1618 /* ==========================================================================
1619 * $File: //components/rel/wlanfw.cnss/1.0.1/cnss_proc/wlan/fw/target/src/soc/usbhwcore/drv/snps/pcd.c $
1621 * $Date: 2013/08/06 $
1622 * $Change: 2161544 $
1624 * Synopsys SS USB3 Linux Software Driver and documentation (hereinafter,
1625 * "Software") is an Unsupported proprietary work of Synopsys, Inc. unless
1626 * otherwise expressly agreed to in writing between Synopsys and you.
1628 * The Software IS NOT an item of Licensed Software or Licensed Product under
1629 * any End User Software License Agreement or Agreement for Licensed Product
1630 * with Synopsys or any supplement thereto. You are permitted to use and
1631 * redistribute this Software in source and binary forms, with or without
1632 * modification, provided that redistributions of source code must retain this
1633 * notice. You may not view, use, disclose, copy or distribute this file or
1634 * any information contained herein except pursuant to this license grant from
1635 * Synopsys. If you do not agree with this notice, including the disclaimer
1636 * below, then you are not authorized to use the Software.
1638 * THIS SOFTWARE IS BEING DISTRIBUTED BY SYNOPSYS SOLELY ON AN "AS IS" BASIS
1639 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1640 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1641 * ARE HEREBY DISCLAIMED. IN NO EVENT SHALL SYNOPSYS BE LIABLE FOR ANY DIRECT,
1642 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
1643 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
1644 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
1645 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
1646 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
1647 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
1649 * ========================================================================== */
1652 * This file implements the Peripheral Controller Driver.
1654 * The Peripheral Controller Driver (PCD) is responsible for translating
1655 * requests from the Function Driver into the appropriate actions on the
1656 * DWC_usb3 controller. It isolates the Function Driver from the specifics
1657 * of the controller by providing an API to the Function Driver.
1659 * The Peripheral Controller Driver for Linux will implement the Gadget API,
1660 * so that the existing Gadget drivers can be used. (Gadget Driver is the
1661 * Linux terminology for a Function Driver.)
1663 * The Linux Gadget API is defined in the header file
1664 * <code><linux/usb/gadget.h></code>. The USB EP operations API is defined
1665 * in the structure <code>usb_ep_ops</code> and the USB Controller API is
1666 * defined in the structure <code>usb_gadget_ops</code>.
1668 * An important function of the PCD is managing interrupts generated by the
1669 * DWC_usb3 controller. The implementation of the DWC_usb3 device mode
1670 * interrupt service routines is in pcd_intr.c.
1672 p4://qctp411.qualcomm.com/components/rel/wlanfw_mac_core.cnss/1.0/src/soc/usbhwcore/drv/snps/pcd.c
1674 /* ==========================================================================
1675 * $File: //components/rel/wlanfw.cnss/1.0.1/cnss_proc/wlan/fw/target/include/usb3_hw.h $
1677 * $Date: 2013/08/06 $
1678 * $Change: 2161544 $
1680 * Synopsys SS USB3 Linux Software Driver and documentation (hereinafter,
1681 * "Software") is an Unsupported proprietary work of Synopsys, Inc. unless
1682 * otherwise expressly agreed to in writing between Synopsys and you.
1684 * The Software IS NOT an item of Licensed Software or Licensed Product under
1685 * any End User Software License Agreement or Agreement for Licensed Product
1686 * with Synopsys or any supplement thereto. You are permitted to use and
1687 * redistribute this Software in source and binary forms, with or without
1688 * modification, provided that redistributions of source code must retain this
1689 * notice. You may not view, use, disclose, copy or distribute this file or
1690 * any information contained herein except pursuant to this license grant from
1691 * Synopsys. If you do not agree with this notice, including the disclaimer
1692 * below, then you are not authorized to use the Software.
1694 * THIS SOFTWARE IS BEING DISTRIBUTED BY SYNOPSYS SOLELY ON AN "AS IS" BASIS
1695 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1696 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1697 * ARE HEREBY DISCLAIMED. IN NO EVENT SHALL SYNOPSYS BE LIABLE FOR ANY DIRECT,
1698 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
1699 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
1700 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
1701 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
1702 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
1703 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
1705 * ========================================================================== */
1706 p4://qctp411.qualcomm.com/components/rel/wlanfw_mac_core.cnss/1.0/include/usb3_hw.h
1709 * Copyright (c) 2011 Qualcomm Atheros, Inc.
1710 * All Rights Reserved.
1711 * Qualcomm Atheros Confidential and Proprietary.
1712 * $ATH_LICENSE_NULL$
1716 // Name: lzuncompr.c
1717 // Author: Vitaly Luban
1718 // Based on code from Marcus Geelnard
1719 // Description: LZ77 decoder implementation.
1722 // ------------------------------------------------------------------------
1723 // Copyright (c) 2003-2006 Marcus Geelnard
1724 // Copyright (c) 2006-2007 Atheros Communications Inc.
1725 // $ATH_LICENSE_NULL$
1726 // This software is provided 'as-is', without any express or implied
1727 // warranty. In no event will the authors be held liable for any damages
1728 // arising from the use of this software.
1730 // Permission is granted to anyone to use this software for any purpose,
1731 // including commercial applications, and to alter it and redistribute it
1732 // freely, subject to the following restrictions:
1734 // 1. The origin of this software must not be misrepresented; you must not
1735 // claim that you wrote the original software. If you use this software
1736 // in a product, an acknowledgment in the product documentation would
1737 // be appreciated but is not required.
1739 // 2. Altered source versions must be plainly marked as such, and must not
1740 // be misrepresented as being the original software.
1742 // 3. This notice may not be removed or altered from any source
1746 // marcus.geelnard at home.se
1748 p4://qctp411.qualcomm.com/components/rel/wlanfw_mac_core.cnss/1.0/src/misc/lzuncompr/lzuncompr1.c