From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0079.outbound.protection.outlook.com [104.47.36.79]) by dpdk.org (Postfix) with ESMTP id A4FED1DB1 for ; Wed, 31 Aug 2016 13:01:52 +0200 (CEST) Received: from BN3PR0301CA0061.namprd03.prod.outlook.com (10.160.152.157) by DM5PR03MB2441.namprd03.prod.outlook.com (10.168.233.11) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.599.9; Wed, 31 Aug 2016 11:01:50 +0000 Received: from BY2FFO11FD040.protection.gbl (2a01:111:f400:7c0c::118) by BN3PR0301CA0061.outlook.office365.com (2a01:111:e400:401e::29) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.599.9 via Frontend Transport; Wed, 31 Aug 2016 11:01:50 +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 BY2FFO11FD040.mail.protection.outlook.com (10.1.14.225) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.587.6 via Frontend Transport; Wed, 31 Aug 2016 11:01:50 +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 u7VB0laZ010481; Wed, 31 Aug 2016 04:01:48 -0700 From: Shreyansh Jain To: CC: Shreyansh Jain , Jan Viktorin , Hemant Agrawal Date: Wed, 31 Aug 2016 16:30:29 +0530 Message-ID: <1472641235-23626-9-git-send-email-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1472641235-23626-1-git-send-email-shreyansh.jain@nxp.com> References: <1451682326-5834-1-git-send-email-viktorin@rehivetech.com> <1472641235-23626-1-git-send-email-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131171149106062489; (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)(189998001)(87936001)(81166006)(2351001)(81156014)(86362001)(33646002)(76176999)(8666005)(77096005)(8936002)(5660300001)(356003)(85426001)(305945005)(50466002)(68736007)(626004)(104016004)(8676002)(50226002)(229853001)(48376002)(105606002)(92566002)(19580405001)(106466001)(36756003)(586003)(50986999)(11100500001)(19580395003)(7846002)(110136002)(47776003)(2950100001)(97736004)(2906002)(4326007)(5003940100001)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR03MB2441; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD040; 1:fuDg/ac1QmPAkmOHq3R4tpfT264FXL9Lv5H5e3IB+liW86yxbj1KgSv+qQGmPJSi/h2jSVbmpYyluUEnp2mWx1swjg4oqFI9+G8X1gT89xcVQzvpaguYOVxsZ7uGpMZmQMGmw0IJjQQ3lsjM8xY5xZ9yvofjf6s/tR/3ayeQ94mjCvhzypkMt4Br5JteJQcnLKtWYNo4+yOwpsu8YP6F368dXItl2m/Zu4Xps8jQ0agLKjoIuLldh8CARWnrKrkhOsxPRBDRsNVMOgnPNJXSooMGczMDF1vaStm7UxNsm/ZPx99hjRbQSIRBJwiHl/g1iLtkicBBIqu2EvEuT37/wN9dglolHJjPLGGdBBM51Rc8wdK9QYz0voVPWKTapzEgWcwU+g3/dWyEP5RANXtGY/8uy09puPbyrBkjqVnmLr0G29Cp2diON4MiW+RNWxVSfhZ/Br1XSPunMsY0alRA8zZ3Mcnj9UnljwbxIx27E0IerE3tXPGFL1Kk4IEv5rVpt2HeB5bVfT7QVMCc/3FpHk1jVtr0I6SLT0kDc6AogQJ2NdraMbY0GMaoOL/pS5wGDPqAv1riAae0JDm2dHLc0MYNmq050Ze8p/1saK1eOvmqLZfnFQz5OvjRv7MolP8wh470v7ZtWXf8L+RjKULp9HdYeIYnK9HiR7iNuD4nm3zeGFKFlDxP0uDpL1Dti8fhpP89EiQv35FWIKBw8M3UqOkO9MD7+lIcco+3mW1rdWI= MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: d50897f8-f8ef-416f-b830-08d3d18e35a0 X-Microsoft-Exchange-Diagnostics: 1; DM5PR03MB2441; 2:ZpWbFrzm0JsM4wKYpXA3WQ/xko2Jgv2BpyBYr/MRgA1L0f1f+xvjTSil69XQywFlBe4ithXlRi8prRPKbMvXsB++r9Nr4eoZZlpsfsVhY8RtAnrNEEKSHeOhWndJcTEXNAprRf4HQ8gRupOBZsdaG81lFKbUVbenLb+1IjmTNHpSAMqzyNGJp0oMdNyfhqaw; 3:sd26VqEGEvDtCPDSN+RHxwgdEmP8hJ8h2McgIXlYmTOm2uLqLCMTq+oJzFwhYE7Y5r9klYah6ue5fNXmSzZIGJnC7Pe1QREnLOX/T6/8QBBVQONJobH8l4HNk2Zr/yvfWUcbQ2Ej7HHeJQLqCXumvz9d7LClOLpjco6TN7CjBSGDWOOP1zDxgWpeby+t+Fp7YHtSvrK1VwU5ii9BVPScoPurDH7bT3XaarNudYYFm0I= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DM5PR03MB2441; X-Microsoft-Exchange-Diagnostics: 1; DM5PR03MB2441; 25:RWsjMe3iM1yx46rXXQYvhZgqI7ryLy0Vk8pd5qHp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XZyLXALL5lp5qE6hqyiJF3rcSM1X/i/oqNmZeK9A7nXpuxsxdDd54qYeraJIxxmlqd9OsUPAO4GWXbVvVXSxq+E00HNvVk1BHqtlZ0kUV34nRteQfIVIwadhvy4a7/UXPX373pQrLJMbbg/a8DHH3e8ycO9up6NoHGmMe4GJRqDiID2ckeG9/2ztCHDCQrtB3jY+RQ2rtnVJ0yV4WcPGWcpBKBZJuMGu1bmuccfJi56/ObgAgzjBXkiyg0x4tFcKYn6PrQluq8sd4lcFD/HIvCXDKKlomkbJz9ELK4L7gMagh6LD60Lh0kqebqrCFkmSkzjmQ/fVel+kDT2mmlK4YmzWL9VheZk/y3smn+/US+9oa9T8YITHzgK9ZpxEfhiz99Z5TgF99DOOEqWi12XrvJms6mAW6apqLDYkSYhTebmq21iUsBBRZFR2QE7s= 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)(8121501046)(13015025)(13017025)(13023025)(13024025)(13018025)(3002001)(10201501046)(6055026); SRVR:DM5PR03MB2441; BCL:0; PCL:0; RULEID:(400006); SRVR:DM5PR03MB2441; X-Forefront-PRVS: 00514A2FE6 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR03MB2441; 23:BRUWy9ZdiwLjDYqfwciZi6ipuu+JjwXJb4VMpB940?= =?us-ascii?Q?3frN6JOnxRwqGlAE+jLa2MPOhxVHjcNdabf5VJkZHa4AJ3+xZet16FldJDTB?= =?us-ascii?Q?wKmeJF5h/IFT2clIm2cY+9celuCYQqccuNAZ+EoHe1Xffnyv7w2Dx1xVd3MZ?= =?us-ascii?Q?TPXrV/lk9l8Doa6CqC0eV9N1vOSgYzN9mne76yOMynHDjlSLGtKhvkB8mGhN?= =?us-ascii?Q?a4Ftd2oD/tQ3zdqnvp0R/lMdGkvNYi7u9aQWrg23qBbsW+lziO3WyJV8W49+?= =?us-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ep/k4txdJ1ziertwBIdLHTUOmgK66g6L?= =?us-ascii?Q?/Wzjml7X86zKto=3D?= X-Microsoft-Exchange-Diagnostics: 1; DM5PR03MB2441; 6:rHS6jWAQFrDDMLBGaVF8xhASVIc5dCKiuXbg7qY5s/IFhCdeaCIzU5DYVjtqgjb88B8Cc+rX69HCGY+6eVXIplcu2nxfuDTtFJIKUgZSDqWZ1pEi61Qrr/Qmj2QptKG59IliQTwrPJ3Bu+junzMAS2n6cWkHvHqo69zcebVScsARTWnXAuEc2VC2DNQW0dFJ2vWnOiuA2HxPQGYshnKiVozIEkJoShSLjbzm8qJVKVjFPtcCiycJM3eIzAGGln0VczXW0Hmc4M7gy25XdJw1axmzXdYNkFQHPXfxtKHPLvA=; 5:YdWGSre+kXddcUamSl9Ykhpv09hS9sb0ECUl07lfCeRxmnQEmqBCaJvW6Tnw9qLQ7tKcG9f28mZfbnVYVs+03gMoVGSSsMUlEB40zQskAolTNMjUQ6/2fEERA+PvJKbY8jDwbaQSB5pckWfTBsmEdPhtBNAIlPsymLerfbgd3kk=; 24:1kTRrCazKvuib5hRWVA8wCHOl3MDqboObcU3N3tBSSDsQg2Nc7sGaIUyh0GQNU6I4tMKT7oFVm6dPVDcKKi8cohqIfV9uKDYakEET57tC5c=; 7:0RPWvelUgmF2Vh/rfLra5yUxWuS138u/aNVEgmZyrPBKNCm/8Rvze2ammUCLXwz3dVNLD+gi7nTz8uEJPebwBiI4mMoiAvFq91FcrRgcS6wPb0FjIwBQHTOCZXDPYy9Y+S7jpkQzXjZa3cieHF1UJJm63H1Lxv94uMtaDocxKEUM9mkRqdCzP6GksTxKARSvhnYa2jjV/n9csGQ/m6zvcXp38PA/0kKHJ/8cpmAgJ8AnRu7627tRg5frRxGPGwJc SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Aug 2016 11:01:50.2474 (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: DM5PR03MB2441 Subject: [dpdk-dev] [PATCH v2 08/14] 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: Wed, 31 Aug 2016 11:01:55 -0000 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 c45b37e..d453398 100644 --- a/lib/librte_eal/common/include/rte_soc.h +++ b/lib/librte_eal/common/include/rte_soc.h @@ -117,8 +117,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