From 912dc005e587712749b11ee62f157353f395b0ff Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 27 Sep 2010 07:45:18 +0000 Subject: [PATCH] bf518/bf537 bus: fix mangled whitespace git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1847 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- urjtag/src/bus/bf518f_ezbrd.c | 34 +++++++++++++++++----------------- urjtag/src/bus/bf537_stamp.c | 4 ++-- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/urjtag/src/bus/bf518f_ezbrd.c b/urjtag/src/bus/bf518f_ezbrd.c index a04d6b86..6cb027bd 100644 --- a/urjtag/src/bus/bf518f_ezbrd.c +++ b/urjtag/src/bus/bf518f_ezbrd.c @@ -50,16 +50,16 @@ typedef struct urj_part_signal_t *swe; } bus_params_t; -#define AMS ((bus_params_t *) bus->params)->ams -#define ADDR ((bus_params_t *) bus->params)->addr -#define DATA ((bus_params_t *) bus->params)->data -#define AWE ((bus_params_t *) bus->params)->awe -#define ARE ((bus_params_t *) bus->params)->are -#define ABE ((bus_params_t *) bus->params)->abe -#define SRAS ((bus_params_t *) bus->params)->sras -#define SCAS ((bus_params_t *) bus->params)->scas -#define SMS ((bus_params_t *) bus->params)->sms -#define SWE ((bus_params_t *) bus->params)->swe +#define AMS ((bus_params_t *) bus->params)->ams +#define ADDR ((bus_params_t *) bus->params)->addr +#define DATA ((bus_params_t *) bus->params)->data +#define AWE ((bus_params_t *) bus->params)->awe +#define ARE ((bus_params_t *) bus->params)->are +#define ABE ((bus_params_t *) bus->params)->abe +#define SRAS ((bus_params_t *) bus->params)->sras +#define SCAS ((bus_params_t *) bus->params)->scas +#define SMS ((bus_params_t *) bus->params)->sms +#define SWE ((bus_params_t *) bus->params)->swe /* * bus->driver->(*new_bus) @@ -130,10 +130,10 @@ bf518f_ezbrd_bus_new (urj_chain_t *chain, const urj_bus_driver_t *driver, #define ASYNC_MEM_BASE 0x20000000 #define ASYNC_MEM_SIZE (2 * 1024 * 1024) -#define IS_ASYNC_ADDR(addr) ({ \ - unsigned long __addr = (unsigned long) addr; \ - __addr >= ASYNC_MEM_BASE && __addr < ASYNC_MEM_BASE + ASYNC_MEM_SIZE; \ - }) +#define IS_ASYNC_ADDR(addr) ({ \ + unsigned long __addr = (unsigned long) addr; \ + __addr >= ASYNC_MEM_BASE && __addr < ASYNC_MEM_BASE + ASYNC_MEM_SIZE; \ + }) #define ASYNC_BANK(addr) (((addr) & (ASYNC_MEM_SIZE - 1)) >> 20) static int @@ -143,7 +143,7 @@ bf518f_ezbrd_bus_area (urj_bus_t *bus, uint32_t adr, urj_bus_area_t *area) { /* we can only wiggle SDRAM pins directly, so cannot drive it */ urj_error_set (URJ_ERROR_OUT_OF_BOUNDS, - _("reading external memory not supported")); + _("reading external memory not supported")); return URJ_STATUS_FAIL; } else if (IS_ASYNC_ADDR(adr)) @@ -154,10 +154,10 @@ bf518f_ezbrd_bus_area (urj_bus_t *bus, uint32_t adr, urj_bus_area_t *area) area->width = 16; } else - { + { /* L1 needs core to access it */ urj_error_set (URJ_ERROR_OUT_OF_BOUNDS, - _("reading on-chip memory not supported")); + _("reading on-chip memory not supported")); return URJ_STATUS_FAIL; } return URJ_STATUS_OK; diff --git a/urjtag/src/bus/bf537_stamp.c b/urjtag/src/bus/bf537_stamp.c index 684f45e2..ac61873e 100644 --- a/urjtag/src/bus/bf537_stamp.c +++ b/urjtag/src/bus/bf537_stamp.c @@ -170,7 +170,7 @@ bf537_stamp_bus_area (urj_bus_t *bus, uint32_t adr, urj_bus_area_t *area) { /* we can only wiggle SDRAM pins directly, so cannot drive it */ urj_error_set (URJ_ERROR_OUT_OF_BOUNDS, - _("reading external memory not supported")); + _("reading external memory not supported")); return URJ_STATUS_FAIL; } else if (IS_ASYNC_ADDR(adr)) @@ -184,7 +184,7 @@ bf537_stamp_bus_area (urj_bus_t *bus, uint32_t adr, urj_bus_area_t *area) { /* L1 needs core to access it */ urj_error_set (URJ_ERROR_OUT_OF_BOUNDS, - _("reading on-chip memory not supported")); + _("reading on-chip memory not supported")); return URJ_STATUS_FAIL; } return URJ_STATUS_OK;