From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GFITe-0001GS-Ue for qemu-devel@nongnu.org; Mon, 21 Aug 2006 18:42:38 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GFITc-0001DD-FQ for qemu-devel@nongnu.org; Mon, 21 Aug 2006 18:42:38 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GFITc-0001D6-8V for qemu-devel@nongnu.org; Mon, 21 Aug 2006 18:42:36 -0400 Received: from [64.233.162.201] (helo=nz-out-0102.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GFIb5-0008Dw-CU for qemu-devel@nongnu.org; Mon, 21 Aug 2006 18:50:19 -0400 Received: by nz-out-0102.google.com with SMTP id x7so890242nzc for ; Mon, 21 Aug 2006 15:42:30 -0700 (PDT) Message-ID: Date: Tue, 22 Aug 2006 00:42:30 +0200 From: "Alessandro Corradi" MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_28255_17115222.1156200150512" Subject: [Qemu-devel] writing a cosimulated network for QEMU Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel ------=_Part_28255_17115222.1156200150512 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi all, my project is to write a simulated network card. It will comunicate with a SystemC emulated device, a cirrus logic cs8900a. The logical scheme is circa as it: QEMU <--> WRITTEN DEVICE <-- socket --> SystemC description of the cirrus. The connection between the qemu device and the cirrus is via socket. I started to write the device taking the parallel description as example, but I guess that is more complex than parallel but more easy than the ne2000 description. -I think I need to write the read and write functions as mydev_ioport_read/write and there must be the transmission with the systemC description and register them in the function "table" with register_ioport... in init function. -I need to write a mydev_init function that is called at qemu init in vl.c. but i think that I must use my device as a pci device and i need to "configure" it right? can someone help me about this point? -finally I must to iniziated it in vl.c and vl.h and modified the make script. Thanks for the help! Ale ------=_Part_28255_17115222.1156200150512 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi all,
my project is to write a simulated network card. It will comunicate with a SystemC emulated device, a cirrus logic cs8900a. The logical scheme is circa as it:

QEMU <--> WRITTEN DEVICE <-- socket --> SystemC description of the cirrus.

The connection between the qemu device and the cirrus is via socket. I started to write the device taking the parallel description as example, but I guess that is more complex than parallel but more easy than the ne2000 description.

-I think I need to write the read and write functions as mydev_ioport_read/write and there must be the transmission with the systemC description and register them in the function "table" with register_ioport... in init function.

-I need to write a mydev_init function that is called at qemu init in vl.c. but i think that I must use my device as a pci device and i need to "configure" it right? can someone help me about this point?

-finally I must to iniziated it in vl.c and vl.h and modified the make script.

Thanks for the help!

Ale
------=_Part_28255_17115222.1156200150512--