From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f44.google.com (mail-pa0-f44.google.com [209.85.220.44]) by dpdk.org (Postfix) with ESMTP id D8294C37A for ; Tue, 19 May 2015 07:55:30 +0200 (CEST) Received: by pabts4 with SMTP id ts4so8798740pab.3 for ; Mon, 18 May 2015 22:55:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=udgaTvM/BRi/gRyVq4vBvIXtGZAXP6XcGxFmUJp6Hwk=; b=MFxmz+Y1BHjl4zhOZwGd+B3hURn0m2a91SScvvijT8W6XzqVcrmrVMa1AN+dDNNOHO DZuDovsroJrD8afy9vvmPzJ9PX94GOXYcLli1wTXbbXo1coNhB5L4DXaQmKpR3TMylDD zpoeqR2x0m/cAUIpEPlJ86zgL9wHrHydzBBMDdm0QJn7dN1WlAJcdykKZbczrkMZQZQr aF258oLRY85jkqMVD28oZdQaMKh534mvzm+IHTPJWu856BzIA+j+gNWyTl/eODwAx3xb Prkr2Rkgt9C+9+uPUfm3p9UW6iX7XT4t0D0BhYN+JYhi4+L5dr/98l7/jbh5nK0qU6Zs XRQA== X-Gm-Message-State: ALoCoQlu/dkrydiOMdI/qXFfppVCMV2Gr4f2KUfBJwEeFOjgMj3DfJX5cMuLGdkfomPuFcdchRKV X-Received: by 10.66.177.238 with SMTP id ct14mr50739815pac.121.1432014930301; Mon, 18 May 2015 22:55:30 -0700 (PDT) Received: from localhost.localdomain (napt.igel.co.jp. [219.106.231.132]) by mx.google.com with ESMTPSA id qz7sm11796528pbc.11.2015.05.18.22.55.28 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 18 May 2015 22:55:29 -0700 (PDT) From: Tetsuya Mukawa To: dev@dpdk.org Date: Tue, 19 May 2015 14:54:57 +0900 Message-Id: <1432014898-3543-5-git-send-email-mukawa@igel.co.jp> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1432014898-3543-1-git-send-email-mukawa@igel.co.jp> References: <1432014898-3543-1-git-send-email-mukawa@igel.co.jp> Subject: [dpdk-dev] [PATCH v4 4/5] eal/bsdapp: Change names of pci related data structure 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: Tue, 19 May 2015 05:55:31 -0000 To merge pci code of linuxapp and bsdapp, this patch changes names like below. - uio_map to pci_map - uio_resource to mapped_pci_resource - uio_res_list to mapped_pci_res_list Signed-off-by: Tetsuya Mukawa --- lib/librte_eal/bsdapp/eal/eal_pci.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/lib/librte_eal/bsdapp/eal/eal_pci.c b/lib/librte_eal/bsdapp/eal/eal_pci.c index b071f07..8261e09 100644 --- a/lib/librte_eal/bsdapp/eal/eal_pci.c +++ b/lib/librte_eal/bsdapp/eal/eal_pci.c @@ -83,7 +83,7 @@ * enabling bus master. */ -struct uio_map { +struct pci_map { void *addr; uint64_t offset; uint64_t size; @@ -94,16 +94,16 @@ struct uio_map { * For multi-process we need to reproduce all PCI mappings in secondary * processes, so save them in a tailq. */ -struct uio_resource { - TAILQ_ENTRY(uio_resource) next; +struct mapped_pci_resource { + TAILQ_ENTRY(mapped_pci_resource) next; struct rte_pci_addr pci_addr; char path[PATH_MAX]; size_t nb_maps; - struct uio_map maps[PCI_MAX_RESOURCE]; + struct pci_map maps[PCI_MAX_RESOURCE]; }; -TAILQ_HEAD(uio_res_list, uio_resource); +TAILQ_HEAD(mapped_pci_res_list, mapped_pci_resource); static struct rte_tailq_elem rte_uio_tailq = { .name = "UIO_RESOURCE_LIST", @@ -162,9 +162,9 @@ static int pci_uio_map_secondary(struct rte_pci_device *dev) { size_t i; - struct uio_resource *uio_res; - struct uio_res_list *uio_res_list = - RTE_TAILQ_CAST(rte_uio_tailq.head, uio_res_list); + struct mapped_pci_resource *uio_res; + struct mapped_pci_res_list *uio_res_list = + RTE_TAILQ_CAST(rte_uio_tailq.head, mapped_pci_res_list); TAILQ_FOREACH(uio_res, uio_res_list, next) { @@ -201,10 +201,10 @@ pci_uio_map_resource(struct rte_pci_device *dev) uint64_t offset; uint64_t pagesz; struct rte_pci_addr *loc = &dev->addr; - struct uio_resource *uio_res; - struct uio_res_list *uio_res_list = - RTE_TAILQ_CAST(rte_uio_tailq.head, uio_res_list); - struct uio_map *maps; + struct mapped_pci_resource *uio_res; + struct mapped_pci_res_list *uio_res_list = + RTE_TAILQ_CAST(rte_uio_tailq.head, mapped_pci_res_list); + struct pci_map *maps; dev->intr_handle.fd = -1; dev->intr_handle.type = RTE_INTR_HANDLE_UNKNOWN; -- 2.1.4