mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-23 19:14:30 +08:00
5f1d8970d4
Rationale: Reduces attack surface on kernel devs opening the links for MITM as HTTPS traffic is much harder to manipulate. Deterministic algorithm: For each file: If not .svg: For each line: If doesn't contain `\bxmlns\b`: For each link, `\bhttp://[^# \t\r\n]*(?:\w|/)`: If both the HTTP and HTTPS versions return 200 OK and serve the same content: Replace HTTP with HTTPS. Signed-off-by: Alexander A. Klimov <grandmaster@al2klimov.de> Link: https://lore.kernel.org/r/20200703175114.15027-1-grandmaster@al2klimov.de Signed-off-by: Stephen Boyd <sboyd@kernel.org>
55 lines
1.5 KiB
C
55 lines
1.5 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (C) 2003 Deep Blue Solutions, Ltd, All Rights Reserved.
|
|
*
|
|
* Support functions for calculating clocks/divisors for the ICST
|
|
* clock generators. See https://www.idt.com/ for more information
|
|
* on these devices.
|
|
*/
|
|
#ifndef ICST_H
|
|
#define ICST_H
|
|
|
|
struct icst_params {
|
|
unsigned long ref;
|
|
unsigned long vco_max; /* inclusive */
|
|
unsigned long vco_min; /* exclusive */
|
|
unsigned short vd_min; /* inclusive */
|
|
unsigned short vd_max; /* inclusive */
|
|
unsigned char rd_min; /* inclusive */
|
|
unsigned char rd_max; /* inclusive */
|
|
const unsigned char *s2div; /* chip specific s2div array */
|
|
const unsigned char *idx2s; /* chip specific idx2s array */
|
|
};
|
|
|
|
struct icst_vco {
|
|
unsigned short v;
|
|
unsigned char r;
|
|
unsigned char s;
|
|
};
|
|
|
|
unsigned long icst_hz(const struct icst_params *p, struct icst_vco vco);
|
|
struct icst_vco icst_hz_to_vco(const struct icst_params *p, unsigned long freq);
|
|
|
|
/*
|
|
* ICST307 VCO frequency must be between 6MHz and 200MHz (3.3 or 5V).
|
|
* This frequency is pre-output divider.
|
|
*/
|
|
#define ICST307_VCO_MIN 6000000
|
|
#define ICST307_VCO_MAX 200000000
|
|
|
|
extern const unsigned char icst307_s2div[];
|
|
extern const unsigned char icst307_idx2s[];
|
|
|
|
/*
|
|
* ICST525 VCO frequency must be between 10MHz and 200MHz (3V) or 320MHz (5V).
|
|
* This frequency is pre-output divider.
|
|
*/
|
|
#define ICST525_VCO_MIN 10000000
|
|
#define ICST525_VCO_MAX_3V 200000000
|
|
#define ICST525_VCO_MAX_5V 320000000
|
|
|
|
extern const unsigned char icst525_s2div[];
|
|
extern const unsigned char icst525_idx2s[];
|
|
|
|
#endif
|