[libata] pata_ali: Use IGN_SIMPLEX
[safe/jmp/linux-2.6] / drivers / staging / meilhaus / mefirmware.h
1 /**
2  * @file mefirmware.h
3  *
4  * @brief Definitions of the firmware handling functions.
5  * @note Copyright (C) 2007 Meilhaus Electronic GmbH (support@meilhaus.de)
6  * @author Krzysztof Gantzke    (k.gantzke@meilhaus.de)
7  */
8
9 /***************************************************************************
10  *   Copyright (C) 2007 Meilhaus Electronic GmbH (support@meilhaus.de)     *
11  *   Copyright (C) 2007 by Krzysztof Gantzke k.gantzke@meilhaus.de         *
12  *                                                                         *
13  *   This program is free software; you can redistribute it and/or modify  *
14  *   it under the terms of the GNU General Public License as published by  *
15  *   the Free Software Foundation; either version 2 of the License, or     *
16  *   (at your option) any later version.                                   *
17  *                                                                         *
18  *   This program is distributed in the hope that it will be useful,       *
19  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
20  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
21  *   GNU General Public License for more details.                          *
22  *                                                                         *
23  *   You should have received a copy of the GNU General Public License     *
24  *   along with this program; if not, write to the                         *
25  *   Free Software Foundation, Inc.,                                       *
26  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
27  ***************************************************************************/
28
29 #ifndef _MEFIRMWARE_H
30 # define _MEFIRMWARE_H
31
32 # ifdef __KERNEL__
33
34 #define ME_ERRNO_FIRMWARE               -1
35
36 /**
37 * Registry
38 */
39 #define ME_XILINX_CS1_REG               0x00C8
40
41 /**
42 * Flags (bits)
43 */
44
45 #define ME_FIRMWARE_BUSY_FLAG   0x00000020
46 #define ME_FIRMWARE_DONE_FLAG   0x00000004
47 #define ME_FIRMWARE_CS_WRITE    0x00000100
48
49 #define ME_PLX_PCI_ACTIVATE             0x43
50
51 int me_xilinx_download(unsigned long register_base_control,
52                        unsigned long register_base_data,
53                        struct device *dev, const char *firmware_name);
54
55 # endif //__KERNEL__
56
57 #endif //_MEFIRMWARE_H