~ubuntu-branches/ubuntu/natty/u3-tool/natty

« back to all changes in this revision

Viewing changes to src/u3_scsi_usb.c

  • Committer: Bazaar Package Importer
  • Author(s): Evgeni Golov
  • Date: 2009-11-24 11:36:34 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20091124113634-fu5nx0ntsxb9y7f1
Tags: 0.3-1
* New upstream release
* debian/watch:
  + Make watchfile working, as upstream has tarballs now.
* debian/README.source:
  + Remove README.source, it's not needed anymore.
* debian/control:
  + Standards-Version: 3.8.3
* debian/rules:
  + Don't override configure, upstream installs in sbin now.
* debian/u3-tool.links:
  + Remove the links, we ship only one backend now.
* debian/control:
  + Update years and upstream url.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 * with this program; if not, write to the Free Software Foundation, Inc.,
17
17
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18
18
 */ 
 
19
#if HAVE_CONFIG_H
 
20
# include "config.h"
 
21
#endif
 
22
 
 
23
#ifdef SUBSYS_LIBUSB
19
24
#include "u3_scsi.h"
20
25
#include "u3_error.h"
21
26
 
47
52
 
48
53
#define U3_DEVICE_TIMEOUT 20000 //2000 millisecs == 2 seconds 
49
54
 
50
 
#define U3_DEV_LIST_LENGTH 2
 
55
#define U3_DEV_LIST_LENGTH 4
51
56
uint16_t u3_dev_list[U3_DEV_LIST_LENGTH][2] = {
52
 
        { 0x08ec, 0x0020 },
53
 
        { 0x0781, 0x5406 },
 
57
        { 0x08ec, 0x0020 }, // Verbatim Store 'N Go
 
58
        { 0x0781, 0x5406 }, // Sandisk Cruzer Micro
 
59
        { 0x0781, 0x5408 }, // Sandisk Cruzer Titanium
 
60
        { 0x0781, 0x550a }, // Sandisk Cruzer Pattern
54
61
};
55
62
 
56
63
struct u3_usb_handle {
78
85
        uint8_t bCSWStatus;
79
86
} __attribute__ ((packed));
80
87
 
 
88
const char *u3_subsystem_name = "libusb";
 
89
const char *u3_subsystem_help = "'scan' to automatically use the first detected U3 device, or 'vid:pid' if not detected";
81
90
 
82
91
struct usb_device *
83
92
locate_u3_device(uint16_t vid, uint16_t pid)
350
359
        return U3_SUCCESS;
351
360
}
352
361
 
 
362
#endif //SUBSYS_LIBUSB