linux/drivers/usb/serial/cypress_m8.h

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef CYPRESS_M8_H
#define CYPRESS_M8_H

/*
 * definitions and function prototypes used for the cypress USB to Serial
 * controller
 */

/*
 * For sending our feature buffer - controlling serial communication states.
 * Linux HID has no support for serial devices so we do this through the driver
 */
#define HID_REQ_GET_REPORT
#define HID_REQ_SET_REPORT

/* List other cypress USB to Serial devices here, and add them to the id_table */

/* DeLorme Earthmate USB - a GPS device */
#define VENDOR_ID_DELORME
#define PRODUCT_ID_EARTHMATEUSB
#define PRODUCT_ID_EARTHMATEUSB_LT20

/* Cypress HID->COM RS232 Adapter */
#define VENDOR_ID_CYPRESS
#define PRODUCT_ID_CYPHIDCOM

/* Simply Automated HID->COM UPB PIM (using Cypress PID 0x5500) */
#define VENDOR_ID_SAI

/* FRWD Dongle - a GPS sports watch */
#define VENDOR_ID_FRWD
#define PRODUCT_ID_CYPHIDCOM_FRWD

/* Powercom UPS, chip CY7C63723 */
#define VENDOR_ID_POWERCOM
#define PRODUCT_ID_UPS

/* Nokia CA-42 USB to serial cable */
#define VENDOR_ID_DAZZLE
#define PRODUCT_ID_CA42
/* End of device listing */

/* Used for setting / requesting serial line settings */
#define CYPRESS_SET_CONFIG
#define CYPRESS_GET_CONFIG

/* Used for throttle control */
#define THROTTLED
#define ACTUALLY_THROTTLED

/*
 * chiptypes - used in case firmware differs from the generic form ... offering
 * different baud speeds/etc.
 */
#define CT_EARTHMATE
#define CT_CYPHIDCOM
#define CT_CA42V2
#define CT_GENERIC
/* End of chiptype definitions */

/*
 * RS-232 serial data communication protocol definitions.
 *
 * These are sent / read at byte 0 of the input/output hid reports.
 * You can find these values defined in the CY4601 USB to Serial design notes.
 */

#define CONTROL_DTR
#define CONTROL_RTS
#define CONTROL_RESET

#define UART_MSR_MASK
#define UART_RI
#define UART_CD
#define UART_DSR
#define UART_CTS
#define CYP_ERROR

/* End of RS-232 protocol definitions */

#endif /* CYPRESS_M8_H */