iwlwifi: fix dma mappings and skbs leak
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / include / linux / i2c-xiic.h
blob4f9f2256a97e09cc12530de80f6a5e077b06f47a
1 /*
2 * i2c-xiic.h
3 * Copyright (c) 2009 Intel Corporation
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 /* Supports:
20 * Xilinx IIC
23 #ifndef _LINUX_I2C_XIIC_H
24 #define _LINUX_I2C_XIIC_H
26 /**
27 * struct xiic_i2c_platform_data - Platform data of the Xilinx I2C driver
28 * @num_devices: Number of devices that shall be added when the driver
29 * is probed.
30 * @devices: The actuall devices to add.
32 * This purpose of this platform data struct is to be able to provide a number
33 * of devices that should be added to the I2C bus. The reason is that sometimes
34 * the I2C board info is not enough, a new PCI board can for instance be
35 * plugged into a standard PC, and the bus number might be unknown at
36 * early init time.
38 struct xiic_i2c_platform_data {
39 u8 num_devices;
40 struct i2c_board_info const *devices;
43 #endif /* _LINUX_I2C_XIIC_H */