From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f48.google.com (mail-pa0-f48.google.com [209.85.220.48]) by dpdk.org (Postfix) with ESMTP id 6FF015AA1 for ; Fri, 27 Mar 2015 09:39:37 +0100 (CET) Received: by padcy3 with SMTP id cy3so89412474pad.3 for ; Fri, 27 Mar 2015 01:39:36 -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=i+JNiA9QGhPe7+FR7Txpu4prPa3RzjBw61wDaCToDOA=; b=DwDetZxXWKDuYbW37B2iivMWc1MDU6HaxDm66dpoEhi8hAuJ3M/uyoz2oh+KR0KFQ6 ZJxkxb/25hmNO+IUZUWFjA79pab3+Qu/cUoJA/4V523eaDF4TBXxqx+Ir/IOU9nECW9C +bvCtNj384tlnuLYwJmDsFLdDBxaAXvt98D+Coz+xZwYUuZF7iOhdiQc1Tu0GnNwH5bs ivlMJO8fyazLXvZ5ys9inE7MXzA/icOm4XGZEvEdPnOluGTG0AfJFfOJql7rhNsEQxg+ yXDMmgpJysV/60i3SJPUoSVsWJei/MdSsEeKX8FRZ4fU7tYkQDLwG0fA36TgNYElYi60 EEIQ== X-Gm-Message-State: ALoCoQnE+ILIjCenXZACvCYjuf8wo8fB7Bl27SL14wYlh3mhXSL2/kf2Iqqz+XxewZH3BeJpAYbF X-Received: by 10.68.253.162 with SMTP id ab2mr33709719pbd.62.1427445576757; Fri, 27 Mar 2015 01:39:36 -0700 (PDT) Received: from localhost.localdomain (napt.igel.co.jp. [219.106.231.132]) by mx.google.com with ESMTPSA id fz1sm1396671pbb.12.2015.03.27.01.39.34 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 27 Mar 2015 01:39:36 -0700 (PDT) From: Tetsuya Mukawa To: dev@dpdk.org Date: Fri, 27 Mar 2015 17:39:12 +0900 Message-Id: <1427445553-3151-5-git-send-email-mukawa@igel.co.jp> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1427445553-3151-1-git-send-email-mukawa@igel.co.jp> References: <1426584645-28828-7-git-send-email-mukawa@igel.co.jp> <1427445553-3151-1-git-send-email-mukawa@igel.co.jp> Subject: [dpdk-dev] [PATCH v3 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: Fri, 27 Mar 2015 08:39:37 -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 b5319d9..7749ad6 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; -- 1.9.1