2003-06-10 Marcel Telka <marcel@telka.sk>

* brux/flash.h (flash_driver_t): Added new type.


git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@481 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Marcel Telka 22 years ago
parent efcfe86d0c
commit 0557f615e1

@ -1,3 +1,7 @@
2003-06-10 Marcel Telka <marcel@telka.sk>
* brux/flash.h (flash_driver_t): Added new type.
2003-06-10 Marcel Telka <marcel@telka.sk>
* brux/bus.h (bus_t): Changed return type from int to unsigned int for width().

@ -38,6 +38,19 @@
#include <stdint.h>
#include <brux/bus.h>
#include <brux/cfi.h>
typedef struct {
unsigned int bus_width; /* 1 for 8 bits, 2 for 16 bits, 4 for 32 bits, etc. */
const char *name;
const char *description;
int (*autodetect)( cfi_array_t *cfi_array );
void (*print_info)( cfi_array_t *cfi_array );
int (*erase_block)( cfi_array_t *cfi_array, uint32_t adr );
int (*unlock_block)( cfi_array_t *cfi_array, uint32_t adr );
int (*program)( cfi_array_t *cfi_array, uint32_t adr, uint32_t data );
void (*flash_readarray)( cfi_array_t *cfi_array );
} flash_driver_t;
void detectflash( bus_t *bus );

Loading…
Cancel
Save