2003-05-14 Marcel Telka <marcel@telka.sk>

* include/Makefile.am (noinst_HEADERS): Added cfi.h.
	* include/cfi.h: New file.
	* src/jtag.h (detect_cfi): Removed function declaration.
	* src/flash.c: Replaced jtag.h include with cfi.h.
	* src/readmem.c: Ditto.

	* src/flash/Makefile.am (libflash_a_SOURCES): Added cfi.c.
	* src/Makefie.am (jtag_SOURCES): Removed cfi.c.
	* src/cfi.c: Moved this file ...
	* src/flash/cfi.c: ... here and replaced jtag.h include with cfi.h one.


git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@427 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Marcel Telka 22 years ago
parent 2b5b2725b5
commit 246966636e

@ -1,3 +1,16 @@
2003-05-14 Marcel Telka <marcel@telka.sk>
* include/Makefile.am (noinst_HEADERS): Added cfi.h.
* include/cfi.h: New file.
* src/jtag.h (detect_cfi): Removed function declaration.
* src/flash.c: Replaced jtag.h include with cfi.h.
* src/readmem.c: Ditto.
* src/flash/Makefile.am (libflash_a_SOURCES): Added cfi.c.
* src/Makefie.am (jtag_SOURCES): Removed cfi.c.
* src/cfi.c: Moved this file ...
* src/flash/cfi.c: ... here and replaced jtag.h include with cfi.h one.
2003-05-14 Marcel Telka <marcel@telka.sk>
* include/part.h (part_t, parts_t): Macros removed.

@ -25,6 +25,7 @@ noinst_HEADERS = \
bsbit.h \
bus.h \
cable.h \
cfi.h \
chain.h \
data_register.h \
flash.h \

@ -0,0 +1,34 @@
/*
* $Id$
*
* Copyright (C) 2003 ETC s.r.o.
*
* 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.
*
* Written by Marcel Telka <marcel@telka.sk>, 2003.
*
*/
#ifndef CFI_H
#define CFI_H
#include <flash/cfi.h>
#include "bus.h"
cfi_query_structure_t *detect_cfi( bus_t *bus );
#endif /* CFI_H */

@ -38,7 +38,6 @@ jtag_SOURCES = \
detect.c \
discovery.c \
readmem.c \
cfi.c \
flash.c \
help.c

@ -43,8 +43,7 @@
#include "bus.h"
#include "flash.h"
#include "jtag.h"
#include "cfi.h"
extern flash_driver_t amd_32_flash_driver;
extern flash_driver_t intel_32_flash_driver;

@ -24,5 +24,6 @@
noinst_LIBRARIES = libflash.a
libflash_a_SOURCES = \
cfi.c \
amd.c \
intel.c

@ -32,7 +32,7 @@
#include <stdlib.h>
#include <flash/cfi.h>
#include "jtag.h"
#include "cfi.h"
#include "bus.h"
/* function to cover 2x16 and 1x16 modes */

@ -44,6 +44,4 @@ void help( const char *cmd );
void discovery( chain_t *chain, const char *filename );
cfi_query_structure_t *detect_cfi( bus_t *bus );
#endif /* JTAG_H */

@ -38,11 +38,10 @@
#include <flash/intel.h>
#include <std/mic.h>
#include "jtag.h"
#include <arpa/inet.h>
/* for ntohs */
#include "cfi.h"
#include "bus.h"
#include "flash.h"

Loading…
Cancel
Save