• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1libkms++ is mostly under the MPLv2 license except for a snippet in modedb_cea.cpp
2which is derived from 2-clause BSD licensed files from the Linux kernel.
3
4Mozilla Public License Version 2.0
5==================================
6
71. Definitions
8--------------
9
101.1. "Contributor"
11    means each individual or legal entity that creates, contributes to
12    the creation of, or owns Covered Software.
13
141.2. "Contributor Version"
15    means the combination of the Contributions of others (if any) used
16    by a Contributor and that particular Contributor's Contribution.
17
181.3. "Contribution"
19    means Covered Software of a particular Contributor.
20
211.4. "Covered Software"
22    means Source Code Form to which the initial Contributor has attached
23    the notice in Exhibit A, the Executable Form of such Source Code
24    Form, and Modifications of such Source Code Form, in each case
25    including portions thereof.
26
271.5. "Incompatible With Secondary Licenses"
28    means
29
30    (a) that the initial Contributor has attached the notice described
31        in Exhibit B to the Covered Software; or
32
33    (b) that the Covered Software was made available under the terms of
34        version 1.1 or earlier of the License, but not also under the
35        terms of a Secondary License.
36
371.6. "Executable Form"
38    means any form of the work other than Source Code Form.
39
401.7. "Larger Work"
41    means a work that combines Covered Software with other material, in
42    a separate file or files, that is not Covered Software.
43
441.8. "License"
45    means this document.
46
471.9. "Licensable"
48    means having the right to grant, to the maximum extent possible,
49    whether at the time of the initial grant or subsequently, any and
50    all of the rights conveyed by this License.
51
521.10. "Modifications"
53    means any of the following:
54
55    (a) any file in Source Code Form that results from an addition to,
56        deletion from, or modification of the contents of Covered
57        Software; or
58
59    (b) any new file in Source Code Form that contains any Covered
60        Software.
61
621.11. "Patent Claims" of a Contributor
63    means any patent claim(s), including without limitation, method,
64    process, and apparatus claims, in any patent Licensable by such
65    Contributor that would be infringed, but for the grant of the
66    License, by the making, using, selling, offering for sale, having
67    made, import, or transfer of either its Contributions or its
68    Contributor Version.
69
701.12. "Secondary License"
71    means either the GNU General Public License, Version 2.0, the GNU
72    Lesser General Public License, Version 2.1, the GNU Affero General
73    Public License, Version 3.0, or any later versions of those
74    licenses.
75
761.13. "Source Code Form"
77    means the form of the work preferred for making modifications.
78
791.14. "You" (or "Your")
80    means an individual or a legal entity exercising rights under this
81    License. For legal entities, "You" includes any entity that
82    controls, is controlled by, or is under common control with You. For
83    purposes of this definition, "control" means (a) the power, direct
84    or indirect, to cause the direction or management of such entity,
85    whether by contract or otherwise, or (b) ownership of more than
86    fifty percent (50%) of the outstanding shares or beneficial
87    ownership of such entity.
88
892. License Grants and Conditions
90--------------------------------
91
922.1. Grants
93
94Each Contributor hereby grants You a world-wide, royalty-free,
95non-exclusive license:
96
97(a) under intellectual property rights (other than patent or trademark)
98    Licensable by such Contributor to use, reproduce, make available,
99    modify, display, perform, distribute, and otherwise exploit its
100    Contributions, either on an unmodified basis, with Modifications, or
101    as part of a Larger Work; and
102
103(b) under Patent Claims of such Contributor to make, use, sell, offer
104    for sale, have made, import, and otherwise transfer either its
105    Contributions or its Contributor Version.
106
1072.2. Effective Date
108
109The licenses granted in Section 2.1 with respect to any Contribution
110become effective for each Contribution on the date the Contributor first
111distributes such Contribution.
112
1132.3. Limitations on Grant Scope
114
115The licenses granted in this Section 2 are the only rights granted under
116this License. No additional rights or licenses will be implied from the
117distribution or licensing of Covered Software under this License.
118Notwithstanding Section 2.1(b) above, no patent license is granted by a
119Contributor:
120
121(a) for any code that a Contributor has removed from Covered Software;
122    or
123
124(b) for infringements caused by: (i) Your and any other third party's
125    modifications of Covered Software, or (ii) the combination of its
126    Contributions with other software (except as part of its Contributor
127    Version); or
128
129(c) under Patent Claims infringed by Covered Software in the absence of
130    its Contributions.
131
132This License does not grant any rights in the trademarks, service marks,
133or logos of any Contributor (except as may be necessary to comply with
134the notice requirements in Section 3.4).
135
1362.4. Subsequent Licenses
137
138No Contributor makes additional grants as a result of Your choice to
139distribute the Covered Software under a subsequent version of this
140License (see Section 10.2) or under the terms of a Secondary License (if
141permitted under the terms of Section 3.3).
142
1432.5. Representation
144
145Each Contributor represents that the Contributor believes its
146Contributions are its original creation(s) or it has sufficient rights
147to grant the rights to its Contributions conveyed by this License.
148
1492.6. Fair Use
150
151This License is not intended to limit any rights You have under
152applicable copyright doctrines of fair use, fair dealing, or other
153equivalents.
154
1552.7. Conditions
156
157Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
158in Section 2.1.
159
1603. Responsibilities
161-------------------
162
1633.1. Distribution of Source Form
164
165All distribution of Covered Software in Source Code Form, including any
166Modifications that You create or to which You contribute, must be under
167the terms of this License. You must inform recipients that the Source
168Code Form of the Covered Software is governed by the terms of this
169License, and how they can obtain a copy of this License. You may not
170attempt to alter or restrict the recipients' rights in the Source Code
171Form.
172
1733.2. Distribution of Executable Form
174
175If You distribute Covered Software in Executable Form then:
176
177(a) such Covered Software must also be made available in Source Code
178    Form, as described in Section 3.1, and You must inform recipients of
179    the Executable Form how they can obtain a copy of such Source Code
180    Form by reasonable means in a timely manner, at a charge no more
181    than the cost of distribution to the recipient; and
182
183(b) You may distribute such Executable Form under the terms of this
184    License, or sublicense it under different terms, provided that the
185    license for the Executable Form does not attempt to limit or alter
186    the recipients' rights in the Source Code Form under this License.
187
1883.3. Distribution of a Larger Work
189
190You may create and distribute a Larger Work under terms of Your choice,
191provided that You also comply with the requirements of this License for
192the Covered Software. If the Larger Work is a combination of Covered
193Software with a work governed by one or more Secondary Licenses, and the
194Covered Software is not Incompatible With Secondary Licenses, this
195License permits You to additionally distribute such Covered Software
196under the terms of such Secondary License(s), so that the recipient of
197the Larger Work may, at their option, further distribute the Covered
198Software under the terms of either this License or such Secondary
199License(s).
200
2013.4. Notices
202
203You may not remove or alter the substance of any license notices
204(including copyright notices, patent notices, disclaimers of warranty,
205or limitations of liability) contained within the Source Code Form of
206the Covered Software, except that You may alter any license notices to
207the extent required to remedy known factual inaccuracies.
208
2093.5. Application of Additional Terms
210
211You may choose to offer, and to charge a fee for, warranty, support,
212indemnity or liability obligations to one or more recipients of Covered
213Software. However, You may do so only on Your own behalf, and not on
214behalf of any Contributor. You must make it absolutely clear that any
215such warranty, support, indemnity, or liability obligation is offered by
216You alone, and You hereby agree to indemnify every Contributor for any
217liability incurred by such Contributor as a result of warranty, support,
218indemnity or liability terms You offer. You may include additional
219disclaimers of warranty and limitations of liability specific to any
220jurisdiction.
221
2224. Inability to Comply Due to Statute or Regulation
223---------------------------------------------------
224
225If it is impossible for You to comply with any of the terms of this
226License with respect to some or all of the Covered Software due to
227statute, judicial order, or regulation then You must: (a) comply with
228the terms of this License to the maximum extent possible; and (b)
229describe the limitations and the code they affect. Such description must
230be placed in a text file included with all distributions of the Covered
231Software under this License. Except to the extent prohibited by statute
232or regulation, such description must be sufficiently detailed for a
233recipient of ordinary skill to be able to understand it.
234
2355. Termination
236--------------
237
2385.1. The rights granted under this License will terminate automatically
239if You fail to comply with any of its terms. However, if You become
240compliant, then the rights granted under this License from a particular
241Contributor are reinstated (a) provisionally, unless and until such
242Contributor explicitly and finally terminates Your grants, and (b) on an
243ongoing basis, if such Contributor fails to notify You of the
244non-compliance by some reasonable means prior to 60 days after You have
245come back into compliance. Moreover, Your grants from a particular
246Contributor are reinstated on an ongoing basis if such Contributor
247notifies You of the non-compliance by some reasonable means, this is the
248first time You have received notice of non-compliance with this License
249from such Contributor, and You become compliant prior to 30 days after
250Your receipt of the notice.
251
2525.2. If You initiate litigation against any entity by asserting a patent
253infringement claim (excluding declaratory judgment actions,
254counter-claims, and cross-claims) alleging that a Contributor Version
255directly or indirectly infringes any patent, then the rights granted to
256You by any and all Contributors for the Covered Software under Section
2572.1 of this License shall terminate.
258
2595.3. In the event of termination under Sections 5.1 or 5.2 above, all
260end user license agreements (excluding distributors and resellers) which
261have been validly granted by You or Your distributors under this License
262prior to termination shall survive termination.
263
264************************************************************************
265*                                                                      *
266*  6. Disclaimer of Warranty                                           *
267*  -------------------------                                           *
268*                                                                      *
269*  Covered Software is provided under this License on an "as is"       *
270*  basis, without warranty of any kind, either expressed, implied, or  *
271*  statutory, including, without limitation, warranties that the       *
272*  Covered Software is free of defects, merchantable, fit for a        *
273*  particular purpose or non-infringing. The entire risk as to the     *
274*  quality and performance of the Covered Software is with You.        *
275*  Should any Covered Software prove defective in any respect, You     *
276*  (not any Contributor) assume the cost of any necessary servicing,   *
277*  repair, or correction. This disclaimer of warranty constitutes an   *
278*  essential part of this License. No use of any Covered Software is   *
279*  authorized under this License except under this disclaimer.         *
280*                                                                      *
281************************************************************************
282
283************************************************************************
284*                                                                      *
285*  7. Limitation of Liability                                          *
286*  --------------------------                                          *
287*                                                                      *
288*  Under no circumstances and under no legal theory, whether tort      *
289*  (including negligence), contract, or otherwise, shall any           *
290*  Contributor, or anyone who distributes Covered Software as          *
291*  permitted above, be liable to You for any direct, indirect,         *
292*  special, incidental, or consequential damages of any character      *
293*  including, without limitation, damages for lost profits, loss of    *
294*  goodwill, work stoppage, computer failure or malfunction, or any    *
295*  and all other commercial damages or losses, even if such party      *
296*  shall have been informed of the possibility of such damages. This   *
297*  limitation of liability shall not apply to liability for death or   *
298*  personal injury resulting from such party's negligence to the       *
299*  extent applicable law prohibits such limitation. Some               *
300*  jurisdictions do not allow the exclusion or limitation of           *
301*  incidental or consequential damages, so this exclusion and          *
302*  limitation may not apply to You.                                    *
303*                                                                      *
304************************************************************************
305
3068. Litigation
307-------------
308
309Any litigation relating to this License may be brought only in the
310courts of a jurisdiction where the defendant maintains its principal
311place of business and such litigation shall be governed by laws of that
312jurisdiction, without reference to its conflict-of-law provisions.
313Nothing in this Section shall prevent a party's ability to bring
314cross-claims or counter-claims.
315
3169. Miscellaneous
317----------------
318
319This License represents the complete agreement concerning the subject
320matter hereof. If any provision of this License is held to be
321unenforceable, such provision shall be reformed only to the extent
322necessary to make it enforceable. Any law or regulation which provides
323that the language of a contract shall be construed against the drafter
324shall not be used to construe this License against a Contributor.
325
32610. Versions of the License
327---------------------------
328
32910.1. New Versions
330
331Mozilla Foundation is the license steward. Except as provided in Section
33210.3, no one other than the license steward has the right to modify or
333publish new versions of this License. Each version will be given a
334distinguishing version number.
335
33610.2. Effect of New Versions
337
338You may distribute the Covered Software under the terms of the version
339of the License under which You originally received the Covered Software,
340or under the terms of any subsequent version published by the license
341steward.
342
34310.3. Modified Versions
344
345If you create software not governed by this License, and you want to
346create a new license for such software, you may create and use a
347modified version of this License if you rename the license and remove
348any references to the name of the license steward (except to note that
349such modified license differs from this License).
350
35110.4. Distributing Source Code Form that is Incompatible With Secondary
352Licenses
353
354If You choose to distribute Source Code Form that is Incompatible With
355Secondary Licenses under the terms of this version of the License, the
356notice described in Exhibit B of this License must be attached.
357
358Exhibit A - Source Code Form License Notice
359-------------------------------------------
360
361  This Source Code Form is subject to the terms of the Mozilla Public
362  License, v. 2.0. If a copy of the MPL was not distributed with this
363  file, You can obtain one at http://mozilla.org/MPL/2.0/.
364
365If it is not possible or desirable to put the notice in a particular
366file, then You may include the notice in a location (such as a LICENSE
367file in a relevant directory) where a recipient would be likely to look
368for such a notice.
369
370You may add additional accurate notices of copyright ownership.
371
372Exhibit B - "Incompatible With Secondary Licenses" Notice
373---------------------------------------------------------
374
375  This Source Code Form is "Incompatible With Secondary Licenses", as
376  defined by the Mozilla Public License, v. 2.0.
377
378---------------------------------------------------------------------------
379kms++/src/modedb_cea.cpp
380
381From Linux kernel: drm_edid.c
382
383Copyright (c) 2006 Luc Verhaegen (quirks list)
384Copyright (c) 2007-2008 Intel Corporation
385  Jesse Barnes <jesse.barnes@intel.com>
386Copyright 2010 Red Hat, Inc.
387
388DDC probing routines (drm_ddc_read & drm_do_probe_ddc_edid) originally from
389FB layer.
390  Copyright (C) 2006 Dennis Munsie <dmunsie@cecropia.com>
391
392Permission is hereby granted, free of charge, to any person obtaining a
393copy of this software and associated documentation files (the "Software"),
394to deal in the Software without restriction, including without limitation
395the rights to use, copy, modify, merge, publish, distribute, sub license,
396and/or sell copies of the Software, and to permit persons to whom the
397Software is furnished to do so, subject to the following conditions:
398
399The above copyright notice and this permission notice (including the
400next paragraph) shall be included in all copies or substantial portions
401of the Software.
402
403THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
404IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
405FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
406THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
407LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
408FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
409DEALINGS IN THE SOFTWARE.
410