Ok. I didn't make 2.4.0 in 2000. Tough. I tried, but we had some
[davej-history.git] / drivers / usb / serial / visor.h
blob6407a7811d43da97e487553caacc085fd8799115
1 /*
2 * USB HandSpring Visor driver
4 * Copyright (C) 1999, 2000
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
23 /****************************************************************************
24 * Handspring Visor Vendor specific request codes (bRequest values)
25 * A big thank you to Handspring for providing the following information.
26 * If anyone wants the original file where these values and structures came
27 * from, send email to <greg@kroah.com>.
28 ****************************************************************************/
30 /****************************************************************************
31 * VISOR_REQUEST_BYTES_AVAILABLE asks the visor for the number of bytes that
32 * are available to be transfered to the host for the specified endpoint.
33 * Currently this is not used, and always returns 0x0001
34 ****************************************************************************/
35 #define VISOR_REQUEST_BYTES_AVAILABLE 0x01
37 /****************************************************************************
38 * VISOR_CLOSE_NOTIFICATION is set to the device to notify it that the host
39 * is now closing the pipe. An empty packet is sent in response.
40 ****************************************************************************/
41 #define VISOR_CLOSE_NOTIFICATION 0x02
43 /****************************************************************************
44 * VISOR_GET_CONNECTION_INFORMATION is sent by the host during enumeration to
45 * get the endpoints used by the connection.
46 ****************************************************************************/
47 #define VISOR_GET_CONNECTION_INFORMATION 0x03
50 /****************************************************************************
51 * VISOR_GET_CONNECTION_INFORMATION returns data in the following format
52 ****************************************************************************/
53 struct visor_connection_info {
54 __u16 num_ports;
55 struct {
56 __u8 port_function_id;
57 __u8 port;
58 } connections[2];
62 /* struct visor_connection_info.connection[x].port defines: */
63 #define VISOR_ENDPOINT_1 0x01
64 #define VISOR_ENDPOINT_2 0x02
66 /* struct visor_connection_info.connection[x].port_function_id defines: */
67 #define VISOR_FUNCTION_GENERIC 0x00
68 #define VISOR_FUNCTION_DEBUGGER 0x01
69 #define VISOR_FUNCTION_HOTSYNC 0x02
70 #define VISOR_FUNCTION_CONSOLE 0x03
71 #define VISOR_FUNCTION_REMOTE_FILE_SYS 0x04
73 #endif