linux/drivers/usb/serial/belkin_sa.h

/* SPDX-License-Identifier: GPL-2.0+ */
/*
 * Definitions for Belkin USB Serial Adapter Driver
 *
 *  Copyright (C) 2000
 *      William Greathouse ([email protected])
 *
 *  This program is largely derived from work by the linux-usb group
 *  and associated source files.  Please see the usb/serial files for
 *  individual credits and copyrights.
 *
 * See Documentation/usb/usb-serial.rst for more information on using this
 * driver
 *
 * 12-Mar-2001 gkh
 *	Added GoHubs GO-COM232 device id.
 *
 * 06-Nov-2000 gkh
 *	Added old Belkin and Peracom device ids, which this driver supports
 *
 * 12-Oct-2000 William Greathouse
 *    First cut at supporting Belkin USB Serial Adapter F5U103
 *    I did not have a copy of the original work to support this
 *    adapter, so pardon any stupid mistakes.  All of the information
 *    I am using to write this driver was acquired by using a modified
 *    UsbSnoop on Windows2000.
 *
 */

#ifndef __LINUX_USB_SERIAL_BSA_H
#define __LINUX_USB_SERIAL_BSA_H

#define BELKIN_DOCKSTATION_VID
#define BELKIN_DOCKSTATION_PID

#define BELKIN_SA_VID
#define BELKIN_SA_PID

#define BELKIN_OLD_VID
#define BELKIN_OLD_PID

#define PERACOM_VID
#define PERACOM_PID

#define GOHUBS_VID
#define GOHUBS_PID
#define HANDYLINK_PID

/* Vendor Request Interface */
#define BELKIN_SA_SET_BAUDRATE_REQUEST
#define BELKIN_SA_SET_STOP_BITS_REQUEST
#define BELKIN_SA_SET_DATA_BITS_REQUEST
#define BELKIN_SA_SET_PARITY_REQUEST

#define BELKIN_SA_SET_DTR_REQUEST
#define BELKIN_SA_SET_RTS_REQUEST
#define BELKIN_SA_SET_BREAK_REQUEST

#define BELKIN_SA_SET_FLOW_CTRL_REQUEST


#ifdef WHEN_I_LEARN_THIS
#define BELKIN_SA_SET_MAGIC_REQUEST
					   /* (always in Wininit sequence before flow control) */
#define BELKIN_SA_RESET
#define BELKIN_SA_GET_MODEM_STATUS
#endif

#define BELKIN_SA_SET_REQUEST_TYPE

#define BELKIN_SA_BAUD(b)

#define BELKIN_SA_STOP_BITS(b)

#define BELKIN_SA_DATA_BITS(b)

#define BELKIN_SA_PARITY_NONE
#define BELKIN_SA_PARITY_EVEN
#define BELKIN_SA_PARITY_ODD
#define BELKIN_SA_PARITY_MARK
#define BELKIN_SA_PARITY_SPACE

#define BELKIN_SA_FLOW_NONE
#define BELKIN_SA_FLOW_OCTS
#define BELKIN_SA_FLOW_ODSR
#define BELKIN_SA_FLOW_IDSR
#define BELKIN_SA_FLOW_IDTR
#define BELKIN_SA_FLOW_IRTS
#define BELKIN_SA_FLOW_ORTS
#define BELKIN_SA_FLOW_ERRSUB
#define BELKIN_SA_FLOW_OXON
#define BELKIN_SA_FLOW_IXON

/*
 * It seems that the interrupt pipe is closely modelled after the
 * 16550 register layout.  This is probably because the adapter can
 * be used in a "DOS" environment to simulate a standard hardware port.
 */
#define BELKIN_SA_LSR_INDEX
#define BELKIN_SA_LSR_RDR
#define BELKIN_SA_LSR_OE
#define BELKIN_SA_LSR_PE
#define BELKIN_SA_LSR_FE
#define BELKIN_SA_LSR_BI
#define BELKIN_SA_LSR_THE
#define BELKIN_SA_LSR_TE
#define BELKIN_SA_LSR_ERR

#define BELKIN_SA_MSR_INDEX
#define BELKIN_SA_MSR_DCTS
#define BELKIN_SA_MSR_DDSR
#define BELKIN_SA_MSR_DRI
#define BELKIN_SA_MSR_DCD
#define BELKIN_SA_MSR_CTS
#define BELKIN_SA_MSR_DSR
#define BELKIN_SA_MSR_RI
#define BELKIN_SA_MSR_CD

#endif /* __LINUX_USB_SERIAL_BSA_H */