io_ti.h (664b0bae0b87f69bc9deb098f5e0158b9cf18e04) io_ti.h (691a03cfe8ca483f9c48153b869d354e4ae3abef)
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 *

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

168 */
169/* Interrupt packet structure */
170struct ump_interrupt {
171 __u8 bICode; /* Interrupt code (interrupt num) */
172 __u8 bIInfo; /* Interrupt information */
173} __attribute__((packed));
174
175
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 *

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

168 */
169/* Interrupt packet structure */
170struct ump_interrupt {
171 __u8 bICode; /* Interrupt code (interrupt num) */
172 __u8 bIInfo; /* Interrupt information */
173} __attribute__((packed));
174
175
176#define TIUMP_GET_PORT_FROM_CODE(c) (((c) >> 4) - 3)
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
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