Changeset 6065
- Timestamp:
- 07/26/07 08:17:08
- Files:
-
- gnuradio/branches/releases/3.0/usrp/host/lib/fusb.h (modified) (1 diff)
- gnuradio/branches/releases/3.0/usrp/host/lib/fusb_sysconfig_darwin.cc (modified) (2 diffs)
- gnuradio/branches/releases/3.0/usrp/host/lib/fusb_sysconfig_generic.cc (modified) (2 diffs)
- gnuradio/branches/releases/3.0/usrp/host/lib/fusb_sysconfig_linux.cc (modified) (2 diffs)
- gnuradio/branches/releases/3.0/usrp/host/lib/fusb_sysconfig_ra_wb.cc (modified) (1 diff)
- gnuradio/branches/releases/3.0/usrp/host/lib/fusb_sysconfig_win32.cc (modified) (2 diffs)
- gnuradio/branches/releases/3.0/usrp/host/lib/usrp_basic.cc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
gnuradio/branches/releases/3.0/usrp/host/lib/fusb.h
r3601 r6065 120 120 121 121 /*! 122 * \brief returns max block size hard limit122 * \brief Returns max block size in bytes (hard limit). 123 123 */ 124 124 static int max_block_size (); 125 125 126 126 /*! 127 * \brief returns the default buffer size 127 * \brief Returns default block size in bytes. 128 */ 129 static int default_block_size (); 130 131 /*! 132 * \brief Returns the default buffer size in bytes. 128 133 */ 129 134 static int default_buffer_size (); gnuradio/branches/releases/3.0/usrp/host/lib/fusb_sysconfig_darwin.cc
r3601 r6065 25 25 26 26 static const int MAX_BLOCK_SIZE = 32 * 1024; // hard limit 27 static const int FUSB_BUFFER_SIZE = 2 * (1L << 20); // 2 MB (was 8 MB)27 static const int FUSB_BUFFER_SIZE = 2 * (1L << 20); // 2 MB 28 28 29 29 fusb_devhandle * … … 38 38 } 39 39 40 int fusb_sysconfig::default_block_size () 41 { 42 return fusb_sysconfig::max_block_size (); 43 } 44 40 45 int fusb_sysconfig::default_buffer_size () 41 46 { gnuradio/branches/releases/3.0/usrp/host/lib/fusb_sysconfig_generic.cc
r3601 r6065 25 25 26 26 static const int MAX_BLOCK_SIZE = 16 * 1024; // hard limit 27 static const int FUSB_BUFFER_SIZE = 2 * (1L << 20); // 2 MB (was 8 MB)27 static const int FUSB_BUFFER_SIZE = 2 * (1L << 20); // 2 MB 28 28 29 29 fusb_devhandle * … … 38 38 } 39 39 40 int fusb_sysconfig::default_block_size () 41 { 42 return fusb_sysconfig::max_block_size (); 43 } 44 40 45 int fusb_sysconfig::default_buffer_size () 41 46 { gnuradio/branches/releases/3.0/usrp/host/lib/fusb_sysconfig_linux.cc
r3601 r6065 24 24 #include <fusb_linux.h> 25 25 26 static const int MAX_BLOCK_SIZE = 16 * 1024; // hard limit 27 static const int FUSB_BUFFER_SIZE = 2 * (1L << 20); // 2 MB (was 8 MB) 26 static const int MAX_BLOCK_SIZE = 16 * 1024; // hard limit 27 static const int DEFAULT_BLOCK_SIZE = 4 * 1024; // fewer kernel memory problems 28 static const int FUSB_BUFFER_SIZE = 1 * (1L << 20); // 1MB 28 29 29 30 fusb_devhandle * … … 38 39 } 39 40 41 int fusb_sysconfig::default_block_size () 42 { 43 return DEFAULT_BLOCK_SIZE; 44 } 45 40 46 int fusb_sysconfig::default_buffer_size () 41 47 { gnuradio/branches/releases/3.0/usrp/host/lib/fusb_sysconfig_ra_wb.cc
r3601 r6065 42 42 } 43 43 44 int fusb_sysconfig::default_block_size () 45 { 46 return fusb_sysconfig::max_block_size (); 47 } 48 44 49 int fusb_sysconfig::default_buffer_size () 45 50 { gnuradio/branches/releases/3.0/usrp/host/lib/fusb_sysconfig_win32.cc
r3601 r6065 25 25 26 26 static const int MAX_BLOCK_SIZE = 64 * 1024; // Windows kernel hard limit 27 static const int FUSB_BUFFER_SIZE = 2 * (1L << 20); // 2 MB (was 8 MB)27 static const int FUSB_BUFFER_SIZE = 2 * (1L << 20); // 2 MB 28 28 29 29 fusb_devhandle * … … 38 38 } 39 39 40 int fusb_sysconfig::default_block_size () 41 { 42 return fusb_sysconfig::max_block_size (); 43 } 44 40 45 int fusb_sysconfig::default_buffer_size () 41 46 { gnuradio/branches/releases/3.0/usrp/host/lib/usrp_basic.cc
r3601 r6065 476 476 477 477 if (fusb_block_size == 0) 478 fusb_block_size = FUSB_BLOCK_SIZE;478 fusb_block_size = fusb_sysconfig::default_block_size(); 479 479 480 480 if (fusb_nblocks == 0)
