2006-11-22 07:03:10 -06:00
|
|
|
/***************************************************************************
|
|
|
|
* Copyright (C) 2006 by Dominic Rath *
|
|
|
|
* Dominic.Rath@gmx.de *
|
|
|
|
* *
|
|
|
|
* This program is free software; you can redistribute it and/or modify *
|
|
|
|
* it under the terms of the GNU General Public License as published by *
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or *
|
|
|
|
* (at your option) any later version. *
|
|
|
|
* *
|
|
|
|
* This program is distributed in the hope that it will be useful, *
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
|
|
|
* GNU General Public License for more details. *
|
|
|
|
* *
|
|
|
|
* You should have received a copy of the GNU General Public License *
|
|
|
|
* along with this program; if not, write to the *
|
|
|
|
* Free Software Foundation, Inc., *
|
|
|
|
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
|
|
|
***************************************************************************/
|
2012-01-27 10:45:29 -06:00
|
|
|
|
2006-11-22 07:03:10 -06:00
|
|
|
#ifndef XILINX_BIT_H
|
|
|
|
#define XILINX_BIT_H
|
|
|
|
|
2012-01-27 10:45:29 -06:00
|
|
|
struct xilinx_bit_file {
|
2009-06-18 02:07:12 -05:00
|
|
|
uint8_t unknown_header[13];
|
|
|
|
uint8_t *source_file;
|
|
|
|
uint8_t *part_name;
|
|
|
|
uint8_t *date;
|
|
|
|
uint8_t *time;
|
2009-06-18 02:11:11 -05:00
|
|
|
uint32_t length;
|
2009-06-18 02:07:12 -05:00
|
|
|
uint8_t *data;
|
2009-11-13 10:14:54 -06:00
|
|
|
};
|
2006-11-22 07:03:10 -06:00
|
|
|
|
2009-11-13 10:14:54 -06:00
|
|
|
int xilinx_read_bit_file(struct xilinx_bit_file *bit_file, const char *filename);
|
2006-11-22 07:03:10 -06:00
|
|
|
|
2012-01-27 10:45:29 -06:00
|
|
|
#endif /* XILINX_BIT_H */
|