usb_ejtag_command.h File Reference

#include <usb.h>

Include dependency graph for usb_ejtag_command.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define BUSRT_ECHO_MAX   0x10000
#define DMA32_WR1_MAX   0x400
#define DMA32_WR2_MAX   0x100000
#define FAST_WR2_MAX   0x1000000
#define LS232_USB_EJTAG_PRODUCT_ID   0x6688
#define LS232_USB_EJTAG_VENDOR_ID   0x2961
#define OP_BURST_ECHO   0x9
#define OP_DMA32_WRITE1   0x6
#define OP_DMA32_WRITE2   0x7
#define OP_EJTAG_I_SHIFT   0x8
#define OP_EJTAG_SHIFT   0xA
#define OP_EJTAG_W_SHIFT   0x9
#define OP_FAST_READ   0x10
#define OP_FAST_WRITE1   0xB
#define OP_FAST_WRITE2   0xC
#define OP_FPGA_INFO   0x3
#define OP_SIGNAL_ECHO   0x8
#define OP_TAP_RST   0x1
#define OP_TARGET_RST   0x2
#define OP_WR_DR   0x5
#define OP_WR_IR   0x4
#define OP_WR_UPLOAD   0xF
#define USB_CAN_BULK_WR_FLAG   1
#define USB_FOUND   1
#define USB_NO_FOUND   0
#define USB_NOT_BULK_WR_FLAG   0

Variables

unsigned short burst_echo_data [BUSRT_ECHO_MAX+3] = {0}
char * bus_name = "001"
struct usb_device * current_device
usb_dev_handle * current_handle
char * device_name = "001"
unsigned short dma32_write1_data [DMA32_WR1_MAX+1] = {0}
unsigned short dma32_write2_data [DMA32_WR2_MAX+3] = {0}
int endpoint = 0
unsigned short fast_read_data [FAST_WR2_MAX+3] = {0}
unsigned short fast_write2_data [FAST_WR2_MAX+3] = {0}
unsigned short signal_echo_data [3] = {0}
int usb_can_bulk_wr_flag = USB_NOT_BULK_WR_FLAG
unsigned short usb_wr_dr_data [3] = {0}


Define Documentation

#define BUSRT_ECHO_MAX   0x10000

Definition at line 11 of file usb_ejtag_command.h.

Referenced by burst_echo().

#define DMA32_WR1_MAX   0x400

Definition at line 12 of file usb_ejtag_command.h.

Referenced by dma32_write1().

#define DMA32_WR2_MAX   0x100000

Definition at line 13 of file usb_ejtag_command.h.

Referenced by dma32_write2().

#define FAST_WR2_MAX   0x1000000

Definition at line 14 of file usb_ejtag_command.h.

Referenced by fast_read(), and fast_write2().

#define LS232_USB_EJTAG_PRODUCT_ID   0x6688

Definition at line 66 of file usb_ejtag_command.h.

Referenced by dump_busses().

#define LS232_USB_EJTAG_VENDOR_ID   0x2961

Definition at line 65 of file usb_ejtag_command.h.

Referenced by dump_busses().

#define OP_BURST_ECHO   0x9

Definition at line 55 of file usb_ejtag_command.h.

Referenced by burst_echo().

#define OP_DMA32_WRITE1   0x6

Definition at line 44 of file usb_ejtag_command.h.

Referenced by dma32_write1().

#define OP_DMA32_WRITE2   0x7

Definition at line 45 of file usb_ejtag_command.h.

Referenced by dma32_write2().

#define OP_EJTAG_I_SHIFT   0x8

Definition at line 18 of file usb_ejtag_command.h.

Referenced by signal_echo(), usb_wr_dr(), and usb_wr_ir().

#define OP_EJTAG_SHIFT   0xA

#define OP_EJTAG_W_SHIFT   0x9

Definition at line 17 of file usb_ejtag_command.h.

Referenced by signal_echo(), usb_wr_dr(), and usb_wr_ir().

#define OP_FAST_READ   0x10

Definition at line 50 of file usb_ejtag_command.h.

Referenced by fast_read().

#define OP_FAST_WRITE1   0xB

Definition at line 47 of file usb_ejtag_command.h.

#define OP_FAST_WRITE2   0xC

Definition at line 48 of file usb_ejtag_command.h.

Referenced by fast_write2().

#define OP_FPGA_INFO   0x3

Definition at line 23 of file usb_ejtag_command.h.

Referenced by fpga_info_ejtag().

#define OP_SIGNAL_ECHO   0x8

Definition at line 54 of file usb_ejtag_command.h.

Referenced by signal_echo().

#define OP_TAP_RST   0x1

Definition at line 21 of file usb_ejtag_command.h.

Referenced by tap_reset().

#define OP_TARGET_RST   0x2

Definition at line 22 of file usb_ejtag_command.h.

Referenced by target_reset().

#define OP_WR_DR   0x5

Definition at line 39 of file usb_ejtag_command.h.

Referenced by usb_wr_dr(), and usb_wr_dr_nwb().

#define OP_WR_IR   0x4

Definition at line 31 of file usb_ejtag_command.h.

Referenced by usb_wr_ir().

#define OP_WR_UPLOAD   0xF

Definition at line 49 of file usb_ejtag_command.h.

Referenced by usb_wr_upload().

#define USB_CAN_BULK_WR_FLAG   1

Definition at line 64 of file usb_ejtag_command.h.

Referenced by fJTAG_Init(), usb_fx2_reset(), and usb_stop().

#define USB_FOUND   1

Definition at line 61 of file usb_ejtag_command.h.

Referenced by dump_busses(), and fJTAG_Init().

#define USB_NO_FOUND   0

Definition at line 62 of file usb_ejtag_command.h.

Referenced by dump_busses(), fJTAG_Init(), and usb_tap_init().

#define USB_NOT_BULK_WR_FLAG   0

Definition at line 63 of file usb_ejtag_command.h.

Referenced by usb_fx2_reset().


Variable Documentation

unsigned short burst_echo_data[BUSRT_ECHO_MAX+3] = {0}

Definition at line 75 of file usb_ejtag_command.h.

Referenced by burst_echo().

char* bus_name = "001"

Definition at line 79 of file usb_ejtag_command.h.

Referenced by dump_busses(), and usb_tap_init().

struct usb_device* current_device

Definition at line 77 of file usb_ejtag_command.h.

Referenced by usb_fx2_reset(), and usb_tap_init().

usb_dev_handle* current_handle

char* device_name = "001"

Definition at line 80 of file usb_ejtag_command.h.

Referenced by dump_busses(), and usb_tap_init().

unsigned short dma32_write1_data[DMA32_WR1_MAX+1] = {0}

Definition at line 70 of file usb_ejtag_command.h.

Referenced by dma32_write1().

unsigned short dma32_write2_data[DMA32_WR2_MAX+3] = {0}

Definition at line 71 of file usb_ejtag_command.h.

Referenced by fast_read(), and fast_write2().

int endpoint = 0

Definition at line 81 of file usb_ejtag_command.h.

Referenced by fast_read(), fast_write2(), usb_wr_dr(), usb_wr_ir(), and usb_wr_upload().

unsigned short fast_read_data[FAST_WR2_MAX+3] = {0}

Definition at line 73 of file usb_ejtag_command.h.

Referenced by fast_read().

unsigned short fast_write2_data[FAST_WR2_MAX+3] = {0}

Definition at line 72 of file usb_ejtag_command.h.

Referenced by fast_write2().

unsigned short signal_echo_data[3] = {0}

Definition at line 74 of file usb_ejtag_command.h.

Referenced by signal_echo().

int usb_can_bulk_wr_flag = USB_NOT_BULK_WR_FLAG

Definition at line 68 of file usb_ejtag_command.h.

Referenced by fJTAG_Init(), usb_fx2_reset(), and usb_stop().

unsigned short usb_wr_dr_data[3] = {0}

Definition at line 69 of file usb_ejtag_command.h.

Referenced by usb_wr_dr(), usb_wr_dr_nwb(), and usb_wr_upload().


Generated on Fri Nov 5 07:24:48 2010 for ejtag debug tools for loongson 232 cpu by  doxygen 1.5.6