4 #include <intuition/intuition.h>
5 #include <intuition/intuitionbase.h>
6 #include <libraries/mui.h>
7 #include <libraries/gadtools.h>
8 #include <devices/sana2.h>
9 #include <devices/sana2specialstats.h>
10 #include <exec/devices.h>
12 /* vendor and product IDs */
14 #define HANDSPRING_VENDOR_ID 0x082d
15 #define HANDSPRING_VISOR_ID 0x0100
16 #define HANDSPRING_TREO_ID 0x0200
17 #define HANDSPRING_TREO600_ID 0x0300
19 #define PALM_VENDOR_ID 0x0830
20 #define PALM_M500_ID 0x0001
21 #define PALM_M505_ID 0x0002
22 #define PALM_M515_ID 0x0003
23 #define PALM_I705_ID 0x0020
24 #define PALM_M125_ID 0x0040
25 #define PALM_M130_ID 0x0050
26 #define PALM_TUNGSTEN_T_ID 0x0060
27 #define PALM_TUNGSTEN_Z_ID 0x0031
28 #define PALM_ZIRE31_ID 0x0061
29 #define PALM_ZIRE_ID 0x0070
30 #define PALM_M100_ID 0x0080
32 #define SONY_VENDOR_ID 0x054C
33 #define SONY_CLIE_3_5_ID 0x0038
34 #define SONY_CLIE_4_0_ID 0x0066
35 #define SONY_CLIE_S360_ID 0x0095
36 #define SONY_CLIE_4_1_ID 0x009A
37 #define SONY_CLIE_NX60_ID 0x00DA
38 #define SONY_CLIE_NZ90V_ID 0x00E9
39 #define SONY_CLIE_UX50_ID 0x0144
40 #define SONY_CLIE_TJ25_ID 0x0169
42 #define SAMSUNG_VENDOR_ID 0x04E8
43 #define SAMSUNG_SCH_I330_ID 0x8001
44 #define SAMSUNG_SPH_I500_ID 0x6601
46 #define GARMIN_VENDOR_ID 0x091E
47 #define GARMIN_IQUE_3600_ID 0x0004
49 #define ACEECA_VENDOR_ID 0x4766
50 #define ACEECA_MEZ1000_ID 0x0001
52 #define KYOCERA_VENDOR_ID 0x0C88
53 #define KYOCERA_7135_ID 0x0021
55 #define FOSSIL_VENDOR_ID 0x0E67
56 #define FOSSIL_ABACUS_ID 0x0002
58 #define ZODIAC_VENDOR_ID 0x12ef
59 #define ZODIAC_ZODIAC_ID 0x0100
61 /****************************************************************************
62 * VISOR_REQUEST_BYTES_AVAILABLE asks the visor for the number of bytes that
63 * are available to be transferred to the host for the specified endpoint.
64 * Currently this is not used, and always returns 0x0001
65 ****************************************************************************/
66 #define UPR_REQUEST_BYTES_AVAILABLE 0x01
68 /****************************************************************************
69 * VISOR_CLOSE_NOTIFICATION is set to the device to notify it that the host
70 * is now closing the pipe. An empty packet is sent in response.
71 ****************************************************************************/
72 #define UPR_CLOSE_NOTIFICATION 0x02
74 /****************************************************************************
75 * VISOR_GET_CONNECTION_INFORMATION is sent by the host during enumeration to
76 * get the endpoints used by the connection.
77 ****************************************************************************/
78 #define UPR_GET_CONNECTION_INFORMATION 0x03
80 /****************************************************************************
81 * PALM_GET_EXT_CONNECTION_INFORMATION is sent by the host during enumeration to
82 * get some information from the M series devices, that is currently unknown.
83 ****************************************************************************/
84 #define UPR_GET_EXT_CONNECTION_INFORMATION 0x04
98 * struct palm_ext_connection_info - return data from a PALM_GET_EXT_CONNECTION_INFORMATION request
99 * @num_ports: maximum number of functions/connections in use
100 * @endpoint_numbers_different: will be 1 if in and out endpoints numbers are
101 * different, otherwise it is 0. If value is 1, then
102 * connections.end_point_info is non-zero. If value is 0, then
103 * connections.port contains the endpoint number, which is the same for in
105 * @port_function_id: contains the creator id of the applicaton that opened
107 * @port: contains the in/out endpoint number. Is 0 if in and out endpoint
108 * numbers are different.
109 * @end_point_info: high nubbe is in endpoint and low nibble will indicate out
110 * endpoint. Is 0 if in and out endpoints are the same.
112 * The maximum number of connections currently supported is 2
115 struct ExtConnectInfo
129 /* struct visor_connection_info.connection[x].port_function_id defines: */
130 #define PALM_FUNCTION_GENERIC 0x00
131 #define PALM_FUNCTION_DEBUGGER 0x01
132 #define PALM_FUNCTION_HOTSYNC 0x02
133 #define PALM_FUNCTION_CONSOLE 0x03
134 #define PALM_FUNCTION_REMOTE_FILE_SYS 0x04
136 /* NetSync Header structure */
139 UBYTE nsh_Type
; /* Type of Packet */
140 UBYTE nsh_TransID
; /* current transaction ID */
141 ULONG nsh_DataSize
; /* payload */
147 #define DEFREADBUFLEN 2048
148 #define NUMREADPIPES 2
150 #define ID_ABOUT 0x55555555
151 #define ID_STORE_CONFIG 0xaaaaaaaa
157 ULONG cgc_ShellStack
;
158 char cgc_ShellCon
[128];
159 char cgc_Command
[256];
160 char cgc_InhibitTask
[64];
165 struct Library nh_Library
; /* standard */
166 UWORD nh_Flags
; /* various flags */
168 struct Library
*nh_UtilityBase
; /* utility base */
170 struct NepSerDevBase
*nh_DevBase
; /* base of device created */
171 struct List nh_Units
; /* List of units available */
173 struct Library
*nh_MUIBase
; /* MUI master base */
174 struct Library
*nh_PsdBase
; /* Poseidon base */
175 struct Library
*nh_IntBase
; /* Intuition base */
176 struct Task
*nh_GUITask
; /* GUI Task */
178 BOOL nh_UsingDefaultCfg
;
179 struct ClsGlobalCfg nh_CurrentCGC
;
182 Object
*nh_MainWindow
;
183 Object
*nh_ConWindowObj
;
184 Object
*nh_ShellStackObj
;
185 Object
*nh_ShellComObj
;
186 Object
*nh_InhibitTaskObj
;
192 Object
*nh_MUIPrefsMI
;
197 struct Library np_Library
; /* standard */
198 UWORD np_Flags
; /* various flags */
200 BPTR np_SegList
; /* device seglist */
201 struct NepSerialBase
*np_ClsBase
; /* pointer to class base */
202 struct Library
*np_UtilityBase
; /* cached utilitybase */
205 struct NepClassSerial
207 struct Unit ncp_Unit
; /* Unit structure */
208 ULONG ncp_UnitNo
; /* Unit number */
209 struct NepSerDevBase
*ncp_DevBase
; /* Device base */
210 struct Library
*ncp_Base
; /* Poseidon base */
211 struct PsdDevice
*ncp_Device
; /* Up linkage */
212 struct PsdConfig
*ncp_Config
; /* Up linkage */
213 struct PsdInterface
*ncp_Interface
; /* Up linkage */
214 struct Task
*ncp_ReadySigTask
; /* Task to send ready signal to */
215 LONG ncp_ReadySignal
; /* Signal to send when ready */
216 LONG ncp_AbortSignal
; /* Signal to abort write on */
217 struct Task
*ncp_Task
; /* Subtask */
218 struct MsgPort
*ncp_TaskMsgPort
; /* Message Port of Subtask */
220 struct ConnectInfo ncp_ConnectInfo
; /* Palm OS3 connection info */
221 struct ExtConnectInfo ncp_ExtConnectInfo
; /* Palm OS4 connection info */
222 struct PsdPipe
*ncp_EP0Pipe
; /* Endpoint 0 pipe */
223 UWORD ncp_HotsyncPort
; /* Number of the hotsync port */
224 UWORD ncp_EPOutNum
; /* Number of the hotsync OUT EP */
225 UWORD ncp_EPInNum
; /* Number of the hotsync IN EP */
226 struct PsdEndpoint
*ncp_EPOut
; /* OUT Endpoint */
227 struct PsdPipeStream
*ncp_EPOutStream
; /* OUT Endpoint stream */
228 struct PsdEndpoint
*ncp_EPIn
; /* IN Endpoint */
229 struct PsdPipeStream
*ncp_EPInStream
; /* IN Endpoint stream */
230 struct MsgPort
*ncp_DevMsgPort
; /* Message Port for IOParReq */
231 UWORD ncp_UnitProdID
; /* ProductID of unit */
232 UWORD ncp_UnitVendorID
; /* VendorID of unit */
233 UWORD ncp_UnitCfgNum
; /* Config of unit */
234 UWORD ncp_UnitIfNum
; /* Interface number */
235 UWORD ncp_UnitAltIfNum
; /* Alternate interface number */
236 BOOL ncp_DenyRequests
; /* Do not accept further IO requests */
237 BOOL ncp_DevSuspend
; /* suspend things */
238 BOOL ncp_IsConfigured
; /* have the parameters been set yet? */
240 UWORD ncp_TransIX
; /* Transfer IX code */
242 struct IOExtSer
*ncp_WritePending
; /* write IORequest pending */
243 struct List ncp_ReadQueue
; /* List of read requests */
244 struct List ncp_WriteQueue
; /* List of write requests */
247 #endif /* PALMPDA_H */