[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] General IO ports in pc386
From: |
Markus Armbruster |
Subject: |
Re: [Qemu-devel] General IO ports in pc386 |
Date: |
Wed, 23 Feb 2011 11:06:14 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
Tomas Bures <address@hidden> writes:
> Thank you. This is exactly what I was looking for. I've created the
> device, added the compilation of it to Makefile.target . Now, I'm
> wondering how to persuade QEMU to initialize it?
>
> I've registered it using the code below. The registration executes
> during QEMU launch, the the initialization doesn't. Please where
> should I add it?
>
> static void ers_io_register_devices(void)
> {
> isa_qdev_register(&ers_io_info);
> ers_io_debug("\n");
> }
>
> device_init(ers_io_register_devices);
Try starting with -device NAME, where NAME is whatever you put into
qdev.name. Your device should then be visible in "info qtree".