From owner-freebsd-drivers@freebsd.org Fri Aug 18 20:51:02 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 68583DD6564 for ; Fri, 18 Aug 2017 20:51:02 +0000 (UTC) (envelope-from Kinjal.Patel@taec.toshiba.com) Received: from mailhost.taec.toshiba.com (mailhost.taec.com [209.243.128.33]) by mx1.freebsd.org (Postfix) with ESMTP id 52DB67507A for ; Fri, 18 Aug 2017 20:51:01 +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 55394A089B; Fri, 18 Aug 2017 13:50:55 -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 13:50:55 -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 13:50:55 -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: AdMXlSp3BhHvaAmDQQG9NyRAc27kigASxKyAACB3OKA= Date: Fri, 18 Aug 2017 20:50:54 +0000 Message-ID: References: In-Reply-To: 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 20:51:02 -0000 SGVyZSBpcyBhIHRoZSBjaGFuZ2UgSSBwcm9wb3NlLiBUaGlzIHdpbGwgbWFrZSB0aGUgaW5pdCBz ZXF1ZW5jZSByaWdodC4NCg0KSW5kZXg6IHN5cy9kZXYvbnZtZS9udm1lLmMNCj09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0N Ci0tLSBzeXMvZGV2L252bWUvbnZtZS5jIChyZXZpc2lvbiAzMjI2NzIpDQorKysgc3lzL2Rldi9u dm1lL252bWUuYyAod29ya2luZyBjb3B5KQ0KQEAgLTI1Myw2ICsyNTMsOSBAQA0KICAgICAgICAg ICAgICAgIHJldHVybiAoc3RhdHVzKTsNCiAgICAgICAgfQ0KDQorICAgIC8qIG1ha2UgZGV2aWNl IGJ1cy1tYXN0ZXIgYmVmb3JlIGF0dGVtcHRpbmcgdG8gZW5hYmxlIGNvbnRyb2xsZXIgKi8NCisg ICAgcGNpX2VuYWJsZV9idXNtYXN0ZXIoZGV2KTsNCisNCiAgICAgICAgLyoNCiAgICAgICAgICog UmVzZXQgY29udHJvbGxlciB0d2ljZSB0byBlbnN1cmUgd2UgZG8gYSB0cmFuc2l0aW9uIGZyb20g Y2MuZW49PTENCiAgICAgICAgICogIHRvIGNjLmVuPT0wLiAgVGhpcyBpcyBiZWNhdXNlIHdlIGRv bid0IHJlYWxseSBrbm93IHdoYXQgc3RhdHVzDQpAQCAtMjcwLDggKzI3Myw2IEBADQogICAgICAg ICAgICAgICAgcmV0dXJuIChzdGF0dXMpOw0KICAgICAgICB9DQoNCi0gICAgICAgcGNpX2VuYWJs ZV9idXNtYXN0ZXIoZGV2KTsNCi0NCiAgICAgICAgY3RybHItPmNvbmZpZ19ob29rLmljaF9mdW5j ID0gbnZtZV9jdHJscl9zdGFydF9jb25maWdfaG9vazsNCiAgICAgICAg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