1*fb4d8502Sjsg /* 2*fb4d8502Sjsg * Copyright 2014 Advanced Micro Devices, Inc. 3*fb4d8502Sjsg * 4*fb4d8502Sjsg * Permission is hereby granted, free of charge, to any person obtaining a 5*fb4d8502Sjsg * copy of this software and associated documentation files (the "Software"), 6*fb4d8502Sjsg * to deal in the Software without restriction, including without limitation 7*fb4d8502Sjsg * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8*fb4d8502Sjsg * and/or sell copies of the Software, and to permit persons to whom the 9*fb4d8502Sjsg * Software is furnished to do so, subject to the following conditions: 10*fb4d8502Sjsg * 11*fb4d8502Sjsg * The above copyright notice and this permission notice shall be included in 12*fb4d8502Sjsg * all copies or substantial portions of the Software. 13*fb4d8502Sjsg * 14*fb4d8502Sjsg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15*fb4d8502Sjsg * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16*fb4d8502Sjsg * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 17*fb4d8502Sjsg * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR 18*fb4d8502Sjsg * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 19*fb4d8502Sjsg * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 20*fb4d8502Sjsg * OTHER DEALINGS IN THE SOFTWARE. 21*fb4d8502Sjsg * 22*fb4d8502Sjsg */ 23*fb4d8502Sjsg 24*fb4d8502Sjsg #ifndef __AMDGPU_I2C_H__ 25*fb4d8502Sjsg #define __AMDGPU_I2C_H__ 26*fb4d8502Sjsg 27*fb4d8502Sjsg struct amdgpu_i2c_chan *amdgpu_i2c_create(struct drm_device *dev, 28*fb4d8502Sjsg const struct amdgpu_i2c_bus_rec *rec, 29*fb4d8502Sjsg const char *name); 30*fb4d8502Sjsg void amdgpu_i2c_destroy(struct amdgpu_i2c_chan *i2c); 31*fb4d8502Sjsg void amdgpu_i2c_init(struct amdgpu_device *adev); 32*fb4d8502Sjsg void amdgpu_i2c_fini(struct amdgpu_device *adev); 33*fb4d8502Sjsg void amdgpu_i2c_add(struct amdgpu_device *adev, 34*fb4d8502Sjsg const struct amdgpu_i2c_bus_rec *rec, 35*fb4d8502Sjsg const char *name); 36*fb4d8502Sjsg struct amdgpu_i2c_chan * 37*fb4d8502Sjsg amdgpu_i2c_lookup(struct amdgpu_device *adev, 38*fb4d8502Sjsg const struct amdgpu_i2c_bus_rec *i2c_bus); 39*fb4d8502Sjsg void 40*fb4d8502Sjsg amdgpu_i2c_router_select_ddc_port(const struct amdgpu_connector *connector); 41*fb4d8502Sjsg void 42*fb4d8502Sjsg amdgpu_i2c_router_select_cd_port(const struct amdgpu_connector *connector); 43*fb4d8502Sjsg 44*fb4d8502Sjsg #endif 45