From owner-freebsd-hackers@freebsd.org Sun Sep 25 17:09:13 2016 Return-Path: Delivered-To: freebsd-hackers@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 20717BE94D7 for ; Sun, 25 Sep 2016 17:09:13 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-it0-x231.google.com (mail-it0-x231.google.com [IPv6:2607:f8b0:4001:c0b::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DCF76226 for ; Sun, 25 Sep 2016 17:09:12 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-it0-x231.google.com with SMTP id r192so55279384ita.0 for ; Sun, 25 Sep 2016 10:09:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=8Q2pQfTwVLuR001ITwv2i9/c9c/gtMgwg+cOF+GQrKo=; b=Z6sFV7s1Fi2yvVBZFJxsiUx3E03+lbviMqb2NiCa/T3e9IQP+uCdzdETfC5m9eX70z nv4t2Ls8NPMSjCW19K45T0UCTfD+C/x/tLf1tH3tV8FRDXUYJUl++G+2jNpPZIIzp9jb smgie3z+Wo+Ff50eep/znyZiIm5cSmjPFXOvy60eI5v2fe6g3lhpDKQCj8GIAJCAjNnK vJozsc2e8GGObZFH+U1ejkqik7CV5IxsGDSmqVDLGvq1ArAIcAe7LDTg+fP5GpmTlMue QL+/JxvTYxNFb9LKhmgqO3s0/jli8Vv6rYsA5kbaD6UIdxU8Q8yPYnhlTB5iUL0iVqfg GT4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=8Q2pQfTwVLuR001ITwv2i9/c9c/gtMgwg+cOF+GQrKo=; b=P+fbhakLskEx1don3jPsciome6j5tUQtlAcr/7C2sIWLVF9cOrOP9Y3K1yexVNaWKK VLiDnD7zEo8nOHQrRmwT6LDID1TQeru6GEhrkqPY9PeFwOcfx3XNSkdxhL8+Iu8BsY6O Jbg6TCfNlsg7gA/U8ndZYCCIvpKNCuXCNxHBQy2cdmnHkHhnYT4d+anXBtyflKuQeHCp 4lijtcH7++yzM3fphtLDdpxjlhUS32deworsGSs7qXGeCmNdi98m42OIjoXWz8M7xzWb 07J0BoU/wwpNxOHIZgLzw5pHCR+MG0MokZAyJKz/9P/TkBgq31euwiZGBI8bO95rciC2 bAvQ== X-Gm-Message-State: AA6/9RlqjVPkfQleAXK9CgA0kzF/DZBNrhHgRF+gDl2Vo8lqFBux4WyM07gKCP4rG9E4jjophGgIT/TUlv1sMg== X-Received: by 10.36.14.68 with SMTP id 65mr12171922ite.99.1474823352220; Sun, 25 Sep 2016 10:09:12 -0700 (PDT) MIME-Version: 1.0 Sender: wlosh@bsdimp.com Received: by 10.36.65.7 with HTTP; Sun, 25 Sep 2016 10:09:11 -0700 (PDT) X-Originating-IP: [50.253.99.174] In-Reply-To: <201814334.318524.1474787118881@mail.yahoo.com> References: <201814334.318524.1474787118881.ref@mail.yahoo.com> <201814334.318524.1474787118881@mail.yahoo.com> From: Warner Losh Date: Sun, 25 Sep 2016 11:09:11 -0600 X-Google-Sender-Auth: qamUKYIDUogEJSyLbtU0n49sXbk Message-ID: Subject: Re: Autoconfiguration procedure in FreeBSD To: Nomad Esst Cc: FreeBSD Hackers Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Sep 2016 17:09:13 -0000 On Sun, Sep 25, 2016 at 1:05 AM, Nomad Esst via freebsd-hackers wrote: > I'm studying FreeBSD kernel internals on my own, I'm reading "FreeBSD Dev= ice Drivers: A Guide for the Intrepid" by Joesph Kong. In chapter 7 "newbus= and resource allocation", he says "Autoconfiguration is the procedure carr= ied out by FreeBSD to enable the hardware devices on a machine (McKusick an= d Neville-Neil, 2005). It works by systematically probing a machine=E2=80= =99s I/O buses in order to identify their child devices". I'm wondering whe= re this "Autoconfiguraion procedure" is deployed in FreeBSD? sys/kern/subr_bus.c