From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0059.outbound.protection.outlook.com [104.47.38.59]) by dpdk.org (Postfix) with ESMTP id F34D46CC2 for ; Mon, 24 Oct 2016 13:59:44 +0200 (CEST) Received: from BN6PR03CA0065.namprd03.prod.outlook.com (10.173.137.27) by CY1PR0301MB1628.namprd03.prod.outlook.com (10.162.166.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.679.12; Mon, 24 Oct 2016 11:59:43 +0000 Received: from BL2FFO11FD008.protection.gbl (2a01:111:f400:7c09::161) by BN6PR03CA0065.outlook.office365.com (2603:10b6:404:4c::27) 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; Mon, 24 Oct 2016 11:59: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 BL2FFO11FD008.mail.protection.outlook.com (10.173.161.4) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.669.7 via Frontend Transport; Mon, 24 Oct 2016 11:59:42 +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 u9OBwEMX008267; Mon, 24 Oct 2016 04:59:39 -0700 From: Shreyansh Jain To: CC: , , , Shreyansh Jain , Hemant Agrawal Date: Mon, 24 Oct 2016 17:29:32 +0530 Message-ID: <1477310380-17944-14-git-send-email-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1477310380-17944-1-git-send-email-shreyansh.jain@nxp.com> References: <1476539108-13170-1-git-send-email-shreyansh.jain@nxp.com> <1477310380-17944-1-git-send-email-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131217839830644858; (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)(5660300001)(6666003)(356003)(85426001)(8666005)(92566002)(87936001)(4326007)(36756003)(5003940100001)(68736007)(19580405001)(8936002)(50226002)(19580395003)(81166006)(81156014)(8676002)(2906002)(305945005)(104016004)(7846002)(47776003)(11100500001)(77096005)(33646002)(110136003)(97736004)(6916009)(105606002)(50986999)(76176999)(106466001)(48376002)(86362001)(586003)(189998001)(50466002)(229853001)(626004)(2950100002)(2351001)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0301MB1628; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD008; 1:ILJO2juCVTlc41BAVL+COOpqrgPFtFDl/aqzfsmCzBacjEDmVkExKZA/aRJI6QraWsVJY3Kb9Lc+9JFUnobhw+aneQvPJsKjbQUfZbW/4hRYp2SfRgLoKPoAHSduuS01+/+xF5IX9O6MIpJ8rwSNaJhJi7oIoyDwPy+ToNh9+Oss6IiGNnce8IdsRm7+rOL/31lMy/CwES83ibjvMFUbns0T3rPlpIYsfaLZwZ9ncz7SDfoNFmp3T0odCNf1geA6W2zX8Kdk1lVQdsa4idQKQDESYbc/eTTtDBxQ9An1MZ9Jfrp3jpTasamWPYcsQ9tg5khfcKgD4ij7oaetoW3ELzNFCajyJorOcD9OgBNrd516wXUXCDFc0vqEHDx0cfOQ1EIl1mlNfMXKKBkDZyjh/OHprNCIDIXiY3JulxCrFCYygzg+eHuSKm72fQVtKoP87+4SwBASEg9SZ95rACebO8m69RUfpQ8IKmER1EDZ/rLOoDWK6t117zy8sXcjXjpXBI9FwaoKmvgTw5mBVu4SvE5AoM27e3nl1G8AJxZQ/53YM/C7/AVUTk/4/O9kPbqq5oopseK4nQMyOX5iqxk+zyr15CTnyB0yXgkKlopiSbR4/H7T3boaeAakCOdPkElhnyTsnnBtQKI+Bv8g1niCHuj/TYNGE1XsPOes+0tgpFwDFVuxV0n/CMEKhZcHPpWr+jvFyS4+UgUr3nZQQK/Meym3vbesHK+3jIoUoh3uT+Q= MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 2367663c-305d-4fa4-b87a-08d3fc053dc3 X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB1628; 2:V+GQ4Yja9MWLb1DMGVycrp84CIcldmj54RTxSw0UGpuwJLVmSrB5TX0TfD5+e3Ug+A8nkCwDIFrkmNapclNo0dGLY3JiWnczctn858QA5mb4OQIuEuQA+CEHO8KUUCvmJzj8VOwWDcveHkh24UOjC9W192i1MTTColkqBTfbsvBwKb78m5gIyLpSZprwMq4oCnTVXRvsZL9p/pJNtJ3Nzw==; 3:enKMupnrw6v6SXZn9KB+6aTD6auR99HZbuvUuDEesH9nfWppgNUkMBW92WwrpanDyw6ccLncnqpvSKS414WxmVjfsZIS9cUcvUhU1MLflMjOqrQWokEfHsP73OQCTbXoU7y/MeMyQirJULjmaEeycFng6sU+qLKsjUint+d9l0EEUzKkAqfRSCf0+a2RCv4FoZzLOgplvN5V2TbMVgNl+Ecz9euGSicHlTgHjz4Rdoxr88Ez9OocGEHJuRAzVoxp; 25:2q0uknkbz5FPUymEJzBk0WYdRQ+O+clncMHFCSCMpFa/CKybu2UIEx+SVm0e0bWfMmJ66CLv3WEIBKlIXSc8z4QrOqs6RSVnpD7yO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Axf29BQwwJmVHfTz0DCZSVRyJm06fu6x19oDcLdz2VhmoCqjRMlJhPD3Y5ACx6yiibvzAaAiCbJL4ph4suO0bbEyTKR+jR0KxyQXMcchyAJ4uhamTyT14O/D1T8l1u/3936AugmFozsYT68E7hBvpu0qkE0iqIr8MolcxjytXb6sdRxkq2v4FK2cWySCcj3A7Z8vwyrvABSqPAxWAM7HMpb4j1LWl4qzMLdVemgwU0Q/c08 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)(13017025)(13015025)(13018025)(13024025)(5005006)(8121501046)(10201501046)(3002001)(6055026); SRVR:CY1PR0301MB1628; BCL:0; PCL:0; RULEID:(400006); SRVR:CY1PR0301MB1628; X-Forefront-PRVS: 0105DAA385 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0301MB1628; 23:rdzYv9jtn5fti/WzlSAAIilvs3aCf0wd393jkOy?= =?us-ascii?Q?r249biGLEZ7G2QfE8dxnDfo30cXc2Vz4XyY7sWFdAr7SrTMiVbrj2TgJFvl1?= =?us-ascii?Q?xrK0Ys3ioQhMOxMbyUyDhOoBN8efnPlJ02+J2Mc4R6mIEjETvejlYfvQZVMW?= =?us-ascii?Q?kAWdK8sY5vWlLKQ17q7WvHkpj+nAFVoF/pgXAl8M9vt/VpV+PsnBs9GraiWW?= =?us-ascii?Q?j3rbTEb0+yx9lR+HeKkdCqoNnCj/NmXYlJvksNyFKxmbJsQDI6/vJWA0qtRG?= =?us-ascii?Q?F33QCtLGaPQ4a06F7j8LbOiRkbFUF7g32+JFUpkPeFKRQGfivzJ9+l0ySrt1?= =?us-ascii?Q?olMcBT0/4gZ8WvBbcVjfduX2wz6usfxtUxv5ViLmj8sWZv6UNIVR2W+ABeBa?= =?us-ascii?Q?8lNeWeFqJQwk+YaRjC9DwoCOzzEGwffsog6ql76e1emGwCKA8wjiBHCIsnns?= =?us-ascii?Q?91eBErS06L/NYu1g0lRczhTKyfDshkviqIYozONitrkXlr+aBDsDODkL1OOD?= =?us-ascii?Q?vV2bAAmAVzEX1uyJG+4y4u/vmK9ve8hcNEoE5owtckzK3lsh1E6z3Yzxay5P?= =?us-ascii?Q?ydzyle81xD5fRdCA0abNPcAWtCxzZGkjZfJZcb8NtwG/8e24PQE75qSVVP6G?= =?us-ascii?Q?/ZgaBzSHawQqQqn+aikgoH8cltpUXr2sZ3f03IOJOp/BL4HK/EOMCUWzoJbt?= =?us-ascii?Q?aYWl1q4h1vJpZVTqjzKYd248RFkMWtsfHaZcKYGC+nlnDmAraY2nAXllXxvB?= =?us-ascii?Q?znyE1bfDkfNrjz3LuLh68RntQws8Rk7Qn/ylr8Bp8Exnzhwr2RB7YSc4IEGj?= =?us-ascii?Q?oP2WUoAO/ENhqD3aXl7ACvAABf4HKEdoG7qO7oa28scumDd4/TB49Mgg3Xjk?= =?us-ascii?Q?5TnuDJNvZWfydTazrxeqaWougo6RIIpw+Utkk120fKvxUmrZfJRVwWypj02K?= =?us-ascii?Q?q407zk7eSoQb8m80/mnt0P0sJWJ+0ZaIg8Tm+2TIcmTgz1/lZChD/SF3Gb5p?= =?us-ascii?Q?Zgv8NjMDLoHkjfXtJc3iXU8xinNQj9858RJ0oXSeFQ03j531Ax2gEsytxB8y?= =?us-ascii?Q?uhRj2yKJ8lYfTSUdERMTS9LCsf9Uf1ggaKMBliBrB3kW0s6zjod6HaKd/F3e?= =?us-ascii?Q?2ryEKvTNNp69/72OAYSrvroB1H+sPD84b0ll3qb67IXnhdYEcxMO0AEDTguW?= =?us-ascii?Q?uyfPHh9/4QYuFJYGiGibr+MRynQiIgGvnRKuf?= X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB1628; 6:1JoFykdTu/DhVDtzCurKVQXoeYOvi8Hnqyay8r0pptBfS5TaHWMjYud//74ltE9xjvfpfhNWEUeSZzQpT3Yl5vEu8EYN2Y3UScO2Qhc5KHzMzA1Jy36tAFotIrY1v2PkR/KRtTwLGB13l/i7eBV0GHyDVOY9kN4xhMzDErJ8ukVoGUzUA4E0tYE69tSxL5HySIFuChHltkV7bQhuzJa4R0T82uXiGg3GzNC1v7oTV1KVCjxstlJ4qD76tPIjjZSG1upkf2GJ7a16+S1CGxOQB4RldKQo/HBEA5WBTIaN7Xuo2h3k8k/m8wF2AZVD9rmJ; 5:4TvrL72JkX9nsbhbfQW+eX2uPIO11ydFTdVf4I2ZRNvG1Q592K/vku01quqhkmPpvH8A0HlF+G9Vm1sAvG7djXU2yBgQgBrSrhHNx5hgFG4bMpdmmS4eTgp0qIo+XqCRg8rSfEkMwKZBdWJfJ0k3gUj8is5pS0qNmVWr2G2wveoQlmOXjYkh4aMIJ3l29BzA; 24:h4GY7IH8DBxlUR1nRUcV8+r3KBSf8jRQOW6Kt7Lejf8fqwEIpjxuiKt3ocz1KTYD+xcCU7yaj0IS2vsxGpqaI9LTz/Sg75yDfr7al9qBz6I= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB1628; 7:dUfsWtnl8kR3fjYuDK2iiPr9sDjUIXCXA+kbqYqUyQIwS4KENnM9k8Hmowisp7Aeub7cNUP6mnu+CHZo+9FLVGbjFP17PizRpkkQAViE8vHCv2vHfOG0mvlttIYbuuzZvW4W46uo57i/h0NsdEQknjboC0QhVcwitQzs8W/NCtZsts0zSFd5Wj/32m4wm4szvd4lWI+iMJRkowRzgZ3B8f+4vapPyv1ff2Lo7hjkAcldW7NKpKHhzxs41D7jJgqhOUFU7/cXwRMUOVhaoNReoZgn4hK80e/CD5Rimv0DGklX2LSEqc2NtOkOlMFcJw7n4XQkbKFTI5u2e8+YxhEGQE93iI4QziDnoOxB1Aeu5P4= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Oct 2016 11:59:42.8928 (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: CY1PR0301MB1628 Subject: [dpdk-dev] [PATCH v5 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: Mon, 24 Oct 2016 11:59: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