![Greg Kroah-Hartman](/assets/img/avatar_default.png)
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>
258 lines
7.9 KiB
C
258 lines
7.9 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _VB_DEF_
|
|
#define _VB_DEF_
|
|
#include "../../video/fbdev/sis/initdef.h"
|
|
|
|
#define VB_XGI301C 0x0020 /* for 301C */
|
|
|
|
#define SupportCRT2in301C 0x0100 /* for 301C */
|
|
#define SetCHTVOverScan 0x8000
|
|
|
|
#define PanelResInfo 0x1F /* CR36 Panel Type/LCDResInfo */
|
|
#define Panel_1024x768x75 0x22
|
|
#define Panel_1280x1024x75 0x23
|
|
|
|
#define PanelRef60Hz 0x00
|
|
#define PanelRef75Hz 0x20
|
|
|
|
#define YPbPr525iVCLK 0x03B
|
|
#define YPbPr525iVCLK_2 0x03A
|
|
|
|
#define XGI_CRT2_PORT_00 (0x00 - 0x030)
|
|
|
|
#define SupportAllCRT2 0x0078
|
|
#define NoSupportTV 0x0070
|
|
#define NoSupportHiVisionTV 0x0060
|
|
#define NoSupportLCD 0x0058
|
|
|
|
/* -------------- SetMode Stack/Scratch */
|
|
#define XGI_SetCRT2ToLCDA 0x0100
|
|
#define SetCRT2ToDualEdge 0x8000
|
|
|
|
#define ReserveTVOption 0x0008
|
|
|
|
#define SetTVLowResolution 0x0400
|
|
#define TVSimuMode 0x0800
|
|
#define RPLLDIV2XO 0x1000
|
|
#define NTSC1024x768 0x2000
|
|
#define SetTVLockMode 0x4000
|
|
|
|
#define XGI_LCDVESATiming 0x0001 /* LCD Info/CR37 */
|
|
#define XGI_EnableLVDSDDA 0x0002
|
|
#define EnableScalingLCD 0x0008
|
|
#define SetPWDEnable 0x0004
|
|
#define SetLCDtoNonExpanding 0x0010
|
|
#define SetLCDDualLink 0x0100
|
|
#define SetLCDLowResolution 0x0200
|
|
|
|
/* LCD Capability shampoo */
|
|
#define DefaultLCDCap 0x80ea
|
|
#define EnableLCD24bpp 0x0004 /* default */
|
|
#define LCDPolarity 0x00c0 /* default: SyncNN */
|
|
#define XGI_LCDDualLink 0x0100
|
|
#define EnableSpectrum 0x0200
|
|
#define PWDEnable 0x0400
|
|
#define EnableVBCLKDRVLOW 0x4000
|
|
#define EnablePLLSPLOW 0x8000
|
|
|
|
#define AVIDEOSense 0x01 /* CR32 */
|
|
#define SVIDEOSense 0x02
|
|
#define SCARTSense 0x04
|
|
#define LCDSense 0x08
|
|
#define Monitor2Sense 0x10
|
|
#define Monitor1Sense 0x20
|
|
#define HiTVSense 0x40
|
|
|
|
#define YPbPrSense 0x80 /* NEW SCRATCH */
|
|
|
|
#define TVSense 0xc7
|
|
|
|
#define YPbPrMode 0xe0
|
|
#define YPbPrMode525i 0x00
|
|
#define YPbPrMode525p 0x20
|
|
#define YPbPrMode750p 0x40
|
|
#define YPbPrMode1080i 0x60
|
|
|
|
#define ScalingLCD 0x08
|
|
|
|
#define SetYPbPr 0x04
|
|
|
|
/* ---------------------- VUMA Information */
|
|
#define DisplayDeviceFromCMOS 0x10
|
|
|
|
/* ---------------------- HK Evnet Definition */
|
|
#define XGI_ModeSwitchStatus 0xf0
|
|
#define ActiveCRT1 0x10
|
|
#define ActiveLCD 0x0020
|
|
#define ActiveTV 0x40
|
|
#define ActiveCRT2 0x80
|
|
|
|
#define ActiveAVideo 0x01
|
|
#define ActiveSVideo 0x02
|
|
#define ActiveSCART 0x04
|
|
#define ActiveHiTV 0x08
|
|
#define ActiveYPbPr 0x10
|
|
|
|
#define NTSC1024x768HT 1908
|
|
|
|
#define YPbPrTV525iHT 1716 /* YPbPr */
|
|
#define YPbPrTV525iVT 525
|
|
#define YPbPrTV525pHT 1716
|
|
#define YPbPrTV525pVT 525
|
|
#define YPbPrTV750pHT 1650
|
|
#define YPbPrTV750pVT 750
|
|
|
|
#define VCLK25_175 0x00
|
|
#define VCLK28_322 0x01
|
|
#define VCLK31_5 0x02
|
|
#define VCLK36 0x03
|
|
#define VCLK43_163 0x05
|
|
#define VCLK44_9 0x06
|
|
#define VCLK49_5 0x07
|
|
#define VCLK50 0x08
|
|
#define VCLK52_406 0x09
|
|
#define VCLK56_25 0x0A
|
|
#define VCLK68_179 0x0D
|
|
#define VCLK72_852 0x0E
|
|
#define VCLK75 0x0F
|
|
#define VCLK78_75 0x11
|
|
#define VCLK79_411 0x12
|
|
#define VCLK83_95 0x13
|
|
#define VCLK86_6 0x15
|
|
#define VCLK94_5 0x16
|
|
#define VCLK113_309 0x1B
|
|
#define VCLK116_406 0x1C
|
|
#define VCLK135_5 0x1E
|
|
#define VCLK139_054 0x1F
|
|
#define VCLK157_5 0x20
|
|
#define VCLK162 0x21
|
|
#define VCLK175 0x22
|
|
#define VCLK189 0x23
|
|
#define VCLK202_5 0x25
|
|
#define VCLK229_5 0x26
|
|
#define VCLK234 0x27
|
|
#define VCLK254_817 0x29
|
|
#define VCLK266_952 0x2B
|
|
#define VCLK269_655 0x2C
|
|
#define VCLK277_015 0x2E
|
|
#define VCLK291_132 0x30
|
|
#define VCLK291_766 0x31
|
|
#define VCLK315_195 0x33
|
|
#define VCLK323_586 0x34
|
|
#define VCLK330_615 0x35
|
|
#define VCLK340_477 0x37
|
|
#define VCLK375_847 0x38
|
|
#define VCLK388_631 0x39
|
|
#define VCLK125_999 0x51
|
|
#define VCLK148_5 0x52
|
|
#define VCLK217_325 0x55
|
|
#define XGI_YPbPr750pVCLK 0x57
|
|
|
|
#define VCLK39_77 0x40
|
|
#define YPbPr525pVCLK 0x3A
|
|
#define NTSC1024VCLK 0x41
|
|
#define VCLK35_2 0x49 /* ; 800x480 */
|
|
#define VCLK122_61 0x4A
|
|
#define VCLK80_350 0x4B
|
|
#define VCLK107_385 0x4C
|
|
|
|
#define RES320x200 0x00
|
|
#define RES320x240 0x01
|
|
#define RES400x300 0x02
|
|
#define RES512x384 0x03
|
|
#define RES640x400 0x04
|
|
#define RES640x480x60 0x05
|
|
#define RES640x480x72 0x06
|
|
#define RES640x480x75 0x07
|
|
#define RES640x480x85 0x08
|
|
#define RES640x480x100 0x09
|
|
#define RES640x480x120 0x0A
|
|
#define RES640x480x160 0x0B
|
|
#define RES640x480x200 0x0C
|
|
#define RES800x600x56 0x0D
|
|
#define RES800x600x60 0x0E
|
|
#define RES800x600x72 0x0F
|
|
#define RES800x600x75 0x10
|
|
#define RES800x600x85 0x11
|
|
#define RES800x600x100 0x12
|
|
#define RES800x600x120 0x13
|
|
#define RES800x600x160 0x14
|
|
#define RES1024x768x43 0x15
|
|
#define RES1024x768x60 0x16
|
|
#define RES1024x768x70 0x17
|
|
#define RES1024x768x75 0x18
|
|
#define RES1024x768x85 0x19
|
|
#define RES1024x768x100 0x1A
|
|
#define RES1024x768x120 0x1B
|
|
#define RES1280x1024x43 0x1C
|
|
#define RES1280x1024x60 0x1D
|
|
#define RES1280x1024x75 0x1E
|
|
#define RES1280x1024x85 0x1F
|
|
#define RES1600x1200x60 0x20
|
|
#define RES1600x1200x65 0x21
|
|
#define RES1600x1200x70 0x22
|
|
#define RES1600x1200x75 0x23
|
|
#define RES1600x1200x85 0x24
|
|
#define RES1600x1200x100 0x25
|
|
#define RES1600x1200x120 0x26
|
|
#define RES1920x1440x60 0x27
|
|
#define RES1920x1440x65 0x28
|
|
#define RES1920x1440x70 0x29
|
|
#define RES1920x1440x75 0x2A
|
|
#define RES1920x1440x85 0x2B
|
|
#define RES1920x1440x100 0x2C
|
|
#define RES2048x1536x60 0x2D
|
|
#define RES2048x1536x65 0x2E
|
|
#define RES2048x1536x70 0x2F
|
|
#define RES2048x1536x75 0x30
|
|
#define RES2048x1536x85 0x31
|
|
#define RES800x480x60 0x32
|
|
#define RES800x480x75 0x33
|
|
#define RES800x480x85 0x34
|
|
#define RES1024x576x60 0x35
|
|
#define RES1024x576x75 0x36
|
|
#define RES1024x576x85 0x37
|
|
#define RES1280x720x60 0x38
|
|
#define RES1280x720x75 0x39
|
|
#define RES1280x720x85 0x3A
|
|
#define RES1280x960x60 0x3B
|
|
#define RES720x480x60 0x3C
|
|
#define RES720x576x56 0x3D
|
|
#define RES856x480x79I 0x3E
|
|
#define RES856x480x60 0x3F
|
|
#define RES1280x768x60 0x40
|
|
#define RES1400x1050x60 0x41
|
|
#define RES1152x864x60 0x42
|
|
#define RES1152x864x75 0x43
|
|
#define RES1024x768x160 0x44
|
|
#define RES1280x960x75 0x45
|
|
#define RES1280x960x85 0x46
|
|
#define RES1280x960x120 0x47
|
|
|
|
#define XG27_CR8F 0x0C
|
|
#define XG27_SR36 0x30
|
|
#define XG27_SR40 0x04
|
|
#define XG27_SR41 0x00
|
|
#define XG40_CRCF 0x13
|
|
#define XGI330_CRT2Data_1_2 0
|
|
#define XGI330_CRT2Data_4_D 0
|
|
#define XGI330_CRT2Data_4_E 0
|
|
#define XGI330_CRT2Data_4_10 0x80
|
|
#define XGI330_SR07 0x18
|
|
#define XGI330_SR1F 0
|
|
#define XGI330_SR23 0xf6
|
|
#define XGI330_SR24 0x0d
|
|
#define XGI330_SR31 0xc0
|
|
#define XGI330_SR32 0x11
|
|
#define XGI330_SR33 0
|
|
|
|
extern const struct XGI_ExtStruct XGI330_EModeIDTable[];
|
|
extern const struct XGI_Ext2Struct XGI330_RefIndex[];
|
|
extern const struct XGI_CRT1TableStruct XGI_CRT1Table[];
|
|
extern const struct XGI_ECLKDataStruct XGI340_ECLKData[];
|
|
extern const struct SiS_VCLKData XGI_VCLKData[];
|
|
extern const unsigned char XGI340_CR6B[][4];
|
|
extern const unsigned char XGI340_AGPReg[];
|
|
|
|
#endif
|