drivers/usb/serial/io_ti.h

Source file repositories/reference/linux-study-clean/drivers/usb/serial/io_ti.h

File Facts

System
Linux kernel
Corpus path
drivers/usb/serial/io_ti.h
Extension
.h
Size
5240 bytes
Lines
182
Domain
Driver Families
Bucket
drivers/usb
Inferred role
Driver Families: implementation source
Status
source implementation candidate

Why This File Exists

Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.

Dependency Surface

Detected Declarations

Annotated Snippet

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) & 0x01)
#define TIUMP_GET_FUNC_FROM_CODE(c)	((c) & 0x0f)
#define TIUMP_INTERRUPT_CODE_LSR	0x03
#define TIUMP_INTERRUPT_CODE_MSR	0x04

#endif

Annotation

Implementation Notes