From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:32902) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T4Xwo-0000KJ-Uk for qemu-devel@nongnu.org; Thu, 23 Aug 2012 09:59:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T4Xwj-00068h-UX for qemu-devel@nongnu.org; Thu, 23 Aug 2012 09:59:46 -0400 Received: from smtp4.mundo-r.com ([212.51.32.151]:65215) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T4Xwj-00068J-NS for qemu-devel@nongnu.org; Thu, 23 Aug 2012 09:59:41 -0400 From: Alberto Garcia Date: Thu, 23 Aug 2012 16:59:18 +0300 Message-Id: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] =?utf-8?q?=5BPATCH_0/2=5D_Add_TPCI200_and_IP-Octal_2?= =?utf-8?q?32_IndustryPack_emulation?= List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Anthony Liguori , Alberto Garcia , Paul Brook Hello, I have been working on the emulation of the IP-Octal 232 IndustryPack module, a device that implements eight RS-232 serial ports. IndustryPack modules are small boards that are attached to a carrier board, so in order to have a complete and working system I also wrote an emulation of the TEWS TPCI200 carrier, which is a PCI board to which up to 4 IndustryPack modules can be attached. I have been using this virtual device to test and debug the ipoctal driver in the Linux kernel. I'm publishing the code now, the emulation is not 100% complete but it's fairly functional, and it can be used to easily implement more IndustryPack modules. So the work consists on three parts: - TPCI200, the bridge between PCI and IndustryPack. - The IndustryPack bus. - IP-Octal, the IndustryPack module. Basic usage: $ qemu -device tpci200 -device ipoctal Each one of the serial ports in the ipoctal device can be redirected to a character device in the host using the functionality provided by QEMU. The 'serial0' to 'serial7' parameters can be used to specify each one of the redirections. Suggestions, comments, etc, will be appreciated. Alberto Garcia (2): Add TEWS TPCI200 IndustryPack emulation Add IP-Octal 232 IndustryPack emulation default-configs/pci.mak | 1 + hw/Makefile.objs | 3 + hw/ipack.c | 106 ++++++++ hw/ipack.h | 75 ++++++ hw/ipoctal.c | 662 +++++++++++++++++++++++++++++++++++++++++++++++ hw/pci_ids.h | 3 + hw/tpci200.c | 630 ++++++++++++++++++++++++++++++++++++++++++++ 7 ficheiros modificados, 1480 adições(+) create mode 100644 hw/ipack.c create mode 100644 hw/ipack.h create mode 100644 hw/ipoctal.c create mode 100644 hw/tpci200.c -- 1.7.10.4