mirror of
https://github.com/dingusdev/dingusppc.git
synced 2024-12-23 06:29:38 +00:00
atimach64gx: self-registration with the device registry.
This commit is contained in:
parent
1d37982d02
commit
c37893847a
@ -25,6 +25,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <core/timermanager.h>
|
||||
#include <devices/deviceregistry.h>
|
||||
#include <devices/video/atimach64defs.h>
|
||||
#include <devices/video/atimach64gx.h>
|
||||
#include <devices/video/displayid.h>
|
||||
@ -356,3 +357,9 @@ void AtiMach64Gx::rgb514_write_ind_reg(uint8_t reg_addr, uint8_t value)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
static const DeviceDescription AtiMach64Gx_Descriptor = {
|
||||
AtiMach64Gx::create, {}, {}
|
||||
};
|
||||
|
||||
REGISTER_DEVICE(AtiMach64Gx, AtiMach64Gx_Descriptor);
|
||||
|
@ -37,6 +37,10 @@ public:
|
||||
AtiMach64Gx();
|
||||
~AtiMach64Gx() = default;
|
||||
|
||||
static std::unique_ptr<HWComponent> create() {
|
||||
return std::unique_ptr<AtiMach64Gx>(new AtiMach64Gx());
|
||||
}
|
||||
|
||||
/* PCI device methods */
|
||||
bool supports_io_space(void) {
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user