11.1Sriastrad/*	$NetBSD: atombios_i2c.h,v 1.3 2021/12/18 23:44:58 riastradh Exp $	*/
21.1Sriastrad
31.1Sriastrad/*
41.1Sriastrad * Copyright 2014 Advanced Micro Devices, Inc.
51.1Sriastrad *
61.1Sriastrad * Permission is hereby granted, free of charge, to any person obtaining a
71.1Sriastrad * copy of this software and associated documentation files (the "Software"),
81.1Sriastrad * to deal in the Software without restriction, including without limitation
91.1Sriastrad * the rights to use, copy, modify, merge, publish, distribute, sublicense,
101.1Sriastrad * and/or sell copies of the Software, and to permit persons to whom the
111.1Sriastrad * Software is furnished to do so, subject to the following conditions:
121.1Sriastrad *
131.1Sriastrad * The above copyright notice and this permission notice shall be included in
141.1Sriastrad * all copies or substantial portions of the Software.
151.1Sriastrad *
161.1Sriastrad * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
171.1Sriastrad * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
181.1Sriastrad * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
191.1Sriastrad * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
201.1Sriastrad * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
211.1Sriastrad * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
221.1Sriastrad * OTHER DEALINGS IN THE SOFTWARE.
231.1Sriastrad *
241.1Sriastrad */
251.1Sriastrad
261.1Sriastrad#ifndef __ATOMBIOS_I2C_H__
271.1Sriastrad#define __ATOMBIOS_I2C_H__
281.1Sriastrad
291.1Sriastradint amdgpu_atombios_i2c_xfer(struct i2c_adapter *i2c_adap,
301.1Sriastrad		      struct i2c_msg *msgs, int num);
311.1Sriastradu32 amdgpu_atombios_i2c_func(struct i2c_adapter *adap);
321.3Sriastradvoid amdgpu_atombios_i2c_channel_trans(struct amdgpu_device* adev,
331.3Sriastrad		u8 slave_addr, u8 line_number, u8 offset, u8 data);
341.1Sriastrad
351.1Sriastrad#endif
36