mirror of
https://github.com/dingusdev/dingusppc.git
synced 2024-12-24 12:30:05 +00:00
viacuda: self-registration with the device registry.
This commit is contained in:
parent
9056d53474
commit
66debbc730
@ -26,6 +26,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|||||||
#include <devices/common/adb/adb.h>
|
#include <devices/common/adb/adb.h>
|
||||||
#include <devices/common/hwinterrupt.h>
|
#include <devices/common/hwinterrupt.h>
|
||||||
#include <devices/common/viacuda.h>
|
#include <devices/common/viacuda.h>
|
||||||
|
#include <devices/deviceregistry.h>
|
||||||
#include <loguru.hpp>
|
#include <loguru.hpp>
|
||||||
#include <machines/machinebase.h>
|
#include <machines/machinebase.h>
|
||||||
#include <memaccess.h>
|
#include <memaccess.h>
|
||||||
@ -709,3 +710,9 @@ void ViaCuda::i2c_comb_transaction(
|
|||||||
this->is_open_ended = true;
|
this->is_open_ended = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static const DeviceDescription ViaCuda_Descriptor = {
|
||||||
|
ViaCuda::create, {}, {}
|
||||||
|
};
|
||||||
|
|
||||||
|
REGISTER_DEVICE(ViaCuda, ViaCuda_Descriptor);
|
||||||
|
@ -156,6 +156,10 @@ public:
|
|||||||
ViaCuda();
|
ViaCuda();
|
||||||
~ViaCuda() = default;
|
~ViaCuda() = default;
|
||||||
|
|
||||||
|
static std::unique_ptr<HWComponent> create() {
|
||||||
|
return std::unique_ptr<ViaCuda>(new ViaCuda());
|
||||||
|
}
|
||||||
|
|
||||||
// HWComponent methods
|
// HWComponent methods
|
||||||
int device_postinit();
|
int device_postinit();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user