From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0060.outbound.protection.outlook.com [104.47.1.60]) by dpdk.org (Postfix) with ESMTP id 9A4D92C5B for ; Mon, 13 Jun 2016 16:22:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=7KhqocF6O33OfJtSioFB5MIZsWV9mPFf5eHAD8AvUW4=; b=R39KpDwkxs36uDpacpG97tvbIOo74f+dkMJJ+aX1EebpmusLJwlJCueCh2A8wBBCADL/LwyhO8txsc8sSV5MGuHwsoSiEnPyDGjJ4EragwK3M6U7uk68z2VMa/sVuBut79RGmF9xGPecOvaW8JK4vEOZ7sEra28VOdQJ3BqAI2k= Received: from DB5PR0401MB2054.eurprd04.prod.outlook.com (10.166.11.137) by DB5PR0401MB2054.eurprd04.prod.outlook.com (10.166.11.137) with Microsoft SMTP Server (TLS) id 15.1.517.8; Mon, 13 Jun 2016 14:22:05 +0000 Received: from DB5PR0401MB2054.eurprd04.prod.outlook.com ([10.166.11.137]) by DB5PR0401MB2054.eurprd04.prod.outlook.com ([10.166.11.137]) with mapi id 15.01.0517.009; Mon, 13 Jun 2016 14:22:05 +0000 From: Shreyansh Jain To: Jan Viktorin CC: David Marchand , Thomas Monjalon , Bruce Richardson , Declan Doherty , "jianbo.liu@linaro.org" , "jerin.jacob@caviumnetworks.com" , Keith Wiles , Stephen Hemminger , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v1 19/28] eal/soc: add drv_flags Thread-Index: AQHRp57GZsy3E6Vmtk+21WmUd0H4hZ/nraMQ Date: Mon, 13 Jun 2016 14:21:40 +0000 Deferred-Delivery: Mon, 13 Jun 2016 14:20:53 +0000 Message-ID: References: <1451682326-5834-1-git-send-email-viktorin@rehivetech.com> <1462542490-15556-20-git-send-email-viktorin@rehivetech.com> In-Reply-To: <1462542490-15556-20-git-send-email-viktorin@rehivetech.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=shreyansh.jain@nxp.com; x-originating-ip: [192.88.169.1] x-ms-office365-filtering-correlation-id: 79154e15-1541-4c35-de4c-08d393961876 x-microsoft-exchange-diagnostics: 1; DB5PR0401MB2054; 6:gJTNFpiczjYbGRQ0U4TxFDkJ3amcaG2c5aqIiy06Cmjz5sAzMvDlFP52sCVQbQZ8hj8xO7A6dDe/4dHhb7SpHVVvnS9o9v6NJ9ZKIM1UHs6w52DHuQ3+sLBaie1E0LqhM3hik/HWh8mFfMcZfRyiWhUi+givacBy47k8yOLi8JUi7HnwvjhfrgV9jamCDwYAjSWVJgreZ2YXoOBbaazYOEUfcrZHU69UzGbpp1lmgPf9F9FcrxkmQOhjWlWFUpAg+NQ+Wq7mzXrIla8cBxG1AHj5tHo31CFGZIYrsoOmT4Ayepy7456WTTyYA28T+JVh; 5:bVFMZcBzW0AbX9egmZHhSwp1JFBnfB8wrNJRZvFsOfTS7FfmGpDZj6zAW2XQmR7enrQFoPEYJhmDW68dOEL8gs5nH7eS/fpJtwyYNXTgOBj0I0EouQ6gXjs046yarz9ipK+nUzLAZUAA/mGmD/Jd6g==; 24:fPk/kcDzImgyyp8yJVF6W1i0pPYaHn06JLs56ALyfUhuLT5k9yutuctSbR/hu4RqATHLuBFgo2t9h7zInJONQpnbyxwjWrG9zI2rlxyO6eI=; 7:a2bkFS9MASB8CvC0arZH8RrfrvXRYTicwzF/LnQ1SO9ov3kH1hkzCfoGaL7AKyp0LKJlpPegASPStgCR7F78ryOW1Q60HPPYNS+SPGz9S642CzdxeZ8JI/KMx5gOMdg/3c7epE9TyRPi3E4aGMX1qpjnYMly7TAdtJuPTBrB/6iGx7T/PmxqosrBw0WWCMeGtwKIWkRcHzrOIP2YfLtqNjFB725OIWJ78Vw02HQaglE= x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DB5PR0401MB2054; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(228905959029699); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6055026); SRVR:DB5PR0401MB2054; BCL:0; PCL:0; RULEID:; SRVR:DB5PR0401MB2054; x-forefront-prvs: 0972DEC1D9 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(7916002)(199003)(13464003)(189002)(377454003)(76176999)(54356999)(92566002)(5008740100001)(50986999)(5002640100001)(77096005)(66066001)(5003600100002)(10400500002)(3846002)(8936002)(101416001)(11100500001)(189998001)(9686002)(6116002)(102836003)(19580405001)(81166006)(106356001)(8676002)(81156014)(19580395003)(110136002)(33656002)(87936001)(105586002)(106116001)(76576001)(68736007)(3660700001)(97736004)(2950100001)(2906002)(74316001)(2900100001)(122556002)(4326007)(586003)(5004730100002)(3280700002)(86362001); DIR:OUT; SFP:1101; SCL:1; SRVR:DB5PR0401MB2054; H:DB5PR0401MB2054.eurprd04.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; CAT:NONE; LANG:en; CAT:NONE; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Jun 2016 14:22:05.2571 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5PR0401MB2054 Subject: Re: [dpdk-dev] [PATCH v1 19/28] 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, 13 Jun 2016 14:22:06 -0000 > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Jan Viktorin > Sent: Friday, May 06, 2016 7:18 PM > To: dev@dpdk.org > Cc: Jan Viktorin ; David Marchand > ; Thomas Monjalon ; > Bruce Richardson ; Declan Doherty > ; jianbo.liu@linaro.org; > jerin.jacob@caviumnetworks.com; Keith Wiles ; Step= hen > Hemminger > Subject: [dpdk-dev] [PATCH v1 19/28] eal/soc: add drv_flags >=20 > The flags are copied from the PCI ones. They should be refactorized into = a > general set of flags in the future. >=20 > Signed-off-by: Jan Viktorin > --- > lib/librte_eal/common/include/rte_soc.h | 10 ++++++++++ > 1 file changed, 10 insertions(+) >=20 > diff --git a/lib/librte_eal/common/include/rte_soc.h > b/lib/librte_eal/common/include/rte_soc.h > index 49cfeb7..50a3b35 100644 > --- a/lib/librte_eal/common/include/rte_soc.h > +++ b/lib/librte_eal/common/include/rte_soc.h > @@ -125,8 +125,18 @@ struct rte_soc_driver { > soc_devinit_t *devinit; /**< Device initialization */ > soc_devuninit_t *devuninit; /**< Device uninitialization */ > const struct rte_soc_id *id_table; /**< ID table, NULL terminated */ > + uint32_t drv_flags; /**< Control handling of device */ > }; >=20 > +/** Device needs to map its resources by EAL */ > +#define RTE_SOC_DRV_NEED_MAPPING 0x0001 > +/** Device needs to be unbound event if no module is provieded */ Comment should read "Device needs to be unbound even if no module is provid= ed" > +#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 > + > /** > * A structure describing a SoC mapping. > */ > -- > 2.8.0