Exploit databaseDownload repository ZIP
GH-b6f78b211ff4ea5e7b3ebffe1f088758
abrarkhan/linux-4.19.72_cve-2020-24490
Sources for CVE-2020-24490
5 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files37
abrarkhan/linux-4.19.72_cve-2020-24490Revision aa3f6929b62b
- ↑..Parent directory
- si470x/
- si4713/
- wl128x/
- Kconfig
- Makefile
- dsbr100.c
- lm7000.h
- radio-aimslab.c
- radio-aztech.c
- radio-cadet.c
- radio-gemtek.c
- radio-isa.c
- radio-isa.h
- radio-keene.c
- radio-ma901.c
- radio-maxiradio.c
- radio-miropcm20.c
- radio-mr800.c
- radio-raremono.c
- radio-rtrack2.c
- radio-sf16fmi.c
- radio-sf16fmr2.c
- radio-shark.c
- radio-shark2.c
- radio-si476x.c
- radio-tea5764.c
- radio-tea5777.c
- radio-tea5777.h
- radio-terratec.c
- radio-timb.c
- radio-trust.c
- radio-typhoon.c
- radio-wl1273.c
- radio-zoltrix.c
- saa7706h.c
- tea575x.c
- tef6862.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
drivers/media/radio/lm7000.h
Text · 1,097 bytes/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __LM7000_H
#define __LM7000_H
/* Sanyo LM7000 tuner chip control
*
* Copyright 2012 Ondrej Zary <[email protected]>
* based on radio-aimslab.c by M. Kirkwood
* and radio-sf16fmi.c by M. Kirkwood and Petr Vandrovec
*/
#define LM7000_DATA (1 << 0)
#define LM7000_CLK (1 << 1)
#define LM7000_CE (1 << 2)
#define LM7000_FM_100 (0 << 20)
#define LM7000_FM_50 (1 << 20)
#define LM7000_FM_25 (2 << 20)
#define LM7000_BIT_FM (1 << 23)
static inline void lm7000_set_freq(u32 freq, void *handle,
void (*set_pins)(void *handle, u8 pins))
{
int i;
u8 data;
u32 val;
freq += 171200; /* Add 10.7 MHz IF */
freq /= 400; /* Convert to 25 kHz units */
val = freq | LM7000_FM_25 | LM7000_BIT_FM;
/* write the 24-bit register, starting with LSB */
for (i = 0; i < 24; i++) {
data = val & (1 << i) ? LM7000_DATA : 0;
set_pins(handle, data | LM7000_CE);
udelay(2);
set_pins(handle, data | LM7000_CE | LM7000_CLK);
udelay(2);
set_pins(handle, data | LM7000_CE);
udelay(2);
}
set_pins(handle, 0);
}
#endif /* __LM7000_H */