1094332d3Sopenharmony_ciHDF - Hardware Driver Foundation
2094332d3Sopenharmony_ciCopyright (c) 2020-2022 Huawei Device Co., Ltd. All rights reserved.
3094332d3Sopenharmony_ci
4094332d3Sopenharmony_ciThe peripheral subdirectories are licensed under Apache License, Version 2.0.
5094332d3Sopenharmony_ciThe .*/chipsets subdirectory is is dual licensed: you can use it either under the terms of
6094332d3Sopenharmony_cithe GPL V2, or the 3-Clause BSD license, at your option.
7094332d3Sopenharmony_ci
8094332d3Sopenharmony_ciHDF is dual licensed: you can use it either under the terms of
9094332d3Sopenharmony_cithe GPL V2, or the BSD3 license, at your option.
10094332d3Sopenharmony_ci
11094332d3Sopenharmony_cia) GNU General Public License version 2, (https://opensource.org/licenses/GPL-2.0)
12094332d3Sopenharmony_ciThis library is free software; you can redistribute it and/or
13094332d3Sopenharmony_cimodify it under the terms of the GNU General Public License as
14094332d3Sopenharmony_cipublished by the Free Software Foundation; either version 2 of the
15094332d3Sopenharmony_ciLicense, or (at your option) any later version.
16094332d3Sopenharmony_ci
17094332d3Sopenharmony_ciThis library is distributed in the hope that it will be useful,
18094332d3Sopenharmony_cibut WITHOUT ANY WARRANTY; without even the implied warranty of
19094332d3Sopenharmony_ciMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20094332d3Sopenharmony_ciGNU General Public License for more details.
21094332d3Sopenharmony_ci
22094332d3Sopenharmony_ciYou should have received a copy of the GNU General Public
23094332d3Sopenharmony_ciLicense along with this library; if not, write to the Free
24094332d3Sopenharmony_ciSoftware Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
25094332d3Sopenharmony_ciMA 02110-1301 USA
26094332d3Sopenharmony_ci
27094332d3Sopenharmony_cib) The BSD3 License, (https://opensource.org/licenses/BSD-3-Clause)
28094332d3Sopenharmony_ciRedistribution and use in source and binary forms, with or
29094332d3Sopenharmony_ciwithout modification, are permitted provided that the following
30094332d3Sopenharmony_ciconditions are met:
31094332d3Sopenharmony_ci
32094332d3Sopenharmony_ci1. Redistributions of source code must retain the above
33094332d3Sopenharmony_ci   copyright notice, this list of conditions and the following
34094332d3Sopenharmony_ci   disclaimer.
35094332d3Sopenharmony_ci2. Redistributions in binary form must reproduce the above
36094332d3Sopenharmony_ci   copyright notice, this list of conditions and the following
37094332d3Sopenharmony_ci   disclaimer in the documentation and/or other materials
38094332d3Sopenharmony_ci   provided with the distribution.
39094332d3Sopenharmony_ci3. Neither the name of the copyright holder nor the names of its
40094332d3Sopenharmony_ci   contributors may be used to endorse or promote products derived
41094332d3Sopenharmony_ci   from this software without specific prior written permission.
42094332d3Sopenharmony_ci
43094332d3Sopenharmony_ciTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
44094332d3Sopenharmony_ciCONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
45094332d3Sopenharmony_ciINCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
46094332d3Sopenharmony_ciMERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
47094332d3Sopenharmony_ciDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
48094332d3Sopenharmony_ciCONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
49094332d3Sopenharmony_ciSPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
50094332d3Sopenharmony_ciNOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
51094332d3Sopenharmony_ciLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
52094332d3Sopenharmony_ciHOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
53094332d3Sopenharmony_ciCONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
54094332d3Sopenharmony_ciOTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
55094332d3Sopenharmony_ciEVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
56094332d3Sopenharmony_ci
57094332d3Sopenharmony_cic) The Apache License Version 2.0, (https://www.apache.org/licenses/LICENSE-2.0)
58094332d3Sopenharmony_ci   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
59094332d3Sopenharmony_ci
60094332d3Sopenharmony_ci   1. Definitions.
61094332d3Sopenharmony_ci
62094332d3Sopenharmony_ci      "License" shall mean the terms and conditions for use, reproduction,
63094332d3Sopenharmony_ci      and distribution as defined by Sections 1 through 9 of this document.
64094332d3Sopenharmony_ci
65094332d3Sopenharmony_ci      "Licensor" shall mean the copyright owner or entity authorized by
66094332d3Sopenharmony_ci      the copyright owner that is granting the License.
67094332d3Sopenharmony_ci
68094332d3Sopenharmony_ci      "Legal Entity" shall mean the union of the acting entity and all
69094332d3Sopenharmony_ci      other entities that control, are controlled by, or are under common
70094332d3Sopenharmony_ci      control with that entity. For the purposes of this definition,
71094332d3Sopenharmony_ci      "control" means (i) the power, direct or indirect, to cause the
72094332d3Sopenharmony_ci      direction or management of such entity, whether by contract or
73094332d3Sopenharmony_ci      otherwise, or (ii) ownership of fifty percent (50%) or more of the
74094332d3Sopenharmony_ci      outstanding shares, or (iii) beneficial ownership of such entity.
75094332d3Sopenharmony_ci
76094332d3Sopenharmony_ci      "You" (or "Your") shall mean an individual or Legal Entity
77094332d3Sopenharmony_ci      exercising permissions granted by this License.
78094332d3Sopenharmony_ci
79094332d3Sopenharmony_ci      "Source" form shall mean the preferred form for making modifications,
80094332d3Sopenharmony_ci      including but not limited to software source code, documentation
81094332d3Sopenharmony_ci      source, and configuration files.
82094332d3Sopenharmony_ci
83094332d3Sopenharmony_ci      "Object" form shall mean any form resulting from mechanical
84094332d3Sopenharmony_ci      transformation or translation of a Source form, including but
85094332d3Sopenharmony_ci      not limited to compiled object code, generated documentation,
86094332d3Sopenharmony_ci      and conversions to other media types.
87094332d3Sopenharmony_ci
88094332d3Sopenharmony_ci      "Work" shall mean the work of authorship, whether in Source or
89094332d3Sopenharmony_ci      Object form, made available under the License, as indicated by a
90094332d3Sopenharmony_ci      copyright notice that is included in or attached to the work
91094332d3Sopenharmony_ci      (an example is provided in the Appendix below).
92094332d3Sopenharmony_ci
93094332d3Sopenharmony_ci      "Derivative Works" shall mean any work, whether in Source or Object
94094332d3Sopenharmony_ci      form, that is based on (or derived from) the Work and for which the
95094332d3Sopenharmony_ci      editorial revisions, annotations, elaborations, or other modifications
96094332d3Sopenharmony_ci      represent, as a whole, an original work of authorship. For the purposes
97094332d3Sopenharmony_ci      of this License, Derivative Works shall not include works that remain
98094332d3Sopenharmony_ci      separable from, or merely link (or bind by name) to the interfaces of,
99094332d3Sopenharmony_ci      the Work and Derivative Works thereof.
100094332d3Sopenharmony_ci
101094332d3Sopenharmony_ci      "Contribution" shall mean any work of authorship, including
102094332d3Sopenharmony_ci      the original version of the Work and any modifications or additions
103094332d3Sopenharmony_ci      to that Work or Derivative Works thereof, that is intentionally
104094332d3Sopenharmony_ci      submitted to Licensor for inclusion in the Work by the copyright owner
105094332d3Sopenharmony_ci      or by an individual or Legal Entity authorized to submit on behalf of
106094332d3Sopenharmony_ci      the copyright owner. For the purposes of this definition, "submitted"
107094332d3Sopenharmony_ci      means any form of electronic, verbal, or written communication sent
108094332d3Sopenharmony_ci      to the Licensor or its representatives, including but not limited to
109094332d3Sopenharmony_ci      communication on electronic mailing lists, source code control systems,
110094332d3Sopenharmony_ci      and issue tracking systems that are managed by, or on behalf of, the
111094332d3Sopenharmony_ci      Licensor for the purpose of discussing and improving the Work, but
112094332d3Sopenharmony_ci      excluding communication that is conspicuously marked or otherwise
113094332d3Sopenharmony_ci      designated in writing by the copyright owner as "Not a Contribution."
114094332d3Sopenharmony_ci
115094332d3Sopenharmony_ci      "Contributor" shall mean Licensor and any individual or Legal Entity
116094332d3Sopenharmony_ci      on behalf of whom a Contribution has been received by Licensor and
117094332d3Sopenharmony_ci      subsequently incorporated within the Work.
118094332d3Sopenharmony_ci
119094332d3Sopenharmony_ci   2. Grant of Copyright License. Subject to the terms and conditions of
120094332d3Sopenharmony_ci      this License, each Contributor hereby grants to You a perpetual,
121094332d3Sopenharmony_ci      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
122094332d3Sopenharmony_ci      copyright license to reproduce, prepare Derivative Works of,
123094332d3Sopenharmony_ci      publicly display, publicly perform, sublicense, and distribute the
124094332d3Sopenharmony_ci      Work and such Derivative Works in Source or Object form.
125094332d3Sopenharmony_ci
126094332d3Sopenharmony_ci   3. Grant of Patent License. Subject to the terms and conditions of
127094332d3Sopenharmony_ci      this License, each Contributor hereby grants to You a perpetual,
128094332d3Sopenharmony_ci      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
129094332d3Sopenharmony_ci      (except as stated in this section) patent license to make, have made,
130094332d3Sopenharmony_ci      use, offer to sell, sell, import, and otherwise transfer the Work,
131094332d3Sopenharmony_ci      where such license applies only to those patent claims licensable
132094332d3Sopenharmony_ci      by such Contributor that are necessarily infringed by their
133094332d3Sopenharmony_ci      Contribution(s) alone or by combination of their Contribution(s)
134094332d3Sopenharmony_ci      with the Work to which such Contribution(s) was submitted. If You
135094332d3Sopenharmony_ci      institute patent litigation against any entity (including a
136094332d3Sopenharmony_ci      cross-claim or counterclaim in a lawsuit) alleging that the Work
137094332d3Sopenharmony_ci      or a Contribution incorporated within the Work constitutes direct
138094332d3Sopenharmony_ci      or contributory patent infringement, then any patent licenses
139094332d3Sopenharmony_ci      granted to You under this License for that Work shall terminate
140094332d3Sopenharmony_ci      as of the date such litigation is filed.
141094332d3Sopenharmony_ci
142094332d3Sopenharmony_ci   4. Redistribution. You may reproduce and distribute copies of the
143094332d3Sopenharmony_ci      Work or Derivative Works thereof in any medium, with or without
144094332d3Sopenharmony_ci      modifications, and in Source or Object form, provided that You
145094332d3Sopenharmony_ci      meet the following conditions:
146094332d3Sopenharmony_ci
147094332d3Sopenharmony_ci      (a) You must give any other recipients of the Work or
148094332d3Sopenharmony_ci          Derivative Works a copy of this License; and
149094332d3Sopenharmony_ci
150094332d3Sopenharmony_ci      (b) You must cause any modified files to carry prominent notices
151094332d3Sopenharmony_ci          stating that You changed the files; and
152094332d3Sopenharmony_ci
153094332d3Sopenharmony_ci      (c) You must retain, in the Source form of any Derivative Works
154094332d3Sopenharmony_ci          that You distribute, all copyright, patent, trademark, and
155094332d3Sopenharmony_ci          attribution notices from the Source form of the Work,
156094332d3Sopenharmony_ci          excluding those notices that do not pertain to any part of
157094332d3Sopenharmony_ci          the Derivative Works; and
158094332d3Sopenharmony_ci
159094332d3Sopenharmony_ci      (d) If the Work includes a "NOTICE" text file as part of its
160094332d3Sopenharmony_ci          distribution, then any Derivative Works that You distribute must
161094332d3Sopenharmony_ci          include a readable copy of the attribution notices contained
162094332d3Sopenharmony_ci          within such NOTICE file, excluding those notices that do not
163094332d3Sopenharmony_ci          pertain to any part of the Derivative Works, in at least one
164094332d3Sopenharmony_ci          of the following places: within a NOTICE text file distributed
165094332d3Sopenharmony_ci          as part of the Derivative Works; within the Source form or
166094332d3Sopenharmony_ci          documentation, if provided along with the Derivative Works; or,
167094332d3Sopenharmony_ci          within a display generated by the Derivative Works, if and
168094332d3Sopenharmony_ci          wherever such third-party notices normally appear. The contents
169094332d3Sopenharmony_ci          of the NOTICE file are for informational purposes only and
170094332d3Sopenharmony_ci          do not modify the License. You may add Your own attribution
171094332d3Sopenharmony_ci          notices within Derivative Works that You distribute, alongside
172094332d3Sopenharmony_ci          or as an addendum to the NOTICE text from the Work, provided
173094332d3Sopenharmony_ci          that such additional attribution notices cannot be construed
174094332d3Sopenharmony_ci          as modifying the License.
175094332d3Sopenharmony_ci
176094332d3Sopenharmony_ci      You may add Your own copyright statement to Your modifications and
177094332d3Sopenharmony_ci      may provide additional or different license terms and conditions
178094332d3Sopenharmony_ci      for use, reproduction, or distribution of Your modifications, or
179094332d3Sopenharmony_ci      for any such Derivative Works as a whole, provided Your use,
180094332d3Sopenharmony_ci      reproduction, and distribution of the Work otherwise complies with
181094332d3Sopenharmony_ci      the conditions stated in this License.
182094332d3Sopenharmony_ci
183094332d3Sopenharmony_ci   5. Submission of Contributions. Unless You explicitly state otherwise,
184094332d3Sopenharmony_ci      any Contribution intentionally submitted for inclusion in the Work
185094332d3Sopenharmony_ci      by You to the Licensor shall be under the terms and conditions of
186094332d3Sopenharmony_ci      this License, without any additional terms or conditions.
187094332d3Sopenharmony_ci      Notwithstanding the above, nothing herein shall supersede or modify
188094332d3Sopenharmony_ci      the terms of any separate license agreement you may have executed
189094332d3Sopenharmony_ci      with Licensor regarding such Contributions.
190094332d3Sopenharmony_ci
191094332d3Sopenharmony_ci   6. Trademarks. This License does not grant permission to use the trade
192094332d3Sopenharmony_ci      names, trademarks, service marks, or product names of the Licensor,
193094332d3Sopenharmony_ci      except as required for reasonable and customary use in describing the
194094332d3Sopenharmony_ci      origin of the Work and reproducing the content of the NOTICE file.
195094332d3Sopenharmony_ci
196094332d3Sopenharmony_ci   7. Disclaimer of Warranty. Unless required by applicable law or
197094332d3Sopenharmony_ci      agreed to in writing, Licensor provides the Work (and each
198094332d3Sopenharmony_ci      Contributor provides its Contributions) on an "AS IS" BASIS,
199094332d3Sopenharmony_ci      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
200094332d3Sopenharmony_ci      implied, including, without limitation, any warranties or conditions
201094332d3Sopenharmony_ci      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
202094332d3Sopenharmony_ci      PARTICULAR PURPOSE. You are solely responsible for determining the
203094332d3Sopenharmony_ci      appropriateness of using or redistributing the Work and assume any
204094332d3Sopenharmony_ci      risks associated with Your exercise of permissions under this License.
205094332d3Sopenharmony_ci
206094332d3Sopenharmony_ci   8. Limitation of Liability. In no event and under no legal theory,
207094332d3Sopenharmony_ci      whether in tort (including negligence), contract, or otherwise,
208094332d3Sopenharmony_ci      unless required by applicable law (such as deliberate and grossly
209094332d3Sopenharmony_ci      negligent acts) or agreed to in writing, shall any Contributor be
210094332d3Sopenharmony_ci      liable to You for damages, including any direct, indirect, special,
211094332d3Sopenharmony_ci      incidental, or consequential damages of any character arising as a
212094332d3Sopenharmony_ci      result of this License or out of the use or inability to use the
213094332d3Sopenharmony_ci      Work (including but not limited to damages for loss of goodwill,
214094332d3Sopenharmony_ci      work stoppage, computer failure or malfunction, or any and all
215094332d3Sopenharmony_ci      other commercial damages or losses), even if such Contributor
216094332d3Sopenharmony_ci      has been advised of the possibility of such damages.
217094332d3Sopenharmony_ci
218094332d3Sopenharmony_ci   9. Accepting Warranty or Additional Liability. While redistributing
219094332d3Sopenharmony_ci      the Work or Derivative Works thereof, You may choose to offer,
220094332d3Sopenharmony_ci      and charge a fee for, acceptance of support, warranty, indemnity,
221094332d3Sopenharmony_ci      or other liability obligations and/or rights consistent with this
222094332d3Sopenharmony_ci      License. However, in accepting such obligations, You may act only
223094332d3Sopenharmony_ci      on Your own behalf and on Your sole responsibility, not on behalf
224094332d3Sopenharmony_ci      of any other Contributor, and only if You agree to indemnify,
225094332d3Sopenharmony_ci      defend, and hold each Contributor harmless for any liability
226094332d3Sopenharmony_ci      incurred by, or claims asserted against, such Contributor by reason
227094332d3Sopenharmony_ci      of your accepting any such warranty or additional liability.
228094332d3Sopenharmony_ci
229094332d3Sopenharmony_ci   END OF TERMS AND CONDITIONS