From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0073.outbound.protection.outlook.com [104.47.42.73]) by dpdk.org (Postfix) with ESMTP id 983CF2934 for ; Sat, 15 Oct 2016 15:44:44 +0200 (CEST) Received: from DM2PR03CA0047.namprd03.prod.outlook.com (10.141.96.46) by BN3PR03MB1416.namprd03.prod.outlook.com (10.163.34.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.659.11; Sat, 15 Oct 2016 13:44:42 +0000 Received: from BL2FFO11FD021.protection.gbl (2a01:111:f400:7c09::191) by DM2PR03CA0047.outlook.office365.com (2a01:111:e400:2428::46) 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; Sat, 15 Oct 2016 13:44:42 +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 BL2FFO11FD021.mail.protection.outlook.com (10.173.161.100) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.669.7 via Frontend Transport; Sat, 15 Oct 2016 13:44:41 +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 u9FDhhgP021870; Sat, 15 Oct 2016 06:44:39 -0700 From: Shreyansh Jain To: CC: , , , Shreyansh Jain , Hemant Agrawal Date: Sat, 15 Oct 2016 19:15:00 +0530 Message-ID: <1476539108-13170-10-git-send-email-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1476539108-13170-1-git-send-email-shreyansh.jain@nxp.com> References: <1473410639-10367-1-git-send-email-shreyansh.jain@nxp.com> <1476539108-13170-1-git-send-email-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131210126821813242; (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)(626004)(8936002)(5660300001)(110136003)(33646002)(48376002)(6666003)(68736007)(87936001)(97736004)(50226002)(189998001)(8666005)(85426001)(586003)(7846002)(356003)(6916009)(86362001)(305945005)(2950100002)(2351001)(36756003)(5003940100001)(8676002)(92566002)(106466001)(105606002)(76176999)(50986999)(229853001)(77096005)(2906002)(4326007)(81166006)(81156014)(11100500001)(19580395003)(104016004)(50466002)(19580405001)(47776003)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR03MB1416; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD021; 1:AVXRDf1MPls69knB8xN2LShlV67syKYoTgAV91vDpKxuEgqSq2NqdF2QrIktGhKI8re3566m9T8yaK79VbfQNW1Zjt+X+tdLI4LBpp3Fgk3pDxKytaQBieCJ7LGvTOq/RxpaiJlnDgmQ7S4UdyH5C8zqJwZDEkGj8kX81yEgeGwcq1BqIYZMz3blG1wp5Yq38Yhfh4v1D7Y57C1STfo2t/AJaytk/yMIf/aO9EPV3G+ay59CIzWu8IZwyIH+eWXRMaRGk3e7MGlM4yUnDXUsnuMD3X1QQH7qm+uYw2M/dk216RBbaEs6+0erR0oFc6sm61JYXNfpqWW06E8UC6GJ7vWxcvaAD/8t1o1hc2VLN2yqZ0FyNPMfeMwzss0Qs41pGbvviBqgR/CwmbfUJRxuIe7vHkNkeTAAzdAtwQ1ml1n3SnrB6jbfKO5KDLKfgBDS1u0MUM89b60W7MWRvJm59qFzpg9oA+EbEwHoMKqH+km8xi08TY/f6KyLOMiRvJpLjhAwDK2zpy60hlRDdxvNgv+v/VwYxxPZ/dIrZOXG2bXsFQiAItuIQ3emT9VcO6ofzMXIXq4Wf/wwXvRY9wkXTgpks9T1k264CdIEOICxW4a8Y6XzUxycRFqGgEMx7Tkz6YUC+J4UUJcMMC3RJHAyqlaP91T82WvAMBQg4OORKy1IT83aWc5SZLiHaI/vLR1hDLmbQvNy7/CDnYCP0ipXjirN0l9Mbefk2MYmYSZbJ6U= MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 073cb622-af40-4e88-8a99-08d3f5016a9a X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB1416; 2:m5qKztZlWmvzggjLVouMWbpNK7Qnn+TKORNV+bLuSo7EXqFytv0bs2J6kxZLugTfOnNse8jek6fOQNyxzhiUC9pSzcoO0QXnHuqVUjTQNexchYhdjR9Rsi+gYOaUzTb9ckH37zJJQV+VLvU6FeG65Yfj05RtxgJTozJGOstpW3/56ZC9CWUg5tUvsg9slwKejThGqm0+f249lrP1078sVA==; 3:iFD+20GVih4tfZQwC7nPA0USduGV9wRJyXef+Fx0gc6qvKednf31pfXO8yDmFJ2mUGPMI6pQZqmtyD+06ZYlKsvDGHZu8TAID39N9hUCUsaYlBZDIMT7qcR/jLdW4UpZYD/Z3nwlj+KPvmybFMsVzphzUDCRbO4p47cBEM6D5CdZ0oaKq+gnaEVcA9m/yi+4TjacZRjzEdeyobuWW+1Dp2hkFw3pHAtJAuJmTmwWXPbJ7fQYK6EWpxAUS3uQATc0 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN3PR03MB1416; X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB1416; 25:OO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AugSpRIQx35WyoXGtMxbBElzKji6zichg==; 4:sW/ZAd0BTp4gfIu6dTY2hMtLeJ1FSkXfEMDA5MNw42lFpleK9dpbq9XXI/ZG5isw8hV8EAcGrUE5tVx0NptHBCw1Kw2Ea1QmEpIO7XZ6x+sbq+D3v0xVvTmtWvoD9qhorjdiZJ19AMchfKIYkya24U/DSScn/OFMaA+9u3wjqRygZ2HTAvZ+vh/rIRcGphsT2r3PLA7p1s2DNFitzGpeiGUuRwzRQ4l6yFrQUhnF9gZ1FHW9DdhZGMuHVXtv/NIcEAIjKoSvh4gCrbUoRhLveyDPGjUKE2Z3FtbRpC7Weypp183BUKCFBPV0WJ7E3YeNrNEaxL2Bvwu2sGM270niK+TaEy11zPCq0r4hNtgg/tg/Ho02Rnw2Oe7+1tkEju2jExTTD3Q6PI3IBoqLwhXAVw0brcVQ81hFcj1IZD4RPOoQqIE5rh/NccDn4N0XRQ+BpnCnEDj5gSW+7Y2qcW8tVzj2qv7KIadnxQiXtXyWdzZVhNct8rLevJ37xa9IIzRgtoIlAsdnFwn0wj881GBGPnkDW+OlAElST4oQw8/E83FtzSUkkXPnr/FCbATZiOuy 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)(5005006)(8121501046)(13023025)(13024025)(13018025)(13017025)(3002001)(10201501046)(6055026); SRVR:BN3PR03MB1416; BCL:0; PCL:0; RULEID:(400006); SRVR:BN3PR03MB1416; X-Forefront-PRVS: 00963989E5 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR03MB1416; 23:oMOQgge6N4fbCW9zpiKHWFiIad8tYDQf/obzhAw97?= =?us-ascii?Q?D4/yvUFgDVhPh2tLJiOsy6NEjzcT28z7IAkTxXsMG6/Vjamp9a2kd9n7hw3U?= =?us-ascii?Q?qRor3ZOsL5KLo6JH1UeAyy0YkjIzU+OB5izipJr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f/MNlkzuyINmpzikTiC4a5YeSMaBqV4NXeo2sIMFZD378+D9H2h1I7PyEowCr5Ehh9XXfdLc9cCVISdXZAguWtp8GWCoJuN4/dYJqTkxBPIOYmroYWf3U6RdWSEZb7l0EkAhhsIvnvPlu4QE3m+5V4ztEdKEYRQrq/UlLInjRpU9POQv4wupZ7SbXuIAldSy5nNQ0FzUrzOTuPkzHppSKX94QqJa3aLK2MVohwT8LN5KBcbr/lmRU4KosDnohwAWvsTSCKoJLeFy1CgjNAGV2cLpWXIt+EIpLhnNbRNzqwUIzSEXxYnM/I= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Oct 2016 13:44:41.9941 (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: BN3PR03MB1416 Subject: [dpdk-dev] [PATCH v4 09/17] 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: Sat, 15 Oct 2016 13:44:45 -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 90cd6aa..415d409 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