From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 814ED5A97 for ; Fri, 22 Jan 2016 08:27:14 +0100 (CET) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga101.jf.intel.com with ESMTP; 21 Jan 2016 23:26:54 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,329,1449561600"; d="scan'208";a="34066595" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga004.fm.intel.com with ESMTP; 21 Jan 2016 23:26:54 -0800 Received: from fmsmsx156.amr.corp.intel.com (10.18.116.74) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 21 Jan 2016 23:26:53 -0800 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by fmsmsx156.amr.corp.intel.com (10.18.116.74) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 21 Jan 2016 23:26:53 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.215]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.218]) with mapi id 14.03.0248.002; Fri, 22 Jan 2016 15:26:45 +0800 From: "Xie, Huawei" To: Tetsuya Mukawa , "dev@dpdk.org" , "yuanhan.liu@linux.intel.com" , "Tan, Jianfeng" Thread-Topic: [RFC PATCH 3/5] virtio: Add a new layer to abstract pci access method Thread-Index: AdFU5j7k6s53Pe+ARNO0AnV75Q1y5Q== Date: Fri, 22 Jan 2016 07:26:44 +0000 Message-ID: References: <1453108389-21006-2-git-send-email-mukawa@igel.co.jp> <1453374478-30996-4-git-send-email-mukawa@igel.co.jp> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [RFC PATCH 3/5] virtio: Add a new layer to abstract pci access method X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jan 2016 07:27:14 -0000 On 1/21/2016 7:08 PM, Tetsuya Mukawa wrote:=0A= > +static void=0A= > +phys_legacy_write16(struct virtio_hw *hw, uint16_t *addr, uint16_t val)= =0A= > +{=0A= > + return outb_p((unsigned short)val,=0A= > + (unsigned short)(hw->io_base + (uint64_t)addr));=0A= =0A= outb_p -> outw_p=0A= =0A= > +}=0A= > +=0A= > +static void=0A= > +phys_legacy_write32(struct virtio_hw *hw, uint32_t *addr, uint32_t val)= =0A= > +{=0A= > + return outb_p((unsigned int)val,=0A= > + (unsigned short)(hw->io_base + (uint64_t)addr));=0A= =0A= outb_p -> outl_p=0A= =0A= > +}=0A= > +=0A= =0A=