mm-only debug patch...
[mmotm.git] / drivers / spi / xilinx_spi.h
blobe0ad67e80b9bc26757553ad6b851ac7966ad39b7
1 /*
2 * xilinx_spi.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 #ifndef _XILINX_SPI_H_
20 #define _XILINX_SPI_H_ 1
22 #include <linux/spi/spi.h>
23 #include <linux/spi/spi_bitbang.h>
24 #include <linux/spi/xilinx_spi.h>
26 #define XILINX_SPI_NAME "xilinx_spi"
28 struct spi_master *xilinx_spi_init(struct device *dev, struct resource *mem,
29 u32 irq, s16 bus_num, u16 num_chipselect, u8 bits_per_word,
30 bool big_endian);
32 void xilinx_spi_deinit(struct spi_master *master);
33 #endif