From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pd0-f171.google.com (mail-pd0-f171.google.com [209.85.192.171]) by dpdk.org (Postfix) with ESMTP id E3505C53A for ; Thu, 25 Jun 2015 05:20:35 +0200 (CEST) Received: by pdcu2 with SMTP id u2so43640121pdc.3 for ; Wed, 24 Jun 2015 20:20:35 -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=3fn3hsbiD3zJLx6pihd89C92dp/2M1jDtJrVoQIIO+Y=; b=Y05ooBeLXmkLobwVCAjBcWNyPtozknWMkw6UBCyJkgcn8njJlrLwReK2qVnqOjT+qt 3RBkuuxvosbkruZnJUFxm3yOlO/i54rBIIJ6Xf8oOavQsDX5+GGLGEzxdUFrZ/uU8r+Y DYMWqi2cgddJx+8iApmFEnb03lzlTjKzsUCDstRcTvu7+0bKhqWkuL1kS1Wj3Gu3s420 k/P6Q1eA8lQ9WRdqrtmz9lVJ60R4ZoEwuNn9YvK/ftvvL0GJ+hRWXDRwo5z9AKSrXuNh tyh4cTIeTYjFrvgTi9pxv9v4RmL+h7N6XHrHuspXhg5awEYYRbWM20dNv54FNeJtiL80 Kiig== X-Gm-Message-State: ALoCoQnnFGUQkb04SItO3a52/D/9PjCXBfvRNT1NoN+MvoHQU7vIoIA4eaVS7jlk0UuUxUvaBMYD X-Received: by 10.70.62.6 with SMTP id u6mr85176260pdr.142.1435202435296; Wed, 24 Jun 2015 20:20:35 -0700 (PDT) Received: from localhost.localdomain (napt.igel.co.jp. [219.106.231.132]) by mx.google.com with ESMTPSA id tm3sm28482188pac.44.2015.06.24.20.20.33 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 24 Jun 2015 20:20:34 -0700 (PDT) From: Tetsuya Mukawa To: dev@dpdk.org Date: Thu, 25 Jun 2015 12:19:26 +0900 Message-Id: <1435202367-8887-5-git-send-email-mukawa@igel.co.jp> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1435202367-8887-1-git-send-email-mukawa@igel.co.jp> References: <1432014898-3543-2-git-send-email-mukawa@igel.co.jp> <1435202367-8887-1-git-send-email-mukawa@igel.co.jp> Subject: [dpdk-dev] [PATCH v5 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: Thu, 25 Jun 2015 03:20:36 -0000 From: "Tetsuya.Mukawa" 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