/*1* i2c-core.h - interfaces internal to the I2C framework2*3* This program is free software; you can redistribute it and/or modify4* it under the terms of the GNU General Public License as published by5* the Free Software Foundation; either version 2 of the License, or6* (at your option) any later version.7*8* This program is distributed in the hope that it will be useful,9* but WITHOUT ANY WARRANTY; without even the implied warranty of10* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the11* GNU General Public License for more details.12*13* You should have received a copy of the GNU General Public License14* along with this program; if not, write to the Free Software15* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.16*/1718#include <linux/rwsem.h>1920struct i2c_devinfo {21struct list_head list;22int busnum;23struct i2c_board_info board_info;24};2526/* board_lock protects board_list and first_dynamic_bus_num.27* only i2c core components are allowed to use these symbols.28*/29extern struct rw_semaphore __i2c_board_lock;30extern struct list_head __i2c_board_list;31extern int __i2c_first_dynamic_bus_num;32333435