Alistair Strachan | 0e3e4ad | 2018-08-31 11:08:09 -0700 | [diff] [blame] | 1 | libkms++ is mostly under the MPLv2 license except for a snippet in modedb_cea.cpp |
| 2 | which is derived from 2-clause BSD licensed files from the Linux kernel. |
| 3 | |
Tomi Valkeinen | e0067bd | 2018-01-12 14:54:56 +0200 | [diff] [blame] | 4 | Mozilla Public License Version 2.0 |
| 5 | ================================== |
Tomi Valkeinen | 009828b | 2015-09-28 01:13:34 +0300 | [diff] [blame] | 6 | |
Tomi Valkeinen | e0067bd | 2018-01-12 14:54:56 +0200 | [diff] [blame] | 7 | 1. Definitions |
| 8 | -------------- |
Tomi Valkeinen | 009828b | 2015-09-28 01:13:34 +0300 | [diff] [blame] | 9 | |
Tomi Valkeinen | e0067bd | 2018-01-12 14:54:56 +0200 | [diff] [blame] | 10 | 1.1. "Contributor" |
| 11 | means each individual or legal entity that creates, contributes to |
| 12 | the creation of, or owns Covered Software. |
Tomi Valkeinen | 009828b | 2015-09-28 01:13:34 +0300 | [diff] [blame] | 13 | |
Tomi Valkeinen | e0067bd | 2018-01-12 14:54:56 +0200 | [diff] [blame] | 14 | 1.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 | |
| 18 | 1.3. "Contribution" |
| 19 | means Covered Software of a particular Contributor. |
| 20 | |
| 21 | 1.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 | |
| 27 | 1.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 | |
| 37 | 1.6. "Executable Form" |
| 38 | means any form of the work other than Source Code Form. |
| 39 | |
| 40 | 1.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 | |
| 44 | 1.8. "License" |
| 45 | means this document. |
| 46 | |
| 47 | 1.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 | |
| 52 | 1.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 | |
| 62 | 1.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 | |
| 70 | 1.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 | |
| 76 | 1.13. "Source Code Form" |
| 77 | means the form of the work preferred for making modifications. |
| 78 | |
| 79 | 1.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 | |
| 89 | 2. License Grants and Conditions |
| 90 | -------------------------------- |
| 91 | |
| 92 | 2.1. Grants |
| 93 | |
| 94 | Each Contributor hereby grants You a world-wide, royalty-free, |
| 95 | non-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 | |
| 107 | 2.2. Effective Date |
| 108 | |
| 109 | The licenses granted in Section 2.1 with respect to any Contribution |
| 110 | become effective for each Contribution on the date the Contributor first |
| 111 | distributes such Contribution. |
| 112 | |
| 113 | 2.3. Limitations on Grant Scope |
| 114 | |
| 115 | The licenses granted in this Section 2 are the only rights granted under |
| 116 | this License. No additional rights or licenses will be implied from the |
| 117 | distribution or licensing of Covered Software under this License. |
| 118 | Notwithstanding Section 2.1(b) above, no patent license is granted by a |
| 119 | Contributor: |
| 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 | |
| 132 | This License does not grant any rights in the trademarks, service marks, |
| 133 | or logos of any Contributor (except as may be necessary to comply with |
| 134 | the notice requirements in Section 3.4). |
| 135 | |
| 136 | 2.4. Subsequent Licenses |
| 137 | |
| 138 | No Contributor makes additional grants as a result of Your choice to |
| 139 | distribute the Covered Software under a subsequent version of this |
| 140 | License (see Section 10.2) or under the terms of a Secondary License (if |
| 141 | permitted under the terms of Section 3.3). |
| 142 | |
| 143 | 2.5. Representation |
| 144 | |
| 145 | Each Contributor represents that the Contributor believes its |
| 146 | Contributions are its original creation(s) or it has sufficient rights |
| 147 | to grant the rights to its Contributions conveyed by this License. |
| 148 | |
| 149 | 2.6. Fair Use |
| 150 | |
| 151 | This License is not intended to limit any rights You have under |
| 152 | applicable copyright doctrines of fair use, fair dealing, or other |
| 153 | equivalents. |
| 154 | |
| 155 | 2.7. Conditions |
| 156 | |
| 157 | Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted |
| 158 | in Section 2.1. |
| 159 | |
| 160 | 3. Responsibilities |
| 161 | ------------------- |
| 162 | |
| 163 | 3.1. Distribution of Source Form |
| 164 | |
| 165 | All distribution of Covered Software in Source Code Form, including any |
| 166 | Modifications that You create or to which You contribute, must be under |
| 167 | the terms of this License. You must inform recipients that the Source |
| 168 | Code Form of the Covered Software is governed by the terms of this |
| 169 | License, and how they can obtain a copy of this License. You may not |
| 170 | attempt to alter or restrict the recipients' rights in the Source Code |
| 171 | Form. |
| 172 | |
| 173 | 3.2. Distribution of Executable Form |
| 174 | |
| 175 | If 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 | |
| 188 | 3.3. Distribution of a Larger Work |
| 189 | |
| 190 | You may create and distribute a Larger Work under terms of Your choice, |
| 191 | provided that You also comply with the requirements of this License for |
| 192 | the Covered Software. If the Larger Work is a combination of Covered |
| 193 | Software with a work governed by one or more Secondary Licenses, and the |
| 194 | Covered Software is not Incompatible With Secondary Licenses, this |
| 195 | License permits You to additionally distribute such Covered Software |
| 196 | under the terms of such Secondary License(s), so that the recipient of |
| 197 | the Larger Work may, at their option, further distribute the Covered |
| 198 | Software under the terms of either this License or such Secondary |
| 199 | License(s). |
| 200 | |
| 201 | 3.4. Notices |
| 202 | |
| 203 | You may not remove or alter the substance of any license notices |
| 204 | (including copyright notices, patent notices, disclaimers of warranty, |
| 205 | or limitations of liability) contained within the Source Code Form of |
| 206 | the Covered Software, except that You may alter any license notices to |
| 207 | the extent required to remedy known factual inaccuracies. |
| 208 | |
| 209 | 3.5. Application of Additional Terms |
| 210 | |
| 211 | You may choose to offer, and to charge a fee for, warranty, support, |
| 212 | indemnity or liability obligations to one or more recipients of Covered |
| 213 | Software. However, You may do so only on Your own behalf, and not on |
| 214 | behalf of any Contributor. You must make it absolutely clear that any |
| 215 | such warranty, support, indemnity, or liability obligation is offered by |
| 216 | You alone, and You hereby agree to indemnify every Contributor for any |
| 217 | liability incurred by such Contributor as a result of warranty, support, |
| 218 | indemnity or liability terms You offer. You may include additional |
| 219 | disclaimers of warranty and limitations of liability specific to any |
| 220 | jurisdiction. |
| 221 | |
| 222 | 4. Inability to Comply Due to Statute or Regulation |
| 223 | --------------------------------------------------- |
| 224 | |
| 225 | If it is impossible for You to comply with any of the terms of this |
| 226 | License with respect to some or all of the Covered Software due to |
| 227 | statute, judicial order, or regulation then You must: (a) comply with |
| 228 | the terms of this License to the maximum extent possible; and (b) |
| 229 | describe the limitations and the code they affect. Such description must |
| 230 | be placed in a text file included with all distributions of the Covered |
| 231 | Software under this License. Except to the extent prohibited by statute |
| 232 | or regulation, such description must be sufficiently detailed for a |
| 233 | recipient of ordinary skill to be able to understand it. |
| 234 | |
| 235 | 5. Termination |
| 236 | -------------- |
| 237 | |
| 238 | 5.1. The rights granted under this License will terminate automatically |
| 239 | if You fail to comply with any of its terms. However, if You become |
| 240 | compliant, then the rights granted under this License from a particular |
| 241 | Contributor are reinstated (a) provisionally, unless and until such |
| 242 | Contributor explicitly and finally terminates Your grants, and (b) on an |
| 243 | ongoing basis, if such Contributor fails to notify You of the |
| 244 | non-compliance by some reasonable means prior to 60 days after You have |
| 245 | come back into compliance. Moreover, Your grants from a particular |
| 246 | Contributor are reinstated on an ongoing basis if such Contributor |
| 247 | notifies You of the non-compliance by some reasonable means, this is the |
| 248 | first time You have received notice of non-compliance with this License |
| 249 | from such Contributor, and You become compliant prior to 30 days after |
| 250 | Your receipt of the notice. |
| 251 | |
| 252 | 5.2. If You initiate litigation against any entity by asserting a patent |
| 253 | infringement claim (excluding declaratory judgment actions, |
| 254 | counter-claims, and cross-claims) alleging that a Contributor Version |
| 255 | directly or indirectly infringes any patent, then the rights granted to |
| 256 | You by any and all Contributors for the Covered Software under Section |
| 257 | 2.1 of this License shall terminate. |
| 258 | |
| 259 | 5.3. In the event of termination under Sections 5.1 or 5.2 above, all |
| 260 | end user license agreements (excluding distributors and resellers) which |
| 261 | have been validly granted by You or Your distributors under this License |
| 262 | prior 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 | |
| 306 | 8. Litigation |
| 307 | ------------- |
| 308 | |
| 309 | Any litigation relating to this License may be brought only in the |
| 310 | courts of a jurisdiction where the defendant maintains its principal |
| 311 | place of business and such litigation shall be governed by laws of that |
| 312 | jurisdiction, without reference to its conflict-of-law provisions. |
| 313 | Nothing in this Section shall prevent a party's ability to bring |
| 314 | cross-claims or counter-claims. |
| 315 | |
| 316 | 9. Miscellaneous |
| 317 | ---------------- |
| 318 | |
| 319 | This License represents the complete agreement concerning the subject |
| 320 | matter hereof. If any provision of this License is held to be |
| 321 | unenforceable, such provision shall be reformed only to the extent |
| 322 | necessary to make it enforceable. Any law or regulation which provides |
| 323 | that the language of a contract shall be construed against the drafter |
| 324 | shall not be used to construe this License against a Contributor. |
| 325 | |
| 326 | 10. Versions of the License |
| 327 | --------------------------- |
| 328 | |
| 329 | 10.1. New Versions |
| 330 | |
| 331 | Mozilla Foundation is the license steward. Except as provided in Section |
| 332 | 10.3, no one other than the license steward has the right to modify or |
| 333 | publish new versions of this License. Each version will be given a |
| 334 | distinguishing version number. |
| 335 | |
| 336 | 10.2. Effect of New Versions |
| 337 | |
| 338 | You may distribute the Covered Software under the terms of the version |
| 339 | of the License under which You originally received the Covered Software, |
| 340 | or under the terms of any subsequent version published by the license |
| 341 | steward. |
| 342 | |
| 343 | 10.3. Modified Versions |
| 344 | |
| 345 | If you create software not governed by this License, and you want to |
| 346 | create a new license for such software, you may create and use a |
| 347 | modified version of this License if you rename the license and remove |
| 348 | any references to the name of the license steward (except to note that |
| 349 | such modified license differs from this License). |
| 350 | |
| 351 | 10.4. Distributing Source Code Form that is Incompatible With Secondary |
| 352 | Licenses |
| 353 | |
| 354 | If You choose to distribute Source Code Form that is Incompatible With |
| 355 | Secondary Licenses under the terms of this version of the License, the |
| 356 | notice described in Exhibit B of this License must be attached. |
| 357 | |
| 358 | Exhibit 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 | |
| 365 | If it is not possible or desirable to put the notice in a particular |
| 366 | file, then You may include the notice in a location (such as a LICENSE |
| 367 | file in a relevant directory) where a recipient would be likely to look |
| 368 | for such a notice. |
| 369 | |
| 370 | You may add additional accurate notices of copyright ownership. |
| 371 | |
| 372 | Exhibit 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. |
Alistair Strachan | 0e3e4ad | 2018-08-31 11:08:09 -0700 | [diff] [blame] | 377 | |
| 378 | --------------------------------------------------------------------------- |
| 379 | kms++/src/modedb_cea.cpp |
| 380 | |
| 381 | From Linux kernel: drm_edid.c |
| 382 | |
| 383 | Copyright (c) 2006 Luc Verhaegen (quirks list) |
| 384 | Copyright (c) 2007-2008 Intel Corporation |
| 385 | Jesse Barnes <jesse.barnes@intel.com> |
| 386 | Copyright 2010 Red Hat, Inc. |
| 387 | |
| 388 | DDC probing routines (drm_ddc_read & drm_do_probe_ddc_edid) originally from |
| 389 | FB layer. |
| 390 | Copyright (C) 2006 Dennis Munsie <dmunsie@cecropia.com> |
| 391 | |
| 392 | Permission is hereby granted, free of charge, to any person obtaining a |
| 393 | copy of this software and associated documentation files (the "Software"), |
| 394 | to deal in the Software without restriction, including without limitation |
| 395 | the rights to use, copy, modify, merge, publish, distribute, sub license, |
| 396 | and/or sell copies of the Software, and to permit persons to whom the |
| 397 | Software is furnished to do so, subject to the following conditions: |
| 398 | |
| 399 | The above copyright notice and this permission notice (including the |
| 400 | next paragraph) shall be included in all copies or substantial portions |
| 401 | of the Software. |
| 402 | |
| 403 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 404 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 405 | FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL |
| 406 | THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 407 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
| 408 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
| 409 | DEALINGS IN THE SOFTWARE. |