From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0050.outbound.protection.outlook.com [104.47.37.50]) by dpdk.org (Postfix) with ESMTP id 08F406CC7 for ; Fri, 9 Sep 2016 10:45:02 +0200 (CEST) Received: from BY2PR03CA069.namprd03.prod.outlook.com (10.141.249.42) by BY2PR0301MB2008.namprd03.prod.outlook.com (10.163.196.30) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.609.9; Fri, 9 Sep 2016 08:44:59 +0000 Received: from BY2FFO11FD027.protection.gbl (2a01:111:f400:7c0c::192) by BY2PR03CA069.outlook.office365.com (2a01:111:e400:2c5d::42) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.609.9 via Frontend Transport; Fri, 9 Sep 2016 08:45:00 +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 BY2FFO11FD027.mail.protection.outlook.com (10.1.15.216) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.587.6 via Frontend Transport; Fri, 9 Sep 2016 08:44: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 u898hoZ2018305; Fri, 9 Sep 2016 01:44:57 -0700 From: Shreyansh Jain To: CC: , , Shreyansh Jain Date: Fri, 9 Sep 2016 14:13:52 +0530 Message-ID: <1473410639-10367-9-git-send-email-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1473410639-10367-1-git-send-email-shreyansh.jain@nxp.com> References: <1451682326-5834-1-git-send-email-viktorin@rehivetech.com> <1473410639-10367-1-git-send-email-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131178842998938695; (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)(356003)(19580405001)(19580395003)(33646002)(5660300001)(8666005)(7846002)(36756003)(110136002)(77096005)(105606002)(229853001)(48376002)(68736007)(8676002)(305945005)(81156014)(81166006)(50466002)(189998001)(104016004)(2351001)(8936002)(5003940100001)(97736004)(47776003)(50226002)(586003)(106466001)(86362001)(85426001)(92566002)(4326007)(87936001)(626004)(76176999)(2950100001)(50986999)(2906002)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR0301MB2008; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD027; 1:pViYrIHjaYEvn7pepEe6r+1PsWPlIx1+ymd8XdPWInB18NE1iwtdhkSBZ6hVp+T45NVStAcUqy2cgIbVUXBvNDoTMAdlCsBrDgarou+45HZV2lEEG3eGt3jlBc5hIkaJHFRSoYoxFOayXauST+a/c2kgXI1asYYuAUvTw4vmsZkhDtRg6T8GP2lsC4bsmEPAhDjW+RiyPqxkbNIj+s8wGbBXGR7ltlgaT8TbpmV3e2IGwvFTfMWRXNM5yRHX0301rOZqmq+vzlgtSRyUo8+SNfifdpacSpXon+IHfycssYizrg2PB68jePqZnWa+MnK0Vu4wA80up3msEmOcnWXZaSUJ1QlqXrDAoNwoFRX9YjfAGCheuYo8P7MvdP+AVuhJADV2qPeR7/3u9PAJWj9tBltPzMrQMgWvLQxpH2YoaV4HbMKOqUTwxQ45zexo1tUfVuZOGWtY74aqcDd/5X/nSlqfuPnKJR9k8xZBd5wjoEY6QFVPEucdF8JeAe5r/Z+IkczK5AWImxndWklhc1521s5k0CtljdhOukUuXxu/w3p+5eG075wDCcRQ1N8s6qqAbdW7GEmtvdHMWKpRZg0Ka9TNdjdplUU9slR1X1MK2F4KT/DD2govjVTv9TPiemkT8uwM8sgw84vyhI1ptm5unTlpFV2VARNWXPl2N9St6Eyb3W4/A3AfZd5rBSwZPM2MhY33AOs99uLRXrp+DeHbxfuvU80JJ/5hdXixoiC2Un4= MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 2deb62c7-c175-47c3-9c47-08d3d88d9576 X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB2008; 2:fO8in02PObXfKyJJkSOXskIvZx82ww22RwQeRQsYpp6j+LuUXgxirGeTtcNy2D5fwzLLUjgTGjUEpNm6btGA6dtcJv6bd4TmaScsmijquRG2eGUkvAVYkykbdfxQ/F4GWeN621UIo5xT/dtK7Fnro7xeMVW3KDsfd7/K7EqaZPW+eLmkPPf07folwXkzeIoH; 3:Ib/GkwczzPLLqO5dcLqIYt/KVAyTAVnhw7LACjFLyp05XlkkcDvWZ95hQELhFEc6As6bPTF2x7gO8iok0ORdznWP6DcFkewCKziC6HnTLrlcE72mlnrfw57hraivZwQv7h0u9jYIt13XpFXHWMn7BZDEhB/DjFsn1FklsjD4dbgE81jRw/8K9GQxnXwkkTnwyKc0+070UYHyp4Q2f4GQDdUQbJBbkL6Hok3momJXQZk= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR0301MB2008; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB2008; 25:lnmIgue4APXAnxUHBkipVyORDm4HD6kWeaTyGWxoHE16h9yHSGtZhrfWITgOivPDleWXmSdYKjaRXVONodzjhcIM/AUIK2rKD5AJ8zUg5nTGlGU+p6OrcapVrbsOKKEe/OGefCPW9aRSF0VU1/Sx+h1SYc5/s6gfZ6/6+f1PzEw/T6nSFajdaRS2LfntZuxgqsT/U6FnR0vueJhM0/EWqm6EMGmwQxrYnrykNyR0XIY0iV9KCKFmlGHvm+IET8eK1UZAXQBiqGo9Aaa59B7CmRAXQbdjBjgj1q2YICpEjpEPnqzcHYHyCAHlOdADDf81Wz5deF+5LqT0K59zLL3SOATmukEUT0RGGG+3QnrT5W5kCh9SIHHuHeFsExDCTvtAiIfhYIlj1tV+kmk2z9SD35Zq3VYdLX1hyoj4pZaYTXz20N4Z6k3r8ZIrWm03E7hi1mdXvK3kKr8f7kyC+NLecXTSLx75eIRmUTNOqiOUav1scQTN8E7JscLZehO1gdSBDZzDkXM6e8wsHOMKt+VOC2sjkzuzXqSx9Bz1pivGGH0iUDYWg2zAW78Vt0musGwtxBkJpFMYc62DNN9qnW2Brhi3Ah7fx8vlwd3qLeVDMjDbuC379D0CJr/rNkjQGce8448y3RdKIWGL3osKkiUJNcYCd1DP5o1aRLiUcKl8lYDMA1SajhzGZbyhQ/7HpIXdmnSlGFKDHCkpY6XKfGjiQA==; 31:HCjib/R6r+gwkZ0g9iCmj7B8W88tlbhKb0JhUqmyIfY5SRKoc+8A+ZABIdXXsQVnSOXnWmDWPgFwcsk0DS0PRIXkOyOgml0DPaqUBi12vHQPFGmUiJrJ04cHgio3GMGXpG9oP/1JoJtZokSIxXE0DZUBL8bEKgLvLHAMOppmQ5r9Kxjw2AP1P/c2P0eOFSr5HkPiG4yj3xIxajyy2nIyv7hFLVbqAzqWPOb3qFVjgvU= 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)(13015025)(13017025)(13023025)(13018025)(13024025)(5005006)(8121501046)(3002001)(10201501046)(6055026); SRVR:BY2PR0301MB2008; BCL:0; PCL:0; RULEID:(400006); SRVR:BY2PR0301MB2008; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB2008; 4:FcLeicS9JwQF0WZw8AgXo8xJQCwUEJsKNtrnSSJrpuwdfTwon+NBzxOFtBKFmTNzHLkYL7e9VSw9Ox9yfwImtYU0DQmZCc0MMkeZOH0e8FLSD0Uj5bLKZwaZFeezF3eukh4gsSaZE8uHj3RIRZw8Le1OZcX73shRN+bJXQ4NQu9QS5wkw6irPzJy3p20lhxlSYcoWcoQq0GDIy1/d+AQ/4SMH5T1d/MpWfqA/bNL/FmpjKpeEiSIdeaUjSCdDm+34M3piA/cbhbfJy7gJkz4ZaGwmmbRanoq8UlCpX2G4Onjxlf9GWa8gUCruUYJnwYF7dssVGGwhISKrmL4s9uzOr8YwUzpJ64moTmZN5LbOVDpiAXe5c4J0j4mWYf9nIqGAtREzy9nF0gRcEQsxpfg16Nkq2ZTCMgBG3PxA5GdEISBkZoAXsvCYvq1TV2c2rYBFc2+2m9w3Z05We8na1SFLUtmnoaiPRtosR8mTME2rt7iectnUU3ghjwbB5OmXtI/RCg8SPyXWewSer+dXS5kaFFMrnwkEEnMA6m7bLSXS1s= X-Forefront-PRVS: 00603B7EEF X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR0301MB2008; 23:6fwXWCaoMB0FzwJvQiIKvwMzatD8uXppd2m1n3n?= =?us-ascii?Q?5/LI/Kp7rYhS3lYMxAICmPOTlYWbtahCE5sB7R+mLFHvGC9kfUDteUeYPKwr?= =?us-ascii?Q?uKfQT6ZfAgM46NPD9k84BECX9JoLZhIl37/UZv/b3aOcTGVoLLJI1Y4xnYxU?= =?us-ascii?Q?/Tz95JYS5qDkPOuUUqQyKKcGpYkCnhmhUn2wgorsjmkxQWiw25CYBsgzCY7v?= =?us-ascii?Q?Lqa/aDYxK3A+KSjWvjaBF0++W3zy6EZqYN9K2+mFyBmf06aB9q6CE95x4DLf?= =?us-ascii?Q?nLPzTMERZRhdD+inTUS6RTwwRTA1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; 6:oWTkps/cy7dS2tv94/HFxhbBG7xW5d1GDcgUX9lXODJ4/Zgk3ZW6EUHI+3scEkCjizA5050IRd6N7JxfmpdtipdxAo46QDERaZtlwhFVumSy2RvQmEMpLYedfhbXWZTvj3zJDWsCuSmjIlWZPvBf3/vdob8xu45SmNmCt0W1cy20heXGIFVMI0EU9yr1e0oAtc5WH41++9tM8jFpLlC+QsyVKsLvI4oyPy3KCaiAOYY3o2G6Q7sW8E2HKy7pJT2dQuWSR8AAYMr2r+4a59EdElMn0U8skP2T0nvkcnWH6ss=; 5:5eH0iMGaEIUlrx2CQJFMQ6jG33XrwMvdh+OzrofiUFuYM+OwUvxUTUPa0nj1XF/tr14Q7uRFCsbBNIBbasr12aEy80pJKJcEFfdjf5cZ5y0XB6MhF2mo7uaBLL2vljOQzcGRaD0PyGJ9ujbDhi+eNTsMub1EXP+hoduuX5YSZKw=; 24:7GSrfpRxcojm/ajvnMYRO2IT0mtls1Hqg41u+TuPmHUUXa8ESsuOMZj8tk5lVF4zmk8Ih0E3I/Z02sq4gq3lbXeFAcLo/hCllAYhsgtbk1k=; 7:io8xXTEt4hx/ejCxnK69iwmJoFlG2oout/YMiLcKghpOQyt0CMSc/2v0/vlbSosNnILneVG7lcBlBK4FLVcaGifNrdKlQ1Fkcs/TcFRBw+jkq4g5IHNdiOepw7vP6VMwrdRYxqiDZ7m/5jA1ERH/Ffuq2C3lA84IZH9aMdNYKNpGH5uI1WMeh7qtujD1HxTeKoPJxAU++ddasXGiVHnAsw1ouXxC2TbmDEvAh9WoLqAoPw975gmavOqwTZsKpyda SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Sep 2016 08:44:59.7066 (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: BY2PR0301MB2008 Subject: [dpdk-dev] [PATCH v3 08/15] 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, 09 Sep 2016 08:45:02 -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 0bbef7d..93d3a2f 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