Zookeeper/Smbus.cpp
2016-05-21 12:14:44 -06:00

19 lines
481 B
C++

#include "Zookeeper.hpp"
// Comment to enable break_in()s for this file
#define break_in() do { } while(0)
Smbus::Smbus() : Device("Smbus") {
box->add_pci(1, 1, this);
}
void Smbus::readPci(uint32_t reg, void *buffer, uint32_t length) {
cout << format("Smbus::readPci(0x%08x, %i)") % reg % length << endl;
break_in();
}
void Smbus::writePci(uint32_t reg, void *buffer, uint32_t length) {
cout << format("Smbus::writePci(0x%08x, %i)") % reg % length << endl;
break_in();
}