From owner-freebsd-drivers@freebsd.org Fri Aug 18 21:04:03 2017 Return-Path: Delivered-To: freebsd-drivers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CADFADD726D for ; Fri, 18 Aug 2017 21:04:03 +0000 (UTC) (envelope-from Kinjal.Patel@taec.toshiba.com) Received: from mailhost.taec.toshiba.com (mailhost.taec.toshiba.com [209.243.128.33]) by mx1.freebsd.org (Postfix) with ESMTP id B7A4D75A10 for ; Fri, 18 Aug 2017 21:04:03 +0000 (UTC) (envelope-from Kinjal.Patel@taec.toshiba.com) Received: from EXMAIL1.taec.toshiba.com (unknown [209.243.133.250]) by mailhost.taec.toshiba.com (Postfix) with ESMTP id B2431A0742; Fri, 18 Aug 2017 14:04:02 -0700 (PDT) Received: from EXMAIL2.taec.toshiba.com (209.243.166.31) by EXMAIL1.taec.toshiba.com (209.243.172.198) with Microsoft SMTP Server (TLS) id 14.3.123.3; Fri, 18 Aug 2017 14:04:02 -0700 Received: from EXMAIL1.taec.toshiba.com ([169.254.1.230]) by EXMAIL2.taec.toshiba.com ([169.254.2.30]) with mapi id 14.02.0347.000; Fri, 18 Aug 2017 14:04:02 -0700 From: Kinjal Patel To: Warner Losh CC: "freebsd-drivers@freebsd.org" Subject: RE: NVMe driver init sequence Thread-Topic: NVMe driver init sequence Thread-Index: AdMXlSp3BhHvaAmDQQG9NyRAc27kigASxKyAACB3OKAAAM0YcA== Date: Fri, 18 Aug 2017 21:04:01 +0000 Message-ID: References: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.93.34.111] MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Aug 2017 21:04:03 -0000 Q3JlYXRlZCBhIGJ1ZyAjMjIxNjYgKGh0dHBzOi8vYnVncy5mcmVlYnNkLm9yZy9idWd6aWxsYS9z aG93X2J1Zy5jZ2k/aWQ9MjIxNjE2KQ0KVXBkYXRlZCB0aGUgZGVzY3JpcHRpb24gYW5kIHBhdGNo IHRvIGl0Lg0KDQpSZWdhcmRzLA0KS2luamFsIFBhdGVsDQoNCkZyb206IEtpbmphbCBQYXRlbA0K U2VudDogRnJpZGF5LCBBdWd1c3QgMTgsIDIwMTcgMTo1MSBQTQ0KVG86ICdXYXJuZXIgTG9zaCcN CkNjOiBmcmVlYnNkLWRyaXZlcnNAZnJlZWJzZC5vcmcNClN1YmplY3Q6IFJFOiBOVk1lIGRyaXZl ciBpbml0IHNlcXVlbmNlDQoNCkhlcmUgaXMgYSB0aGUgY2hhbmdlIEkgcHJvcG9zZS4gVGhpcyB3 aWxsIG1ha2UgdGhlIGluaXQgc2VxdWVuY2UgcmlnaHQuDQoNCkluZGV4OiBzeXMvZGV2L252bWUv bnZtZS5jDQo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09DQotLS0gc3lzL2Rldi9udm1lL252bWUuYyAocmV2aXNpb24gMzIy NjcyKQ0KKysrIHN5cy9kZXYvbnZtZS9udm1lLmMgKHdvcmtpbmcgY29weSkNCkBAIC0yNTMsNiAr MjUzLDkgQEANCiAgICAgICAgICAgICAgICByZXR1cm4gKHN0YXR1cyk7DQogICAgICAgIH0NCg0K KyAgICAvKiBtYWtlIGRldmljZSBidXMtbWFzdGVyIGJlZm9yZSBhdHRlbXB0aW5nIHRvIGVuYWJs ZSBjb250cm9sbGVyICovDQorICAgIHBjaV9lbmFibGVfYnVzbWFzdGVyKGRldik7DQorDQogICAg ICAgIC8qDQogICAgICAgICAqIFJlc2V0IGNv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