mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 03:48:59 +00:00
b24413180f
Many source files in the tree are missing licensing information, which makes it harder for compliance tools to determine the correct license. By default all files without license information are under the default license of the kernel, which is GPL version 2. Update the files which contain no license information with the 'GPL-2.0' SPDX license identifier. The SPDX identifier is a legally binding shorthand, which can be used instead of the full boiler plate text. This patch is based on work done by Thomas Gleixner and Kate Stewart and Philippe Ombredanne. How this work was done: Patches were generated and checked against linux-4.14-rc6 for a subset of the use cases: - file had no licensing information it it. - file was a */uapi/* one with no licensing information in it, - file was a */uapi/* one with existing licensing information, Further patches will be generated in subsequent months to fix up cases where non-standard license headers were used, and references to license had to be inferred by heuristics based on keywords. The analysis to determine which SPDX License Identifier to be applied to a file was done in a spreadsheet of side by side results from of the output of two independent scanners (ScanCode & Windriver) producing SPDX tag:value files created by Philippe Ombredanne. Philippe prepared the base worksheet, and did an initial spot review of a few 1000 files. The 4.13 kernel was the starting point of the analysis with 60,537 files assessed. Kate Stewart did a file by file comparison of the scanner results in the spreadsheet to determine which SPDX license identifier(s) to be applied to the file. She confirmed any determination that was not immediately clear with lawyers working with the Linux Foundation. Criteria used to select files for SPDX license identifier tagging was: - Files considered eligible had to be source code files. - Make and config files were included as candidates if they contained >5 lines of source - File already had some variant of a license header in it (even if <5 lines). All documentation files were explicitly excluded. The following heuristics were used to determine which SPDX license identifiers to apply. - when both scanners couldn't find any license traces, file was considered to have no license information in it, and the top level COPYING file license applied. For non */uapi/* files that summary was: SPDX license identifier # files ---------------------------------------------------|------- GPL-2.0 11139 and resulted in the first patch in this series. If that file was a */uapi/* path one, it was "GPL-2.0 WITH Linux-syscall-note" otherwise it was "GPL-2.0". Results of that was: SPDX license identifier # files ---------------------------------------------------|------- GPL-2.0 WITH Linux-syscall-note 930 and resulted in the second patch in this series. - if a file had some form of licensing information in it, and was one of the */uapi/* ones, it was denoted with the Linux-syscall-note if any GPL family license was found in the file or had no licensing in it (per prior point). Results summary: SPDX license identifier # files ---------------------------------------------------|------ GPL-2.0 WITH Linux-syscall-note 270 GPL-2.0+ WITH Linux-syscall-note 169 ((GPL-2.0 WITH Linux-syscall-note) OR BSD-2-Clause) 21 ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 17 LGPL-2.1+ WITH Linux-syscall-note 15 GPL-1.0+ WITH Linux-syscall-note 14 ((GPL-2.0+ WITH Linux-syscall-note) OR BSD-3-Clause) 5 LGPL-2.0+ WITH Linux-syscall-note 4 LGPL-2.1 WITH Linux-syscall-note 3 ((GPL-2.0 WITH Linux-syscall-note) OR MIT) 3 ((GPL-2.0 WITH Linux-syscall-note) AND MIT) 1 and that resulted in the third patch in this series. - when the two scanners agreed on the detected license(s), that became the concluded license(s). - when there was disagreement between the two scanners (one detected a license but the other didn't, or they both detected different licenses) a manual inspection of the file occurred. - In most cases a manual inspection of the information in the file resulted in a clear resolution of the license that should apply (and which scanner probably needed to revisit its heuristics). - When it was not immediately clear, the license identifier was confirmed with lawyers working with the Linux Foundation. - If there was any question as to the appropriate license identifier, the file was flagged for further research and to be revisited later in time. In total, over 70 hours of logged manual review was done on the spreadsheet to determine the SPDX license identifiers to apply to the source files by Kate, Philippe, Thomas and, in some cases, confirmation by lawyers working with the Linux Foundation. Kate also obtained a third independent scan of the 4.13 code base from FOSSology, and compared selected files where the other two scanners disagreed against that SPDX file, to see if there was new insights. The Windriver scanner is based on an older version of FOSSology in part, so they are related. Thomas did random spot checks in about 500 files from the spreadsheets for the uapi headers and agreed with SPDX license identifier in the files he inspected. For the non-uapi files Thomas did random spot checks in about 15000 files. In initial set of patches against 4.14-rc6, 3 files were found to have copy/paste license identifier errors, and have been fixed to reflect the correct identifier. Additionally Philippe spent 10 hours this week doing a detailed manual inspection and review of the 12,461 patched files from the initial patch version early this week with: - a full scancode scan run, collecting the matched texts, detected license ids and scores - reviewing anything where there was a license detected (about 500+ files) to ensure that the applied SPDX license was correct - reviewing anything where there was no detection but the patch license was not GPL-2.0 WITH Linux-syscall-note to ensure that the applied SPDX license was correct This produced a worksheet with 20 files needing minor correction. This worksheet was then exported into 3 different .csv files for the different types of files to be modified. These .csv files were then reviewed by Greg. Thomas wrote a script to parse the csv files and add the proper SPDX tag to the file, in the format that the file expected. This script was further refined by Greg based on the output to detect more types of files automatically and to distinguish between header and source .c files (which need different comment types.) Finally Greg ran the script using the .csv files to generate the patches. Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org> Reviewed-by: Philippe Ombredanne <pombredanne@nexb.com> Reviewed-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
161 lines
6.8 KiB
C
161 lines
6.8 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _CARMINEFB_REGS_H
|
|
#define _CARMINEFB_REGS_H
|
|
|
|
#define CARMINE_OVERLAY_EXT_MODE (0x00000002)
|
|
#define CARMINE_GRAPH_REG (0x00000000)
|
|
#define CARMINE_DISP0_REG (0x00100000)
|
|
#define CARMINE_DISP1_REG (0x00140000)
|
|
#define CARMINE_WB_REG (0x00180000)
|
|
#define CARMINE_DCTL_REG (0x00300000)
|
|
#define CARMINE_CTL_REG (0x00400000)
|
|
#define CARMINE_WINDOW_MODE (0x00000001)
|
|
#define CARMINE_EXTEND_MODE (CARMINE_WINDOW_MODE | \
|
|
CARMINE_OVERLAY_EXT_MODE)
|
|
#define CARMINE_L0E (1 << 16)
|
|
#define CARMINE_L2E (1 << 18)
|
|
#define CARMINE_DEN (1 << 31)
|
|
|
|
#define CARMINE_EXT_CMODE_DIRECT24_RGBA (0xC0000000)
|
|
#define CARMINE_DCTL_REG_MODE_ADD (0x00)
|
|
#define CARMINE_DCTL_REG_SETTIME1_EMODE (0x04)
|
|
#define CARMINE_DCTL_REG_REFRESH_SETTIME2 (0x08)
|
|
#define CARMINE_DCTL_REG_RSV0_STATES (0x0C)
|
|
#define CARMINE_DCTL_REG_RSV2_RSV1 (0x10)
|
|
#define CARMINE_DCTL_REG_DDRIF2_DDRIF1 (0x14)
|
|
#define CARMINE_DCTL_REG_IOCONT1_IOCONT0 (0x24)
|
|
#define CARMINE_DCTL_REG_STATES_MASK (0x000F)
|
|
#define CARMINE_DCTL_INIT_WAIT_INTERVAL (1)
|
|
#define CARMINE_DCTL_INIT_WAIT_LIMIT (5000)
|
|
#define CARMINE_WB_REG_WBM_DEFAULT (0x0001c020)
|
|
#define CARMINE_DISP_REG_L0RM (0x1880)
|
|
#define CARMINE_DISP_REG_L0PX (0x1884)
|
|
#define CARMINE_DISP_REG_L0PY (0x1888)
|
|
#define CARMINE_DISP_REG_L2RM (0x18A0)
|
|
#define CARMINE_DISP_REG_L2PX (0x18A4)
|
|
#define CARMINE_DISP_REG_L2PY (0x18A8)
|
|
#define CARMINE_DISP_REG_L3RM (0x18B0)
|
|
#define CARMINE_DISP_REG_L3PX (0x18B4)
|
|
#define CARMINE_DISP_REG_L3PY (0x18B8)
|
|
#define CARMINE_DISP_REG_L4RM (0x18C0)
|
|
#define CARMINE_DISP_REG_L4PX (0x18C4)
|
|
#define CARMINE_DISP_REG_L4PY (0x18C8)
|
|
#define CARMINE_DISP_REG_L5RM (0x18D0)
|
|
#define CARMINE_DISP_REG_L5PX (0x18D4)
|
|
#define CARMINE_DISP_REG_L5PY (0x18D8)
|
|
#define CARMINE_DISP_REG_L6RM (0x1924)
|
|
#define CARMINE_DISP_REG_L6PX (0x1928)
|
|
#define CARMINE_DISP_REG_L6PY (0x192C)
|
|
#define CARMINE_DISP_REG_L7RM (0x1964)
|
|
#define CARMINE_DISP_REG_L7PX (0x1968)
|
|
#define CARMINE_DISP_REG_L7PY (0x196C)
|
|
#define CARMINE_WB_REG_WBM (0x0004)
|
|
#define CARMINE_DISP_HTP_SHIFT (16)
|
|
#define CARMINE_DISP_HDB_SHIFT (16)
|
|
#define CARMINE_DISP_HSW_SHIFT (16)
|
|
#define CARMINE_DISP_VSW_SHIFT (24)
|
|
#define CARMINE_DISP_VTR_SHIFT (16)
|
|
#define CARMINE_DISP_VDP_SHIFT (16)
|
|
#define CARMINE_CURSOR_CUTZ_MASK (0x00000100)
|
|
#define CARMINE_CURSOR0_PRIORITY_MASK (0x00010000)
|
|
#define CARMINE_CURSOR1_PRIORITY_MASK (0x00020000)
|
|
#define CARMINE_DISP_WIDTH_SHIFT (16)
|
|
#define CARMINE_DISP_WIN_H_SHIFT (16)
|
|
#define CARMINE_DISP_REG_H_TOTAL (0x0004)
|
|
#define CARMINE_DISP_REG_H_PERIOD (0x0008)
|
|
#define CARMINE_DISP_REG_V_H_W_H_POS (0x000C)
|
|
#define CARMINE_DISP_REG_V_TOTAL (0x0010)
|
|
#define CARMINE_DISP_REG_V_PERIOD_POS (0x0014)
|
|
#define CARMINE_DISP_REG_L0_MODE_W_H (0x0020)
|
|
#define CARMINE_DISP_REG_L0_ORG_ADR (0x0024)
|
|
#define CARMINE_DISP_REG_L0_DISP_ADR (0x0028)
|
|
#define CARMINE_DISP_REG_L0_DISP_POS (0x002C)
|
|
#define CARMINE_DISP_REG_L1_WIDTH (0x0030)
|
|
#define CARMINE_DISP_REG_L1_ORG_ADR (0x0034)
|
|
#define CARMINE_DISP_REG_L2_MODE_W_H (0x0040)
|
|
#define CARMINE_DISP_REG_L2_ORG_ADR1 (0x0044)
|
|
#define CARMINE_DISP_REG_L2_DISP_ADR1 (0x0048)
|
|
#define CARMINE_DISP_REG_L2_DISP_POS (0x0054)
|
|
#define CARMINE_DISP_REG_L3_MODE_W_H (0x0058)
|
|
#define CARMINE_DISP_REG_L3_ORG_ADR1 (0x005C)
|
|
#define CARMINE_DISP_REG_L3_DISP_ADR1 (0x0060)
|
|
#define CARMINE_DISP_REG_L3_DISP_POS (0x006C)
|
|
#define CARMINE_DISP_REG_L4_MODE_W_H (0x0070)
|
|
#define CARMINE_DISP_REG_L4_ORG_ADR1 (0x0074)
|
|
#define CARMINE_DISP_REG_L4_DISP_ADR1 (0x0078)
|
|
#define CARMINE_DISP_REG_L4_DISP_POS (0x0084)
|
|
#define CARMINE_DISP_REG_L5_MODE_W_H (0x0088)
|
|
#define CARMINE_DISP_REG_L5_ORG_ADR1 (0x008C)
|
|
#define CARMINE_DISP_REG_L5_DISP_ADR1 (0x0090)
|
|
#define CARMINE_DISP_REG_L5_DISP_POS (0x009C)
|
|
#define CARMINE_DISP_REG_CURSOR_MODE (0x00A0)
|
|
#define CARMINE_DISP_REG_CUR1_POS (0x00A8)
|
|
#define CARMINE_DISP_REG_CUR2_POS (0x00B0)
|
|
#define CARMINE_DISP_REG_C_TRANS (0x00BC)
|
|
#define CARMINE_DISP_REG_MLMR_TRANS (0x00C0)
|
|
#define CARMINE_DISP_REG_L0_EXT_MODE (0x0110)
|
|
#define CARMINE_DISP_REG_L0_WIN_POS (0x0114)
|
|
#define CARMINE_DISP_REG_L0_WIN_SIZE (0x0118)
|
|
#define CARMINE_DISP_REG_L1_EXT_MODE (0x0120)
|
|
#define CARMINE_DISP_REG_L1_WIN_POS (0x0124)
|
|
#define CARMINE_DISP_REG_L1_WIN_SIZE (0x0128)
|
|
#define CARMINE_DISP_REG_L2_EXT_MODE (0x0130)
|
|
#define CARMINE_DISP_REG_L2_WIN_POS (0x0134)
|
|
#define CARMINE_DISP_REG_L2_WIN_SIZE (0x0138)
|
|
#define CARMINE_DISP_REG_L3_EXT_MODE (0x0140)
|
|
#define CARMINE_DISP_REG_L3_WIN_POS (0x0144)
|
|
#define CARMINE_DISP_REG_L3_WIN_SIZE (0x0148)
|
|
#define CARMINE_DISP_REG_L4_EXT_MODE (0x0150)
|
|
#define CARMINE_DISP_REG_L4_WIN_POS (0x0154)
|
|
#define CARMINE_DISP_REG_L4_WIN_SIZE (0x0158)
|
|
#define CARMINE_DISP_REG_L5_EXT_MODE (0x0160)
|
|
#define CARMINE_DISP_REG_L5_WIN_POS (0x0164)
|
|
#define CARMINE_DISP_REG_L5_WIN_SIZE (0x0168)
|
|
#define CARMINE_DISP_REG_L6_EXT_MODE (0x1918)
|
|
#define CARMINE_DISP_REG_L6_WIN_POS (0x191c)
|
|
#define CARMINE_DISP_REG_L6_WIN_SIZE (0x1920)
|
|
#define CARMINE_DISP_REG_L7_EXT_MODE (0x1958)
|
|
#define CARMINE_DISP_REG_L7_WIN_POS (0x195c)
|
|
#define CARMINE_DISP_REG_L7_WIN_SIZE (0x1960)
|
|
#define CARMINE_DISP_REG_BLEND_MODE_L0 (0x00B4)
|
|
#define CARMINE_DISP_REG_BLEND_MODE_L1 (0x0188)
|
|
#define CARMINE_DISP_REG_BLEND_MODE_L2 (0x018C)
|
|
#define CARMINE_DISP_REG_BLEND_MODE_L3 (0x0190)
|
|
#define CARMINE_DISP_REG_BLEND_MODE_L4 (0x0194)
|
|
#define CARMINE_DISP_REG_BLEND_MODE_L5 (0x0198)
|
|
#define CARMINE_DISP_REG_BLEND_MODE_L6 (0x1990)
|
|
#define CARMINE_DISP_REG_BLEND_MODE_L7 (0x1994)
|
|
#define CARMINE_DISP_REG_L0_TRANS (0x01A0)
|
|
#define CARMINE_DISP_REG_L1_TRANS (0x01A4)
|
|
#define CARMINE_DISP_REG_L2_TRANS (0x01A8)
|
|
#define CARMINE_DISP_REG_L3_TRANS (0x01AC)
|
|
#define CARMINE_DISP_REG_L4_TRANS (0x01B0)
|
|
#define CARMINE_DISP_REG_L5_TRANS (0x01B4)
|
|
#define CARMINE_DISP_REG_L6_TRANS (0x1998)
|
|
#define CARMINE_DISP_REG_L7_TRANS (0x199c)
|
|
#define CARMINE_EXTEND_MODE_MASK (0x00000003)
|
|
#define CARMINE_DISP_DCM_MASK (0x0000FFFF)
|
|
#define CARMINE_DISP_REG_DCM1 (0x0100)
|
|
#define CARMINE_DISP_WIDTH_UNIT (64)
|
|
#define CARMINE_DISP_REG_L6_MODE_W_H (0x1900)
|
|
#define CARMINE_DISP_REG_L6_ORG_ADR1 (0x1904)
|
|
#define CARMINE_DISP_REG_L6_DISP_ADR0 (0x1908)
|
|
#define CARMINE_DISP_REG_L6_DISP_POS (0x1914)
|
|
#define CARMINE_DISP_REG_L7_MODE_W_H (0x1940)
|
|
#define CARMINE_DISP_REG_L7_ORG_ADR1 (0x1944)
|
|
#define CARMINE_DISP_REG_L7_DISP_ADR0 (0x1948)
|
|
#define CARMINE_DISP_REG_L7_DISP_POS (0x1954)
|
|
#define CARMINE_CTL_REG_CLOCK_ENABLE (0x000C)
|
|
#define CARMINE_CTL_REG_SOFTWARE_RESET (0x0010)
|
|
#define CARMINE_CTL_REG_IST_MASK_ALL (0x07FFFFFF)
|
|
#define CARMINE_GRAPH_REG_VRINTM (0x00028064)
|
|
#define CARMINE_GRAPH_REG_VRERRM (0x0002806C)
|
|
#define CARMINE_GRAPH_REG_DC_OFFSET_PX (0x0004005C)
|
|
#define CARMINE_GRAPH_REG_DC_OFFSET_PY (0x00040060)
|
|
#define CARMINE_GRAPH_REG_DC_OFFSET_LX (0x00040064)
|
|
#define CARMINE_GRAPH_REG_DC_OFFSET_LY (0x00040068)
|
|
#define CARMINE_GRAPH_REG_DC_OFFSET_TX (0x0004006C)
|
|
#define CARMINE_GRAPH_REG_DC_OFFSET_TY (0x00040070)
|
|
|
|
#endif
|