2 * USB HandSpring Visor driver
4 * Copyright (C) 1999 - 2003
5 * Greg Kroah-Hartman (greg@kroah.com)
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * See Documentation/usb/usb-serial.txt for more information on using this driver
16 #ifndef __LINUX_USB_SERIAL_VISOR_H
17 #define __LINUX_USB_SERIAL_VISOR_H
20 #define HANDSPRING_VENDOR_ID 0x082d
21 #define HANDSPRING_VISOR_ID 0x0100
22 #define HANDSPRING_TREO_ID 0x0200
23 #define HANDSPRING_TREO600_ID 0x0300
25 #define PALM_VENDOR_ID 0x0830
26 #define PALM_M500_ID 0x0001
27 #define PALM_M505_ID 0x0002
28 #define PALM_M515_ID 0x0003
29 #define PALM_I705_ID 0x0020
30 #define PALM_M125_ID 0x0040
31 #define PALM_M130_ID 0x0050
32 #define PALM_TUNGSTEN_T_ID 0x0060
33 #define PALM_TUNGSTEN_Z_ID 0x0031
34 #define PALM_ZIRE_ID 0x0070
35 #define PALM_M100_ID 0x0080
37 #define SONY_VENDOR_ID 0x054C
38 #define SONY_CLIE_3_5_ID 0x0038
39 #define SONY_CLIE_4_0_ID 0x0066
40 #define SONY_CLIE_S360_ID 0x0095
41 #define SONY_CLIE_4_1_ID 0x009A
42 #define SONY_CLIE_NX60_ID 0x00DA
43 #define SONY_CLIE_NZ90V_ID 0x00E9
44 #define SONY_CLIE_UX50_ID 0x0144
45 #define SONY_CLIE_TJ25_ID 0x0169
47 #define SAMSUNG_VENDOR_ID 0x04E8
48 #define SAMSUNG_SCH_I330_ID 0x8001
49 #define SAMSUNG_SPH_I500_ID 0x6601
51 #define GARMIN_VENDOR_ID 0x091E
52 #define GARMIN_IQUE_3600_ID 0x0004
54 #define ACEECA_VENDOR_ID 0x4766
55 #define ACEECA_MEZ1000_ID 0x0001
57 /****************************************************************************
58 * Handspring Visor Vendor specific request codes (bRequest values)
59 * A big thank you to Handspring for providing the following information.
60 * If anyone wants the original file where these values and structures came
61 * from, send email to <greg@kroah.com>.
62 ****************************************************************************/
64 /****************************************************************************
65 * VISOR_REQUEST_BYTES_AVAILABLE asks the visor for the number of bytes that
66 * are available to be transferred to the host for the specified endpoint.
67 * Currently this is not used, and always returns 0x0001
68 ****************************************************************************/
69 #define VISOR_REQUEST_BYTES_AVAILABLE 0x01
71 /****************************************************************************
72 * VISOR_CLOSE_NOTIFICATION is set to the device to notify it that the host
73 * is now closing the pipe. An empty packet is sent in response.
74 ****************************************************************************/
75 #define VISOR_CLOSE_NOTIFICATION 0x02
77 /****************************************************************************
78 * VISOR_GET_CONNECTION_INFORMATION is sent by the host during enumeration to
79 * get the endpoints used by the connection.
80 ****************************************************************************/
81 #define VISOR_GET_CONNECTION_INFORMATION 0x03
84 /****************************************************************************
85 * VISOR_GET_CONNECTION_INFORMATION returns data in the following format
86 ****************************************************************************/
87 struct visor_connection_info {
90 __u8 port_function_id;
96 /* struct visor_connection_info.connection[x].port defines: */
97 #define VISOR_ENDPOINT_1 0x01
98 #define VISOR_ENDPOINT_2 0x02
100 /* struct visor_connection_info.connection[x].port_function_id defines: */
101 #define VISOR_FUNCTION_GENERIC 0x00
102 #define VISOR_FUNCTION_DEBUGGER 0x01
103 #define VISOR_FUNCTION_HOTSYNC 0x02
104 #define VISOR_FUNCTION_CONSOLE 0x03
105 #define VISOR_FUNCTION_REMOTE_FILE_SYS 0x04
108 /****************************************************************************
109 * PALM_GET_SOME_UNKNOWN_INFORMATION is sent by the host during enumeration to
110 * get some information from the M series devices, that is currently unknown.
111 ****************************************************************************/
112 #define PALM_GET_EXT_CONNECTION_INFORMATION 0x04
115 * struct palm_ext_connection_info - return data from a PALM_GET_EXT_CONNECTION_INFORMATION request
116 * @num_ports: maximum number of functions/connections in use
117 * @endpoint_numbers_different: will be 1 if in and out endpoints numbers are
118 * different, otherwise it is 0. If value is 1, then
119 * connections.end_point_info is non-zero. If value is 0, then
120 * connections.port contains the endpoint number, which is the same for in
122 * @port_function_id: contains the creator id of the applicaton that opened
124 * @port: contains the in/out endpoint number. Is 0 if in and out endpoint
125 * numbers are different.
126 * @end_point_info: high nubbe is in endpoint and low nibble will indicate out
127 * endpoint. Is 0 if in and out endpoints are the same.
129 * The maximum number of connections currently supported is 2
131 struct palm_ext_connection_info {
133 __u8 endpoint_numbers_different;
136 __u32 port_function_id;