diff options
author | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2011-03-10 18:48:11 +0000 |
---|---|---|
committer | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2011-03-10 18:48:11 +0000 |
commit | 760d0a2a75aba6307550bf551c5eb06174c256b5 (patch) | |
tree | d526eeb7d5ce0aec9e4572f5df0cb3536a2632d1 /xpp/astribank_usb.h | |
parent | cf84710ff24dd09e80f9e5ecfeb16ce15137ddc3 (diff) |
xpp: use 'xtalk' for the USB access code
* Move most of the USB access code from xpp/ to xpp/xtalk/ .
* astribank_tool and such tools can now use a shorter -D mmm/nnn rather
than a full path.
Signed-off-by: Oron Peled <oron.peled@xorcom.com>
Acked-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com>
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@9825 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'xpp/astribank_usb.h')
-rw-r--r-- | xpp/astribank_usb.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/xpp/astribank_usb.h b/xpp/astribank_usb.h index b3b4d79..b65c1db 100644 --- a/xpp/astribank_usb.h +++ b/xpp/astribank_usb.h @@ -23,7 +23,8 @@ */ #include <stdio.h> -#include <usb.h> +#include <xusb.h> +#include <xtalk.h> #include "mpp.h" /* @@ -63,14 +64,12 @@ enum eeprom_burn_state { }; struct astribank_device { - struct usb_device *dev; + struct xusb *xusb; + struct xtalk_device *xtalk_dev; usb_dev_handle *handle; int my_interface_num; int my_ep_out; int my_ep_in; - char iManufacturer[BUFSIZ]; - char iProduct[BUFSIZ]; - char iSerialNumber[BUFSIZ]; char iInterface[BUFSIZ]; int is_usb2; enum eeprom_type eeprom_type; @@ -79,7 +78,6 @@ struct astribank_device { uint8_t mpp_proto_version; struct eeprom_table *eeprom; struct firmware_versions fw_versions; - const struct interface_type *fwtype; uint16_t tx_sequenceno; }; |