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)
9 /***************************************************************************
10 * Copyright (C) 2007 Meilhaus Electronic GmbH (support@meilhaus.de) *
11 * Copyright (C) 2007 by Krzysztof Gantzke k.gantzke@meilhaus.de *
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. *
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. *
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 ***************************************************************************/
30 # define _MEFIRMWARE_H
34 #define ME_ERRNO_FIRMWARE -1
39 #define ME_XILINX_CS1_REG 0x00C8
45 #define ME_FIRMWARE_BUSY_FLAG 0x00000020
46 #define ME_FIRMWARE_DONE_FLAG 0x00000004
47 #define ME_FIRMWARE_CS_WRITE 0x00000100
49 #define ME_PLX_PCI_ACTIVATE 0x43
51 int me_xilinx_download(unsigned long register_base_control
,
52 unsigned long register_base_data
,
53 struct device
*dev
, const char *firmware_name
);
57 #endif //_MEFIRMWARE_H