***************************************************************************/
/***************************************************************************
***************************************************************************/
/***************************************************************************
{
int printed, device_class;
struct stellaris_flash_bank *stellaris_info = bank->driver_priv;
{
int printed, device_class;
struct stellaris_flash_bank *stellaris_info = bank->driver_priv;
uint8_t *buffer, uint32_t offset, uint32_t wcount)
{
struct target *target = bank->target;
uint8_t *buffer, uint32_t offset, uint32_t wcount)
{
struct target *target = bank->target;
struct working_area *source;
struct working_area *write_algorithm;
uint32_t address = bank->base + offset;
struct working_area *source;
struct working_area *write_algorithm;
uint32_t address = bank->base + offset;
(unsigned) (wcount - thisrun_count));
retval = target_run_algorithm(target, 0, NULL, 3, reg_params,
write_algorithm->address,
(unsigned) (wcount - thisrun_count));
retval = target_run_algorithm(target, 0, NULL, 3, reg_params,
write_algorithm->address,
/* provide this for the benefit of the NOR flash framework */
bank->size = 1024 * stellaris_info->num_pages;
bank->num_sectors = stellaris_info->num_pages;
/* provide this for the benefit of the NOR flash framework */
bank->size = 1024 * stellaris_info->num_pages;
bank->num_sectors = stellaris_info->num_pages;
.erase = stellaris_erase,
.protect = stellaris_protect,
.write = stellaris_write,
.erase = stellaris_erase,
.protect = stellaris_protect,
.write = stellaris_write,
.probe = stellaris_probe,
.auto_probe = stellaris_probe,
.erase_check = default_flash_mem_blank_check,
.protect_check = stellaris_protect_check,
.probe = stellaris_probe,
.auto_probe = stellaris_probe,
.erase_check = default_flash_mem_blank_check,
.protect_check = stellaris_protect_check,