io_ti.h (35aeb1b31b73359902d8c8031c8dae5d390fd14f) io_ti.h (46388e865273bc67dc29fee9772e1b8b59eaafd3)
1/* SPDX-License-Identifier: GPL-2.0+ */
2/*****************************************************************************
3 *
4 * Copyright (C) 1997-2002 Inside Out Networks, Inc.
5 *
6 * Feb-16-2001 DMI Added I2C structure definitions
7 * May-29-2002 gkh Ported to Linux
8 *

--- 127 unchanged lines hidden (view full) ---

136 u8 Configuration;
137 u8 XBufAddr;
138 u8 XByteCount;
139 u8 Unused1;
140 u8 Unused2;
141 u8 YBufAddr;
142 u8 YByteCount;
143 u8 BufferSize;
1/* SPDX-License-Identifier: GPL-2.0+ */
2/*****************************************************************************
3 *
4 * Copyright (C) 1997-2002 Inside Out Networks, Inc.
5 *
6 * Feb-16-2001 DMI Added I2C structure definitions
7 * May-29-2002 gkh Ported to Linux
8 *

--- 127 unchanged lines hidden (view full) ---

136 u8 Configuration;
137 u8 XBufAddr;
138 u8 XByteCount;
139 u8 Unused1;
140 u8 Unused2;
141 u8 YBufAddr;
142 u8 YByteCount;
143 u8 BufferSize;
144} __attribute__((packed));
144};
145
146
147/*
148 * TYPE DEFINITIONS
149 * Structures for Firmware commands
150 */
151/* UART settings */
152struct ump_uart_config {
153 u16 wBaudRate; /* Baud rate */
154 u16 wFlags; /* Bitmap mask of flags */
155 u8 bDataBits; /* 5..8 - data bits per character */
156 u8 bParity; /* Parity settings */
157 u8 bStopBits; /* Stop bits settings */
158 char cXon; /* XON character */
159 char cXoff; /* XOFF character */
160 u8 bUartMode; /* Will be updated when a user */
161 /* interface is defined */
145
146
147/*
148 * TYPE DEFINITIONS
149 * Structures for Firmware commands
150 */
151/* UART settings */
152struct ump_uart_config {
153 u16 wBaudRate; /* Baud rate */
154 u16 wFlags; /* Bitmap mask of flags */
155 u8 bDataBits; /* 5..8 - data bits per character */
156 u8 bParity; /* Parity settings */
157 u8 bStopBits; /* Stop bits settings */
158 char cXon; /* XON character */
159 char cXoff; /* XOFF character */
160 u8 bUartMode; /* Will be updated when a user */
161 /* interface is defined */
162} __attribute__((packed));
162};
163
164
165/*
166 * TYPE DEFINITIONS
167 * Structures for USB interrupts
168 */
169/* Interrupt packet structure */
170struct ump_interrupt {
171 u8 bICode; /* Interrupt code (interrupt num) */
172 u8 bIInfo; /* Interrupt information */
163
164
165/*
166 * TYPE DEFINITIONS
167 * Structures for USB interrupts
168 */
169/* Interrupt packet structure */
170struct ump_interrupt {
171 u8 bICode; /* Interrupt code (interrupt num) */
172 u8 bIInfo; /* Interrupt information */
173} __attribute__((packed));
173};
174
175
176#define TIUMP_GET_PORT_FROM_CODE(c) (((c) >> 6) & 0x01)
177#define TIUMP_GET_FUNC_FROM_CODE(c) ((c) & 0x0f)
178#define TIUMP_INTERRUPT_CODE_LSR 0x03
179#define TIUMP_INTERRUPT_CODE_MSR 0x04
180
181#endif
174
175
176#define TIUMP_GET_PORT_FROM_CODE(c) (((c) >> 6) & 0x01)
177#define TIUMP_GET_FUNC_FROM_CODE(c) ((c) & 0x0f)
178#define TIUMP_INTERRUPT_CODE_LSR 0x03
179#define TIUMP_INTERRUPT_CODE_MSR 0x04
180
181#endif