/*1* USB-PD driver for Nintendo Switch's TI BM92T362*3* Copyright (c) 2020 CTCaer4*5* This program is free software; you can redistribute it and/or modify it6* under the terms and conditions of the GNU General Public License,7* version 2, as published by the Free Software Foundation.8*9* This program is distributed in the hope it will be useful, but WITHOUT10* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or11* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for12* more details.13*14* You should have received a copy of the GNU General Public License15* along with this program. If not, see <http://www.gnu.org/licenses/>.16*/1718#ifndef __BM92T36_H_19#define __BM92T36_H_2021#include <utils/types.h>2223#define BM92T36_I2C_ADDR 0x182425typedef struct _usb_pd_object_t26{27u32 amperage;28u32 voltage;29} usb_pd_object_t;3031typedef struct _usb_pd_objects_t32{33u32 pdo_no;34usb_pd_object_t pdos[7];35usb_pd_object_t selected_pdo;36} usb_pd_objects_t;3738void bm92t36_get_sink_info(bool *inserted, usb_pd_objects_t *usb_pd);3940#endif414243