/* SPDX-License-Identifier: GPL-2.0+ */
/*****************************************************************************
*
* Copyright ( C ) 1997 - 2002 Inside Out Networks , Inc .
*
* Feb - 16 - 2001 DMI Added I2C structure definitions
* May - 29 - 2002 gkh Ported to Linux
*
*
******************************************************************************/
#ifndef _IO_TI_H_
#define _IO_TI_H_
/* Address Space */
#define DTK_ADDR_SPACE_XDATA 0 x03 /* Addr is placed in XDATA space */
#define DTK_ADDR_SPACE_I2C_TYPE_II 0 x82 /* Addr is placed in I2C area */
#define DTK_ADDR_SPACE_I2C_TYPE_III 0 x83 /* Addr is placed in I2C area */
/* UART Defines */
#define UMPMEM_BASE_UART1 0 xFFA0 /* UMP UART1 base address */
#define UMPMEM_BASE_UART2 0 xFFB0 /* UMP UART2 base address */
#define UMPMEM_OFFS_UART_LSR 0 x05 /* UMP UART LSR register offset */
/* Bits per character */
#define UMP_UART_CHAR5BITS 0 x00
#define UMP_UART_CHAR6BITS 0 x01
#define UMP_UART_CHAR7BITS 0 x02
#define UMP_UART_CHAR8BITS 0 x03
/* Parity */
#define UMP_UART_NOPARITY 0 x00
#define UMP_UART_ODDPARITY 0 x01
#define UMP_UART_EVENPARITY 0 x02
#define UMP_UART_MARKPARITY 0 x03
#define UMP_UART_SPACEPARITY 0 x04
/* Stop bits */
#define UMP_UART_STOPBIT1 0 x00
#define UMP_UART_STOPBIT15 0 x01
#define UMP_UART_STOPBIT2 0 x02
/* Line status register masks */
#define UMP_UART_LSR_OV_MASK 0 x01
#define UMP_UART_LSR_PE_MASK 0 x02
#define UMP_UART_LSR_FE_MASK 0 x04
#define UMP_UART_LSR_BR_MASK 0 x08
#define UMP_UART_LSR_ER_MASK 0 x0F
#define UMP_UART_LSR_RX_MASK 0 x10
#define UMP_UART_LSR_TX_MASK 0 x20
#define UMP_UART_LSR_DATA_MASK (LSR_PAR_ERR | LSR_FRM_ERR | LSR_BREAK)
/* Port Settings Constants) */
#define UMP_MASK_UART_FLAGS_RTS_FLOW 0 x0001
#define UMP_MASK_UART_FLAGS_RTS_DISABLE 0 x0002
#define UMP_MASK_UART_FLAGS_PARITY 0 x0008
#define UMP_MASK_UART_FLAGS_OUT_X_DSR_FLOW 0 x0010
#define UMP_MASK_UART_FLAGS_OUT_X_CTS_FLOW 0 x0020
#define UMP_MASK_UART_FLAGS_OUT_X 0 x0040
#define UMP_MASK_UART_FLAGS_OUT_XA 0 x0080
#define UMP_MASK_UART_FLAGS_IN_X 0 x0100
#define UMP_MASK_UART_FLAGS_DTR_FLOW 0 x0800
#define UMP_MASK_UART_FLAGS_DTR_DISABLE 0 x1000
#define UMP_MASK_UART_FLAGS_RECEIVE_MS_INT 0 x2000
#define UMP_MASK_UART_FLAGS_AUTO_START_ON_ERR 0 x4000
#define UMP_DMA_MODE_CONTINOUS 0 x01
#define UMP_PIPE_TRANS_TIMEOUT_ENA 0 x80
#define UMP_PIPE_TRANSFER_MODE_MASK 0 x03
#define UMP_PIPE_TRANS_TIMEOUT_MASK 0 x7C
/* Purge port Direction Mask Bits */
#define UMP_PORT_DIR_OUT 0 x01
#define UMP_PORT_DIR_IN 0 x02
/* Address of Port 0 */
#define UMPM_UART1_PORT 0 x03
/* Commands */
#define UMPC_SET_CONFIG 0 x05
#define UMPC_OPEN_PORT 0 x06
#define UMPC_CLOSE_PORT 0 x07
#define UMPC_START_PORT 0 x08
#define UMPC_STOP_PORT 0 x09
#define UMPC_TEST_PORT 0 x0A
#define UMPC_PURGE_PORT 0 x0B
/* Force the Firmware to complete the current Read */
#define UMPC_COMPLETE_READ 0 x80
/* Force UMP back into BOOT Mode */
#define UMPC_HARDWARE_RESET 0 x81
/*
* Copy current download image to type 0 xf2 record in 16 k I2C
* firmware will change 0 xff record to type 2 record when complete
*/
#define UMPC_COPY_DNLD_TO_I2C 0 x82
/*
* Special function register commands
* wIndex is register address
* wValue is MSB / LSB mask / data
*/
#define UMPC_WRITE_SFR 0 x83 /* Write SFR Register */
/* wIndex is register address */
#define UMPC_READ_SFR 0 x84 /* Read SRF Register */
/* Set or Clear DTR (wValue bit 0 Set/Clear) wIndex ModuleID (port) */
#define UMPC_SET_CLR_DTR 0 x85
/* Set or Clear RTS (wValue bit 0 Set/Clear) wIndex ModuleID (port) */
#define UMPC_SET_CLR_RTS 0 x86
/* Set or Clear LOOPBACK (wValue bit 0 Set/Clear) wIndex ModuleID (port) */
#define UMPC_SET_CLR_LOOPBACK 0 x87
/* Set or Clear BREAK (wValue bit 0 Set/Clear) wIndex ModuleID (port) */
#define UMPC_SET_CLR_BREAK 0 x88
/* Read MSR wIndex ModuleID (port) */
#define UMPC_READ_MSR 0 x89
/* Toolkit commands */
/* Read-write group */
#define UMPC_MEMORY_READ 0 x92
#define UMPC_MEMORY_WRITE 0 x93
/*
* UMP DMA Definitions
*/
#define UMPD_OEDB1_ADDRESS 0 xFF08
#define UMPD_OEDB2_ADDRESS 0 xFF10
struct out_endpoint_desc_block {
u8 Configuration;
u8 XBufAddr;
u8 XByteCount;
u8 Unused1;
u8 Unused2;
u8 YBufAddr;
u8 YByteCount;
u8 BufferSize;
};
/*
* TYPE DEFINITIONS
* Structures for Firmware commands
*/
/* UART settings */
struct ump_uart_config {
u16 wBaudRate; /* Baud rate */
u16 wFlags; /* Bitmap mask of flags */
u8 bDataBits; /* 5..8 - data bits per character */
u8 bParity; /* Parity settings */
u8 bStopBits; /* Stop bits settings */
char cXon; /* XON character */
char cXoff; /* XOFF character */
u8 bUartMode; /* Will be updated when a user */
/* interface is defined */
};
/*
* TYPE DEFINITIONS
* Structures for USB interrupts
*/
/* Interrupt packet structure */
struct ump_interrupt {
u8 bICode; /* Interrupt code (interrupt num) */
u8 bIInfo; /* Interrupt information */
};
#define TIUMP_GET_PORT_FROM_CODE(c) (((c) >> 6 ) & 0 x01)
#define TIUMP_GET_FUNC_FROM_CODE(c) ((c) & 0 x0f)
#define TIUMP_INTERRUPT_CODE_LSR 0 x03
#define TIUMP_INTERRUPT_CODE_MSR 0 x04
#endif
Messung V0.5 in Prozent C=81 H=100 G=90
¤ Dauer der Verarbeitung: 0.9 Sekunden
(vorverarbeitet am 2026-09-28)
¤
*© Formatika GbR, Deutschland