aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp2/usrp2_iface.hpp
diff options
context:
space:
mode:
authorNick Foster <nick@nerdnetworks.org>2010-11-10 16:23:11 -0800
committerNick Foster <nick@nerdnetworks.org>2010-11-10 16:23:11 -0800
commite0b3b4e3dd9f22d27e9465bba0c978a488733aae (patch)
tree4fd68a4f7ed5551de7bcd739eb388a8731058dcf /host/lib/usrp/usrp2/usrp2_iface.hpp
parentfb0cdbc553d288402ee7939dc72f4368eb9e8e1b (diff)
downloaduhd-e0b3b4e3dd9f22d27e9465bba0c978a488733aae.tar.gz
uhd-e0b3b4e3dd9f22d27e9465bba0c978a488733aae.tar.bz2
uhd-e0b3b4e3dd9f22d27e9465bba0c978a488733aae.zip
U2P: Ripped out the mboard_rev_t structure in favor of an enum in usrp2_regs.hpp and some logic.
Also change ethernet.c to move generic code to eth_lib.
Diffstat (limited to 'host/lib/usrp/usrp2/usrp2_iface.hpp')
-rw-r--r--host/lib/usrp/usrp2/usrp2_iface.hpp21
1 files changed, 5 insertions, 16 deletions
diff --git a/host/lib/usrp/usrp2/usrp2_iface.hpp b/host/lib/usrp/usrp2/usrp2_iface.hpp
index 88bff5913..d7e5df9f5 100644
--- a/host/lib/usrp/usrp2/usrp2_iface.hpp
+++ b/host/lib/usrp/usrp2/usrp2_iface.hpp
@@ -24,7 +24,6 @@
#include <boost/shared_ptr.hpp>
#include <boost/utility.hpp>
#include <boost/cstdint.hpp>
-#include "mboard_rev.hpp"
#include <utility>
#include "fw_common.h"
#include "usrp2_regs.hpp"
@@ -109,26 +108,16 @@ public:
virtual void write_uart(boost::uint8_t dev, const std::string &buf) = 0;
virtual std::string read_uart(boost::uint8_t dev) = 0;
-
- /*!
- * Set the hardware revision number. Also selects the proper register set for the device.
- * \param rev the 16-bit revision
- */
- virtual void set_hw_rev(mboard_rev_t rev) = 0;
-
- /*! Return the hardware revision number
- * \return hardware revision
- */
- virtual mboard_rev_t get_hw_rev(void) = 0;
+
+ virtual boost::uint16_t get_hw_rev(void) = 0;
+
+ virtual bool is_usrp2p(void) = 0;
/*!
* Register map selected from USRP2/USRP2+.
*/
usrp2_regs_t regs;
- /*!
- * Hardware revision as returned by the device.
- */
- mboard_rev_t hw_rev;
+
//motherboard eeprom map structure
uhd::usrp::mboard_eeprom_t mb_eeprom;
};