diff options
author | thompsa <thompsa@FreeBSD.org> | 2010-01-06 22:14:05 +0000 |
---|---|---|
committer | thompsa <thompsa@FreeBSD.org> | 2010-01-06 22:14:05 +0000 |
commit | f9e6c6a249caaf137a522b43d20cd40c4d8611c3 (patch) | |
tree | 54c711c0bb9a6b4a61ebef1a9c10d5d4a4a96c58 /sys/dev/usb/usb_msctest.h | |
parent | c6572afc18dd829baa4b852e6c8478d4f3d10095 (diff) | |
download | FreeBSD-src-f9e6c6a249caaf137a522b43d20cd40c4d8611c3.zip FreeBSD-src-f9e6c6a249caaf137a522b43d20cd40c4d8611c3.tar.gz |
Improve u3g device ejecting by providing additional methods for the eject
command in the usb_msctest routines, as well as a general tidyup.
This now properly ejects the ZTE MF636, Option Gi0322 and Novatel MC950D
devices I have on my desk.
Diffstat (limited to 'sys/dev/usb/usb_msctest.h')
-rw-r--r-- | sys/dev/usb/usb_msctest.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/sys/dev/usb/usb_msctest.h b/sys/dev/usb/usb_msctest.h index 44fa20d..2310bba 100644 --- a/sys/dev/usb/usb_msctest.h +++ b/sys/dev/usb/usb_msctest.h @@ -27,7 +27,16 @@ #ifndef _USB_MSCTEST_H_ #define _USB_MSCTEST_H_ -usb_error_t usb_test_autoinstall(struct usb_device *udev, - uint8_t iface_index, uint8_t do_eject); +enum { + MSC_EJECT_STOPUNIT, + MSC_EJECT_REZERO, + MSC_EJECT_ZTESTOR, + MSC_EJECT_CMOTECH +}; + +int usb_iface_is_cdrom(struct usb_device *udev, + uint8_t iface_index); +usb_error_t usb_msc_eject(struct usb_device *udev, + uint8_t iface_index, int method); #endif /* _USB_MSCTEST_H_ */ |