From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0071.outbound.protection.outlook.com [104.47.34.71]) by dpdk.org (Postfix) with ESMTP id 0593DBB40 for ; Fri, 28 Oct 2016 14:31:05 +0200 (CEST) Received: from BN6PR03CA0019.namprd03.prod.outlook.com (10.168.230.157) by CY1PR0301MB1625.namprd03.prod.outlook.com (10.162.166.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.679.12; Fri, 28 Oct 2016 12:30:59 +0000 Received: from BN1BFFO11FD019.protection.gbl (2a01:111:f400:7c10::1:166) by BN6PR03CA0019.outlook.office365.com (2603:10b6:404:23::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.669.16 via Frontend Transport; Fri, 28 Oct 2016 12:30:59 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com;nxp.com; dkim=none (message not signed) header.d=none; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1BFFO11FD019.mail.protection.outlook.com (10.58.144.82) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.679.5 via Frontend Transport; Fri, 28 Oct 2016 12:30:59 +0000 Received: from Tophie.ap.freescale.net ([10.232.14.87]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id u9SCPEMP019399; Fri, 28 Oct 2016 05:30:56 -0700 From: Shreyansh Jain To: Date: Fri, 28 Oct 2016 17:56:30 +0530 Message-ID: <1477657598-826-14-git-send-email-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1477657598-826-1-git-send-email-shreyansh.jain@nxp.com> References: <1477581467-12588-1-git-send-email-shreyansh.jain@nxp.com> <1477657598-826-1-git-send-email-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131221314596070704; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(92566002)(8936002)(7846002)(104016004)(356003)(19580405001)(5660300001)(50466002)(48376002)(305945005)(76176999)(50986999)(105606002)(110136003)(68736007)(6666003)(19580395003)(6916009)(36756003)(81156014)(77096005)(8676002)(2950100002)(81166006)(586003)(4326007)(47776003)(626004)(11100500001)(5003940100001)(97736004)(33646002)(2351001)(86362001)(106466001)(50226002)(189998001)(8666005)(2906002)(85426001)(87936001)(229853001)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0301MB1625; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD019; 1:W0P87g3xeNleKy8f+UUT0JAKFLYfVQLTXyql5Q7eZakV/P+Ykbgtt5cVFGa3SnMtr8W11jmI/xKy98iTLLiL2UgF4IouXrRa8xXkxPA6AnZiENEeiJAlDTV6mM5ixtGUnEJ020pAG12QUljQPuszyMWG0zgKhWZv0Yhx5OvyHYYwzWCtYXjQjjWvZHSklBthK5698pZECa5/wgdJB6VWACQwLGLUSKMs8WhGSCXYMeHEKdnlfJhd50zScdkqYvS6MynesURCmThX0KDBIVk8tSlncqaCkWDgW1G3j1WGta/AQTtFeKjHbBN2ZJmlBxBhTZ/2SuMlJRArfznDrb4tDyHcp6uyl+kM78FaQyTdkDkHkXWG0JbWXNxNp65UXO2Mj4ThafMS5xNS9n0jt6QITSVAwI/tvg8U2Tm5JCpNB6fQS2B8BqrJzFSfKNM3EszhBxLCwrW9Bdeph0irbZkFAYrjSs2Cf8J7BVrhyQMbAjjRnY8/lgMe2yW3ROeVTtQ/b2sJUF9BqJD6TSVUrnVIIpt5LzrPYJFDtCyMU68iNXtG32Aabm8Glm50Wv26dMqDZBKRQsxMF6FtqZyRa27CrZA6fXWvCkLFjTins2ErkNdcBu7XEE0jjhKEH9FZnu3Mp6sdAqBxOIIjjROmclaTKb0Rwu9b2HbItvKlRJR7zIOhI6A5AjLATzBU0BhRKSmDgn6c4mldB/2VgblVYh2kt7MdzdCxHR2reiDcFZpGidQ= MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 80e91d59-fbd0-406b-03d5-08d3ff2e45ea X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB1625; 2:B8boE+Ml2Jvho04G/zOuc6x8X4yuLWsyskVbXBNUKZ4MzrpH3jnYR9g2s51gPQ3lm+F9tH7tH/Wzuox/QSTghzQI9JR253TUKq6gGYI0Tenp3+yguI3vG4RA7973n6BjVkK78sZ3ga3yesWG7XldSeORnPIy6uhnv6gKkSw43MyPXQgX7HamJk8w1Rqs3mEyhqDelNYjRU6/Gb5QHa2e9A==; 3:N0w+V5YXsWrFJfK0B0DG5h/vIOzXU/v2En2Sge7/4pCMWmxwYbYoEEEq4Zmnt3qPTP0dfM8qvX44vzudA5zekXKJLdD9d0Sagsph7nOg3e0ZXTBwMqoG9szbZDe86qIS+/wpRTtvxNvguavg6ce05lJacFVqV/jWq1XzC9lyf+VffqPHdWcngZHj0FClNsjYhqRGkE2ThCtzx91Iseud6sajTYw2u6QLoDYLLiWahwZX4rtWfoLs0nkcmS3qGLwr X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0301MB1625; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB1625; 25:MLYgKZnDUngTsgBevrcNP6588I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Mc8LbFd9Bw==; 4:mschZ7At5Q7dSQx3jf5L9DgphCOTLJhGl4BQGQbAxgWwzEO3meD4Y2chU2DYrSrX2K9QN9NHZUJ/M4IrvNVHhw/qQOQVNWAy46vtymb+HK7u9zoP5ODFFI9L2YiFbZQefdWtx15mGK0TT1wa40ftLiWnEFkj8gdm/b4+eW86gKXr5qlihvn88Nzxfk0zmCl8nhpq7/PEhXgGZdEfRI7QPSUpTLF4s9mVXRsAbx6pMc3Crud5eyZMftYJIM/Apa9dLxW44vVIOt+82CxYyAPIn7mBM7L61O6wzoopmYmOVKlf6LgVEiQoi85VKXq1R5XMPsSsiUXpgSCu+NCxt7pgXHMGqEc5FOREQKHIRYNdu0yw1rcdAIpX8qg7EjQgeMmIXEJ+iYesEB2bBagJofpxxlz9cVJ8wCT+dVlaPVbR45aSaGGeWvgwY33mZmzXshBbDVnf52TFjpGV5ycgr9SkpQengHALnRzlR7YU9budLItlrFNwpJO+VCMlh0tzbrN3AoKcviGslbZCvhWMm8VEWunCXROG0Y0EtbPShIhVp1Whx0Hsxw9oNnkXKkpQfhGX X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(5005006)(13018025)(13017025)(13023025)(8121501046)(13015025)(13024025)(3002001)(10201501046)(6055026); SRVR:CY1PR0301MB1625; BCL:0; PCL:0; RULEID:(400006); SRVR:CY1PR0301MB1625; X-Forefront-PRVS: 0109D382B0 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0301MB1625; 23:3O3wP+XD4ePvm4RcdzV/35PAc8f44BOa1P+/U40?= =?us-ascii?Q?oeLQzbQqXpx1bE5kGdYfg4V/XOtsYyLpWp7bpera28DKXKHx2eSO05BgWG6F?= =?us-ascii?Q?AcHkwBJySwUKYuolUTobkDsRM8yimxUZS5EmXcdDV76vtsBHF/rDLmWCzfTq?= =?us-ascii?Q?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yom9I7ZqT/O?= =?us-ascii?Q?zGeQzHcSumvvor8dhAkpskkC1GJuOBo5FNjti5fD75X3TKsNukaQ/WVeYpdU?= =?us-ascii?Q?dugTr93ts+Ldx2aGceYl9N868IW12kq9hdQw2XiZ64sGvRlcwJdbYVRwGJLL?= =?us-ascii?Q?edHj5eg58YVjyOMS7vy8DLK6tZ7QjI4gYc73l?= X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB1625; 6:nVO3/3ECyiCQdkQzo4OdfsxUfMc1xWgptkkFudS0Dawr0e+ULuAnDw1xPThrjk7paNIL01VhbF3cNBLG3B2h/fKHrj3AJFVbG/A9Tbo932AHS2mNiAknTTvUqVTalIloZiuOQlq/FxKYb6ntfK3fOgbI89R7IAqmHjeezt5fdRDITgF69rx5D41Tb/ii89PHIBSf1QjiIF0//lD9BU9L5GzNqOKXRHhcsonPqZ4H12iX1dTfOyPCPKVIieWQcV3+bcE0e8obzKrDcXn0zCf+aAf83eSO02ca4/svA4jvE4EkJSJNwGk/ShhgRpRq4aTS; 5:6aNosjKERLjT7+NCk8qMOfkQt4ufkc0HCbIjVEAJ/3sI3a7hXplx8aP2nBt95K5MeusmCm9l53NWDESk0bdHdBzhS/uo0qi0DevnUND+8f10lxoKFGbny1yQ6qAEDvlY8/ZhHy/WPgRuLFnK/LV1jGVAuofb3mXqplcpUCCv1U2rk12myMYoN+eS9ABrZVqJ; 24:SM5iVtkasYiem2era5SxqN3XOzpOQqbHBiOxLoLUMXqg7gyJwziIXDiVR9mUoH6s27aAJ6gA8yYAUGvAQ4WfRtKHFXcz5EZjmuQJG0iLCIg= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB1625; 7:6pN4oDvbb/XH2nIc/5L3yNxxwRTDfZIqdxzan6AvEjzVjnVAJwiDtY2NxH7pYkrV8NPysb8biD1nuSwVZVIz6NZ9NDST8oDAJJ+uymvhZm6tJIEbm0oXT10vq73jq/mRdcFO8xg638MS5Weleu73sC4ILFfUoPyNfja6aFI4yklXyAXLa/2RM6pBg4NXCecEqXNARQC1IzYvSfcBMSDF8cYBNoKQfUQsSGM3DFKEwW5hMRenMcv44qZC/fSelkVst+plS2xvWMiGOioYkoA9rkGViCT+WexqkMv23ur7x1wSrjbcfbkLTRZjFrMjwhIfkJKey67/XtsR87c3insBUWjWINhag4PFot2CHM3ST+k= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Oct 2016 12:30:59.4042 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0301MB1625 Cc: Shreyansh Jain , thomas.monjalon@6wind.com, viktorin@rehivetech.com Subject: [dpdk-dev] [PATCH v7 13/21] eal/soc: add drv_flags 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, 28 Oct 2016 12:31:05 -0000 From: Jan Viktorin The flags are copied from the PCI ones. They should be refactorized into a general set of flags in the future. Signed-off-by: Jan Viktorin Signed-off-by: Shreyansh Jain Signed-off-by: Hemant Agrawal --- lib/librte_eal/common/include/rte_soc.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/librte_eal/common/include/rte_soc.h b/lib/librte_eal/common/include/rte_soc.h index fb5ea7b..40490b9 100644 --- a/lib/librte_eal/common/include/rte_soc.h +++ b/lib/librte_eal/common/include/rte_soc.h @@ -123,8 +123,18 @@ struct rte_soc_driver { soc_scan_t *scan_fn; /**< Callback for scanning SoC bus*/ soc_match_t *match_fn; /**< Callback to match dev<->drv */ const struct rte_soc_id *id_table; /**< ID table, NULL terminated */ + uint32_t drv_flags; /**< Control handling of device */ }; +/** Device needs to map its resources by EAL */ +#define RTE_SOC_DRV_NEED_MAPPING 0x0001 +/** Device needs to be unbound even if no module is provieded */ +#define RTE_SOC_DRV_FORCE_UNBIND 0x0004 +/** Device driver supports link state interrupt */ +#define RTE_SOC_DRV_INTR_LSC 0x0008 +/** Device driver supports detaching capability */ +#define RTE_SOC_DRV_DETACHABLE 0x0010 + /** * Utility function to write a SoC device name, this device name can later be * used to retrieve the corresponding rte_soc_addr using above functions. -- 2.7.4