1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0+ */ 2*4882a593Smuzhiyun /* 3*4882a593Smuzhiyun * USB HandSpring Visor driver 4*4882a593Smuzhiyun * 5*4882a593Smuzhiyun * Copyright (C) 1999 - 2003 6*4882a593Smuzhiyun * Greg Kroah-Hartman (greg@kroah.com) 7*4882a593Smuzhiyun * 8*4882a593Smuzhiyun * See Documentation/usb/usb-serial.rst for more information on using this 9*4882a593Smuzhiyun * driver. 10*4882a593Smuzhiyun * 11*4882a593Smuzhiyun */ 12*4882a593Smuzhiyun 13*4882a593Smuzhiyun #ifndef __LINUX_USB_SERIAL_VISOR_H 14*4882a593Smuzhiyun #define __LINUX_USB_SERIAL_VISOR_H 15*4882a593Smuzhiyun 16*4882a593Smuzhiyun 17*4882a593Smuzhiyun #define HANDSPRING_VENDOR_ID 0x082d 18*4882a593Smuzhiyun #define HANDSPRING_VISOR_ID 0x0100 19*4882a593Smuzhiyun #define HANDSPRING_TREO_ID 0x0200 20*4882a593Smuzhiyun #define HANDSPRING_TREO600_ID 0x0300 21*4882a593Smuzhiyun 22*4882a593Smuzhiyun #define PALM_VENDOR_ID 0x0830 23*4882a593Smuzhiyun #define PALM_M500_ID 0x0001 24*4882a593Smuzhiyun #define PALM_M505_ID 0x0002 25*4882a593Smuzhiyun #define PALM_M515_ID 0x0003 26*4882a593Smuzhiyun #define PALM_I705_ID 0x0020 27*4882a593Smuzhiyun #define PALM_M125_ID 0x0040 28*4882a593Smuzhiyun #define PALM_M130_ID 0x0050 29*4882a593Smuzhiyun #define PALM_TUNGSTEN_T_ID 0x0060 30*4882a593Smuzhiyun #define PALM_TREO_650 0x0061 31*4882a593Smuzhiyun #define PALM_TUNGSTEN_Z_ID 0x0031 32*4882a593Smuzhiyun #define PALM_ZIRE_ID 0x0070 33*4882a593Smuzhiyun #define PALM_M100_ID 0x0080 34*4882a593Smuzhiyun 35*4882a593Smuzhiyun #define GSPDA_VENDOR_ID 0x115e 36*4882a593Smuzhiyun #define GSPDA_XPLORE_M68_ID 0xf100 37*4882a593Smuzhiyun 38*4882a593Smuzhiyun #define SONY_VENDOR_ID 0x054C 39*4882a593Smuzhiyun #define SONY_CLIE_3_5_ID 0x0038 40*4882a593Smuzhiyun #define SONY_CLIE_4_0_ID 0x0066 41*4882a593Smuzhiyun #define SONY_CLIE_S360_ID 0x0095 42*4882a593Smuzhiyun #define SONY_CLIE_4_1_ID 0x009A 43*4882a593Smuzhiyun #define SONY_CLIE_NX60_ID 0x00DA 44*4882a593Smuzhiyun #define SONY_CLIE_NZ90V_ID 0x00E9 45*4882a593Smuzhiyun #define SONY_CLIE_UX50_ID 0x0144 46*4882a593Smuzhiyun #define SONY_CLIE_TJ25_ID 0x0169 47*4882a593Smuzhiyun 48*4882a593Smuzhiyun #define ACER_VENDOR_ID 0x0502 49*4882a593Smuzhiyun #define ACER_S10_ID 0x0001 50*4882a593Smuzhiyun 51*4882a593Smuzhiyun #define SAMSUNG_VENDOR_ID 0x04E8 52*4882a593Smuzhiyun #define SAMSUNG_SCH_I330_ID 0x8001 53*4882a593Smuzhiyun #define SAMSUNG_SPH_I500_ID 0x6601 54*4882a593Smuzhiyun 55*4882a593Smuzhiyun #define TAPWAVE_VENDOR_ID 0x12EF 56*4882a593Smuzhiyun #define TAPWAVE_ZODIAC_ID 0x0100 57*4882a593Smuzhiyun 58*4882a593Smuzhiyun #define GARMIN_VENDOR_ID 0x091E 59*4882a593Smuzhiyun #define GARMIN_IQUE_3600_ID 0x0004 60*4882a593Smuzhiyun 61*4882a593Smuzhiyun #define ACEECA_VENDOR_ID 0x4766 62*4882a593Smuzhiyun #define ACEECA_MEZ1000_ID 0x0001 63*4882a593Smuzhiyun 64*4882a593Smuzhiyun #define KYOCERA_VENDOR_ID 0x0C88 65*4882a593Smuzhiyun #define KYOCERA_7135_ID 0x0021 66*4882a593Smuzhiyun 67*4882a593Smuzhiyun #define FOSSIL_VENDOR_ID 0x0E67 68*4882a593Smuzhiyun #define FOSSIL_ABACUS_ID 0x0002 69*4882a593Smuzhiyun 70*4882a593Smuzhiyun /**************************************************************************** 71*4882a593Smuzhiyun * Handspring Visor Vendor specific request codes (bRequest values) 72*4882a593Smuzhiyun * A big thank you to Handspring for providing the following information. 73*4882a593Smuzhiyun * If anyone wants the original file where these values and structures came 74*4882a593Smuzhiyun * from, send email to <greg@kroah.com>. 75*4882a593Smuzhiyun ****************************************************************************/ 76*4882a593Smuzhiyun 77*4882a593Smuzhiyun /**************************************************************************** 78*4882a593Smuzhiyun * VISOR_REQUEST_BYTES_AVAILABLE asks the visor for the number of bytes that 79*4882a593Smuzhiyun * are available to be transferred to the host for the specified endpoint. 80*4882a593Smuzhiyun * Currently this is not used, and always returns 0x0001 81*4882a593Smuzhiyun ****************************************************************************/ 82*4882a593Smuzhiyun #define VISOR_REQUEST_BYTES_AVAILABLE 0x01 83*4882a593Smuzhiyun 84*4882a593Smuzhiyun /**************************************************************************** 85*4882a593Smuzhiyun * VISOR_CLOSE_NOTIFICATION is set to the device to notify it that the host 86*4882a593Smuzhiyun * is now closing the pipe. An empty packet is sent in response. 87*4882a593Smuzhiyun ****************************************************************************/ 88*4882a593Smuzhiyun #define VISOR_CLOSE_NOTIFICATION 0x02 89*4882a593Smuzhiyun 90*4882a593Smuzhiyun /**************************************************************************** 91*4882a593Smuzhiyun * VISOR_GET_CONNECTION_INFORMATION is sent by the host during enumeration to 92*4882a593Smuzhiyun * get the endpoints used by the connection. 93*4882a593Smuzhiyun ****************************************************************************/ 94*4882a593Smuzhiyun #define VISOR_GET_CONNECTION_INFORMATION 0x03 95*4882a593Smuzhiyun 96*4882a593Smuzhiyun 97*4882a593Smuzhiyun /**************************************************************************** 98*4882a593Smuzhiyun * VISOR_GET_CONNECTION_INFORMATION returns data in the following format 99*4882a593Smuzhiyun ****************************************************************************/ 100*4882a593Smuzhiyun struct visor_connection_info { 101*4882a593Smuzhiyun __le16 num_ports; 102*4882a593Smuzhiyun struct { 103*4882a593Smuzhiyun __u8 port_function_id; 104*4882a593Smuzhiyun __u8 port; 105*4882a593Smuzhiyun } connections[2]; 106*4882a593Smuzhiyun }; 107*4882a593Smuzhiyun 108*4882a593Smuzhiyun 109*4882a593Smuzhiyun /* struct visor_connection_info.connection[x].port defines: */ 110*4882a593Smuzhiyun #define VISOR_ENDPOINT_1 0x01 111*4882a593Smuzhiyun #define VISOR_ENDPOINT_2 0x02 112*4882a593Smuzhiyun 113*4882a593Smuzhiyun /* struct visor_connection_info.connection[x].port_function_id defines: */ 114*4882a593Smuzhiyun #define VISOR_FUNCTION_GENERIC 0x00 115*4882a593Smuzhiyun #define VISOR_FUNCTION_DEBUGGER 0x01 116*4882a593Smuzhiyun #define VISOR_FUNCTION_HOTSYNC 0x02 117*4882a593Smuzhiyun #define VISOR_FUNCTION_CONSOLE 0x03 118*4882a593Smuzhiyun #define VISOR_FUNCTION_REMOTE_FILE_SYS 0x04 119*4882a593Smuzhiyun 120*4882a593Smuzhiyun 121*4882a593Smuzhiyun /**************************************************************************** 122*4882a593Smuzhiyun * PALM_GET_SOME_UNKNOWN_INFORMATION is sent by the host during enumeration to 123*4882a593Smuzhiyun * get some information from the M series devices, that is currently unknown. 124*4882a593Smuzhiyun ****************************************************************************/ 125*4882a593Smuzhiyun #define PALM_GET_EXT_CONNECTION_INFORMATION 0x04 126*4882a593Smuzhiyun 127*4882a593Smuzhiyun /** 128*4882a593Smuzhiyun * struct palm_ext_connection_info - return data from a PALM_GET_EXT_CONNECTION_INFORMATION request 129*4882a593Smuzhiyun * @num_ports: maximum number of functions/connections in use 130*4882a593Smuzhiyun * @endpoint_numbers_different: will be 1 if in and out endpoints numbers are 131*4882a593Smuzhiyun * different, otherwise it is 0. If value is 1, then 132*4882a593Smuzhiyun * connections.end_point_info is non-zero. If value is 0, then 133*4882a593Smuzhiyun * connections.port contains the endpoint number, which is the same for in 134*4882a593Smuzhiyun * and out. 135*4882a593Smuzhiyun * @port_function_id: contains the creator id of the application that opened 136*4882a593Smuzhiyun * this connection. 137*4882a593Smuzhiyun * @port: contains the in/out endpoint number. Is 0 if in and out endpoint 138*4882a593Smuzhiyun * numbers are different. 139*4882a593Smuzhiyun * @end_point_info: high nubbe is in endpoint and low nibble will indicate out 140*4882a593Smuzhiyun * endpoint. Is 0 if in and out endpoints are the same. 141*4882a593Smuzhiyun * 142*4882a593Smuzhiyun * The maximum number of connections currently supported is 2 143*4882a593Smuzhiyun */ 144*4882a593Smuzhiyun struct palm_ext_connection_info { 145*4882a593Smuzhiyun __u8 num_ports; 146*4882a593Smuzhiyun __u8 endpoint_numbers_different; 147*4882a593Smuzhiyun __le16 reserved1; 148*4882a593Smuzhiyun struct { 149*4882a593Smuzhiyun __u32 port_function_id; 150*4882a593Smuzhiyun __u8 port; 151*4882a593Smuzhiyun __u8 end_point_info; 152*4882a593Smuzhiyun __le16 reserved; 153*4882a593Smuzhiyun } connections[2]; 154*4882a593Smuzhiyun }; 155*4882a593Smuzhiyun 156*4882a593Smuzhiyun #endif 157*4882a593Smuzhiyun 158