2 * (C) 2006 by Frank Zirkelbach <hackbard@hackdaworld.org>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2
6 * as published by the Free Software Foundation
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #define USB_VENDOR_GEMTAG 0x1394
22 #define USB_DEVICE_X501 0x0501
24 struct gemtag_handle {
25 struct usb_dev_handle *handle;
27 unsigned char capabilities;
31 #define GEMTAG_CAP_CRC 0x01
33 struct gemtag_cmd_hdr {
38 } __attribute__ ((packed));
40 #define GEMTAG_CMD_GET_FW_VERSION 0x63
41 #define GEMTAG_CMD_GET_SERIAL_NUMBER 0x22
42 #define GEMTAG_CMD_GET_RIC_VERSION 0x64
43 #define GEMTAG_CMD_PCD_SET_TMO 0x27
44 #define GEMTAG_CMD_SET_CPU_TIMEOUT 0x88
45 #define GEMTAG_CMD_TEST 0xfe
48 #define SEQ_MISMATCH 0x02