Changeset 9513

Show
Ignore:
Timestamp:
08/16/09 14:41:48 (4 years ago)
Author:
ttsou
Message:

reverting unused files

Location:
ossiedev/branches/ttsou/gnuradio/usrp/host/lib
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • ossiedev/branches/ttsou/gnuradio/usrp/host/lib/fusb_linux.cc

    r9509 r9513  
    2626 
    2727#include <fusb_linux.h> 
    28 #include <libusb-1.0/libusb.h>          // libusb header 
     28#include <usb.h>                // libusb header 
    2929#include <stdexcept> 
    3030#ifdef HAVE_LINUX_COMPILER_H 
     
    3939#include <string.h> 
    4040#include <cstdio> 
    41 #include <pthread.h> 
    4241 
    4342#define MINIMIZE_TX_BUFFERING 1         // must be defined to 0 or 1 
     
    5453// 
    5554// FIXME if everything breaks someday in the future, look here... 
    56 // 
    57 // With libusb-1.0 the libusb_device_handle is still opaque and the file 
    58 // descriptor is buried even further. Lock the doors and hide the women and 
    59 // children; this may code may kill you. Obviously it's rigged for 64-bit 
    60 // machines. 
    6155 
    6256static int 
    63 fd_from_usb_dev_handle (libusb_device_handle *udh) 
    64 { 
    65   return *(int*)((u_int64_t)udh + sizeof(pthread_mutex_t) 
    66                                 + sizeof(long) 
    67                                 + 3*sizeof(void*)); 
    68  
    69 #if 0 
    70  
    71   return *(int*)((u_int32_t)udh + sizeof(pthread_mutex_t) 
    72                                 + sizeof(long) 
    73                                 + 3*sizeof(void*)); 
    74 #endif 
    75  
     57fd_from_usb_dev_handle (usb_dev_handle *udh) 
     58{ 
     59  return *((int *) udh); 
    7660} 
    7761 
     
    143127// ------------------------------------------------------------------------ 
    144128 
    145 fusb_devhandle_linux::fusb_devhandle_linux (libusb_device_handle *udh) 
     129fusb_devhandle_linux::fusb_devhandle_linux (usb_dev_handle *udh) 
    146130  : fusb_devhandle (udh) 
    147131{ 
     
    311295      break; 
    312296} 
    313 // ------------------------------------------------------------------------ 
     297// ------------------------------------------------------------------------ 
    314298//                           end point handle 
    315299// ------------------------------------------------------------------------ 
  • ossiedev/branches/ttsou/gnuradio/usrp/host/lib/fusb_linux.h

    r9509 r9513  
    4646public: 
    4747  // CREATORS 
    48   fusb_devhandle_linux (libusb_device_handle *udh); 
     48  fusb_devhandle_linux (usb_dev_handle *udh); 
    4949  virtual ~fusb_devhandle_linux (); 
    5050 
     
    6161}; 
    6262 
    63 /*! 
     63/*! 
    6464 * \brief linux specific implementation of fusb_ephandle using usbdevice_fs 
    6565 */ 
  • ossiedev/branches/ttsou/gnuradio/usrp/host/lib/fusb_ra_wb.cc

    r9501 r9513  
    2626 
    2727#include <fusb_ra_wb.h> 
    28 #include <libusb-1.0/libusb.h> 
     28#include <usb.h> 
    2929 
    3030#include <stdio.h> 
     
    5555// new "fragile extraction" 
    5656static int 
    57 ep_fd_from_usb_dev_handle (libusb_dev_handle *udh, int endpoint) 
    58 { 
    59   struct libusb_device_handle_kludge2 { // see also usrp_prims.cc 
     57ep_fd_from_usb_dev_handle (usb_dev_handle *udh, int endpoint) 
     58{ 
     59  struct usb_dev_handle_kludge2 { // see also usrp_prims.cc 
    6060    int                  fd; 
    6161    struct usb_bus      *bus; 
     
    7171  struct bsd_usb_dev_handle_info_kludge *info 
    7272      = (struct bsd_usb_dev_handle_info_kludge *) 
    73            ((struct libusb_device_handle_kludge2 *)udh)->impl_info; 
     73           ((struct usb_dev_handle_kludge2 *)udh)->impl_info; 
    7474  return info->ep_fd[UE_GET_ADDR(endpoint)]; 
    7575} 
  • ossiedev/branches/ttsou/gnuradio/usrp/host/lib/fusb_sysconfig_linux.cc

    r9501 r9513  
    2929 
    3030fusb_devhandle * 
    31 fusb_sysconfig::make_devhandle (libusb_device_handle *udh) 
     31fusb_sysconfig::make_devhandle (usb_dev_handle *udh) 
    3232{ 
    3333  return new fusb_devhandle_linux (udh);