atimach64gx: self-registration with the device registry.

This commit is contained in:
Maxim Poliakovski 2022-07-17 05:44:19 +02:00
parent 1d37982d02
commit c37893847a
2 changed files with 11 additions and 0 deletions

View File

@ -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);

View File

@ -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;