1 // SPDX-License-Identifier: GPL-2.0+ 2 /* 3 * Copyright (c) 2017 Dialog Semiconductor 4 * 5 * Author: Adam Thomson <Adam.Thomson.Opensource@diasemi.com> 6 */ 7 8 #ifndef __LINUX_USB_PD_EXT_SDB_H 9 #define __LINUX_USB_PD_EXT_SDB_H 10 11 /* SDB : Status Data Block */ 12 enum usb_pd_ext_sdb_fields { 13 USB_PD_EXT_SDB_INTERNAL_TEMP = 0, 14 USB_PD_EXT_SDB_PRESENT_INPUT, 15 USB_PD_EXT_SDB_PRESENT_BATT_INPUT, 16 USB_PD_EXT_SDB_EVENT_FLAGS, 17 USB_PD_EXT_SDB_TEMP_STATUS, 18 USB_PD_EXT_SDB_DATA_SIZE, 19 }; 20 21 /* Event Flags */ 22 #define USB_PD_EXT_SDB_EVENT_OCP BIT(1) 23 #define USB_PD_EXT_SDB_EVENT_OTP BIT(2) 24 #define USB_PD_EXT_SDB_EVENT_OVP BIT(3) 25 #define USB_PD_EXT_SDB_EVENT_CF_CV_MODE BIT(4) 26 27 #endif /* __LINUX_USB_PD_EXT_SDB_H */ 28