Do the indent again, but pass in -T <type> for each typedef. I included FILE and uint32_t and friends, but who knows what system types I forgot

git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1510 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Rutger Hofman 16 years ago
parent dd60ee16a2
commit 7ecd47c474

@ -2,7 +2,7 @@
Run indent over the code base: all '*.[ch]' files except evidently imported
ones, like the libiberty imports in lib.
* xargs indent -npro -nut -bli0 -i4 < indent-files
* xargs indent -npro -nut -bli0 -i4 {-T typedef}* < indent-files
where indent-files is `find . -name '*.[ch]' -print` except:
src/lib/ansidecl.h
src/lib/filenames.h

@ -49,8 +49,8 @@ struct bsbit
int control_state;
};
bsbit_t *bsbit_alloc (int bit, const char *name, int type, signal_t * signal,
bsbit_t *bsbit_alloc (int bit, const char *name, int type, signal_t *signal,
int safe);
void bsbit_free (bsbit_t * b);
void bsbit_free (bsbit_t *b);
#endif /* BSBIT_H */

@ -49,9 +49,9 @@ struct salias
};
signal_t *signal_alloc (const char *name);
void signal_free (signal_t * s);
void signal_free (signal_t *s);
salias_t *salias_alloc (const char *name, const signal_t * signal);
void salias_free (salias_t * salias);
salias_t *salias_alloc (const char *name, const signal_t *signal);
void salias_free (salias_t *salias);
#endif /* SIGNAL_H */

@ -40,7 +40,7 @@ extern buses_t buses;
extern const bus_driver_t *bus_drivers[];
void buses_free (void);
void buses_add (bus_t * abus);
void buses_delete (bus_t * abus);
void buses_add (bus_t *abus);
void buses_delete (bus_t *abus);
#endif /* BUS_H */

@ -54,18 +54,18 @@ struct bus_driver
{
const char *name;
const char *description;
bus_t *(*new_bus) (chain_t * chain, const bus_driver_t * driver,
bus_t *(*new_bus) (chain_t *chain, const bus_driver_t *driver,
char *cmd_params[]);
void (*free_bus) (bus_t * bus);
void (*printinfo) (bus_t * bus);
void (*prepare) (bus_t * bus);
int (*area) (bus_t * bus, uint32_t adr, bus_area_t * area);
void (*read_start) (bus_t * bus, uint32_t adr);
uint32_t (*read_next) (bus_t * bus, uint32_t adr);
uint32_t (*read_end) (bus_t * bus);
uint32_t (*read) (bus_t * bus, uint32_t adr);
void (*write) (bus_t * bus, uint32_t adr, uint32_t data);
int (*init) (bus_t * bus);
void (*free_bus) (bus_t *bus);
void (*printinfo) (bus_t *bus);
void (*prepare) (bus_t *bus);
int (*area) (bus_t *bus, uint32_t adr, bus_area_t *area);
void (*read_start) (bus_t *bus, uint32_t adr);
uint32_t (*read_next) (bus_t *bus, uint32_t adr);
uint32_t (*read_end) (bus_t *bus);
uint32_t (*read) (bus_t *bus, uint32_t adr);
void (*write) (bus_t *bus, uint32_t adr, uint32_t data);
int (*init) (bus_t *bus);
};
struct bus

@ -49,9 +49,9 @@ struct cable_driver_t
{
const char *name;
const char *description;
int (*connect) (char *params[], cable_t * cable);
void (*disconnect) (cable_t * cable);
void (*cable_free) (cable_t * cable);
int (*connect) (char *params[], cable_t *cable);
void (*disconnect) (cable_t *cable);
void (*cable_free) (cable_t *cable);
int (*init) (cable_t *);
void (*done) (cable_t *);
void (*set_frequency) (cable_t *, uint32_t freq);
@ -132,30 +132,30 @@ struct cable_t
uint32_t frequency;
};
void cable_free (cable_t * cable);
int cable_init (cable_t * cable);
void cable_done (cable_t * cable);
void cable_flush (cable_t * cable, cable_flush_amount_t);
void cable_clock (cable_t * cable, int tms, int tdi, int n);
int cable_defer_clock (cable_t * cable, int tms, int tdi, int n);
int cable_get_tdo (cable_t * cable);
int cable_get_tdo_late (cable_t * cable);
int cable_defer_get_tdo (cable_t * cable);
int cable_set_signal (cable_t * cable, int mask, int val);
int cable_defer_set_signal (cable_t * cable, int mask, int val);
int cable_get_signal (cable_t * cable, pod_sigsel_t sig);
int cable_get_signal_late (cable_t * cable, pod_sigsel_t sig);
int cable_defer_get_signal (cable_t * cable, pod_sigsel_t sig);
int cable_transfer (cable_t * cable, int len, char *in, char *out);
int cable_transfer_late (cable_t * cable, char *out);
int cable_defer_transfer (cable_t * cable, int len, char *in, char *out);
void cable_set_frequency (cable_t * cable, uint32_t frequency);
uint32_t cable_get_frequency (cable_t * cable);
void cable_wait (cable_t * cable);
void cable_purge_queue (cable_queue_info_t * q, int io);
int cable_add_queue_item (cable_t * cable, cable_queue_info_t * q);
int cable_get_queue_item (cable_t * cable, cable_queue_info_t * q);
void cable_free (cable_t *cable);
int cable_init (cable_t *cable);
void cable_done (cable_t *cable);
void cable_flush (cable_t *cable, cable_flush_amount_t);
void cable_clock (cable_t *cable, int tms, int tdi, int n);
int cable_defer_clock (cable_t *cable, int tms, int tdi, int n);
int cable_get_tdo (cable_t *cable);
int cable_get_tdo_late (cable_t *cable);
int cable_defer_get_tdo (cable_t *cable);
int cable_set_signal (cable_t *cable, int mask, int val);
int cable_defer_set_signal (cable_t *cable, int mask, int val);
int cable_get_signal (cable_t *cable, pod_sigsel_t sig);
int cable_get_signal_late (cable_t *cable, pod_sigsel_t sig);
int cable_defer_get_signal (cable_t *cable, pod_sigsel_t sig);
int cable_transfer (cable_t *cable, int len, char *in, char *out);
int cable_transfer_late (cable_t *cable, char *out);
int cable_defer_transfer (cable_t *cable, int len, char *in, char *out);
void cable_set_frequency (cable_t *cable, uint32_t frequency);
uint32_t cable_get_frequency (cable_t *cable);
void cable_wait (cable_t *cable);
void cable_purge_queue (cable_queue_info_t *q, int io);
int cable_add_queue_item (cable_t *cable, cable_queue_info_t *q);
int cable_get_queue_item (cable_t *cable, cable_queue_info_t *q);
extern cable_driver_t *cable_drivers[];

@ -49,21 +49,21 @@ struct chain_t
};
chain_t *chain_alloc (void);
void chain_free (chain_t * chain);
void chain_disconnect (chain_t * chain);
void chain_clock (chain_t * chain, int tms, int tdi, int n);
void chain_defer_clock (chain_t * chain, int tms, int tdi, int n);
int chain_set_trst (chain_t * chain, int trst);
int chain_get_trst (chain_t * chain);
void chain_shift_instructions (chain_t * chain);
void chain_shift_instructions_mode (chain_t * chain, int capture_output,
void chain_free (chain_t *chain);
void chain_disconnect (chain_t *chain);
void chain_clock (chain_t *chain, int tms, int tdi, int n);
void chain_defer_clock (chain_t *chain, int tms, int tdi, int n);
int chain_set_trst (chain_t *chain, int trst);
int chain_get_trst (chain_t *chain);
void chain_shift_instructions (chain_t *chain);
void chain_shift_instructions_mode (chain_t *chain, int capture_output,
int capture, int chain_exit);
void chain_shift_data_registers (chain_t * chain, int capture_output);
void chain_shift_data_registers_mode (chain_t * chain, int capture_output,
void chain_shift_data_registers (chain_t *chain, int capture_output);
void chain_shift_data_registers_mode (chain_t *chain, int capture_output,
int capture, int chain_exit);
void chain_flush (chain_t * chain);
int chain_set_pod_signal (chain_t * chain, int mask, int val);
int chain_get_pod_signal (chain_t * chain, pod_sigsel_t sig);
void chain_flush (chain_t *chain);
int chain_set_pod_signal (chain_t *chain, int mask, int val);
int chain_get_pod_signal (chain_t *chain, pod_sigsel_t sig);
typedef struct
{

@ -41,15 +41,15 @@ typedef struct
char *name;
char *desc;
void (*help) (void);
int (*run) (chain_t * chain, char *params[]);
int (*run) (chain_t *chain, char *params[]);
} cmd_t;
extern const cmd_t *cmds[];
char **cmd_completion (const char *text, int start, int end);
int cmd_run (chain_t * chain, char *params[]);
int cmd_run (chain_t *chain, char *params[]);
int cmd_params (char *params[]);
int cmd_get_number (char *s, unsigned int *i);
int cmd_test_cable (chain_t * chain);
int cmd_test_cable (chain_t *chain);
#endif /* CMD_H */

@ -40,6 +40,6 @@ struct data_register
};
data_register *data_register_alloc (const char *name, int len);
void data_register_free (data_register * dr);
void data_register_free (data_register *dr);
#endif /* DATA_REGISTER_H */

@ -57,8 +57,8 @@ typedef struct
cfi_chip_t **cfi_chips;
} cfi_array_t;
void cfi_array_free (cfi_array_t * cfi_array);
int cfi_detect (bus_t * bus, uint32_t adr, cfi_array_t ** cfi_array);
void cfi_array_free (cfi_array_t *cfi_array);
int cfi_detect (bus_t *bus, uint32_t adr, cfi_array_t **cfi_array);
/* End of brux/cfi.h */
@ -67,13 +67,13 @@ 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 * buffer,
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 *buffer,
int count);
void (*readarray) (cfi_array_t * cfi_array);
void (*readarray) (cfi_array_t *cfi_array);
} flash_driver_t;
#define FLASH_ERROR_NOERROR 0
@ -82,10 +82,10 @@ typedef struct
#define FLASH_ERROR_BLOCK_LOCKED 3
#define FLASH_ERROR_UNKNOWN 99
void detectflash (bus_t * bus, uint32_t adr);
void detectflash (bus_t *bus, uint32_t adr);
void flashmem (bus_t * bus, FILE * f, uint32_t addr, int);
void flashmsbin (bus_t * bus, FILE * f, int);
void flashmem (bus_t *bus, FILE *f, uint32_t addr, int);
void flashmsbin (bus_t *bus, FILE *f, int);
/* end of original brux/flash.h */

@ -42,6 +42,6 @@ struct instruction
};
instruction *instruction_alloc (const char *name, int len, const char *val);
void instruction_free (instruction * i);
void instruction_free (instruction *i);
#endif /* INSTRUCTION_H */

@ -70,8 +70,8 @@ typedef struct jim_device
tap_state_t tap_state;
void (*tck_rise) (struct jim_device * dev, int tms, int tdi,
uint8_t * shmem, size_t shmem_size);
void (*tck_fall) (struct jim_device * dev, uint8_t * shmem,
uint8_t *shmem, size_t shmem_size);
void (*tck_fall) (struct jim_device * dev, uint8_t *shmem,
size_t shmem_size);
void (*dev_free) (struct jim_device * dev);
void *state;
@ -98,12 +98,12 @@ typedef struct jim_bus_device
int size; /* words (each <width> bytes) */
void *state; /* device-dependent */
void (*init) (struct jim_bus_device * x);
uint32_t (*capture) (struct jim_bus_device * x,
uint32_t address, uint32_t control,
uint8_t * shmem, size_t shmem_size);
uint32_t (*capture) (struct jim_bus_device * x,
uint32_t address, uint32_t control,
uint8_t *shmem, size_t shmem_size);
void (*update) (struct jim_bus_device * x,
uint32_t address, uint32_t data, uint32_t control,
uint8_t * shmem, size_t shmem_size);
uint8_t *shmem, size_t shmem_size);
void (*free) (struct jim_bus_device * x);
}
jim_bus_device_t;
@ -117,15 +117,15 @@ typedef struct
}
jim_attached_part_t;
void jim_set_trst (jim_state_t * s, int trst);
int jim_get_trst (jim_state_t * s);
int jim_get_tdo (jim_state_t * s);
void jim_tck_rise (jim_state_t * s, int tms, int tdi);
void jim_tck_fall (jim_state_t * s);
void jim_set_trst (jim_state_t *s, int trst);
int jim_get_trst (jim_state_t *s);
int jim_get_tdo (jim_state_t *s);
void jim_tck_rise (jim_state_t *s, int tms, int tdi);
void jim_tck_fall (jim_state_t *s);
jim_device_t *jim_alloc_device (int num_sregs, const int reg_size[]);
jim_state_t *jim_init (void);
void jim_free (jim_state_t * s);
void jim_print_sreg (shift_reg_t * r);
void jim_print_tap_state (char *rof, jim_device_t * dev);
void jim_free (jim_state_t *s);
void jim_print_sreg (shift_reg_t *r);
void jim_print_tap_state (char *rof, jim_device_t *dev);
#endif

@ -24,5 +24,5 @@
#include <jim.h>
void some_cpu_tck_rise (jim_device_t * dev);
void some_cpu_tck_rise (jim_device_t *dev);
jim_device_t *some_cpu (void);

@ -45,19 +45,19 @@ extern int debug_mode;
const char *jtag_get_data_dir (void);
int jtag_parse_file (chain_t * chain, const char *filename);
int jtag_parse_line (chain_t * chain, char *line);
int jtag_parse_stream (chain_t * chain, FILE * f);
int jtag_parse_file (chain_t *chain, const char *filename);
int jtag_parse_line (chain_t *chain, char *line);
int jtag_parse_stream (chain_t *chain, FILE *f);
int detect_parts (chain_t * chain, const char *db_path);
int manual_add (chain_t * chain, int instr_len);
int detect_register_size (chain_t * chain);
void discovery (chain_t * chain);
void idcode (chain_t * chain, unsigned int bytes);
int detect_parts (chain_t *chain, const char *db_path);
int manual_add (chain_t *chain, int instr_len);
int detect_register_size (chain_t *chain);
void discovery (chain_t *chain);
void idcode (chain_t *chain, unsigned int bytes);
void readmem (bus_t * bus, FILE * f, uint32_t addr, uint32_t len);
void writemem (bus_t * bus, FILE * f, uint32_t addr, uint32_t len);
void readmem (bus_t *bus, FILE *f, uint32_t addr, uint32_t len);
void writemem (bus_t *bus, FILE *f, uint32_t addr, uint32_t len);
void flasherase (bus_t * bus, uint32_t addr, int number);
void flasherase (bus_t *bus, uint32_t addr, int number);
#endif /* JTAG_H */

@ -52,12 +52,12 @@ struct parport_t
cable_t *cable;
};
int parport_open (parport_t * port);
int parport_close (parport_t * port);
int parport_set_data (parport_t * port, uint8_t data);
int parport_get_data (parport_t * port);
int parport_get_status (parport_t * port);
int parport_set_control (parport_t * port, uint8_t data);
int parport_open (parport_t *port);
int parport_close (parport_t *port);
int parport_set_data (parport_t *port, uint8_t data);
int parport_get_data (parport_t *port);
int parport_get_status (parport_t *port);
int parport_set_control (parport_t *port, uint8_t data);
extern parport_driver_t *parport_drivers[];

@ -55,16 +55,16 @@ struct part
bsbit_t **bsbits;
};
part_t *part_alloc (const tap_register * id);
void part_free (part_t * p);
part_t *read_part (FILE * f, tap_register_t * idr);
instruction *part_find_instruction (part_t * p, const char *iname);
data_register *part_find_data_register (part_t * p, const char *drname);
signal_t *part_find_signal (part_t * p, const char *signalname);
void part_set_instruction (part_t * p, const char *iname);
void part_set_signal (part_t * p, signal_t * s, int out, int val);
int part_get_signal (part_t * p, signal_t * s);
void part_print (part_t * p);
part_t *part_alloc (const tap_register *id);
void part_free (part_t *p);
part_t *read_part (FILE *f, tap_register_t *idr);
instruction *part_find_instruction (part_t *p, const char *iname);
data_register *part_find_data_register (part_t *p, const char *drname);
signal_t *part_find_signal (part_t *p, const char *signalname);
void part_set_instruction (part_t *p, const char *iname);
void part_set_signal (part_t *p, signal_t *s, int out, int val);
int part_get_signal (part_t *p, signal_t *s);
void part_print (part_t *p);
typedef struct parts parts_t;
@ -75,9 +75,9 @@ struct parts
};
parts_t *parts_alloc (void);
void parts_free (parts_t * ps);
int parts_add_part (parts_t * ps, part_t * p);
void parts_set_instruction (parts_t * ps, const char *iname);
void parts_print (parts_t * ps);
void parts_free (parts_t *ps);
int parts_add_part (parts_t *ps, part_t *p);
void parts_set_instruction (parts_t *ps, const char *iname);
void parts_print (parts_t *ps);
#endif /* PART_H */

@ -34,17 +34,17 @@ typedef struct tap_register
} tap_register_t;
tap_register *register_alloc (int len);
tap_register *register_duplicate (const tap_register_t * tr);
void register_free (tap_register_t * tr);
tap_register *register_fill (tap_register_t * tr, int val);
const char *register_get_string (const tap_register_t * tr);
int register_all_bits_same_value (const tap_register_t * tr);
tap_register *register_init (tap_register_t * tr, const char *value);
int register_compare (const tap_register_t * tr, const tap_register_t * tr2);
int register_match (const tap_register_t * tr, const char *expr);
tap_register *register_inc (tap_register_t * tr);
tap_register *register_dec (tap_register_t * tr);
tap_register *register_shift_right (tap_register_t * tr, int shift);
tap_register *register_shift_left (tap_register_t * tr, int shift);
tap_register *register_duplicate (const tap_register_t *tr);
void register_free (tap_register_t *tr);
tap_register *register_fill (tap_register_t *tr, int val);
const char *register_get_string (const tap_register_t *tr);
int register_all_bits_same_value (const tap_register_t *tr);
tap_register *register_init (tap_register_t *tr, const char *value);
int register_compare (const tap_register_t *tr, const tap_register_t *tr2);
int register_match (const tap_register_t *tr, const char *expr);
tap_register *register_inc (tap_register_t *tr);
tap_register *register_dec (tap_register_t *tr);
tap_register *register_shift_right (tap_register_t *tr, int shift);
tap_register *register_shift_left (tap_register_t *tr, int shift);
#endif /* REGISTER_H */

@ -27,6 +27,6 @@
#include "chain.h"
void svf_run (chain_t * chain, FILE *, int, int, uint32_t);
void svf_run (chain_t *chain, FILE *, int, int, uint32_t);
#endif /* SVF_H */

@ -28,15 +28,15 @@
#include "register.h"
#include "chain.h"
void tap_reset (chain_t * chain);
void tap_reset_bypass (chain_t * chain);
void tap_capture_dr (chain_t * chain);
void tap_capture_ir (chain_t * chain);
void tap_defer_shift_register (chain_t * chain, const tap_register * in,
tap_register * out, int tap_exit);
void tap_shift_register_output (chain_t * chain, const tap_register * in,
tap_register * out, int tap_exit);
void tap_shift_register (chain_t * chain, const tap_register * in,
tap_register * out, int tap_exit);
void tap_reset (chain_t *chain);
void tap_reset_bypass (chain_t *chain);
void tap_capture_dr (chain_t *chain);
void tap_capture_ir (chain_t *chain);
void tap_defer_shift_register (chain_t *chain, const tap_register *in,
tap_register *out, int tap_exit);
void tap_shift_register_output (chain_t *chain, const tap_register *in,
tap_register *out, int tap_exit);
void tap_shift_register (chain_t *chain, const tap_register *in,
tap_register *out, int tap_exit);
#endif /* TAP_H */

@ -56,11 +56,11 @@
#define Exit2_IR (TAPSTAT_IR | TAPSTAT_SHIFT | TAPSTAT_UPDATE)
#define Update_IR (TAPSTAT_IR | TAPSTAT_IDLE)
int tap_state (chain_t * chain);
int tap_state_init (chain_t * chain);
int tap_state_done (chain_t * chain);
int tap_state_reset (chain_t * chain);
int tap_state_set_trst (chain_t * chain, int old_trst, int new_trst);
int tap_state_clock (chain_t * chain, int tms);
int tap_state (chain_t *chain);
int tap_state_init (chain_t *chain);
int tap_state_done (chain_t *chain);
int tap_state_reset (chain_t *chain);
int tap_state_set_trst (chain_t *chain, int old_trst, int new_trst);
int tap_state_clock (chain_t *chain, int tms);
#endif /* TAP_STATE_H */

@ -61,11 +61,11 @@ struct usbconn_t
};
usbconn_t *usbconn_connect (const char **, int, usbconn_cable_t *);
int usbconn_free (usbconn_t * conn);
int usbconn_open (usbconn_t * conn);
int usbconn_close (usbconn_t * conn);
int usbconn_read (usbconn_t * conn, uint8_t * buf, int len);
int usbconn_write (usbconn_t * conn, uint8_t * buf, int len, int recv);
int usbconn_free (usbconn_t *conn);
int usbconn_open (usbconn_t *conn);
int usbconn_close (usbconn_t *conn);
int usbconn_read (usbconn_t *conn, uint8_t *buf, int len);
int usbconn_write (usbconn_t *conn, uint8_t *buf, int len, int recv);
extern usbconn_driver_t *usbconn_drivers[];
#endif /* USBCONN_H */

@ -38,12 +38,12 @@ int xpcu_close (struct usb_dev_handle *xpcu);
int xpcu_request_28 (struct usb_dev_handle *xpcu, int value);
int xpcu_raise_ioa5 (struct usb_dev_handle *xpcu);
int xpcu_write_gpio (struct usb_dev_handle *xpcu, uint8_t bits);
int xpcu_read_gpio (struct usb_dev_handle *xpcu, uint8_t * bits);
int xpcu_read_gpio (struct usb_dev_handle *xpcu, uint8_t *bits);
int xpcu_bitrev_test (struct usb_dev_handle *xpcu);
int xpcu_select_gpio (struct usb_dev_handle *xpcu, int select);
int xpcu_open (struct usb_dev_handle **xpcu);
int xpcu_request_a6 (struct usb_dev_handle *xpcu, int nibbles, uint8_t * xmit,
int inlen, uint8_t * recv);
int xpcu_request_a6 (struct usb_dev_handle *xpcu, int nibbles, uint8_t *xmit,
int inlen, uint8_t *recv);
#endif /* XPCU_H */

@ -117,7 +117,7 @@ bsdl_msg (int proc_mode, int type, const char *format, ...)
*
****************************************************************************/
int
bsdl_read_file (chain_t * chain, const char *BSDL_File_Name, int proc_mode,
bsdl_read_file (chain_t *chain, const char *BSDL_File_Name, int proc_mode,
const char *idcode)
{
bsdl_globs_t *globs = &(chain->bsdl);
@ -228,7 +228,7 @@ bsdl_read_file (chain_t * chain, const char *BSDL_File_Name, int proc_mode,
* void
****************************************************************************/
void
bsdl_set_path (chain_t * chain, const char *pathlist)
bsdl_set_path (chain_t *chain, const char *pathlist)
{
bsdl_globs_t *globs = &(chain->bsdl);
char *delim;
@ -300,7 +300,7 @@ bsdl_set_path (chain_t * chain, const char *pathlist)
*
****************************************************************************/
int
bsdl_scan_files (chain_t * chain, const char *idcode, int proc_mode)
bsdl_scan_files (chain_t *chain, const char *idcode, int proc_mode)
{
bsdl_globs_t *globs = &(chain->bsdl);
int idx = 0;

@ -84,7 +84,7 @@ print_cmd (char **cmd)
* 0 -> error occured
****************************************************************************/
static int
bsdl_set_instruction_length (jtag_ctrl_t * jc)
bsdl_set_instruction_length (jtag_ctrl_t *jc)
{
char lenstring[6];
char *cmd[] = { "instruction",
@ -124,7 +124,7 @@ bsdl_set_instruction_length (jtag_ctrl_t * jc)
* 0 -> error occured
****************************************************************************/
static int
bsdl_emit_ports (jtag_ctrl_t * jc)
bsdl_emit_ports (jtag_ctrl_t *jc)
{
port_desc_t *pd = jc->port_desc;
struct string_elem *name;
@ -203,7 +203,7 @@ bsdl_emit_ports (jtag_ctrl_t * jc)
* 0 -> error occured
****************************************************************************/
static int
create_register (jtag_ctrl_t * jc, char *reg_name, size_t len)
create_register (jtag_ctrl_t *jc, char *reg_name, size_t len)
{
const size_t str_len = 10;
char len_str[str_len + 1];
@ -241,7 +241,7 @@ create_register (jtag_ctrl_t * jc, char *reg_name, size_t len)
* 0 -> error occured
****************************************************************************/
static int
bsdl_process_idcode (jtag_ctrl_t * jc)
bsdl_process_idcode (jtag_ctrl_t *jc)
{
if (jc->idcode)
create_register (jc, "DIR", strlen (jc->idcode));
@ -267,7 +267,7 @@ bsdl_process_idcode (jtag_ctrl_t * jc)
* 0 -> error occured
****************************************************************************/
static int
bsdl_process_usercode (jtag_ctrl_t * jc)
bsdl_process_usercode (jtag_ctrl_t *jc)
{
if (jc->usercode)
create_register (jc, "USERCODE", strlen (jc->usercode));
@ -291,7 +291,7 @@ bsdl_process_usercode (jtag_ctrl_t * jc)
* 0 -> error occured
****************************************************************************/
static int
bsdl_set_bsr_length (jtag_ctrl_t * jc)
bsdl_set_bsr_length (jtag_ctrl_t *jc)
{
create_register (jc, "BSR", jc->bsr_len);
@ -314,7 +314,7 @@ bsdl_set_bsr_length (jtag_ctrl_t * jc)
* 0 -> error occured
****************************************************************************/
static int
bsdl_process_cell_info (jtag_ctrl_t * jc)
bsdl_process_cell_info (jtag_ctrl_t *jc)
{
cell_info_t *ci = jc->cell_info_first;
const size_t str_len = 10;
@ -427,7 +427,7 @@ bsdl_process_cell_info (jtag_ctrl_t * jc)
* 0 -> error occured
****************************************************************************/
static int
bsdl_process_register_access (jtag_ctrl_t * jc)
bsdl_process_register_access (jtag_ctrl_t *jc)
{
ainfo_elem_t *ai;
instr_elem_t *cinst;
@ -564,7 +564,7 @@ bsdl_process_register_access (jtag_ctrl_t * jc)
* 0 -> error occured
****************************************************************************/
static int
parse_vhdl_elem (bsdl_parser_priv_t * priv, vhdl_elem_t * elem)
parse_vhdl_elem (bsdl_parser_priv_t *priv, vhdl_elem_t *elem)
{
char *buf;
size_t buf_len;
@ -622,7 +622,7 @@ parse_vhdl_elem (bsdl_parser_priv_t * priv, vhdl_elem_t * elem)
* telling if INSTR_EXEC or INSTR_PRINT succeeded
****************************************************************************/
static int
build_commands (bsdl_parser_priv_t * priv)
build_commands (bsdl_parser_priv_t *priv)
{
jtag_ctrl_t *jc = priv->jtag_ctrl;
int result = 1;
@ -659,7 +659,7 @@ build_commands (bsdl_parser_priv_t * priv)
* 0 -> idcodes don't match
****************************************************************************/
static int
compare_idcode (jtag_ctrl_t * jc, const char *idcode)
compare_idcode (jtag_ctrl_t *jc, const char *idcode)
{
int idcode_match = 0;
@ -709,7 +709,7 @@ compare_idcode (jtag_ctrl_t * jc, const char *idcode)
*
****************************************************************************/
int
bsdl_process_elements (jtag_ctrl_t * jc, const char *idcode)
bsdl_process_elements (jtag_ctrl_t *jc, const char *idcode)
{
bsdl_parser_priv_t *priv;
vhdl_elem_t *el = jc->vhdl_elem_first;

@ -61,7 +61,7 @@ typedef struct
*
*/
static bus_t *
au1500_bus_new (chain_t * chain, const bus_driver_t * driver,
au1500_bus_new (chain_t *chain, const bus_driver_t *driver,
char *cmd_params[])
{
bus_t *bus;
@ -124,7 +124,7 @@ au1500_bus_new (chain_t * chain, const bus_driver_t * driver,
*
*/
static void
au1500_bus_printinfo (bus_t * bus)
au1500_bus_printinfo (bus_t *bus)
{
int i;
@ -140,7 +140,7 @@ au1500_bus_printinfo (bus_t * bus)
*
*/
static int
au1500_bus_area (bus_t * bus, uint32_t addr, bus_area_t * area)
au1500_bus_area (bus_t *bus, uint32_t addr, bus_area_t *area)
{
area->description = NULL;
area->start = UINT32_C (0x00000000);
@ -155,7 +155,7 @@ au1500_bus_area (bus_t * bus, uint32_t addr, bus_area_t * area)
}
static void
setup_address (bus_t * bus, uint32_t a)
setup_address (bus_t *bus, uint32_t a)
{
int i;
part_t *p = PART;
@ -165,7 +165,7 @@ setup_address (bus_t * bus, uint32_t a)
}
static void
set_data_in (bus_t * bus)
set_data_in (bus_t *bus)
{
int i;
part_t *p = PART;
@ -179,7 +179,7 @@ set_data_in (bus_t * bus)
}
static uint32_t
get_data_out (bus_t * bus)
get_data_out (bus_t *bus)
{
int i;
part_t *p = PART;
@ -195,7 +195,7 @@ get_data_out (bus_t * bus)
}
static void
setup_data (bus_t * bus, uint32_t d)
setup_data (bus_t *bus, uint32_t d)
{
int i;
part_t *p = PART;
@ -212,7 +212,7 @@ setup_data (bus_t * bus, uint32_t d)
*
*/
static void
au1500_bus_read_start (bus_t * bus, uint32_t adr)
au1500_bus_read_start (bus_t *bus, uint32_t adr)
{
part_t *p = PART;
chain_t *chain = CHAIN;
@ -235,7 +235,7 @@ au1500_bus_read_start (bus_t * bus, uint32_t adr)
*
*/
static uint32_t
au1500_bus_read_next (bus_t * bus, uint32_t adr)
au1500_bus_read_next (bus_t *bus, uint32_t adr)
{
chain_t *chain = CHAIN;
@ -250,7 +250,7 @@ au1500_bus_read_next (bus_t * bus, uint32_t adr)
*
*/
static uint32_t
au1500_bus_read_end (bus_t * bus)
au1500_bus_read_end (bus_t *bus)
{
part_t *p = PART;
chain_t *chain = CHAIN;
@ -272,7 +272,7 @@ au1500_bus_read_end (bus_t * bus)
*
*/
static void
au1500_bus_write (bus_t * bus, uint32_t adr, uint32_t data)
au1500_bus_write (bus_t *bus, uint32_t adr, uint32_t data)
{
part_t *p = PART;
chain_t *chain = CHAIN;

@ -130,19 +130,19 @@ typedef struct
/* ------------------------------------------------------------------------- */
static inline void
register_set_bit (tap_register * tr, unsigned int bitno, unsigned int val)
register_set_bit (tap_register *tr, unsigned int bitno, unsigned int val)
{
tr->data[bitno] = (val) ? 1 : 0;
}
static inline int
register_get_bit (tap_register * tr, unsigned int bitno)
register_get_bit (tap_register *tr, unsigned int bitno)
{
return (tr->data[bitno] & 1) ? 1 : 0;
}
static inline void
shift_instr (bus_t * bus, unsigned int bit)
shift_instr (bus_t *bus, unsigned int bit)
{
tap_register *r = PART->active_instruction->out;
@ -159,7 +159,7 @@ shift_instr (bus_t * bus, unsigned int bit)
}
static inline void
shift_data (bus_t * bus, unsigned int bit)
shift_data (bus_t *bus, unsigned int bit)
{
data_register *dr = PART->active_instruction->data_register;
@ -178,13 +178,13 @@ shift_data (bus_t * bus, unsigned int bit)
/* ------------------------------------------------------------------------- */
static void
mwa_scan_in_instr (bus_t * bus)
mwa_scan_in_instr (bus_t *bus)
{
shift_instr (bus, 2);
}
static void
mwa_scan_in_addr (bus_t * bus, unsigned int slave, uint32_t addr, int mode)
mwa_scan_in_addr (bus_t *bus, unsigned int slave, uint32_t addr, int mode)
{
tap_register *r = PART->active_instruction->data_register->in;
int i;
@ -209,7 +209,7 @@ mwa_scan_in_addr (bus_t * bus, unsigned int slave, uint32_t addr, int mode)
}
static void
mwa_scan_in_data (bus_t * bus, uint32_t data)
mwa_scan_in_data (bus_t *bus, uint32_t data)
{
tap_register *r = PART->active_instruction->data_register->in;
int i;
@ -227,7 +227,7 @@ mwa_scan_in_data (bus_t * bus, uint32_t data)
}
static void
mwa_scan_out_data (bus_t * bus, uint32_t * pdata)
mwa_scan_out_data (bus_t *bus, uint32_t *pdata)
{
tap_register *r = PART->active_instruction->data_register->out;
uint32_t data;
@ -245,8 +245,7 @@ mwa_scan_out_data (bus_t * bus, uint32_t * pdata)
}
static inline void
mwa_read_word (bus_t * bus, unsigned int slave, uint32_t addr,
uint32_t * data)
mwa_read_word (bus_t *bus, unsigned int slave, uint32_t addr, uint32_t *data)
{
mwa_scan_in_instr (bus);
mwa_scan_in_addr (bus, slave, addr, ACCESS_MODE_READ);
@ -254,7 +253,7 @@ mwa_read_word (bus_t * bus, unsigned int slave, uint32_t addr,
}
static inline void
mwa_write_word (bus_t * bus, unsigned int slave, uint32_t addr, uint32_t data)
mwa_write_word (bus_t *bus, unsigned int slave, uint32_t addr, uint32_t data)
{
mwa_scan_in_instr (bus);
mwa_scan_in_addr (bus, slave, addr, ACCESS_MODE_WRITE);
@ -264,19 +263,19 @@ mwa_write_word (bus_t * bus, unsigned int slave, uint32_t addr, uint32_t data)
/* ------------------------------------------------------------------------- */
static void
nexus_access_start (bus_t * bus)
nexus_access_start (bus_t *bus)
{
shift_instr (bus, 2);
}
static void
nexus_access_end (bus_t * bus)
nexus_access_end (bus_t *bus)
{
tap_reset_bypass (CHAIN);
}
static void
nexus_access_set_addr (bus_t * bus, uint32_t addr, int mode)
nexus_access_set_addr (bus_t *bus, uint32_t addr, int mode)
{
tap_register *r = PART->active_instruction->data_register->in;
int i;
@ -298,7 +297,7 @@ nexus_access_set_addr (bus_t * bus, uint32_t addr, int mode)
}
static void
nexus_access_read_data (bus_t * bus, uint32_t * pdata)
nexus_access_read_data (bus_t *bus, uint32_t *pdata)
{
tap_register *r = PART->active_instruction->data_register->out;
uint32_t data;
@ -316,7 +315,7 @@ nexus_access_read_data (bus_t * bus, uint32_t * pdata)
}
static void
nexus_access_write_data (bus_t * bus, uint32_t data)
nexus_access_write_data (bus_t *bus, uint32_t data)
{
tap_register *r = PART->active_instruction->data_register->in;
int i;
@ -333,14 +332,14 @@ nexus_access_write_data (bus_t * bus, uint32_t data)
}
static inline void
nexus_reg_read (bus_t * bus, uint32_t reg, uint32_t * data)
nexus_reg_read (bus_t *bus, uint32_t reg, uint32_t *data)
{
nexus_access_set_addr (bus, reg, ACCESS_MODE_READ);
nexus_access_read_data (bus, data);
}
static inline void
nexus_reg_write (bus_t * bus, uint32_t reg, uint32_t data)
nexus_reg_write (bus_t *bus, uint32_t reg, uint32_t data)
{
nexus_access_set_addr (bus, reg, ACCESS_MODE_WRITE);
nexus_access_write_data (bus, data);
@ -349,14 +348,14 @@ nexus_reg_write (bus_t * bus, uint32_t reg, uint32_t data)
/* ------------------------------------------------------------------------- */
static void
nexus_memacc_set_addr (bus_t * bus, uint32_t addr, uint32_t rwcs)
nexus_memacc_set_addr (bus_t *bus, uint32_t addr, uint32_t rwcs)
{
nexus_reg_write (bus, OCD_REG_RWA, addr);
nexus_reg_write (bus, OCD_REG_RWCS, rwcs);
}
static int
nexus_memacc_read (bus_t * bus, uint32_t * data)
nexus_memacc_read (bus_t *bus, uint32_t *data)
{
uint32_t status;
int ret;
@ -388,7 +387,7 @@ nexus_memacc_read (bus_t * bus, uint32_t * data)
}
static int
nexus_memacc_write (bus_t * bus, uint32_t addr, uint32_t data, uint32_t rwcs)
nexus_memacc_write (bus_t *bus, uint32_t addr, uint32_t data, uint32_t rwcs)
{
uint32_t status;
int ret;
@ -415,8 +414,7 @@ nexus_memacc_write (bus_t * bus, uint32_t addr, uint32_t data, uint32_t rwcs)
/* ------------------------------------------------------------------------- */
static void
avr32_bus_setup (bus_t * bus, chain_t * chain, part_t * part,
unsigned int mode)
avr32_bus_setup (bus_t *bus, chain_t *chain, part_t *part, unsigned int mode)
{
CHAIN = chain;
PART = part;
@ -460,7 +458,7 @@ avr32_bus_setup (bus_t * bus, chain_t * chain, part_t * part,
}
static int
check_instruction (part_t * part, const char *instr)
check_instruction (part_t *part, const char *instr)
{
int ret;
@ -476,8 +474,7 @@ check_instruction (part_t * part, const char *instr)
*
*/
static bus_t *
avr32_bus_new (chain_t * chain, const bus_driver_t * driver,
char *cmd_params[])
avr32_bus_new (chain_t *chain, const bus_driver_t *driver, char *cmd_params[])
{
bus_t *bus;
part_t *part;
@ -561,7 +558,7 @@ avr32_bus_new (chain_t * chain, const bus_driver_t * driver,
*
*/
static void
avr32_bus_printinfo (bus_t * bus)
avr32_bus_printinfo (bus_t *bus)
{
int i;
@ -577,7 +574,7 @@ avr32_bus_printinfo (bus_t * bus)
*
*/
static void
avr32_bus_prepare (bus_t * bus)
avr32_bus_prepare (bus_t *bus)
{
if (!INITIALIZED)
bus_init (bus);
@ -588,7 +585,7 @@ avr32_bus_prepare (bus_t * bus)
*
*/
static int
avr32_bus_area (bus_t * bus, uint32_t addr, bus_area_t * area)
avr32_bus_area (bus_t *bus, uint32_t addr, bus_area_t *area)
{
switch (MODE)
{
@ -647,7 +644,7 @@ avr32_bus_area (bus_t * bus, uint32_t addr, bus_area_t * area)
*
*/
static void
avr32_bus_read_start (bus_t * bus, uint32_t addr)
avr32_bus_read_start (bus_t *bus, uint32_t addr)
{
addr &= ADDR_MASK;
@ -678,7 +675,7 @@ avr32_bus_read_start (bus_t * bus, uint32_t addr)
*
*/
static uint32_t
avr32_bus_read_end (bus_t * bus)
avr32_bus_read_end (bus_t *bus)
{
uint32_t data;
@ -705,7 +702,7 @@ avr32_bus_read_end (bus_t * bus)
*
*/
static uint32_t
avr32_bus_read_next (bus_t * bus, uint32_t addr)
avr32_bus_read_next (bus_t *bus, uint32_t addr)
{
uint32_t data;
@ -735,7 +732,7 @@ avr32_bus_read_next (bus_t * bus, uint32_t addr)
*
*/
static void
avr32_bus_write (bus_t * bus, uint32_t addr, uint32_t data)
avr32_bus_write (bus_t *bus, uint32_t addr, uint32_t data)
{
addr &= ADDR_MASK;

@ -59,7 +59,7 @@ typedef struct
*
*/
static bus_t *
bcm1250_bus_new (chain_t * chain, const bus_driver_t * driver,
bcm1250_bus_new (chain_t *chain, const bus_driver_t *driver,
char *cmd_params[])
{
bus_t *bus;
@ -116,7 +116,7 @@ bcm1250_bus_new (chain_t * chain, const bus_driver_t * driver,
*
*/
static void
bcm1250_bus_printinfo (bus_t * bus)
bcm1250_bus_printinfo (bus_t *bus)
{
int i;
@ -133,7 +133,7 @@ bcm1250_bus_printinfo (bus_t * bus)
*
*/
static int
bcm1250_bus_area (bus_t * bus, uint32_t addr, bus_area_t * area)
bcm1250_bus_area (bus_t *bus, uint32_t addr, bus_area_t *area)
{
area->description = NULL;
area->start = UINT32_C (0x00000000);
@ -146,7 +146,7 @@ bcm1250_bus_area (bus_t * bus, uint32_t addr, bus_area_t * area)
#ifndef USE_BCM_EJTAG
static void
setup_address (bus_t * bus, uint32_t a)
setup_address (bus_t *bus, uint32_t a)
{
int i;
part_t *p = PART;
@ -158,7 +158,7 @@ setup_address (bus_t * bus, uint32_t a)
}
static void
set_data_in (bus_t * bus)
set_data_in (bus_t *bus)
{
int i;
part_t *p = PART;
@ -170,7 +170,7 @@ set_data_in (bus_t * bus)
}
static void
setup_data (bus_t * bus, uint32_t d)
setup_data (bus_t *bus, uint32_t d)
{
int i;
part_t *p = PART;
@ -186,7 +186,7 @@ setup_data (bus_t * bus, uint32_t d)
*
*/
static void
bcm1250_bus_read_start (bus_t * bus, uint32_t adr)
bcm1250_bus_read_start (bus_t *bus, uint32_t adr)
{
part_t *p = PART;
chain_t *chain = CHAIN;
@ -214,7 +214,7 @@ bcm1250_bus_read_start (bus_t * bus, uint32_t adr)
*
*/
static uint32_t
bcm1250_bus_read_next (bus_t * bus, uint32_t adr)
bcm1250_bus_read_next (bus_t *bus, uint32_t adr)
{
part_t *p = PART;
chain_t *chain = CHAIN;
@ -240,7 +240,7 @@ bcm1250_bus_read_next (bus_t * bus, uint32_t adr)
*
*/
static uint32_t
bcm1250_bus_read_end (bus_t * bus)
bcm1250_bus_read_end (bus_t *bus)
{
part_t *p = PART;
chain_t *chain = CHAIN;
@ -267,7 +267,7 @@ bcm1250_bus_read_end (bus_t * bus)
*
*/
static void
bcm1250_bus_write (bus_t * bus, uint32_t adr, uint32_t data)
bcm1250_bus_write (bus_t *bus, uint32_t adr, uint32_t data)
{
part_t *p = PART;
chain_t *chain = CHAIN;
@ -302,7 +302,7 @@ int addr;
uint64_t base = 0x1fc00000;
static int
bcm1250_ejtag_do (bus_t * bus, uint64_t ad, uint64_t da, int read, int type,
bcm1250_ejtag_do (bus_t *bus, uint64_t ad, uint64_t da, int read, int type,
unsigned char *buf, int verbose)
{
@ -438,7 +438,7 @@ bcm1250_ejtag_do (bus_t * bus, uint64_t ad, uint64_t da, int read, int type,
chain_shift_data_registers (chain, 1);
while ((p->active_instruction->data_register->out->data[276 - 17] ==
0) && to--)
0) &&to--)
{
chain_shift_data_registers (chain, 1);
}
@ -482,7 +482,7 @@ bcm1250_ejtag_do (bus_t * bus, uint64_t ad, uint64_t da, int read, int type,
*
*/
static void
bcm1250_bus_read_start (bus_t * bus, uint32_t adr)
bcm1250_bus_read_start (bus_t *bus, uint32_t adr)
{
addr = adr;
}
@ -492,7 +492,7 @@ bcm1250_bus_read_start (bus_t * bus, uint32_t adr)
*
*/
static uint32_t
bcm1250_bus_read (bus_t * bus, uint32_t adr)
bcm1250_bus_read (bus_t *bus, uint32_t adr)
{
unsigned char buf[32];
bcm1250_ejtag_do (bus, adr + base, 0, 1, 0, buf, 0);
@ -505,7 +505,7 @@ bcm1250_bus_read (bus_t * bus, uint32_t adr)
*
*/
static uint32_t
bcm1250_bus_read_next (bus_t * bus, uint32_t adr)
bcm1250_bus_read_next (bus_t *bus, uint32_t adr)
{
uint32_t t;
t = bcm1250_bus_read (bus, addr);
@ -518,7 +518,7 @@ bcm1250_bus_read_next (bus_t * bus, uint32_t adr)
*
*/
static uint32_t
bcm1250_bus_read_end (bus_t * bus)
bcm1250_bus_read_end (bus_t *bus)
{
return bcm1250_bus_read (bus, addr);
}
@ -528,7 +528,7 @@ bcm1250_bus_read_end (bus_t * bus)
*
*/
static void
bcm1250_bus_write (bus_t * bus, uint32_t adr, uint32_t data)
bcm1250_bus_write (bus_t *bus, uint32_t adr, uint32_t data)
{
unsigned char buf[32];
bcm1250_ejtag_do (bus, adr + base, data, 0, 0, buf, 0);

@ -67,7 +67,7 @@ typedef struct
*
*/
static bus_t *
bf533_ezkit_bus_new (chain_t * chain, const bus_driver_t * driver,
bf533_ezkit_bus_new (chain_t *chain, const bus_driver_t *driver,
char *cmd_params[])
{
bus_t *bus;
@ -140,7 +140,7 @@ bf533_ezkit_bus_new (chain_t * chain, const bus_driver_t * driver,
*
*/
static void
bf533_ezkit_bus_printinfo (bus_t * bus)
bf533_ezkit_bus_printinfo (bus_t *bus)
{
int i;
@ -157,7 +157,7 @@ bf533_ezkit_bus_printinfo (bus_t * bus)
*
*/
static int
bf533_ezkit_bus_area (bus_t * bus, uint32_t adr, bus_area_t * area)
bf533_ezkit_bus_area (bus_t *bus, uint32_t adr, bus_area_t *area)
{
area->description = NULL;
area->start = UINT32_C (0x00000000);
@ -168,7 +168,7 @@ bf533_ezkit_bus_area (bus_t * bus, uint32_t adr, bus_area_t * area)
}
static void
select_flash (bus_t * bus)
select_flash (bus_t *bus)
{
part_t *p = PART;
@ -187,7 +187,7 @@ select_flash (bus_t * bus)
}
static void
unselect_flash (bus_t * bus)
unselect_flash (bus_t *bus)
{
part_t *p = PART;
@ -206,7 +206,7 @@ unselect_flash (bus_t * bus)
}
static void
setup_address (bus_t * bus, uint32_t a)
setup_address (bus_t *bus, uint32_t a)
{
int i;
part_t *p = PART;
@ -216,7 +216,7 @@ setup_address (bus_t * bus, uint32_t a)
}
static void
set_data_in (bus_t * bus)
set_data_in (bus_t *bus)
{
int i;
part_t *p = PART;
@ -226,7 +226,7 @@ set_data_in (bus_t * bus)
}
static void
setup_data (bus_t * bus, uint32_t d)
setup_data (bus_t *bus, uint32_t d)
{
int i;
part_t *p = PART;
@ -241,7 +241,7 @@ setup_data (bus_t * bus, uint32_t d)
*
*/
static void
bf533_ezkit_bus_read_start (bus_t * bus, uint32_t adr)
bf533_ezkit_bus_read_start (bus_t *bus, uint32_t adr)
{
part_t *p = PART;
chain_t *chain = CHAIN;
@ -261,7 +261,7 @@ bf533_ezkit_bus_read_start (bus_t * bus, uint32_t adr)
*
*/
static uint32_t
bf533_ezkit_bus_read_next (bus_t * bus, uint32_t adr)
bf533_ezkit_bus_read_next (bus_t *bus, uint32_t adr)
{
part_t *p = PART;
chain_t *chain = CHAIN;
@ -282,7 +282,7 @@ bf533_ezkit_bus_read_next (bus_t * bus, uint32_t adr)
*
*/
static uint32_t
bf533_ezkit_bus_read_end (bus_t * bus)
bf533_ezkit_bus_read_end (bus_t *bus)
{
part_t *p = PART;
chain_t *chain = CHAIN;
@ -306,7 +306,7 @@ bf533_ezkit_bus_read_end (bus_t * bus)
*
*/
static void
bf533_ezkit_bus_write (bus_t * bus, uint32_t adr, uint32_t data)
bf533_ezkit_bus_write (bus_t *bus, uint32_t adr, uint32_t data)
{
part_t *p = PART;
chain_t *chain = CHAIN;

@ -67,7 +67,7 @@ typedef struct
*
*/
static bus_t *
bf533_stamp_bus_new (chain_t * chain, const bus_driver_t * driver,
bf533_stamp_bus_new (chain_t *chain, const bus_driver_t *driver,
char *cmd_params[])
{
bus_t *bus;
@ -142,7 +142,7 @@ bf533_stamp_bus_new (chain_t * chain, const bus_driver_t * driver,
*
*/
static void
bf533_stamp_bus_printinfo (bus_t * bus)
bf533_stamp_bus_printinfo (bus_t *bus)
{
int i;
@ -159,7 +159,7 @@ bf533_stamp_bus_printinfo (bus_t * bus)
*
*/
static int
bf533_stamp_bus_area (bus_t * bus, uint32_t adr, bus_area_t * area)
bf533_stamp_bus_area (bus_t *bus, uint32_t adr, bus_area_t *area)
{
area->description = NULL;
area->start = UINT32_C (0x00000000);
@ -170,7 +170,7 @@ bf533_stamp_bus_area (bus_t * bus, uint32_t adr, bus_area_t * area)
}
static void
select_flash (bus_t * bus)
select_flash (bus_t *bus)
{
part_t *p = PART;
@ -189,7 +189,7 @@ select_flash (bus_t * bus)
}
static void
unselect_flash (bus_t * bus)
unselect_flash (bus_t *bus)
{
part_t *p = PART;
@ -208,7 +208,7 @@ unselect_flash (bus_t * bus)
}
static void
setup_address (bus_t * bus, uint32_t a)
setup_address (bus_t *bus, uint32_t a)
{
int i;
part_t *p = PART;
@ -218,7 +218,7 @@ setup_address (bus_t * bus, uint32_t a)
}
static void
set_data_in (bus_t * bus)
set_data_in (bus_t *bus)
{
int i;
part_t *p = PART;
@ -228,7 +228,7 @@ set_data_in (bus_t * bus)
}
static void
setup_data (bus_t * bus, uint32_t d)
setup_data (bus_t *bus, uint32_t d)
{
int i;
part_t *p = PART;
@ -243,7 +243,7 @@ setup_data (bus_t * bus, uint32_t d)
*
*/
static void
bf533_stamp_bus_read_start (bus_t * bus, uint32_t adr)
bf533_stamp_bus_read_start (bus_t *bus, uint32_t adr)
{
part_t *p = PART;
chain_t *chain = CHAIN;
@ -263,7 +263,7 @@ bf533_stamp_bus_read_start (bus_t * bus, uint32_t adr)
*
*/
static uint32_t
bf533_stamp_bus_read_next (bus_t * bus, uint32_t adr)
bf533_stamp_bus_read_next (bus_t *bus, uint32_t adr)
{
part_t *p = PART;
chain_t *chain = CHAIN;
@ -284,7 +284,7 @@ bf533_stamp_bus_read_next (bus_t * bus, uint32_t adr)
*
*/
static uint32_t
bf533_stamp_bus_read_end (bus_t * bus)
bf533_stamp_bus_read_end (bus_t *bus)
{
part_t *p = PART;
chain_t *chain = CHAIN;
@ -308,7 +308,7 @@ bf533_stamp_bus_read_end (bus_t * bus)
*
*/
static void
bf533_stamp_bus_write (bus_t * bus, uint32_t adr, uint32_t data)
bf533_stamp_bus_write (bus_t *bus, uint32_t adr, uint32_t data)
{
part_t *p = PART;
chain_t *chain = CHAIN;

@ -67,7 +67,7 @@ typedef struct
*
*/
static bus_t *
bf537_stamp_bus_new (chain_t * chain, const bus_driver_t * driver,
bf537_stamp_bus_new (chain_t *chain, const bus_driver_t *driver,
char *cmd_params[])
{
bus_t *bus;
@ -140,7 +140,7 @@ bf537_stamp_bus_new (chain_t * chain, const bus_driver_t * driver,
*
*/
static int
bf537_stamp_bus_area (bus_t * bus, uint32_t adr, bus_area_t * area)
bf537_stamp_bus_area (bus_t *bus, uint32_t adr, bus_area_t *area)
{
area->description = NULL;
area->start = UINT32_C (0x00000000);
@ -151,7 +151,7 @@ bf537_stamp_bus_area (bus_t * bus, uint32_t adr, bus_area_t * area)
}
static void
select_flash (bus_t * bus)
select_flash (bus_t *bus)
{
part_t *p = PART;
@ -170,7 +170,7 @@ select_flash (bus_t * bus)
}
static void
unselect_flash (bus_t * bus)
unselect_flash (bus_t *bus)
{
part_t *p = PART;
@ -189,7 +189,7 @@ unselect_flash (bus_t * bus)
}
static void
setup_address (bus_t * bus, uint32_t a)
setup_address (bus_t *bus, uint32_t a)
{
int i;
part_t *p = PART;
@ -199,7 +199,7 @@ setup_address (bus_t * bus, uint32_t a)
}
static void
set_data_in (bus_t * bus)
set_data_in (bus_t *bus)
{
int i;
part_t *p = PART;
@ -209,7 +209,7 @@ set_data_in (bus_t * bus)
}
static void
setup_data (bus_t * bus, uint32_t d)
setup_data (bus_t *bus, uint32_t d)
{
int i;
part_t *p = PART;
@ -224,7 +224,7 @@ setup_data (bus_t * bus, uint32_t d)
*
*/
static void
bf537_stamp_bus_read_start (bus_t * bus, uint32_t adr)
bf537_stamp_bus_read_start (bus_t *bus, uint32_t adr)
{
part_t *p = PART;
chain_t *chain = CHAIN;
@ -244,7 +244,7 @@ bf537_stamp_bus_read_start (bus_t * bus, uint32_t adr)
*
*/
static uint32_t
bf537_stamp_bus_read_next (bus_t * bus, uint32_t adr)
bf537_stamp_bus_read_next (bus_t *bus, uint32_t adr)
{
part_t *p = PART;
chain_t *chain = CHAIN;
@ -265,7 +265,7 @@ bf537_stamp_bus_read_next (bus_t * bus, uint32_t adr)
*
*/
static uint32_t
bf537_stamp_bus_read_end (bus_t * bus)
bf537_stamp_bus_read_end (bus_t *bus)
{
part_t *p = PART;
chain_t *chain = CHAIN;
@ -289,7 +289,7 @@ bf537_stamp_bus_read_end (bus_t * bus)
*
*/
static void
bf537_stamp_bus_write (bus_t * bus, uint32_t adr, uint32_t data)
bf537_stamp_bus_write (bus_t *bus, uint32_t adr, uint32_t data)
{
part_t *p = PART;
chain_t *chain = CHAIN;
@ -314,7 +314,7 @@ bf537_stamp_bus_write (bus_t * bus, uint32_t adr, uint32_t data)
*
*/
static void
bf537_stamp_bus_printinfo (bus_t * bus)
bf537_stamp_bus_printinfo (bus_t *bus)
{
int i;

@ -62,7 +62,7 @@ typedef struct
*
*/
static bus_t *
bf548_ezkit_bus_new (chain_t * chain, const bus_driver_t * driver,
bf548_ezkit_bus_new (chain_t *chain, const bus_driver_t *driver,
char *cmd_params[])
{
bus_t *bus;
@ -141,7 +141,7 @@ bf548_ezkit_bus_new (chain_t * chain, const bus_driver_t * driver,
*
*/
static void
bf548_ezkit_bus_printinfo (bus_t * bus)
bf548_ezkit_bus_printinfo (bus_t *bus)
{
int i;
@ -158,7 +158,7 @@ bf548_ezkit_bus_printinfo (bus_t * bus)
*
*/
static int
bf548_ezkit_bus_area (bus_t * bus, uint32_t adr, bus_area_t * area)
bf548_ezkit_bus_area (bus_t *bus, uint32_t adr, bus_area_t *area)
{
area->description = NULL;
area->start = UINT32_C (0x00000000);
@ -169,7 +169,7 @@ bf548_ezkit_bus_area (bus_t * bus, uint32_t adr, bus_area_t * area)
}
static void
select_flash (bus_t * bus)
select_flash (bus_t *bus)
{
part_t *p = PART;
@ -182,7 +182,7 @@ select_flash (bus_t * bus)
}
static void
unselect_flash (bus_t * bus)
unselect_flash (bus_t *bus)
{
part_t *p = PART;
@ -195,7 +195,7 @@ unselect_flash (bus_t * bus)
}
static void
setup_address (bus_t * bus, uint32_t a)
setup_address (bus_t *bus, uint32_t a)
{
int i;
part_t *p = PART;
@ -205,7 +205,7 @@ setup_address (bus_t * bus, uint32_t a)
}
static void
set_data_in (bus_t * bus)
set_data_in (bus_t *bus)
{
int i;
part_t *p = PART;
@ -215,7 +215,7 @@ set_data_in (bus_t * bus)
}
static void
setup_data (bus_t * bus, uint32_t d)
setup_data (bus_t *bus, uint32_t d)
{
int i;
part_t *p = PART;
@ -230,7 +230,7 @@ setup_data (bus_t * bus, uint32_t d)
*
*/
static void
bf548_ezkit_bus_read_start (bus_t * bus, uint32_t adr)
bf548_ezkit_bus_read_start (bus_t *bus, uint32_t adr)
{
part_t *p = PART;
chain_t *chain = CHAIN;
@ -251,7 +251,7 @@ bf548_ezkit_bus_read_start (bus_t * bus, uint32_t adr)
*
*/
static uint32_t
bf548_ezkit_bus_read_next (bus_t * bus, uint32_t adr)
bf548_ezkit_bus_read_next (bus_t *bus, uint32_t adr)
{
part_t *p = PART;
chain_t *chain = CHAIN;
@ -272,7 +272,7 @@ bf548_ezkit_bus_read_next (bus_t * bus, uint32_t adr)
*
*/
static uint32_t
bf548_ezkit_bus_read_end (bus_t * bus)
bf548_ezkit_bus_read_end (bus_t *bus)
{
part_t *p = PART;
chain_t *chain = CHAIN;
@ -297,7 +297,7 @@ bf548_ezkit_bus_read_end (bus_t * bus)
*
*/
static void
bf548_ezkit_bus_write (bus_t * bus, uint32_t adr, uint32_t data)
bf548_ezkit_bus_write (bus_t *bus, uint32_t adr, uint32_t data)
{
part_t *p = PART;
chain_t *chain = CHAIN;

@ -67,7 +67,7 @@ typedef struct
*
*/
static bus_t *
bf561_ezkit_bus_new (chain_t * chain, const bus_driver_t * driver,
bf561_ezkit_bus_new (chain_t *chain, const bus_driver_t *driver,
char *cmd_params[])
{
bus_t *bus;
@ -146,7 +146,7 @@ bf561_ezkit_bus_new (chain_t * chain, const bus_driver_t * driver,
*
*/
static void
bf561_ezkit_bus_printinfo (bus_t * bus)
bf561_ezkit_bus_printinfo (bus_t *bus)
{
int i;
@ -163,7 +163,7 @@ bf561_ezkit_bus_printinfo (bus_t * bus)
*
*/
static int
bf561_ezkit_bus_area (bus_t * bus, uint32_t addr, bus_area_t * area)
bf561_ezkit_bus_area (bus_t *bus, uint32_t addr, bus_area_t *area)
{
area->description = NULL;
area->start = UINT32_C (0x00000000);
@ -173,7 +173,7 @@ bf561_ezkit_bus_area (bus_t * bus, uint32_t addr, bus_area_t * area)
}
static void
select_flash (bus_t * bus)
select_flash (bus_t *bus)
{
part_t *p = PART;
@ -197,7 +197,7 @@ select_flash (bus_t * bus)
}
static void
unselect_flash (bus_t * bus)
unselect_flash (bus_t *bus)
{
part_t *p = PART;
@ -221,7 +221,7 @@ unselect_flash (bus_t * bus)
}
static void
setup_address (bus_t * bus, uint32_t a)
setup_address (bus_t *bus, uint32_t a)
{
int i;
part_t *p = PART;
@ -232,7 +232,7 @@ setup_address (bus_t * bus, uint32_t a)
}
static void
set_data_in (bus_t * bus)
set_data_in (bus_t *bus)
{
int i;
part_t *p = PART;
@ -242,7 +242,7 @@ set_data_in (bus_t * bus)
}
static void
setup_data (bus_t * bus, uint32_t d)
setup_data (bus_t *bus, uint32_t d)
{
int i;
part_t *p = PART;
@ -257,7 +257,7 @@ setup_data (bus_t * bus, uint32_t d)
*
*/
static void
bf561_ezkit_bus_read_start (bus_t * bus, uint32_t adr)
bf561_ezkit_bus_read_start (bus_t *bus, uint32_t adr)
{
part_t *p = PART;
chain_t *chain = CHAIN;
@ -277,7 +277,7 @@ bf561_ezkit_bus_read_start (bus_t * bus, uint32_t adr)
*
*/
static uint32_t
bf561_ezkit_bus_read_next (bus_t * bus, uint32_t adr)
bf561_ezkit_bus_read_next (bus_t *bus, uint32_t adr)
{
part_t *p = PART;
chain_t *chain = CHAIN;
@ -298,7 +298,7 @@ bf561_ezkit_bus_read_next (bus_t * bus, uint32_t adr)
*
*/
static uint32_t
bf561_ezkit_bus_read_end (bus_t * bus)
bf561_ezkit_bus_read_end (bus_t *bus)
{
part_t *p = PART;
chain_t *chain = CHAIN;
@ -322,7 +322,7 @@ bf561_ezkit_bus_read_end (bus_t * bus)
*
*/
static void
bf561_ezkit_bus_write (bus_t * bus, uint32_t adr, uint32_t data)
bf561_ezkit_bus_write (bus_t *bus, uint32_t adr, uint32_t data)
{
part_t *p = PART;
chain_t *chain = CHAIN;

@ -67,7 +67,7 @@ typedef struct
*
*/
static bus_t *
flashbscoach_bus_new (chain_t * chain, const bus_driver_t * driver,
flashbscoach_bus_new (chain_t *chain, const bus_driver_t *driver,
char *cmd_params[])
{
bus_t *bus;
@ -140,7 +140,7 @@ flashbscoach_bus_new (chain_t * chain, const bus_driver_t * driver,
*
*/
static void
flashbscoach_bus_printinfo (bus_t * bus)
flashbscoach_bus_printinfo (bus_t *bus)
{
int i;
@ -163,7 +163,7 @@ flashbscoach_bus_printinfo (bus_t * bus)
*
*/
static int
flashbscoach_bus_init (bus_t * bus)
flashbscoach_bus_init (bus_t *bus)
{
part_t *p = PART;
chain_t *chain = CHAIN;
@ -213,7 +213,7 @@ flashbscoach_bus_init (bus_t * bus)
*
*/
static int
flashbscoach_bus_area (bus_t * bus, uint32_t adr, bus_area_t * area)
flashbscoach_bus_area (bus_t *bus, uint32_t adr, bus_area_t *area)
{
area->description = NULL;
area->start = UINT32_C (0x00000000);
@ -227,7 +227,7 @@ flashbscoach_bus_area (bus_t * bus, uint32_t adr, bus_area_t * area)
}
static void
setup_data (bus_t * bus, uint32_t d)
setup_data (bus_t *bus, uint32_t d)
{
int i;
part_t *p = PART;
@ -242,7 +242,7 @@ setup_data (bus_t * bus, uint32_t d)
}
static void
set_data_in (bus_t * bus)
set_data_in (bus_t *bus)
{
part_t *p = PART;
@ -260,7 +260,7 @@ set_data_in (bus_t * bus)
part_set_signal (p, D[7], 0, 0);
}
static void
setup_address (bus_t * bus, uint32_t a)
setup_address (bus_t *bus, uint32_t a)
{
int i;
part_t *p = PART;
@ -270,7 +270,7 @@ setup_address (bus_t * bus, uint32_t a)
}
static uint32_t
get_data_out (bus_t * bus)
get_data_out (bus_t *bus)
{
int i;
part_t *p = PART;
@ -290,7 +290,7 @@ get_data_out (bus_t * bus)
*
*/
static void
flashbscoach_bus_read_start (bus_t * bus, uint32_t adr)
flashbscoach_bus_read_start (bus_t *bus, uint32_t adr)
{
part_t *p = PART;
chain_t *chain = CHAIN;
@ -315,7 +315,7 @@ flashbscoach_bus_read_start (bus_t * bus, uint32_t adr)
*
*/
static uint32_t
flashbscoach_bus_read_next (bus_t * bus, uint32_t adr)
flashbscoach_bus_read_next (bus_t *bus, uint32_t adr)
{
// part_t *p = PART;
chain_t *chain = CHAIN;
@ -335,7 +335,7 @@ flashbscoach_bus_read_next (bus_t * bus, uint32_t adr)
*
*/
static uint32_t
flashbscoach_bus_read_end (bus_t * bus)
flashbscoach_bus_read_end (bus_t *bus)
{
part_t *p = PART;
chain_t *chain = CHAIN;
@ -359,7 +359,7 @@ flashbscoach_bus_read_end (bus_t * bus)
*
*/
static void
flashbscoach_bus_write (bus_t * bus, uint32_t adr, uint32_t data)
flashbscoach_bus_write (bus_t *bus, uint32_t adr, uint32_t data)
{
part_t *p = PART;
chain_t *chain = CHAIN;

@ -157,7 +157,7 @@ buses_free (void)
}
void
buses_add (bus_t * abus)
buses_add (bus_t *abus)
{
bus_t **b;
@ -177,7 +177,7 @@ buses_add (bus_t * abus)
}
void
buses_delete (bus_t * abus)
buses_delete (bus_t *abus)
{
int i;
bus_t **b;

@ -114,8 +114,7 @@ typedef struct
*
*/
static bus_t *
ejtag_bus_new (chain_t * chain, const bus_driver_t * driver,
char *cmd_params[])
ejtag_bus_new (chain_t *chain, const bus_driver_t *driver, char *cmd_params[])
{
bus_t *bus;
@ -142,7 +141,7 @@ ejtag_bus_new (chain_t * chain, const bus_driver_t * driver,
*
*/
static void
ejtag_bus_printinfo (bus_t * bus)
ejtag_bus_printinfo (bus_t *bus)
{
int i;
@ -154,7 +153,7 @@ ejtag_bus_printinfo (bus_t * bus)
}
static uint32_t
reg_value (tap_register * reg)
reg_value (tap_register *reg)
{
uint32_t retval = 0;
int i;
@ -168,7 +167,7 @@ reg_value (tap_register * reg)
}
static uint32_t
ejtag_run_pracc (bus_t * bus, const uint32_t * code, unsigned int len)
ejtag_run_pracc (bus_t *bus, const uint32_t *code, unsigned int len)
{
data_register *ejaddr, *ejdata, *ejctrl;
int i, pass;
@ -280,7 +279,7 @@ ejtag_run_pracc (bus_t * bus, const uint32_t * code, unsigned int len)
}
static int
ejtag_bus_init (bus_t * bus)
ejtag_bus_init (bus_t *bus)
{
data_register *ejctrl, *ejimpl, *ejaddr, *ejdata, *ejall;
uint32_t code[4] = {
@ -543,7 +542,7 @@ ejtag_bus_init (bus_t * bus)
*
*/
static void
ejtag_bus_prepare (bus_t * bus)
ejtag_bus_prepare (bus_t *bus)
{
if (!INITIALIZED)
bus_init (bus);
@ -554,7 +553,7 @@ ejtag_bus_prepare (bus_t * bus)
*
*/
static int
ejtag_bus_area (bus_t * bus, uint32_t adr, bus_area_t * area)
ejtag_bus_area (bus_t *bus, uint32_t adr, bus_area_t *area)
{
if (adr < UINT32_C (0x20000000))
{
@ -588,7 +587,7 @@ ejtag_bus_area (bus_t * bus, uint32_t adr, bus_area_t * area)
}
static int
ejtag_gen_read (uint32_t * code, uint32_t adr)
ejtag_gen_read (uint32_t *code, uint32_t adr)
{
uint16_t adr_hi, adr_lo;
uint32_t *p = code;
@ -630,7 +629,7 @@ ejtag_gen_read (uint32_t * code, uint32_t adr)
*
*/
static void
ejtag_bus_read_start (bus_t * bus, uint32_t adr)
ejtag_bus_read_start (bus_t *bus, uint32_t adr)
{
uint32_t code[3];
@ -643,7 +642,7 @@ ejtag_bus_read_start (bus_t * bus, uint32_t adr)
*
*/
static uint32_t
ejtag_bus_read_next (bus_t * bus, uint32_t adr)
ejtag_bus_read_next (bus_t *bus, uint32_t adr)
{
uint32_t d;
uint32_t code[4], *p = code;
@ -662,7 +661,7 @@ ejtag_bus_read_next (bus_t * bus, uint32_t adr)
*
*/
static uint32_t
ejtag_bus_read_end (bus_t * bus)
ejtag_bus_read_end (bus_t *bus)
{
uint32_t d;
static const uint32_t code[2] = {
@ -681,7 +680,7 @@ ejtag_bus_read_end (bus_t * bus)
*
*/
static void
ejtag_bus_write (bus_t * bus, uint32_t adr, uint32_t data)
ejtag_bus_write (bus_t *bus, uint32_t adr, uint32_t data)
{
uint16_t adr_hi, adr_lo;
uint32_t code[5], *p = code;

@ -87,7 +87,7 @@ typedef struct
*
*/
static bus_t *
ejtag_dma_bus_new (chain_t * chain, const bus_driver_t * driver,
ejtag_dma_bus_new (chain_t *chain, const bus_driver_t *driver,
char *cmd_params[])
{
bus_t *bus;
@ -115,7 +115,7 @@ ejtag_dma_bus_new (chain_t * chain, const bus_driver_t * driver,
*
*/
static void
ejtag_dma_bus_printinfo (bus_t * bus)
ejtag_dma_bus_printinfo (bus_t *bus)
{
int i;
@ -130,7 +130,7 @@ ejtag_dma_bus_printinfo (bus_t * bus)
*
*/
static uint32_t
reg_value (tap_register * reg)
reg_value (tap_register *reg)
{
uint32_t retval = 0;
int i;
@ -363,7 +363,7 @@ ejtag_dma_read (unsigned int addr, int sz)
*
*/
int
ejtag_dma_bus_init (bus_t * bus)
ejtag_dma_bus_init (bus_t *bus)
{
data_register *ejctrl = NULL, *ejimpl = NULL, *ejaddr = NULL, *ejdata =
NULL;
@ -517,7 +517,7 @@ ejtag_dma_bus_init (bus_t * bus)
*
*/
void
ejtag_dma_bus_prepare (bus_t * bus)
ejtag_dma_bus_prepare (bus_t *bus)
{
if (!INITIALIZED)
bus_init (bus);
@ -528,7 +528,7 @@ ejtag_dma_bus_prepare (bus_t * bus)
*
*/
int
ejtag_dma_bus_area (bus_t * bus, uint32_t adr, bus_area_t * area)
ejtag_dma_bus_area (bus_t *bus, uint32_t adr, bus_area_t *area)
{
/* from MIPS.org datasheets */
@ -612,7 +612,7 @@ get_sz (uint32_t adr)
*
*/
void
ejtag_dma_bus_write (bus_t * bus, uint32_t adr, uint32_t data)
ejtag_dma_bus_write (bus_t *bus, uint32_t adr, uint32_t data)
{
//printf("%s:adr=0x%x,data=0x%x\n",__FUNCTION__,adr,data);
ejtag_dma_write (adr, data, get_sz (adr));
@ -623,7 +623,7 @@ ejtag_dma_bus_write (bus_t * bus, uint32_t adr, uint32_t data)
*
*/
unsigned int
ejtag_dma_bus_read (bus_t * bus, uint32_t adr)
ejtag_dma_bus_read (bus_t *bus, uint32_t adr)
{
int data = ejtag_dma_read (adr, get_sz (adr));
//printf("%s:adr=0x%x,got=0x%x\n",__FUNCTION__,adr,data);
@ -636,7 +636,7 @@ static unsigned int _data_read;
*
*/
void
ejtag_dma_bus_read_start (bus_t * bus, uint32_t adr)
ejtag_dma_bus_read_start (bus_t *bus, uint32_t adr)
{
_data_read = ejtag_dma_read (adr, get_sz (adr));
//printf("%s:adr=0x%x, got=0x%x\n",__FUNCTION__,adr,_data_read);
@ -648,7 +648,7 @@ ejtag_dma_bus_read_start (bus_t * bus, uint32_t adr)
*
*/
unsigned int
ejtag_dma_bus_read_next (bus_t * bus, uint32_t adr)
ejtag_dma_bus_read_next (bus_t *bus, uint32_t adr)
{
unsigned int tmp_value = _data_read;
_data_read = ejtag_dma_read (adr, get_sz (adr));
@ -661,7 +661,7 @@ ejtag_dma_bus_read_next (bus_t * bus, uint32_t adr)
*
*/
unsigned int
ejtag_dma_bus_read_end (bus_t * bus)
ejtag_dma_bus_read_end (bus_t *bus)
{
return _data_read;
}

@ -81,7 +81,7 @@ typedef struct
#define BLOCK_DESC ((bus_params_t *) bus->params)->block_desc
static int
fjmem_detect_reg_len (chain_t * chain, part_t * part, char *opcode, int len)
fjmem_detect_reg_len (chain_t *chain, part_t *part, char *opcode, int len)
{
data_register *dr;
instruction *i;
@ -171,7 +171,7 @@ fjmem_detect_reg_len (chain_t * chain, part_t * part, char *opcode, int len)
}
static int
fjmem_detect_fields (chain_t * chain, part_t * part, bus_t * bus)
fjmem_detect_fields (chain_t *chain, part_t *part, bus_t *bus)
{
block_desc_t *bd = &(BLOCK_DESC);
data_register *dr = FJMEM_REG;
@ -251,7 +251,7 @@ fjmem_detect_fields (chain_t * chain, part_t * part, bus_t * bus)
}
static int
fjmem_query_blocks (chain_t * chain, part_t * part, bus_t * bus)
fjmem_query_blocks (chain_t *chain, part_t *part, bus_t *bus)
{
block_desc_t *bd = &(BLOCK_DESC);
data_register *dr = FJMEM_REG;
@ -368,7 +368,7 @@ fjmem_query_blocks (chain_t * chain, part_t * part, bus_t * bus)
*
*/
static bus_t *
fjmem_bus_new (chain_t * chain, const bus_driver_t * driver, char *params[])
fjmem_bus_new (chain_t *chain, const bus_driver_t *driver, char *params[])
{
bus_t *bus = NULL;
int failed = 0;
@ -460,7 +460,7 @@ fjmem_bus_new (chain_t * chain, const bus_driver_t * driver, char *params[])
}
static void
fjmem_free_blocks (block_param_t * bl)
fjmem_free_blocks (block_param_t *bl)
{
if (bl)
{
@ -474,7 +474,7 @@ fjmem_free_blocks (block_param_t * bl)
*
*/
static void
fjmem_bus_free (bus_t * bus)
fjmem_bus_free (bus_t *bus)
{
data_register *dr = FJMEM_REG;
@ -497,7 +497,7 @@ fjmem_bus_free (bus_t * bus)
*
*/
static void
fjmem_bus_printinfo (bus_t * bus)
fjmem_bus_printinfo (bus_t *bus)
{
int i;
@ -513,7 +513,7 @@ fjmem_bus_printinfo (bus_t * bus)
*
*/
static void
fjmem_bus_prepare (bus_t * bus)
fjmem_bus_prepare (bus_t *bus)
{
if (!INITIALIZED)
bus_init (bus);
@ -524,8 +524,8 @@ fjmem_bus_prepare (bus_t * bus)
}
static int
block_bus_area (bus_t * bus, uint32_t adr, bus_area_t * area,
block_param_t ** bl_match)
block_bus_area (bus_t *bus, uint32_t adr, bus_area_t *area,
block_param_t **bl_match)
{
block_param_t *bl = BLOCK_DESC.blocks;
uint32_t prev_start;
@ -573,7 +573,7 @@ block_bus_area (bus_t * bus, uint32_t adr, bus_area_t * area,
*
*/
static int
fjmem_bus_area (bus_t * bus, uint32_t adr, bus_area_t * area)
fjmem_bus_area (bus_t *bus, uint32_t adr, bus_area_t *area)
{
block_param_t *bl;
@ -581,7 +581,7 @@ fjmem_bus_area (bus_t * bus, uint32_t adr, bus_area_t * area)
}
static void
setup_address (bus_t * bus, uint32_t a, block_param_t * block)
setup_address (bus_t *bus, uint32_t a, block_param_t *block)
{
data_register *dr = FJMEM_REG;
block_desc_t *bd = &(BLOCK_DESC);
@ -609,7 +609,7 @@ setup_address (bus_t * bus, uint32_t a, block_param_t * block)
}
static void
setup_data (bus_t * bus, uint32_t d, block_param_t * block)
setup_data (bus_t *bus, uint32_t d, block_param_t *block)
{
data_register *dr = FJMEM_REG;
block_desc_t *bd = &(BLOCK_DESC);
@ -628,7 +628,7 @@ setup_data (bus_t * bus, uint32_t d, block_param_t * block)
*
*/
static void
fjmem_bus_read_start (bus_t * bus, uint32_t adr)
fjmem_bus_read_start (bus_t *bus, uint32_t adr)
{
chain_t *chain = CHAIN;
block_desc_t *bd = &(BLOCK_DESC);
@ -659,7 +659,7 @@ fjmem_bus_read_start (bus_t * bus, uint32_t adr)
*
*/
static uint32_t
fjmem_bus_read_next (bus_t * bus, uint32_t adr)
fjmem_bus_read_next (bus_t *bus, uint32_t adr)
{
chain_t *chain = CHAIN;
block_desc_t *bd = &(BLOCK_DESC);
@ -694,7 +694,7 @@ fjmem_bus_read_next (bus_t * bus, uint32_t adr)
*
*/
static uint32_t
fjmem_bus_read_end (bus_t * bus)
fjmem_bus_read_end (bus_t *bus)
{
chain_t *chain = CHAIN;
block_desc_t *bd = &(BLOCK_DESC);
@ -732,7 +732,7 @@ fjmem_bus_read_end (bus_t * bus)
*
*/
static void
fjmem_bus_write (bus_t * bus, uint32_t adr, uint32_t data)
fjmem_bus_write (bus_t *bus, uint32_t adr, uint32_t data)
{
chain_t *chain = CHAIN;
block_desc_t *bd = &(BLOCK_DESC);

@ -31,7 +31,7 @@
#include "generic_bus.h"
int
generic_bus_attach_sig (part_t * part, signal_t ** sig, char *id)
generic_bus_attach_sig (part_t *part, signal_t **sig, char *id)
{
int failed = URJTAG_STATUS_OK;
@ -50,7 +50,7 @@ generic_bus_attach_sig (part_t * part, signal_t ** sig, char *id)
*
*/
void
generic_bus_free (bus_t * bus)
generic_bus_free (bus_t *bus)
{
free (bus->params);
free (bus);
@ -61,7 +61,7 @@ generic_bus_free (bus_t * bus)
*
*/
int
generic_bus_no_init (bus_t * bus)
generic_bus_no_init (bus_t *bus)
{
INITIALIZED = 1;
@ -73,7 +73,7 @@ generic_bus_no_init (bus_t * bus)
*
*/
void
generic_bus_prepare_extest (bus_t * bus)
generic_bus_prepare_extest (bus_t *bus)
{
if (!INITIALIZED)
bus_init (bus);
@ -87,7 +87,7 @@ generic_bus_prepare_extest (bus_t * bus)
*
*/
uint32_t
generic_bus_read (bus_t * bus, uint32_t adr)
generic_bus_read (bus_t *bus, uint32_t adr)
{
bus_read_start (bus, adr);
return bus_read_end (bus);

@ -27,11 +27,11 @@
#include "bus.h"
int generic_bus_attach_sig (part_t * part, signal_t ** sig, char *id);
int generic_bus_attach_sig (part_t *part, signal_t **sig, char *id);
void generic_bus_free (bus_t * bus);
int generic_bus_no_init (bus_t * bus);
void generic_bus_prepare_extest (bus_t * bus);
uint32_t generic_bus_read (bus_t * bus, uint32_t adr);
void generic_bus_free (bus_t *bus);
int generic_bus_no_init (bus_t *bus);
void generic_bus_prepare_extest (bus_t *bus);
uint32_t generic_bus_read (bus_t *bus, uint32_t adr);
#endif /* GENERIC_BUS_H */

@ -57,8 +57,7 @@ typedef struct
*
*/
static bus_t *
h7202_bus_new (chain_t * chain, const bus_driver_t * driver,
char *cmd_params[])
h7202_bus_new (chain_t *chain, const bus_driver_t *driver, char *cmd_params[])
{
bus_t *bus;
part_t *part;
@ -122,7 +121,7 @@ h7202_bus_new (chain_t * chain, const bus_driver_t * driver,
*
*/
static void
h7202_bus_printinfo (bus_t * bus)
h7202_bus_printinfo (bus_t *bus)
{
int i;
@ -137,7 +136,7 @@ h7202_bus_printinfo (bus_t * bus)
*
*/
static int
h7202_bus_area (bus_t * bus, uint32_t adr, bus_area_t * area)
h7202_bus_area (bus_t *bus, uint32_t adr, bus_area_t *area)
{
area->description = NULL;
area->start = UINT32_C (0x00000000);
@ -148,7 +147,7 @@ h7202_bus_area (bus_t * bus, uint32_t adr, bus_area_t * area)
}
static void
setup_address (bus_t * bus, uint32_t a)
setup_address (bus_t *bus, uint32_t a)
{
int i;
part_t *p = PART;
@ -158,7 +157,7 @@ setup_address (bus_t * bus, uint32_t a)
}
static void
set_data_in (bus_t * bus)
set_data_in (bus_t *bus)
{
int i;
part_t *p = PART;
@ -171,7 +170,7 @@ set_data_in (bus_t * bus)
}
static void
setup_data (bus_t * bus, uint32_t d)
setup_data (bus_t *bus, uint32_t d)
{
int i;
part_t *p = PART;
@ -188,7 +187,7 @@ setup_data (bus_t * bus, uint32_t d)
*
*/
static void
h7202_bus_read_start (bus_t * bus, uint32_t adr)
h7202_bus_read_start (bus_t *bus, uint32_t adr)
{
/* see Figure 10-12 in [1] */
part_t *p = PART;
@ -212,7 +211,7 @@ h7202_bus_read_start (bus_t * bus, uint32_t adr)
*
*/
static uint32_t
h7202_bus_read_next (bus_t * bus, uint32_t adr)
h7202_bus_read_next (bus_t *bus, uint32_t adr)
{
/* see Figure 10-12 in [1] */
part_t *p = PART;
@ -237,7 +236,7 @@ h7202_bus_read_next (bus_t * bus, uint32_t adr)
*
*/
static uint32_t
h7202_bus_read_end (bus_t * bus)
h7202_bus_read_end (bus_t *bus)
{
/* see Figure 10-12 in [1] */
part_t *p = PART;
@ -266,7 +265,7 @@ h7202_bus_read_end (bus_t * bus)
*
*/
static void
h7202_bus_write (bus_t * bus, uint32_t adr, uint32_t data)
h7202_bus_write (bus_t *bus, uint32_t adr, uint32_t data)
{
/* see Figure 10-16 in [1] */
part_t *p = PART;

@ -57,7 +57,7 @@ typedef struct
*
*/
static bus_t *
ixp425_bus_new (chain_t * chain, const bus_driver_t * driver,
ixp425_bus_new (chain_t *chain, const bus_driver_t *driver,
char *cmd_params[])
{
bus_t *bus;
@ -118,7 +118,7 @@ ixp425_bus_new (chain_t * chain, const bus_driver_t * driver,
*
*/
static void
ixp425_bus_printinfo (bus_t * bus)
ixp425_bus_printinfo (bus_t *bus)
{
int i;
@ -135,7 +135,7 @@ ixp425_bus_printinfo (bus_t * bus)
*
*/
static int
ixp425_bus_area (bus_t * bus, uint32_t adr, bus_area_t * area)
ixp425_bus_area (bus_t *bus, uint32_t adr, bus_area_t *area)
{
area->description = NULL;
area->start = UINT32_C (0x00000000);
@ -146,7 +146,7 @@ ixp425_bus_area (bus_t * bus, uint32_t adr, bus_area_t * area)
}
static void
select_flash (bus_t * bus)
select_flash (bus_t *bus)
{
part_t *p = PART;
@ -161,7 +161,7 @@ select_flash (bus_t * bus)
}
static void
unselect_flash (bus_t * bus)
unselect_flash (bus_t *bus)
{
part_t *p = PART;
@ -176,7 +176,7 @@ unselect_flash (bus_t * bus)
}
static void
setup_address (bus_t * bus, uint32_t a)
setup_address (bus_t *bus, uint32_t a)
{
int i;
part_t *p = PART;
@ -186,7 +186,7 @@ setup_address (bus_t * bus, uint32_t a)
}
static void
set_data_in (bus_t * bus)
set_data_in (bus_t *bus)
{
int i;
part_t *p = PART;
@ -196,7 +196,7 @@ set_data_in (bus_t * bus)
}
static void
setup_data (bus_t * bus, uint32_t d)
setup_data (bus_t *bus, uint32_t d)
{
int i;
part_t *p = PART;
@ -210,7 +210,7 @@ setup_data (bus_t * bus, uint32_t d)
*
*/
static void
ixp425_bus_read_start (bus_t * bus, uint32_t adr)
ixp425_bus_read_start (bus_t *bus, uint32_t adr)
{
part_t *p = PART;
chain_t *chain = CHAIN;
@ -230,7 +230,7 @@ ixp425_bus_read_start (bus_t * bus, uint32_t adr)
*
*/
static uint32_t
ixp425_bus_read_next (bus_t * bus, uint32_t adr)
ixp425_bus_read_next (bus_t *bus, uint32_t adr)
{
part_t *p = PART;
chain_t *chain = CHAIN;
@ -251,7 +251,7 @@ ixp425_bus_read_next (bus_t * bus, uint32_t adr)
*
*/
static uint32_t
ixp425_bus_read_end (bus_t * bus)
ixp425_bus_read_end (bus_t *bus)
{
part_t *p = PART;
chain_t *chain = CHAIN;
@ -275,7 +275,7 @@ ixp425_bus_read_end (bus_t * bus)
*
*/
static void
ixp425_bus_write (bus_t * bus, uint32_t adr, uint32_t data)
ixp425_bus_write (bus_t *bus, uint32_t adr, uint32_t data)
{
part_t *p = PART;
chain_t *chain = CHAIN;

@ -138,7 +138,7 @@ typedef struct
*
*/
static bus_t *
jopcyc_bus_new (chain_t * chain, const bus_driver_t * driver,
jopcyc_bus_new (chain_t *chain, const bus_driver_t *driver,
char *cmd_params[])
{
bus_t *bus;
@ -345,7 +345,7 @@ jopcyc_bus_new (chain_t * chain, const bus_driver_t * driver,
*
*/
static void
jopcyc_bus_printinfo (bus_t * bus)
jopcyc_bus_printinfo (bus_t *bus)
{
int i;
@ -358,7 +358,7 @@ jopcyc_bus_printinfo (bus_t * bus)
}
static void
setup_address (bus_t * bus, uint32_t a, component_t * comp)
setup_address (bus_t *bus, uint32_t a, component_t *comp)
{
int i;
part_t *p = PART;
@ -387,7 +387,7 @@ setup_address (bus_t * bus, uint32_t a, component_t * comp)
}
static int
detect_data_width (component_t * comp)
detect_data_width (component_t *comp)
{
int width;
@ -408,7 +408,7 @@ detect_data_width (component_t * comp)
}
static void
set_data_in (bus_t * bus, component_t * comp)
set_data_in (bus_t *bus, component_t *comp)
{
int i;
part_t *p = PART;
@ -421,7 +421,7 @@ set_data_in (bus_t * bus, component_t * comp)
}
static void
setup_data (bus_t * bus, uint32_t d, component_t * comp)
setup_data (bus_t *bus, uint32_t d, component_t *comp)
{
int i;
part_t *p = PART;
@ -438,7 +438,7 @@ setup_data (bus_t * bus, uint32_t d, component_t * comp)
*
*/
static int
jopcyc_bus_init (bus_t * bus)
jopcyc_bus_init (bus_t *bus)
{
part_t *p = PART;
chain_t *chain = CHAIN;
@ -500,8 +500,7 @@ jopcyc_bus_init (bus_t * bus)
}
static int
comp_bus_area (bus_t * bus, uint32_t adr, bus_area_t * area,
component_t ** comp)
comp_bus_area (bus_t *bus, uint32_t adr, bus_area_t *area, component_t **comp)
{
if (adr < RAMB_START)
{
@ -544,7 +543,7 @@ comp_bus_area (bus_t * bus, uint32_t adr, bus_area_t * area,
*
*/
static int
jopcyc_bus_area (bus_t * bus, uint32_t adr, bus_area_t * area)
jopcyc_bus_area (bus_t *bus, uint32_t adr, bus_area_t *area)
{
component_t *comp;
@ -556,7 +555,7 @@ jopcyc_bus_area (bus_t * bus, uint32_t adr, bus_area_t * area)
*
*/
static void
jopcyc_bus_read_start (bus_t * bus, uint32_t adr)
jopcyc_bus_read_start (bus_t *bus, uint32_t adr)
{
part_t *p = PART;
chain_t *chain = CHAIN;
@ -591,7 +590,7 @@ jopcyc_bus_read_start (bus_t * bus, uint32_t adr)
*
*/
static uint32_t
jopcyc_bus_read_next (bus_t * bus, uint32_t adr)
jopcyc_bus_read_next (bus_t *bus, uint32_t adr)
{
part_t *p = PART;
chain_t *chain = CHAIN;
@ -622,7 +621,7 @@ jopcyc_bus_read_next (bus_t * bus, uint32_t adr)
*
*/
static uint32_t
jopcyc_bus_read_end (bus_t * bus)
jopcyc_bus_read_end (bus_t *bus)
{
part_t *p = PART;
chain_t *chain = CHAIN;
@ -659,7 +658,7 @@ jopcyc_bus_read_end (bus_t * bus)
*
*/
static void
jopcyc_bus_write (bus_t * bus, uint32_t adr, uint32_t data)
jopcyc_bus_write (bus_t *bus, uint32_t adr, uint32_t data)
{
part_t *p = PART;
chain_t *chain = CHAIN;

@ -73,7 +73,7 @@ typedef struct
*
*/
static bus_t *
lh7a400_bus_new (chain_t * chain, const const bus_driver_t * driver,
lh7a400_bus_new (chain_t *chain, const const bus_driver_t *driver,
char *cmd_params[])
{
bus_t *bus;
@ -140,7 +140,7 @@ lh7a400_bus_new (chain_t * chain, const const bus_driver_t * driver,
*
*/
static void
lh7a400_bus_printinfo (bus_t * bus)
lh7a400_bus_printinfo (bus_t *bus)
{
int i;
@ -157,7 +157,7 @@ lh7a400_bus_printinfo (bus_t * bus)
*
*/
static int
lh7a400_bus_area (bus_t * bus, uint32_t adr, bus_area_t * area)
lh7a400_bus_area (bus_t *bus, uint32_t adr, bus_area_t *area)
{
unsigned int width;
@ -189,7 +189,7 @@ lh7a400_bus_area (bus_t * bus, uint32_t adr, bus_area_t * area)
}
static void
setup_address (bus_t * bus, uint32_t a)
setup_address (bus_t *bus, uint32_t a)
{
int i;
part_t *p = PART;
@ -199,7 +199,7 @@ setup_address (bus_t * bus, uint32_t a)
}
static void
set_data_in (bus_t * bus)
set_data_in (bus_t *bus)
{
int i;
part_t *p = PART;
@ -213,7 +213,7 @@ set_data_in (bus_t * bus)
}
static void
setup_data (bus_t * bus, uint32_t d)
setup_data (bus_t *bus, uint32_t d)
{
int i;
part_t *p = PART;
@ -230,7 +230,7 @@ setup_data (bus_t * bus, uint32_t d)
*
*/
static void
lh7a400_bus_read_start (bus_t * bus, uint32_t adr)
lh7a400_bus_read_start (bus_t *bus, uint32_t adr)
{
/* see Figure 3-3 in [1] */
part_t *p = PART;
@ -251,7 +251,7 @@ lh7a400_bus_read_start (bus_t * bus, uint32_t adr)
*
*/
static uint32_t
lh7a400_bus_read_next (bus_t * bus, uint32_t adr)
lh7a400_bus_read_next (bus_t *bus, uint32_t adr)
{
/* see Figure 3-3 in [1] */
part_t *p = PART;
@ -276,7 +276,7 @@ lh7a400_bus_read_next (bus_t * bus, uint32_t adr)
*
*/
static uint32_t
lh7a400_bus_read_end (bus_t * bus)
lh7a400_bus_read_end (bus_t *bus)
{
/* see Figure 3-3 in [1] */
part_t *p = PART;
@ -303,7 +303,7 @@ lh7a400_bus_read_end (bus_t * bus)
*
*/
static void
lh7a400_bus_write (bus_t * bus, uint32_t adr, uint32_t data)
lh7a400_bus_write (bus_t *bus, uint32_t adr, uint32_t data)
{
/* see Figure 3-3 in [1] */
part_t *p = PART;

@ -72,7 +72,7 @@ typedef struct
*
*/
static bus_t *
mpc5200_bus_new (chain_t * chain, const bus_driver_t * driver,
mpc5200_bus_new (chain_t *chain, const bus_driver_t *driver,
char *cmd_params[])
{
bus_t *bus;
@ -145,7 +145,7 @@ mpc5200_bus_new (chain_t * chain, const bus_driver_t * driver,
*
*/
static void
mpc5200_bus_printinfo (bus_t * bus)
mpc5200_bus_printinfo (bus_t *bus)
{
int i;
@ -162,7 +162,7 @@ mpc5200_bus_printinfo (bus_t * bus)
*
*/
static int
mpc5200_bus_area (bus_t * bus, uint32_t adr, bus_area_t * area)
mpc5200_bus_area (bus_t *bus, uint32_t adr, bus_area_t *area)
{
bus_params_t *bp = (bus_params_t *) bus->params;
@ -183,7 +183,7 @@ mpc5200_bus_area (bus_t * bus, uint32_t adr, bus_area_t * area)
}
static void
setup_address (bus_t * bus, uint32_t a)
setup_address (bus_t *bus, uint32_t a)
{
bus_params_t *bp = (bus_params_t *) bus->params;
part_t *p = PART;
@ -194,7 +194,7 @@ setup_address (bus_t * bus, uint32_t a)
}
static void
set_data_in (bus_t * bus, uint32_t adr)
set_data_in (bus_t *bus, uint32_t adr)
{
bus_params_t *bp = (bus_params_t *) bus->params;
part_t *p = PART;
@ -210,7 +210,7 @@ set_data_in (bus_t * bus, uint32_t adr)
}
static void
setup_data (bus_t * bus, uint32_t adr, uint32_t d)
setup_data (bus_t *bus, uint32_t adr, uint32_t d)
{
bus_params_t *bp = (bus_params_t *) bus->params;
part_t *p = PART;
@ -227,7 +227,7 @@ setup_data (bus_t * bus, uint32_t adr, uint32_t d)
}
static uint32_t
get_data (bus_t * bus, uint32_t adr)
get_data (bus_t *bus, uint32_t adr)
{
bus_params_t *bp = (bus_params_t *) bus->params;
bus_area_t area;
@ -252,7 +252,7 @@ get_data (bus_t * bus, uint32_t adr)
*
*/
static void
mpc5200_bus_read_start (bus_t * bus, uint32_t adr)
mpc5200_bus_read_start (bus_t *bus, uint32_t adr)
{
bus_params_t *bp = (bus_params_t *) bus->params;
part_t *p = PART;
@ -290,7 +290,7 @@ mpc5200_bus_read_start (bus_t * bus, uint32_t adr)
*
*/
static uint32_t
mpc5200_bus_read_next (bus_t * bus, uint32_t adr)
mpc5200_bus_read_next (bus_t *bus, uint32_t adr)
{
bus_params_t *bp = (bus_params_t *) bus->params;
part_t *p = PART;
@ -328,7 +328,7 @@ mpc5200_bus_read_next (bus_t * bus, uint32_t adr)
*
*/
static uint32_t
mpc5200_bus_read_end (bus_t * bus)
mpc5200_bus_read_end (bus_t *bus)
{
bus_params_t *bp = (bus_params_t *) bus->params;
part_t *p = PART;
@ -355,7 +355,7 @@ mpc5200_bus_read_end (bus_t * bus)
*
*/
static void
mpc5200_bus_write (bus_t * bus, uint32_t adr, uint32_t data)
mpc5200_bus_write (bus_t *bus, uint32_t adr, uint32_t data)
{
bus_params_t *bp = (bus_params_t *) bus->params;
/* see Figure 6-47 in [1] */

@ -72,7 +72,7 @@ char dbgData = 0;
*
*/
static bus_t *
mpc824x_bus_new (chain_t * chain, const bus_driver_t * driver,
mpc824x_bus_new (chain_t *chain, const bus_driver_t *driver,
char *cmd_params[])
{
bus_t *bus;
@ -246,7 +246,7 @@ mpc824x_bus_new (chain_t * chain, const bus_driver_t * driver,
*
*/
static void
mpc824x_bus_printinfo (bus_t * bus)
mpc824x_bus_printinfo (bus_t *bus)
{
int i;
@ -263,7 +263,7 @@ mpc824x_bus_printinfo (bus_t * bus)
*
*/
static int
mpc824x_bus_area (bus_t * bus, uint32_t adr, bus_area_t * area)
mpc824x_bus_area (bus_t *bus, uint32_t adr, bus_area_t *area)
{
if (adr < UINT32_C (0xFF000000))
@ -316,7 +316,7 @@ mpc824x_bus_area (bus_t * bus, uint32_t adr, bus_area_t * area)
}
static void
setup_address (bus_t * bus, uint32_t a)
setup_address (bus_t *bus, uint32_t a)
{
int i;
part_t *p = PART;
@ -375,7 +375,7 @@ setup_address (bus_t * bus, uint32_t a)
}
static void
set_data_in (bus_t * bus, uint32_t adr)
set_data_in (bus_t *bus, uint32_t adr)
{
int i;
part_t *p = PART;
@ -390,7 +390,7 @@ set_data_in (bus_t * bus, uint32_t adr)
}
static void
setup_data (bus_t * bus, uint32_t adr, uint32_t d)
setup_data (bus_t *bus, uint32_t adr, uint32_t d)
{
int i;
part_t *p = PART;
@ -432,7 +432,7 @@ setup_data (bus_t * bus, uint32_t adr, uint32_t d)
}
static uint32_t
get_data (bus_t * bus, uint32_t adr)
get_data (bus_t *bus, uint32_t adr)
{
bus_area_t area;
int i;
@ -480,7 +480,7 @@ get_data (bus_t * bus, uint32_t adr)
*
*/
static void
mpc824x_bus_read_start (bus_t * bus, uint32_t adr)
mpc824x_bus_read_start (bus_t *bus, uint32_t adr)
{
part_t *p = PART;
@ -502,7 +502,7 @@ mpc824x_bus_read_start (bus_t * bus, uint32_t adr)
*
*/
static uint32_t
mpc824x_bus_read_next (bus_t * bus, uint32_t adr)
mpc824x_bus_read_next (bus_t *bus, uint32_t adr)
{
uint32_t d;
@ -519,7 +519,7 @@ mpc824x_bus_read_next (bus_t * bus, uint32_t adr)
*
*/
static uint32_t
mpc824x_bus_read_end (bus_t * bus)
mpc824x_bus_read_end (bus_t *bus)
{
part_t *p = PART;
@ -536,7 +536,7 @@ mpc824x_bus_read_end (bus_t * bus)
*
*/
static void
mpc824x_bus_write (bus_t * bus, uint32_t adr, uint32_t data)
mpc824x_bus_write (bus_t *bus, uint32_t adr, uint32_t data)
{
part_t *p = PART;

@ -55,7 +55,7 @@ typedef struct
*
*/
static bus_t *
ppc405ep_bus_new (chain_t * chain, const bus_driver_t * driver,
ppc405ep_bus_new (chain_t *chain, const bus_driver_t *driver,
char *cmd_params[])
{
bus_t *bus;
@ -112,7 +112,7 @@ ppc405ep_bus_new (chain_t * chain, const bus_driver_t * driver,
*
*/
static void
ppc405ep_bus_printinfo (bus_t * bus)
ppc405ep_bus_printinfo (bus_t *bus)
{
int i;
@ -129,7 +129,7 @@ ppc405ep_bus_printinfo (bus_t * bus)
*
*/
static int
ppc405ep_bus_area (bus_t * bus, uint32_t adr, bus_area_t * area)
ppc405ep_bus_area (bus_t *bus, uint32_t adr, bus_area_t *area)
{
area->description = NULL;
area->start = UINT32_C (0x00000000);
@ -140,7 +140,7 @@ ppc405ep_bus_area (bus_t * bus, uint32_t adr, bus_area_t * area)
}
static void
setup_address (bus_t * bus, uint32_t a)
setup_address (bus_t *bus, uint32_t a)
{
int i;
part_t *p = PART;
@ -150,7 +150,7 @@ setup_address (bus_t * bus, uint32_t a)
}
static void
set_data_in (bus_t * bus)
set_data_in (bus_t *bus)
{
int i;
part_t *p = PART;
@ -163,7 +163,7 @@ set_data_in (bus_t * bus)
}
static void
setup_data (bus_t * bus, uint32_t d)
setup_data (bus_t *bus, uint32_t d)
{
int i;
part_t *p = PART;
@ -180,7 +180,7 @@ setup_data (bus_t * bus, uint32_t d)
*
*/
static void
ppc405ep_bus_read_start (bus_t * bus, uint32_t adr)
ppc405ep_bus_read_start (bus_t *bus, uint32_t adr)
{
part_t *p = PART;
chain_t *chain = CHAIN;
@ -200,7 +200,7 @@ ppc405ep_bus_read_start (bus_t * bus, uint32_t adr)
*
*/
static uint32_t
ppc405ep_bus_read_next (bus_t * bus, uint32_t adr)
ppc405ep_bus_read_next (bus_t *bus, uint32_t adr)
{
part_t *p = PART;
chain_t *chain = CHAIN;
@ -224,7 +224,7 @@ ppc405ep_bus_read_next (bus_t * bus, uint32_t adr)
*
*/
static uint32_t
ppc405ep_bus_read_end (bus_t * bus)
ppc405ep_bus_read_end (bus_t *bus)
{
part_t *p = PART;
chain_t *chain = CHAIN;
@ -249,7 +249,7 @@ ppc405ep_bus_read_end (bus_t * bus)
*
*/
static void
ppc405ep_bus_write (bus_t * bus, uint32_t adr, uint32_t data)
ppc405ep_bus_write (bus_t *bus, uint32_t adr, uint32_t data)
{
part_t *p = PART;
chain_t *chain = CHAIN;

@ -57,7 +57,7 @@ typedef struct
*
*/
static bus_t *
ppc440gx_ebc8_bus_new (chain_t * chain, const bus_driver_t * driver,
ppc440gx_ebc8_bus_new (chain_t *chain, const bus_driver_t *driver,
char *cmd_params[])
{
bus_t *bus;
@ -114,7 +114,7 @@ ppc440gx_ebc8_bus_new (chain_t * chain, const bus_driver_t * driver,
*
*/
static void
ppc440gx_ebc8_bus_printinfo (bus_t * bus)
ppc440gx_ebc8_bus_printinfo (bus_t *bus)
{
int i;
@ -131,7 +131,7 @@ ppc440gx_ebc8_bus_printinfo (bus_t * bus)
*
*/
static int
ppc440gx_ebc8_bus_area (bus_t * bus, uint32_t adr, bus_area_t * area)
ppc440gx_ebc8_bus_area (bus_t *bus, uint32_t adr, bus_area_t *area)
{
area->description = NULL;
area->start = UINT32_C (0x00000000);
@ -142,7 +142,7 @@ ppc440gx_ebc8_bus_area (bus_t * bus, uint32_t adr, bus_area_t * area)
}
static void
setup_address (bus_t * bus, uint32_t a)
setup_address (bus_t *bus, uint32_t a)
{
int i;
part_t *p = PART;
@ -153,7 +153,7 @@ setup_address (bus_t * bus, uint32_t a)
}
static void
set_data_in (bus_t * bus)
set_data_in (bus_t *bus)
{
int i;
part_t *p = PART;
@ -166,7 +166,7 @@ set_data_in (bus_t * bus)
}
static void
setup_data (bus_t * bus, uint32_t d)
setup_data (bus_t *bus, uint32_t d)
{
int i;
part_t *p = PART;
@ -183,7 +183,7 @@ setup_data (bus_t * bus, uint32_t d)
*
*/
static void
ppc440gx_ebc8_bus_read_start (bus_t * bus, uint32_t adr)
ppc440gx_ebc8_bus_read_start (bus_t *bus, uint32_t adr)
{
part_t *p = PART;
chain_t *chain = CHAIN;
@ -203,7 +203,7 @@ ppc440gx_ebc8_bus_read_start (bus_t * bus, uint32_t adr)
*
*/
static uint32_t
ppc440gx_ebc8_bus_read_next (bus_t * bus, uint32_t adr)
ppc440gx_ebc8_bus_read_next (bus_t *bus, uint32_t adr)
{
part_t *p = PART;
chain_t *chain = CHAIN;
@ -228,7 +228,7 @@ ppc440gx_ebc8_bus_read_next (bus_t * bus, uint32_t adr)
*
*/
static uint32_t
ppc440gx_ebc8_bus_read_end (bus_t * bus)
ppc440gx_ebc8_bus_read_end (bus_t *bus)
{
part_t *p = PART;
chain_t *chain = CHAIN;
@ -254,7 +254,7 @@ ppc440gx_ebc8_bus_read_end (bus_t * bus)
*
*/
static void
ppc440gx_ebc8_bus_write (bus_t * bus, uint32_t adr, uint32_t data)
ppc440gx_ebc8_bus_write (bus_t *bus, uint32_t adr, uint32_t data)
{
part_t *p = PART;
chain_t *chain = CHAIN;

@ -91,7 +91,7 @@ prototype_bus_signal_parse (char *str, char *fmt, int *inst)
*
*/
static bus_t *
prototype_bus_new (chain_t * chain, const bus_driver_t * driver,
prototype_bus_new (chain_t *chain, const bus_driver_t *driver,
char *cmd_params[])
{
bus_t *bus;
@ -325,7 +325,7 @@ prototype_bus_new (chain_t * chain, const bus_driver_t * driver,
*
*/
static void
prototype_bus_printinfo (bus_t * bus)
prototype_bus_printinfo (bus_t *bus)
{
int i;
@ -342,7 +342,7 @@ prototype_bus_printinfo (bus_t * bus)
*
*/
static int
prototype_bus_area (bus_t * bus, uint32_t adr, bus_area_t * area)
prototype_bus_area (bus_t *bus, uint32_t adr, bus_area_t *area)
{
area->description = NULL;
area->start = UINT32_C (0x00000000);
@ -353,7 +353,7 @@ prototype_bus_area (bus_t * bus, uint32_t adr, bus_area_t * area)
}
static void
setup_address (bus_t * bus, uint32_t a)
setup_address (bus_t *bus, uint32_t a)
{
int i, j;
part_t *p = PART;
@ -365,7 +365,7 @@ setup_address (bus_t * bus, uint32_t a)
}
static void
set_data_in (bus_t * bus)
set_data_in (bus_t *bus)
{
int i, j;
part_t *p = PART;
@ -378,7 +378,7 @@ set_data_in (bus_t * bus)
}
static void
setup_data (bus_t * bus, uint32_t d)
setup_data (bus_t *bus, uint32_t d)
{
int i, j;
part_t *p = PART;
@ -395,7 +395,7 @@ setup_data (bus_t * bus, uint32_t d)
*
*/
static void
prototype_bus_read_start (bus_t * bus, uint32_t adr)
prototype_bus_read_start (bus_t *bus, uint32_t adr)
{
part_t *p = PART;
chain_t *chain = CHAIN;
@ -415,7 +415,7 @@ prototype_bus_read_start (bus_t * bus, uint32_t adr)
*
*/
static uint32_t
prototype_bus_read_next (bus_t * bus, uint32_t adr)
prototype_bus_read_next (bus_t *bus, uint32_t adr)
{
part_t *p = PART;
chain_t *chain = CHAIN;
@ -439,7 +439,7 @@ prototype_bus_read_next (bus_t * bus, uint32_t adr)
*
*/
static uint32_t
prototype_bus_read_end (bus_t * bus)
prototype_bus_read_end (bus_t *bus)
{
part_t *p = PART;
chain_t *chain = CHAIN;
@ -464,7 +464,7 @@ prototype_bus_read_end (bus_t * bus)
*
*/
static void
prototype_bus_write (bus_t * bus, uint32_t adr, uint32_t data)
prototype_bus_write (bus_t *bus, uint32_t adr, uint32_t data)
{
part_t *p = PART;
chain_t *chain = CHAIN;

@ -141,7 +141,7 @@ typedef struct
*
*/
static bus_t *
pxa2xx_bus_new (chain_t * chain, const bus_driver_t * driver,
pxa2xx_bus_new (chain_t *chain, const bus_driver_t *driver,
char *cmd_params[])
{
part_t *part;
@ -248,7 +248,7 @@ pxa2xx_bus_new (chain_t * chain, const bus_driver_t * driver,
*
*/
static void
pxa2xx_bus_printinfo (bus_t * bus)
pxa2xx_bus_printinfo (bus_t *bus)
{
int i;
@ -263,7 +263,7 @@ pxa2xx_bus_printinfo (bus_t * bus)
*
*/
static int
pxa2xx_bus_init (bus_t * bus)
pxa2xx_bus_init (bus_t *bus)
{
chain_t *chain = CHAIN;
part_t *p = PART;
@ -317,7 +317,7 @@ pxa2xx_bus_init (bus_t * bus)
*
*/
static int
pxa2xx_bus_area (bus_t * bus, uint32_t adr, bus_area_t * area)
pxa2xx_bus_area (bus_t *bus, uint32_t adr, bus_area_t *area)
{
uint32_t tmp_addr;
int ncs_index;
@ -416,7 +416,7 @@ pxa2xx_bus_area (bus_t * bus, uint32_t adr, bus_area_t * area)
*
*/
static int
pxa27x_bus_area (bus_t * bus, uint32_t adr, bus_area_t * area)
pxa27x_bus_area (bus_t *bus, uint32_t adr, bus_area_t *area)
{
uint32_t tmp_addr;
int ncs_index;
@ -534,7 +534,7 @@ pxa27x_bus_area (bus_t * bus, uint32_t adr, bus_area_t * area)
}
static void
setup_address (bus_t * bus, uint32_t a)
setup_address (bus_t *bus, uint32_t a)
{
int i;
part_t *p = PART;
@ -544,7 +544,7 @@ setup_address (bus_t * bus, uint32_t a)
}
static void
set_data_in (bus_t * bus, uint32_t adr)
set_data_in (bus_t *bus, uint32_t adr)
{
int i;
part_t *p = PART;
@ -557,7 +557,7 @@ set_data_in (bus_t * bus, uint32_t adr)
}
static void
setup_data (bus_t * bus, uint32_t adr, uint32_t d)
setup_data (bus_t *bus, uint32_t adr, uint32_t d)
{
int i;
part_t *p = PART;
@ -574,7 +574,7 @@ setup_data (bus_t * bus, uint32_t adr, uint32_t d)
*
*/
static void
pxa2xx_bus_read_start (bus_t * bus, uint32_t adr)
pxa2xx_bus_read_start (bus_t *bus, uint32_t adr)
{
int cs_index = 0;
@ -611,7 +611,7 @@ pxa2xx_bus_read_start (bus_t * bus, uint32_t adr)
*
*/
static uint32_t
pxa2xx_bus_read_next (bus_t * bus, uint32_t adr)
pxa2xx_bus_read_next (bus_t *bus, uint32_t adr)
{
part_t *p = PART;
chain_t *chain = CHAIN;
@ -661,7 +661,7 @@ pxa2xx_bus_read_next (bus_t * bus, uint32_t adr)
*
*/
static uint32_t
pxa2xx_bus_read_end (bus_t * bus)
pxa2xx_bus_read_end (bus_t *bus)
{
part_t *p = PART;
chain_t *chain = CHAIN;
@ -710,7 +710,7 @@ pxa2xx_bus_read_end (bus_t * bus)
*
*/
static void
pxa2xx_bus_write (bus_t * bus, uint32_t adr, uint32_t data)
pxa2xx_bus_write (bus_t *bus, uint32_t adr, uint32_t data)
{
int cs_index = 0;

@ -41,7 +41,7 @@
#include "jtag.h"
void
readmem (bus_t * bus, FILE * f, uint32_t addr, uint32_t len)
readmem (bus_t *bus, FILE *f, uint32_t addr, uint32_t len)
{
uint32_t step;
uint32_t a;

@ -103,7 +103,7 @@ typedef struct
*
*/
static bus_t *
s3c4510_bus_new (chain_t * chain, const bus_driver_t * driver,
s3c4510_bus_new (chain_t *chain, const bus_driver_t *driver,
char *cmd_params[])
{
bus_t *bus;
@ -182,7 +182,7 @@ s3c4510_bus_new (chain_t * chain, const bus_driver_t * driver,
*
*/
static void
s3c4510_bus_printinfo (bus_t * bus)
s3c4510_bus_printinfo (bus_t *bus)
{
int i;
@ -199,7 +199,7 @@ s3c4510_bus_printinfo (bus_t * bus)
*
*/
static int
s3c4510_bus_init (bus_t * bus)
s3c4510_bus_init (bus_t *bus)
{
part_t *p = PART;
chain_t *chain = CHAIN;
@ -227,7 +227,7 @@ s3c4510_bus_init (bus_t * bus)
*
*/
static int
s3c4510_bus_area (bus_t * bus, uint32_t adr, bus_area_t * area)
s3c4510_bus_area (bus_t *bus, uint32_t adr, bus_area_t *area)
{
int b0size0, b0size1; // , endian;
@ -258,7 +258,7 @@ s3c4510_bus_area (bus_t * bus, uint32_t adr, bus_area_t * area)
}
static void
s3c4510_bus_setup_ctrl (bus_t * bus, int mode)
s3c4510_bus_setup_ctrl (bus_t *bus, int mode)
{
int k;
part_t *p = PART;
@ -279,7 +279,7 @@ s3c4510_bus_setup_ctrl (bus_t * bus, int mode)
}
static void
setup_address (bus_t * bus, uint32_t a)
setup_address (bus_t *bus, uint32_t a)
{
int i, so;
part_t *p = PART;
@ -302,7 +302,7 @@ setup_address (bus_t * bus, uint32_t a)
}
static void
set_data_in (bus_t * bus)
set_data_in (bus_t *bus)
{
int i;
part_t *p = PART;
@ -312,7 +312,7 @@ set_data_in (bus_t * bus)
}
static void
setup_data (bus_t * bus, uint32_t d)
setup_data (bus_t *bus, uint32_t d)
{
int i;
part_t *p = PART;
@ -329,7 +329,7 @@ setup_data (bus_t * bus, uint32_t d)
*
*/
static void
s3c4510_bus_read_start (bus_t * bus, uint32_t adr)
s3c4510_bus_read_start (bus_t *bus, uint32_t adr)
{
/* see Figure 4-19 in [1] */
chain_t *chain = CHAIN;
@ -345,7 +345,7 @@ s3c4510_bus_read_start (bus_t * bus, uint32_t adr)
*
*/
static uint32_t
s3c4510_bus_read_next (bus_t * bus, uint32_t adr)
s3c4510_bus_read_next (bus_t *bus, uint32_t adr)
{
/* see Figure 4-20 in [1] */
part_t *p = PART;
@ -369,7 +369,7 @@ s3c4510_bus_read_next (bus_t * bus, uint32_t adr)
*
*/
static uint32_t
s3c4510_bus_read_end (bus_t * bus)
s3c4510_bus_read_end (bus_t *bus)
{
/* see Figure 4-19 in [1] */
part_t *p = PART;
@ -393,7 +393,7 @@ s3c4510_bus_read_end (bus_t * bus)
* ROM/SRAM/FlashPage Write Access Timing
*/
static void
s3c4510_bus_write (bus_t * bus, uint32_t adr, uint32_t data)
s3c4510_bus_write (bus_t *bus, uint32_t adr, uint32_t data)
{
/* see Figure 4-21 in [1] */
chain_t *chain = CHAIN;

@ -62,7 +62,7 @@ typedef struct
*
*/
static bus_t *
sa1110_bus_new (chain_t * chain, const bus_driver_t * driver,
sa1110_bus_new (chain_t *chain, const bus_driver_t *driver,
char *cmd_params[])
{
bus_t *bus;
@ -125,7 +125,7 @@ sa1110_bus_new (chain_t * chain, const bus_driver_t * driver,
*
*/
static void
sa1110_bus_printinfo (bus_t * bus)
sa1110_bus_printinfo (bus_t *bus)
{
int i;
@ -142,7 +142,7 @@ sa1110_bus_printinfo (bus_t * bus)
*
*/
static int
sa1110_bus_area (bus_t * bus, uint32_t adr, bus_area_t * area)
sa1110_bus_area (bus_t *bus, uint32_t adr, bus_area_t *area)
{
area->description = NULL;
area->start = UINT32_C (0x00000000);
@ -154,7 +154,7 @@ sa1110_bus_area (bus_t * bus, uint32_t adr, bus_area_t * area)
}
static void
setup_address (bus_t * bus, uint32_t a)
setup_address (bus_t *bus, uint32_t a)
{
int i;
part_t *p = PART;
@ -164,7 +164,7 @@ setup_address (bus_t * bus, uint32_t a)
}
static void
set_data_in (bus_t * bus)
set_data_in (bus_t *bus)
{
int i;
part_t *p = PART;
@ -177,7 +177,7 @@ set_data_in (bus_t * bus)
}
static void
setup_data (bus_t * bus, uint32_t d)
setup_data (bus_t *bus, uint32_t d)
{
int i;
part_t *p = PART;
@ -194,7 +194,7 @@ setup_data (bus_t * bus, uint32_t d)
*
*/
static void
sa1110_bus_read_start (bus_t * bus, uint32_t adr)
sa1110_bus_read_start (bus_t *bus, uint32_t adr)
{
/* see Figure 10-12 in [1] */
part_t *p = PART;
@ -221,7 +221,7 @@ sa1110_bus_read_start (bus_t * bus, uint32_t adr)
*
*/
static uint32_t
sa1110_bus_read_next (bus_t * bus, uint32_t adr)
sa1110_bus_read_next (bus_t *bus, uint32_t adr)
{
/* see Figure 10-12 in [1] */
part_t *p = PART;
@ -246,7 +246,7 @@ sa1110_bus_read_next (bus_t * bus, uint32_t adr)
*
*/
static uint32_t
sa1110_bus_read_end (bus_t * bus)
sa1110_bus_read_end (bus_t *bus)
{
/* see Figure 10-12 in [1] */
part_t *p = PART;
@ -277,7 +277,7 @@ sa1110_bus_read_end (bus_t * bus)
*
*/
static void
sa1110_bus_write (bus_t * bus, uint32_t adr, uint32_t data)
sa1110_bus_write (bus_t *bus, uint32_t adr, uint32_t data)
{
/* see Figure 10-16 in [1] */
part_t *p = PART;

@ -63,7 +63,7 @@ typedef struct
*
*/
static bus_t *
sh7727_bus_new (chain_t * chain, const bus_driver_t * driver,
sh7727_bus_new (chain_t *chain, const bus_driver_t *driver,
char *cmd_params[])
{
bus_t *bus;
@ -136,7 +136,7 @@ sh7727_bus_new (chain_t * chain, const bus_driver_t * driver,
*
*/
static void
sh7727_bus_printinfo (bus_t * bus)
sh7727_bus_printinfo (bus_t *bus)
{
int i;
@ -153,7 +153,7 @@ sh7727_bus_printinfo (bus_t * bus)
*
*/
static int
sh7727_bus_area (bus_t * bus, uint32_t adr, bus_area_t * area)
sh7727_bus_area (bus_t *bus, uint32_t adr, bus_area_t *area)
{
part_t *p = PART;
@ -180,7 +180,7 @@ sh7727_bus_area (bus_t * bus, uint32_t adr, bus_area_t * area)
}
static void
setup_address (bus_t * bus, uint32_t a)
setup_address (bus_t *bus, uint32_t a)
{
int i;
part_t *p = PART;
@ -190,7 +190,7 @@ setup_address (bus_t * bus, uint32_t a)
}
static void
set_data_in (bus_t * bus)
set_data_in (bus_t *bus)
{
int i;
part_t *p = PART;
@ -203,7 +203,7 @@ set_data_in (bus_t * bus)
}
static void
setup_data (bus_t * bus, uint32_t d)
setup_data (bus_t *bus, uint32_t d)
{
int i;
part_t *p = PART;
@ -220,7 +220,7 @@ setup_data (bus_t * bus, uint32_t d)
*
*/
static void
sh7727_bus_read_start (bus_t * bus, uint32_t adr)
sh7727_bus_read_start (bus_t *bus, uint32_t adr)
{
part_t *p = PART;
int cs[8];
@ -254,7 +254,7 @@ sh7727_bus_read_start (bus_t * bus, uint32_t adr)
*
*/
static uint32_t
sh7727_bus_read_next (bus_t * bus, uint32_t adr)
sh7727_bus_read_next (bus_t *bus, uint32_t adr)
{
part_t *p = PART;
int i;
@ -277,7 +277,7 @@ sh7727_bus_read_next (bus_t * bus, uint32_t adr)
*
*/
static uint32_t
sh7727_bus_read_end (bus_t * bus)
sh7727_bus_read_end (bus_t *bus)
{
part_t *p = PART;
int i;
@ -307,7 +307,7 @@ sh7727_bus_read_end (bus_t * bus)
*
*/
static void
sh7727_bus_write (bus_t * bus, uint32_t adr, uint32_t data)
sh7727_bus_write (bus_t *bus, uint32_t adr, uint32_t data)
{
chain_t *chain = CHAIN;
part_t *p = PART;

@ -63,7 +63,7 @@ typedef struct
*
*/
static bus_t *
sh7750r_bus_new (chain_t * chain, const bus_driver_t * driver,
sh7750r_bus_new (chain_t *chain, const bus_driver_t *driver,
char *cmd_params[])
{
bus_t *bus;
@ -134,7 +134,7 @@ sh7750r_bus_new (chain_t * chain, const bus_driver_t * driver,
*
*/
static void
sh7750r_bus_printinfo (bus_t * bus)
sh7750r_bus_printinfo (bus_t *bus)
{
int i;
@ -151,7 +151,7 @@ sh7750r_bus_printinfo (bus_t * bus)
*
*/
static int
sh7750r_bus_area (bus_t * bus, uint32_t adr, bus_area_t * area)
sh7750r_bus_area (bus_t *bus, uint32_t adr, bus_area_t *area)
{
area->description = NULL;
area->start = UINT32_C (0x00000000);
@ -162,7 +162,7 @@ sh7750r_bus_area (bus_t * bus, uint32_t adr, bus_area_t * area)
}
static void
setup_address (bus_t * bus, uint32_t a)
setup_address (bus_t *bus, uint32_t a)
{
int i;
part_t *p = PART;
@ -172,7 +172,7 @@ setup_address (bus_t * bus, uint32_t a)
}
static void
set_data_in (bus_t * bus)
set_data_in (bus_t *bus)
{
int i;
part_t *p = PART;
@ -182,7 +182,7 @@ set_data_in (bus_t * bus)
}
static void
setup_data (bus_t * bus, uint32_t d)
setup_data (bus_t *bus, uint32_t d)
{
int i;
part_t *p = PART;
@ -196,7 +196,7 @@ setup_data (bus_t * bus, uint32_t d)
*
*/
static void
sh7750r_bus_read_start (bus_t * bus, uint32_t adr)
sh7750r_bus_read_start (bus_t *bus, uint32_t adr)
{
part_t *p = PART;
int cs[8];
@ -232,7 +232,7 @@ sh7750r_bus_read_start (bus_t * bus, uint32_t adr)
*
*/
static uint32_t
sh7750r_bus_read_next (bus_t * bus, uint32_t adr)
sh7750r_bus_read_next (bus_t *bus, uint32_t adr)
{
part_t *p = PART;
int i;
@ -252,7 +252,7 @@ sh7750r_bus_read_next (bus_t * bus, uint32_t adr)
*
*/
static uint32_t
sh7750r_bus_read_end (bus_t * bus)
sh7750r_bus_read_end (bus_t *bus)
{
part_t *p = PART;
int cs[8];
@ -285,7 +285,7 @@ sh7750r_bus_read_end (bus_t * bus)
*
*/
static void
sh7750r_bus_write (bus_t * bus, uint32_t adr, uint32_t data)
sh7750r_bus_write (bus_t *bus, uint32_t adr, uint32_t data)
{
chain_t *chain = CHAIN;
part_t *p = PART;

@ -61,7 +61,7 @@ typedef struct
*
*/
static bus_t *
sh7751r_bus_new (chain_t * chain, const bus_driver_t * driver,
sh7751r_bus_new (chain_t *chain, const bus_driver_t *driver,
char *cmd_params[])
{
bus_t *bus;
@ -128,7 +128,7 @@ sh7751r_bus_new (chain_t * chain, const bus_driver_t * driver,
*
*/
static void
sh7751r_bus_printinfo (bus_t * bus)
sh7751r_bus_printinfo (bus_t *bus)
{
int i;
@ -145,7 +145,7 @@ sh7751r_bus_printinfo (bus_t * bus)
*
*/
static int
sh7751r_bus_area (bus_t * bus, uint32_t adr, bus_area_t * area)
sh7751r_bus_area (bus_t *bus, uint32_t adr, bus_area_t *area)
{
area->description = NULL;
area->start = UINT32_C (0x00000000);
@ -156,7 +156,7 @@ sh7751r_bus_area (bus_t * bus, uint32_t adr, bus_area_t * area)
}
static void
setup_address (bus_t * bus, uint32_t a)
setup_address (bus_t *bus, uint32_t a)
{
int i;
part_t *p = PART;
@ -166,7 +166,7 @@ setup_address (bus_t * bus, uint32_t a)
}
static void
set_data_in (bus_t * bus)
set_data_in (bus_t *bus)
{
int i;
part_t *p = PART;
@ -176,7 +176,7 @@ set_data_in (bus_t * bus)
}
static void
setup_data (bus_t * bus, uint32_t d)
setup_data (bus_t *bus, uint32_t d)
{
int i;
part_t *p = PART;
@ -190,7 +190,7 @@ setup_data (bus_t * bus, uint32_t d)
*
*/
static void
sh7751r_bus_read_start (bus_t * bus, uint32_t adr)
sh7751r_bus_read_start (bus_t *bus, uint32_t adr)
{
part_t *p = PART;
int cs[8];
@ -224,7 +224,7 @@ sh7751r_bus_read_start (bus_t * bus, uint32_t adr)
*
*/
static uint32_t
sh7751r_bus_read_next (bus_t * bus, uint32_t adr)
sh7751r_bus_read_next (bus_t *bus, uint32_t adr)
{
part_t *p = PART;
int i;
@ -244,7 +244,7 @@ sh7751r_bus_read_next (bus_t * bus, uint32_t adr)
*
*/
static uint32_t
sh7751r_bus_read_end (bus_t * bus)
sh7751r_bus_read_end (bus_t *bus)
{
part_t *p = PART;
int cs[8];
@ -276,7 +276,7 @@ sh7751r_bus_read_end (bus_t * bus)
*
*/
static void
sh7751r_bus_write (bus_t * bus, uint32_t adr, uint32_t data)
sh7751r_bus_write (bus_t *bus, uint32_t adr, uint32_t data)
{
chain_t *chain = CHAIN;
part_t *p = PART;

@ -64,7 +64,7 @@ typedef struct
*
*/
static bus_t *
sharc_21065L_bus_new (chain_t * chain, const bus_driver_t * driver,
sharc_21065L_bus_new (chain_t *chain, const bus_driver_t *driver,
char *cmd_params[])
{
bus_t *bus;
@ -121,7 +121,7 @@ sharc_21065L_bus_new (chain_t * chain, const bus_driver_t * driver,
*
*/
static void
sharc_21065L_bus_printinfo (bus_t * bus)
sharc_21065L_bus_printinfo (bus_t *bus)
{
int i;
@ -138,7 +138,7 @@ sharc_21065L_bus_printinfo (bus_t * bus)
*
*/
static int
sharc_21065L_bus_area (bus_t * bus, uint32_t adr, bus_area_t * area)
sharc_21065L_bus_area (bus_t *bus, uint32_t adr, bus_area_t *area)
{
/* BMS (512 KB) */
if (adr < UINT32_C (0x080000))
@ -159,7 +159,7 @@ sharc_21065L_bus_area (bus_t * bus, uint32_t adr, bus_area_t * area)
}
static void
setup_address (bus_t * bus, uint32_t a)
setup_address (bus_t *bus, uint32_t a)
{
int i;
part_t *p = PART;
@ -169,7 +169,7 @@ setup_address (bus_t * bus, uint32_t a)
}
static void
set_data_in (bus_t * bus, uint32_t adr)
set_data_in (bus_t *bus, uint32_t adr)
{
int i;
part_t *p = PART;
@ -183,7 +183,7 @@ set_data_in (bus_t * bus, uint32_t adr)
static void
setup_data (bus_t * bus, uint32_t adr, uint32_t d)
setup_data (bus_t *bus, uint32_t adr, uint32_t d)
{
int i;
part_t *p = PART;
@ -200,7 +200,7 @@ setup_data (bus_t * bus, uint32_t adr, uint32_t d)
*
*/
static void
sharc_21065L_bus_read_start (bus_t * bus, uint32_t adr)
sharc_21065L_bus_read_start (bus_t *bus, uint32_t adr)
{
chain_t *chain = CHAIN;
part_t *p = PART;
@ -225,7 +225,7 @@ sharc_21065L_bus_read_start (bus_t * bus, uint32_t adr)
*
*/
static uint32_t
sharc_21065L_bus_read_next (bus_t * bus, uint32_t adr)
sharc_21065L_bus_read_next (bus_t *bus, uint32_t adr)
{
part_t *p = PART;
chain_t *chain = CHAIN;
@ -259,7 +259,7 @@ sharc_21065L_bus_read_next (bus_t * bus, uint32_t adr)
*
*/
static uint32_t
sharc_21065L_bus_read_end (bus_t * bus)
sharc_21065L_bus_read_end (bus_t *bus)
{
part_t *p = PART;
chain_t *chain = CHAIN;
@ -293,7 +293,7 @@ sharc_21065L_bus_read_end (bus_t * bus)
*
*/
static void
sharc_21065L_bus_write (bus_t * bus, uint32_t adr, uint32_t data)
sharc_21065L_bus_write (bus_t *bus, uint32_t adr, uint32_t data)
{
part_t *p = PART;
chain_t *chain = CHAIN;

@ -41,10 +41,12 @@
int databusio[16] =
{ 94, 96, 98, 100, 102, 104, 106, 113, 95, 97, 99, 101, 103, 105, 107,
114 };
114
};
int addrbusio[20] =
{ 93, 88, 87, 86, 85, 84, 83, 63, 64, 65, 66, 67, 68, 74, 75, 76, 77, 82,
81, 78 };
81, 78
};
typedef struct
{
@ -94,7 +96,7 @@ typedef struct
*
*/
static bus_t *
slsup3_bus_new (chain_t * chain, const bus_driver_t * driver,
slsup3_bus_new (chain_t *chain, const bus_driver_t *driver,
char *cmd_params[])
{
bus_t *bus;
@ -167,7 +169,7 @@ slsup3_bus_new (chain_t * chain, const bus_driver_t * driver,
*
*/
static void
slsup3_bus_printinfo (bus_t * bus)
slsup3_bus_printinfo (bus_t *bus)
{
int i;
@ -182,7 +184,7 @@ slsup3_bus_printinfo (bus_t * bus)
*
*/
static int
slsup3_bus_area (bus_t * bus, uint32_t adr, bus_area_t * area)
slsup3_bus_area (bus_t *bus, uint32_t adr, bus_area_t *area)
{
if ((adr >= FLASHSTART) && (adr < (FLASHSTART + FLASHSIZE)))
{
@ -223,7 +225,7 @@ slsup3_bus_area (bus_t * bus, uint32_t adr, bus_area_t * area)
}
static void
setup_address (bus_t * bus, uint32_t a)
setup_address (bus_t *bus, uint32_t a)
{
int i;
part_t *p = PART;
@ -261,7 +263,7 @@ setup_address (bus_t * bus, uint32_t a)
}
static void
set_data_in (bus_t * bus, uint32_t adr)
set_data_in (bus_t *bus, uint32_t adr)
{
int i;
part_t *p = PART;
@ -276,7 +278,7 @@ set_data_in (bus_t * bus, uint32_t adr)
}
static void
setup_data (bus_t * bus, uint32_t adr, uint32_t d)
setup_data (bus_t *bus, uint32_t adr, uint32_t d)
{
int i;
part_t *p = PART;
@ -291,7 +293,7 @@ setup_data (bus_t * bus, uint32_t adr, uint32_t d)
}
static uint32_t
get_data (bus_t * bus, uint32_t adr)
get_data (bus_t *bus, uint32_t adr)
{
bus_area_t area;
int i;
@ -313,7 +315,7 @@ get_data (bus_t * bus, uint32_t adr)
*
*/
static void
slsup3_bus_read_start (bus_t * bus, uint32_t adr)
slsup3_bus_read_start (bus_t *bus, uint32_t adr)
{
part_t *p = PART;
@ -349,7 +351,7 @@ slsup3_bus_read_start (bus_t * bus, uint32_t adr)
*
*/
static uint32_t
slsup3_bus_read_next (bus_t * bus, uint32_t adr)
slsup3_bus_read_next (bus_t *bus, uint32_t adr)
{
uint32_t d;
@ -378,7 +380,7 @@ slsup3_bus_read_next (bus_t * bus, uint32_t adr)
*
*/
static uint32_t
slsup3_bus_read_end (bus_t * bus)
slsup3_bus_read_end (bus_t *bus)
{
part_t *p = PART;
uint32_t d;
@ -404,7 +406,7 @@ slsup3_bus_read_end (bus_t * bus)
*
*/
static void
slsup3_bus_write (bus_t * bus, uint32_t adr, uint32_t data)
slsup3_bus_write (bus_t *bus, uint32_t adr, uint32_t data)
{
part_t *p = PART;
chain_t *chain = CHAIN;

@ -71,7 +71,7 @@ typedef struct
*
*/
static bus_t *
tx4925_bus_new (chain_t * chain, const bus_driver_t * driver,
tx4925_bus_new (chain_t *chain, const bus_driver_t *driver,
char *cmd_params[])
{
bus_t *bus;
@ -138,7 +138,7 @@ tx4925_bus_new (chain_t * chain, const bus_driver_t * driver,
*
*/
static void
tx4925_bus_printinfo (bus_t * bus)
tx4925_bus_printinfo (bus_t *bus)
{
int i;
@ -155,7 +155,7 @@ tx4925_bus_printinfo (bus_t * bus)
*
*/
static int
tx4925_bus_area (bus_t * bus, uint32_t adr, bus_area_t * area)
tx4925_bus_area (bus_t *bus, uint32_t adr, bus_area_t *area)
{
area->description = NULL;
area->start = UINT32_C (0x00000000);
@ -166,7 +166,7 @@ tx4925_bus_area (bus_t * bus, uint32_t adr, bus_area_t * area)
}
static void
select_flash (bus_t * bus)
select_flash (bus_t *bus)
{
part_t *p = PART;
@ -181,7 +181,7 @@ select_flash (bus_t * bus)
}
static void
unselect_flash (bus_t * bus)
unselect_flash (bus_t *bus)
{
part_t *p = PART;
@ -196,7 +196,7 @@ unselect_flash (bus_t * bus)
}
static void
setup_address (bus_t * bus, uint32_t a)
setup_address (bus_t *bus, uint32_t a)
{
int i;
part_t *p = PART;
@ -207,7 +207,7 @@ setup_address (bus_t * bus, uint32_t a)
}
static void
set_data_in (bus_t * bus)
set_data_in (bus_t *bus)
{
int i;
part_t *p = PART;
@ -217,7 +217,7 @@ set_data_in (bus_t * bus)
}
static void
setup_data (bus_t * bus, uint32_t d)
setup_data (bus_t *bus, uint32_t d)
{
int i;
part_t *p = PART;
@ -231,7 +231,7 @@ setup_data (bus_t * bus, uint32_t d)
*
*/
static void
tx4925_bus_read_start (bus_t * bus, uint32_t adr)
tx4925_bus_read_start (bus_t *bus, uint32_t adr)
{
part_t *p = PART;
chain_t *chain = CHAIN;
@ -251,7 +251,7 @@ tx4925_bus_read_start (bus_t * bus, uint32_t adr)
*
*/
static uint32_t
tx4925_bus_read_next (bus_t * bus, uint32_t adr)
tx4925_bus_read_next (bus_t *bus, uint32_t adr)
{
part_t *p = PART;
chain_t *chain = CHAIN;
@ -272,7 +272,7 @@ tx4925_bus_read_next (bus_t * bus, uint32_t adr)
*
*/
static uint32_t
tx4925_bus_read_end (bus_t * bus)
tx4925_bus_read_end (bus_t *bus)
{
part_t *p = PART;
chain_t *chain = CHAIN;
@ -296,7 +296,7 @@ tx4925_bus_read_end (bus_t * bus)
*
*/
static void
tx4925_bus_write (bus_t * bus, uint32_t adr, uint32_t data)
tx4925_bus_write (bus_t *bus, uint32_t adr, uint32_t data)
{
part_t *p = PART;
chain_t *chain = CHAIN;

@ -34,7 +34,7 @@
#include "jtag.h"
void
writemem (bus_t * bus, FILE * f, uint32_t addr, uint32_t len)
writemem (bus_t *bus, FILE *f, uint32_t addr, uint32_t len)
{
uint32_t step;
uint32_t a;

@ -156,7 +156,7 @@ typedef struct
*
*/
static bus_t *
zefant_xs3_bus_new (chain_t * chain, const bus_driver_t * driver,
zefant_xs3_bus_new (chain_t *chain, const bus_driver_t *driver,
char *cmd_params[])
{
bus_t *bus;
@ -420,7 +420,7 @@ zefant_xs3_bus_new (chain_t * chain, const bus_driver_t * driver,
*
*/
static void
zefant_xs3_bus_printinfo (bus_t * bus)
zefant_xs3_bus_printinfo (bus_t *bus)
{
int i;
@ -433,7 +433,7 @@ zefant_xs3_bus_printinfo (bus_t * bus)
}
static void
setup_address (bus_t * bus, uint32_t a, component_t * comp)
setup_address (bus_t *bus, uint32_t a, component_t *comp)
{
int i;
part_t *p = PART;
@ -468,7 +468,7 @@ setup_address (bus_t * bus, uint32_t a, component_t * comp)
}
static int
detect_data_width (component_t * comp)
detect_data_width (component_t *comp)
{
int width;
@ -493,7 +493,7 @@ detect_data_width (component_t * comp)
}
static void
set_data_in (bus_t * bus, component_t * comp)
set_data_in (bus_t *bus, component_t *comp)
{
int i;
part_t *p = PART;
@ -506,7 +506,7 @@ set_data_in (bus_t * bus, component_t * comp)
}
static void
setup_data (bus_t * bus, uint32_t d, component_t * comp)
setup_data (bus_t *bus, uint32_t d, component_t *comp)
{
int i;
part_t *p = PART;
@ -519,8 +519,7 @@ setup_data (bus_t * bus, uint32_t d, component_t * comp)
}
static uint8_t
eeprom_shift_byte (chain_t * chain, part_t * p, component_t * comp,
uint8_t byte)
eeprom_shift_byte (chain_t *chain, part_t *p, component_t *comp, uint8_t byte)
{
int pos;
uint8_t so_data = 0x00;
@ -547,7 +546,7 @@ eeprom_shift_byte (chain_t * chain, part_t * p, component_t * comp,
}
static void
eeprom_disable_device (chain_t * chain, part_t * p, component_t * comp)
eeprom_disable_device (chain_t *chain, part_t *p, component_t *comp)
{
/* ensure that SCK is low before disabling device */
part_set_signal (p, SCK, 1, 0);
@ -563,7 +562,7 @@ eeprom_disable_device (chain_t * chain, part_t * p, component_t * comp)
*
*/
static int
zefant_xs3_bus_init (bus_t * bus)
zefant_xs3_bus_init (bus_t *bus)
{
part_t *p = PART;
chain_t *chain = CHAIN;
@ -633,8 +632,7 @@ zefant_xs3_bus_init (bus_t * bus)
}
static int
comp_bus_area (bus_t * bus, uint32_t adr, bus_area_t * area,
component_t ** comp)
comp_bus_area (bus_t *bus, uint32_t adr, bus_area_t *area, component_t **comp)
{
if (adr < RAM0_START)
{
@ -693,7 +691,7 @@ comp_bus_area (bus_t * bus, uint32_t adr, bus_area_t * area,
*
*/
static int
zefant_xs3_bus_area (bus_t * bus, uint32_t adr, bus_area_t * area)
zefant_xs3_bus_area (bus_t *bus, uint32_t adr, bus_area_t *area)
{
component_t *comp;
@ -705,7 +703,7 @@ zefant_xs3_bus_area (bus_t * bus, uint32_t adr, bus_area_t * area)
*
*/
static void
zefant_xs3_bus_read_start (bus_t * bus, uint32_t adr)
zefant_xs3_bus_read_start (bus_t *bus, uint32_t adr)
{
part_t *p = PART;
chain_t *chain = CHAIN;
@ -775,7 +773,7 @@ zefant_xs3_bus_read_start (bus_t * bus, uint32_t adr)
*
*/
static uint32_t
zefant_xs3_bus_read_next (bus_t * bus, uint32_t adr)
zefant_xs3_bus_read_next (bus_t *bus, uint32_t adr)
{
part_t *p = PART;
chain_t *chain = CHAIN;
@ -824,7 +822,7 @@ zefant_xs3_bus_read_next (bus_t * bus, uint32_t adr)
*
*/
static uint32_t
zefant_xs3_bus_read_end (bus_t * bus)
zefant_xs3_bus_read_end (bus_t *bus)
{
part_t *p = PART;
chain_t *chain = CHAIN;
@ -881,7 +879,7 @@ zefant_xs3_bus_read_end (bus_t * bus)
*
*/
static void
zefant_xs3_bus_write (bus_t * bus, uint32_t adr, uint32_t data)
zefant_xs3_bus_write (bus_t *bus, uint32_t adr, uint32_t data)
{
part_t *p = PART;
chain_t *chain = CHAIN;

@ -32,7 +32,7 @@
#include "cmd.h"
static int
cmd_addpart_run (chain_t * chain, char *params[])
cmd_addpart_run (chain_t *chain, char *params[])
{
unsigned int len;

@ -45,7 +45,7 @@ cmd_bit_print_params (char *params[], unsigned int parameters, char *command)
}
static int
cmd_bit_run (chain_t * chain, char *params[])
cmd_bit_run (chain_t *chain, char *params[])
{
part_t *part;
data_register *bsr;

@ -33,7 +33,7 @@
#include "cmd.h"
static int
cmd_bsdl_run (chain_t * chain, char *params[])
cmd_bsdl_run (chain_t *chain, char *params[])
{
int num_params, result = -1;
bsdl_globs_t *globs = &(chain->bsdl);

@ -32,7 +32,7 @@
#include "cmd.h"
static int
cmd_bus_run (chain_t * chain, char *params[])
cmd_bus_run (chain_t *chain, char *params[])
{
unsigned int n;

@ -38,7 +38,7 @@
#include "cmd.h"
static int
cmd_cable_run (chain_t * chain, char *params[])
cmd_cable_run (chain_t *chain, char *params[])
{
cable_t *cable;
int i;

@ -164,7 +164,7 @@ cmd_completion (const char *text, int start, int end)
#endif
int
cmd_test_cable (chain_t * chain)
cmd_test_cable (chain_t *chain)
{
if (chain->cable)
return 1;
@ -178,7 +178,7 @@ cmd_test_cable (chain_t * chain)
/* Remainder copied from libbrux/cmd/cmd.c */
int
cmd_run (chain_t * chain, char *params[])
cmd_run (chain_t *chain, char *params[])
{
int i, pidx;
size_t len;

@ -35,7 +35,7 @@
#include "cmd.h"
static int
cmd_debug_run (chain_t * chain, char *params[])
cmd_debug_run (chain_t *chain, char *params[])
{
unsigned int i;

@ -34,7 +34,7 @@
#include "cmd.h"
static int
cmd_detect_run (chain_t * chain, char *params[])
cmd_detect_run (chain_t *chain, char *params[])
{
int i;
bus_t *abus;

@ -30,7 +30,7 @@
#include <cmd.h>
static int
cmd_detectflash_run (chain_t * chain, char *params[])
cmd_detectflash_run (chain_t *chain, char *params[])
{
uint32_t adr;

@ -31,7 +31,7 @@
#include "cmd.h"
static int
cmd_discovery_run (chain_t * chain, char *params[])
cmd_discovery_run (chain_t *chain, char *params[])
{
if (cmd_params (params) != 1)
return -1;

@ -33,7 +33,7 @@
#include "cmd.h"
static int
cmd_dr_run (chain_t * chain, char *params[])
cmd_dr_run (chain_t *chain, char *params[])
{
int dir = 1;
tap_register *r;

@ -32,7 +32,7 @@
#include "cmd.h"
static int
cmd_endian_run (chain_t * chain, char *params[])
cmd_endian_run (chain_t *chain, char *params[])
{
if (cmd_params (params) > 2)
return -1;

@ -34,7 +34,7 @@
#include "cmd.h"
static int
cmd_eraseflash_run (chain_t * chain, char *params[])
cmd_eraseflash_run (chain_t *chain, char *params[])
{
uint32_t adr = 0;
unsigned int number = 0;

@ -34,7 +34,7 @@
#include "cmd.h"
static int
cmd_flashmem_run (chain_t * chain, char *params[])
cmd_flashmem_run (chain_t *chain, char *params[])
{
int msbin;
int noverify = 0;

@ -32,7 +32,7 @@
#include "cmd.h"
static int
cmd_frequency_run (chain_t * chain, char *params[])
cmd_frequency_run (chain_t *chain, char *params[])
{
unsigned int freq;

@ -34,7 +34,7 @@
#include "cmd.h"
static int
cmd_get_run (chain_t * chain, char *params[])
cmd_get_run (chain_t *chain, char *params[])
{
int data;
signal_t *s;

@ -30,7 +30,7 @@
#include <cmd.h>
static int
cmd_help_run (chain_t * chain, char *params[])
cmd_help_run (chain_t *chain, char *params[])
{
int i;

@ -30,7 +30,7 @@
#include "cmd.h"
static int
cmd_idcode_run (chain_t * chain, char *params[])
cmd_idcode_run (chain_t *chain, char *params[])
{
unsigned int bytes = 0;

@ -35,7 +35,7 @@
#include "bsdl.h"
static int
cmd_include_or_script_run (chain_t * chain, int is_include, char *params[])
cmd_include_or_script_run (chain_t *chain, int is_include, char *params[])
{
int go = 0, i, j = 1;
char *path;
@ -121,7 +121,7 @@ cmd_include_or_script_help (char *cmd)
}
static int
cmd_include_run (chain_t * chain, char *params[])
cmd_include_run (chain_t *chain, char *params[])
{
return cmd_include_or_script_run (chain, 1, params);
}
@ -140,7 +140,7 @@ cmd_t cmd_include = {
};
static int
cmd_script_run (chain_t * chain, char *params[])
cmd_script_run (chain_t *chain, char *params[])
{
return cmd_include_or_script_run (chain, 0, params);
}

@ -32,7 +32,7 @@
#include "jtag.h"
static int
cmd_initbus_run (chain_t * chain, char *params[])
cmd_initbus_run (chain_t *chain, char *params[])
{
int i;

@ -33,7 +33,7 @@
#include "cmd.h"
static int
cmd_instruction_run (chain_t * chain, char *params[])
cmd_instruction_run (chain_t *chain, char *params[])
{
part_t *part;

@ -40,7 +40,7 @@
int
jtag_parse_line (chain_t * chain, char *line)
jtag_parse_line (chain_t *chain, char *line)
{
int l, i, r, tcnt;
char **a;
@ -119,7 +119,7 @@ jtag_parse_line (chain_t * chain, char *line)
int
jtag_parse_stream (chain_t * chain, FILE * f)
jtag_parse_stream (chain_t *chain, FILE *f)
{
char inputline[MAXINPUTLINE + 1];
int go = 1, i, c, lnr, clip, found_comment;
@ -160,7 +160,7 @@ jtag_parse_stream (chain_t * chain, FILE * f)
}
int
jtag_parse_file (chain_t * chain, const char *filename)
jtag_parse_file (chain_t *chain, const char *filename)
{
FILE *f;
int go;

@ -33,7 +33,7 @@
#include "cmd.h"
static int
cmd_part_run (chain_t * chain, char *params[])
cmd_part_run (chain_t *chain, char *params[])
{
unsigned int n;

@ -32,7 +32,7 @@
#include "cmd.h"
static int
cmd_peek_run (chain_t * chain, char *params[])
cmd_peek_run (chain_t *chain, char *params[])
{
uint32_t adr, val;
int pars, j = 1;
@ -96,7 +96,7 @@ cmd_t cmd_peek = {
};
static int
cmd_poke_run (chain_t * chain, char *params[])
cmd_poke_run (chain_t *chain, char *params[])
{
uint32_t adr, val;
bus_area_t area;

@ -36,7 +36,7 @@
#include "cmd.h"
static int
cmd_pod_run (chain_t * chain, char *params[])
cmd_pod_run (chain_t *chain, char *params[])
{
int i, j;
int mask = 0;

@ -44,7 +44,7 @@ typedef char wchar_t;
#include "cmd.h"
static int
cmd_print_run (chain_t * chain, char *params[])
cmd_print_run (chain_t *chain, char *params[])
{
char format[128];
#if HAVE_SWPRINTF

@ -29,7 +29,7 @@
#include <cmd.h>
static int
cmd_quit_run (chain_t * chain, char *params[])
cmd_quit_run (chain_t *chain, char *params[])
{
if (params[1])
return -1;

@ -32,7 +32,7 @@
#include "cmd.h"
static int
cmd_readmem_run (chain_t * chain, char *params[])
cmd_readmem_run (chain_t *chain, char *params[])
{
uint32_t adr;
uint32_t len;

@ -33,7 +33,7 @@
#include "cmd.h"
static int
cmd_register_run (chain_t * chain, char *params[])
cmd_register_run (chain_t *chain, char *params[])
{
part_t *part;
unsigned int len;

@ -33,7 +33,7 @@
#include "cmd.h"
static int
cmd_reset_run (chain_t * chain, char *params[])
cmd_reset_run (chain_t *chain, char *params[])
{
if (cmd_params (params) > 1)
return -1;

@ -33,7 +33,7 @@
#include "cmd.h"
static int
cmd_salias_run (chain_t * chain, char *params[])
cmd_salias_run (chain_t *chain, char *params[])
{
part_t *part;
signal_t *s;

@ -33,7 +33,7 @@
#include "cmd.h"
static int
cmd_scan_run (chain_t * chain, char *params[])
cmd_scan_run (chain_t *chain, char *params[])
{
part_t *part;
data_register *bsr;

@ -34,7 +34,7 @@
#include "cmd.h"
static int
cmd_set_run (chain_t * chain, char *params[])
cmd_set_run (chain_t *chain, char *params[])
{
int dir;
unsigned int data = 0;

@ -37,7 +37,7 @@
#include "cmd.h"
static int
cmd_shell_run (chain_t * chain, char *params[])
cmd_shell_run (chain_t *chain, char *params[])
{
int i, len, n = cmd_params (params);
char *shell_cmd;

@ -33,7 +33,7 @@
#include "cmd.h"
static int
cmd_shift_run (chain_t * chain, char *params[])
cmd_shift_run (chain_t *chain, char *params[])
{
if (cmd_params (params) != 2)
return -1;

@ -33,7 +33,7 @@
#include "cmd.h"
static int
cmd_signal_run (chain_t * chain, char *params[])
cmd_signal_run (chain_t *chain, char *params[])
{
part_t *part;
signal_t *s;

@ -33,7 +33,7 @@
#include <cmd.h>
static int
cmd_svf_run (chain_t * chain, char *params[])
cmd_svf_run (chain_t *chain, char *params[])
{
FILE *SVF_FILE;
int num_params, i, result = -1;

@ -35,7 +35,7 @@
#include "cmd.h"
static int
cmd_test_run (chain_t * chain, char *params[])
cmd_test_run (chain_t *chain, char *params[])
{
int data;
unsigned int i;

@ -33,7 +33,7 @@
#include "cmd.h"
static int
cmd_usleep_run (chain_t * chain, char *params[])
cmd_usleep_run (chain_t *chain, char *params[])
{
unsigned int usecs;

@ -30,7 +30,7 @@
#include "cmd.h"
static int
cmd_writemem_run (chain_t * chain, char *params[])
cmd_writemem_run (chain_t *chain, char *params[])
{
uint32_t adr;
uint32_t len;

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save