From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0069.outbound.protection.outlook.com [104.47.36.69]) by dpdk.org (Postfix) with ESMTP id EFBDEBB42 for ; Thu, 27 Oct 2016 17:17:57 +0200 (CEST) Received: from BN3PR0301CA0070.namprd03.prod.outlook.com (10.160.152.166) by CY1PR0301MB1627.namprd03.prod.outlook.com (10.162.166.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.669.16; Thu, 27 Oct 2016 15:17:56 +0000 Received: from BL2FFO11FD040.protection.gbl (2a01:111:f400:7c09::199) by BN3PR0301CA0070.outlook.office365.com (2a01:111:e400:401e::38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.679.12 via Frontend Transport; Thu, 27 Oct 2016 15:17:56 +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 BL2FFO11FD040.mail.protection.outlook.com (10.173.161.136) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.679.5 via Frontend Transport; Thu, 27 Oct 2016 15:17:55 +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 u9RFGIfh027183; Thu, 27 Oct 2016 08:17:53 -0700 From: Shreyansh Jain To: Date: Thu, 27 Oct 2016 20:47:39 +0530 Message-ID: <1477581467-12588-14-git-send-email-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1477581467-12588-1-git-send-email-shreyansh.jain@nxp.com> References: <1477310380-17944-1-git-send-email-shreyansh.jain@nxp.com> <1477581467-12588-1-git-send-email-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131220550762862492; (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)(189002)(199003)(11100500001)(77096005)(50226002)(104016004)(5003940100001)(68736007)(6666003)(47776003)(85426001)(305945005)(7846002)(8676002)(81156014)(586003)(110136003)(81166006)(50466002)(86362001)(8936002)(48376002)(97736004)(6916009)(87936001)(356003)(5660300001)(19580405001)(189998001)(105606002)(2906002)(92566002)(106466001)(229853001)(2950100002)(4326007)(19580395003)(33646002)(50986999)(626004)(2351001)(76176999)(36756003)(8666005)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0301MB1627; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD040; 1:AZiLXlIShwugirgtwAMvTeXFxFdVf5JbGPn7Hkad1ktxdn2sdjpHtTHq6B/Tjwf73eaJRKuuHWWXbJfYnkMz0PCe7jl6/17g1ANP+MtNnqkBkNOVjVwdwa1OF82CRUFeogJMBpDmwnjb8ixBB5Qbv+8pnoTVU2HIsgjiIzEIPZEsejinLpsCJ9tkr/amAoIF88kjUwkLC+UzkVA4gf9dAHgzFRQVy9QcbBP8RoCR+fsKVY6IPKUb8KskT+Ne0R6RRREOXk7Vn0yd+yRRW5V6lT/4yMrzKCncdTO9jBeKV5AK7/a9mYu3clf0O3lAPLLT/diBW7lc01S/rv412UqSdcxRmMcKAsexR/RgftHxAXhA7pxVg2yZ8g9O1BilLqFIajVdlw/U7A+mQnGE+Dbx3SSLhi8n0L2chQxptfnKJmRDFyWH8lNYhlP770765bGW1Z6KJXWtCQxaIgf/XCDYEtGpmI3xTd9u9IIeSR8BQ6UGGizpW8UXqKZZ27sgoamIfVx9cUjmaYyY99bPVBuCyfiOnlNEWNXpPamNBXCHdLAYj3DDlPVM/S6b0GR2/oXWrQwCrgZzs3Xqno2UUpt4FzsCy0HaxOWBs9lq4CobO/VfxB2dRREQlXUnoxuUKibLSTmFhay5x5LxYHEHcK/iBDpSBLpFBijb6/bVhKuo3QL/aZHlpSQRy3LSu8qVxuW2/frQzbM49A5YSwn2eBuR11phpoYcz0/HyLEWr1pM5/M= MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 9b4d18fd-63f0-4048-2b33-08d3fe7c6dd5 X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB1627; 2:ftnXN5v2vwOyCPMaZHHNhXNdWIiYmy8vdohgQYgIEfRNehfYVi3O6BnTd+aedFQbHqnEZxXPpXhjodCLYzlO3TGikpyHUyPcs79cEt1CCOCXD9k0PaekBSOotLakQP6Ak8G9VkiX3XVE8SusWaH+9DZ8SAXVs7X6zD9SbUbLqDV2tOZCkdr57H6HFdWZJk8C5amr/RRLAulL5f8R+Cr1+g==; 3:LDxf0V0M9ATh5ouNyz60uqx4jjflheZ4JBVelPuN83WrrBchXcLsDhfHN1AAz/oKQT9fLJlc/t7NjpXK4HJp1B7+ZakeJfkYJvbqSN4nwaSNkTwLjgY83xwTQqZeb7ML5hfrP5wMm4yNz7Zt0DkGSly0FZzEHCmMpTloxKuTPD4D+WPp7XbeFywO4U09gSObZbyhLhY4QUQlSAw95PgrzDGy1YDplco2GHDaNJbVUqzgri9jV0Y510SiKp3sC+B/ X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0301MB1627; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB1627; 25:/cJ6iNr77D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+so1Fcn9q6Jj23EGEW2Z+eChg6ORAtI+SpXoCs9pzvtoZNDmeAOY=; 4:44u1EMUY6OfhS19FINoYzOsXEM6ehjzAM6ubxwwnZwKDoO3QZ5FhM+l4ohpWxNDVUatRKGKmo2ifpNwU1GLErO8f+o+TBlxKMKVAfRLan0EHZJesxeFR5N2QfuGyVJZfnYS183Hp/Xc+PjsBfTgc870Y6rY+gaF7zwC2SYdF8wEn5DHnwDEa9lc2fcvCoKMSAmiZFJQQM4lCWaQ5mtWK0yyBN4k8+dLNowdcdjRM1qOpvKmTSpPtZpZrCwYF0ItXWxykvYktXUbvL10uVXd893zxV6qpmOb41VPFE5HV6vMaghQBjnSEpofLvHtVY8PHmHHrv0yP09lau2nUI+95N3sEH9G56Nq9Wnbaz2mAbe+f4f821AO4zyBXbWumSpyJUTB+IWLEpYl9X2c7cpyTiEuP25xcR9yaD3iukvP0VuABFwEnYgMFbhd3FmOKbOIlMDIb0VS6jGiY0/ylBx+4C99uJmnI55VtgFi0bH+r/iOfofBq3ev5FKqenpufoV20cZ1Y9QrCVADyDO8NlSvBdj44Ne7PMklNAje4ds2Ypzm4koTCtiipRZ0ghZkRY5l+ 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)(13023025)(5005006)(8121501046)(13017025)(13024025)(13018025)(13015025)(10201501046)(3002001)(6055026); SRVR:CY1PR0301MB1627; BCL:0; PCL:0; RULEID:(400006); SRVR:CY1PR0301MB1627; X-Forefront-PRVS: 0108A997B2 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0301MB1627; 23:XAwRE+2upRlg+1YTKYbez8GisQchy+euhnoKqjU?= =?us-ascii?Q?Zhi1X+W3CMhZvtcGpgQGi3orysHPoRaTSA85g/6h97Loiki+nqMARq0aG81L?= =?us-ascii?Q?zQEximPdGCwyR0ZGX3LX8QuLgus6jXyois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XBPCbEgAqh3y2kbD11FtCV364FibDOmx/5z0+q7GJq6OgeNUkx4WyyXsLNcob5/rKM09P8vErUYzC9KTCGK4/VUi5LRpsdzFDx2QBkibAlCIT1qj/dSwocS4HZLFSqza/7wP+VbHANE+xeXG/JK6m7PUwoyrkRbSo1O7YWbsxVS18GtrpbqSP3wNVxONGjLLuz1eLY712k3sQc3Ihbauu2+FrualCxSRTiXh1/V2YBY689HuZzYu3bztkc1knWaPIBifRrUEeSQH9n+tmSQ7cJp+Mu1YFjJ+iUc= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Oct 2016 15:17:55.9586 (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: CY1PR0301MB1627 Cc: Shreyansh Jain , thomas.monjalon@6wind.com, viktorin@rehivetech.com Subject: [dpdk-dev] [PATCH v6 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: Thu, 27 Oct 2016 15:17:58 -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