Exploit databaseDownload repository ZIP
GH-a4473dcd9930d1ae4c0775adc06b1cfb
satheesh575555/linux-4.19.72_cve-2022-36946
Sources for CVE-2022-36946
2 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files66
satheesh575555/linux-4.19.72_cve-2022-36946Revision 34cc7d8183fd
- ↑..Parent directory
- association.h
- audio-v2.h
- audio-v3.h
- audio.h
- c67x00.h
- cdc-wdm.h
- cdc.h
- cdc_ncm.h
- ch9.h
- chipidea.h
- composite.h
- ehci-dbgp.h
- ehci_def.h
- ehci_pdriver.h
- ezusb.h
- functionfs.h
- g_hid.h
- gadget.h
- gadget_configfs.h
- gpio_vbus.h
- hcd.h
- input.h
- iowarrior.h
- irda.h
- isp116x.h
- isp1301.h
- isp1362.h
- isp1760.h
- m66592.h
- musb-ux500.h
- musb.h
- net2280.h
- of.h
- ohci_pdriver.h
- otg-fsm.h
- otg.h
- pd.h
- pd_ado.h
- pd_bdo.h
- pd_ext_sdb.h
- pd_vdo.h
- phy.h
- phy_companion.h
- quirks.h
- r8a66597.h
- renesas_usbhs.h
- rndis_host.h
- role.h
- samsung_usb_phy.h
- serial.h
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
include/linux/usb/pd_ado.h
Text · 1,191 bytes// SPDX-License-Identifier: GPL-2.0+
/*
* Copyright (c) 2017 Dialog Semiconductor
*
* Author: Adam Thomson <[email protected]>
*/
#ifndef __LINUX_USB_PD_ADO_H
#define __LINUX_USB_PD_ADO_H
/* ADO : Alert Data Object */
#define USB_PD_ADO_TYPE_SHIFT 24
#define USB_PD_ADO_TYPE_MASK 0xff
#define USB_PD_ADO_FIXED_BATT_SHIFT 20
#define USB_PD_ADO_FIXED_BATT_MASK 0xf
#define USB_PD_ADO_HOT_SWAP_BATT_SHIFT 16
#define USB_PD_ADO_HOT_SWAP_BATT_MASK 0xf
#define USB_PD_ADO_TYPE_BATT_STATUS_CHANGE BIT(1)
#define USB_PD_ADO_TYPE_OCP BIT(2)
#define USB_PD_ADO_TYPE_OTP BIT(3)
#define USB_PD_ADO_TYPE_OP_COND_CHANGE BIT(4)
#define USB_PD_ADO_TYPE_SRC_INPUT_CHANGE BIT(5)
#define USB_PD_ADO_TYPE_OVP BIT(6)
static inline unsigned int usb_pd_ado_type(u32 ado)
{
return (ado >> USB_PD_ADO_TYPE_SHIFT) & USB_PD_ADO_TYPE_MASK;
}
static inline unsigned int usb_pd_ado_fixed_batt(u32 ado)
{
return (ado >> USB_PD_ADO_FIXED_BATT_SHIFT) &
USB_PD_ADO_FIXED_BATT_MASK;
}
static inline unsigned int usb_pd_ado_hot_swap_batt(u32 ado)
{
return (ado >> USB_PD_ADO_HOT_SWAP_BATT_SHIFT) &
USB_PD_ADO_HOT_SWAP_BATT_MASK;
}
#endif /* __LINUX_USB_PD_ADO_H */