Add i8042 back
[qemupp.git] / device / device.cpp
blobb81b5663183118d2c030b646a701953118a3f0ba
1 #include "device.hpp"
3 Device::Device(void) : vcc_wire(this->vcc)
5 std::function<void (void)> fn;
7 /* We use vcc_wire instead of vcc directly to avoid dealing with plug
8 * events */
9 fn = std::bind(&Device::realize, this);
10 this->vcc_wire.out.connect(Pin::RISING_EDGE, fn);
12 fn = std::bind(&Device::reset, this);
13 this->vcc_wire.out.connect(Pin::FALLING_EDGE, fn);
16 Device::~Device(void)
20 void Device::reset(void)
24 void Device::realize(void)
28 void Device::add_subordinate(Device *other)
30 other->vcc = &this->vcc_wire.out;