From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=54793 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PsBcA-000273-K5 for qemu-devel@nongnu.org; Wed, 23 Feb 2011 05:06:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PsBc9-0005E0-E7 for qemu-devel@nongnu.org; Wed, 23 Feb 2011 05:06:34 -0500 Received: from mx1.redhat.com ([209.132.183.28]:62878) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PsBc9-0005DS-5n for qemu-devel@nongnu.org; Wed, 23 Feb 2011 05:06:33 -0500 From: Markus Armbruster Subject: Re: [Qemu-devel] General IO ports in pc386 References: <4D62F5A1.8040304@d3s.mff.cuni.cz> <4D63C816.7080809@d3s.mff.cuni.cz> Date: Wed, 23 Feb 2011 11:06:14 +0100 In-Reply-To: <4D63C816.7080809@d3s.mff.cuni.cz> (Tomas Bures's message of "Tue, 22 Feb 2011 15:28:38 +0100") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Tomas Bures Cc: qemu-devel@nongnu.org Tomas Bures 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".