From owner-freebsd-current@freebsd.org Sun Feb 2 04:32:16 2020 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 9BE9D23892D for ; Sun, 2 Feb 2020 04:32:16 +0000 (UTC) (envelope-from gsnb.gn@gmail.com) Received: from mail-io1-xd41.google.com (mail-io1-xd41.google.com [IPv6:2607:f8b0:4864:20::d41]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 489J2l3bN6z4T5k for ; Sun, 2 Feb 2020 04:32:15 +0000 (UTC) (envelope-from gsnb.gn@gmail.com) Received: by mail-io1-xd41.google.com with SMTP id h8so12984065iob.2 for ; Sat, 01 Feb 2020 20:32:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0Hvv6CVDQjXQWkWrnwXgawCa2KTjCZf5RTk0ARUZ3Cg=; b=ZlUU0kJ4oKkxbe1cskhDucx0PskTlO3c3qLq/rGGr0NkZ6W81ArimCxev35jbdPGvD eAvWij2wUrVWxJnjDRDUShvxjLtvXsV+CcGIC3ucUrx7+7tV9NCdDxh3fogb4QyRiBYG fdLxj0h5v1Fm328d87B2jd891nysvzFaeOYEx3aD9kULnIJEfPinCHJ/2LlWUamQQEgf GLU4oZRig1KYtN0IILXqDr9/WiNYlJqGHVzL8KGOYiipIIprK0+4QEZweor9OJ0N0MCb KzJu07PH6e0Cjs8bZX9eAzlAr+aKRlOPnBj12GsJQt+SakgHY9SuSsPIv0cKf1Tj6z9c FZ5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0Hvv6CVDQjXQWkWrnwXgawCa2KTjCZf5RTk0ARUZ3Cg=; b=tnOEvD/KP6V9jLHa48/ox6pfMDlxt1iv6zuduy93BwQqZWcuwNW4HTttbzVENQ0ihP 7NrTiC8wbrdlcXZyV3s3XqFY5MEHgWvR5Ks3TSZc5WuhNnMkfQKDW0w8817IM07m1lBq de4VClaH2LsvOD8evZGgPdEQoOwGV8MH+3Mxb49v7dZHyHrg/lbwmgPvoqQ4Bb7ly/2u HP83xWbXDIVEvDqMYiYVVg5DD6tFVdqy8/1g1cVw2x8iyLtXK5kx9oZLq0y8sSORwuWz dsGYLXVFk8ORVx0ewZ9FSB4m3IBn4Bqgmrv5P42qYT9wWrsF8QBHmxMgBoyyu8A4VyeC U4gA== X-Gm-Message-State: APjAAAUTFiAxGn+87RkQg6NyEcpKf1qPYqYR0Vu8wwgpSIAFMsEXBCW5 VcuxPrq4QtGg7PjwyB11M/XvlrPx82y64ReBE3I= X-Google-Smtp-Source: APXvYqxtCvgoHdlTfgH0ulw+dpscOLxpt6p2gQreBsjfMYO6L0P851Nf1A2Ug+5VfhNS8jLvZqhMN/DAxWo38knWY04= X-Received: by 2002:a5e:aa18:: with SMTP id s24mr13998125ioe.221.1580617934358; Sat, 01 Feb 2020 20:32:14 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Niteesh Date: Sun, 2 Feb 2020 10:02:03 +0530 Message-ID: Subject: Re: OFWBUS: How does autoconfiguration work? To: Clay Daniels Cc: "freebsd-current@freebsd.org" X-Rspamd-Queue-Id: 489J2l3bN6z4T5k X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=ZlUU0kJ4; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of gsnbgn@gmail.com designates 2607:f8b0:4864:20::d41 as permitted sender) smtp.mailfrom=gsnbgn@gmail.com X-Spamd-Result: default: False [-2.00 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TAGGED_RCPT(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[1.4.d.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(0.00)[ip: (2.19), ipnet: 2607:f8b0::/32(-2.00), asn: 15169(-1.76), country: US(-0.05)]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Feb 2020 04:32:16 -0000 I couldn't find anything useful for me, I need information about how the hardware autoconfiguration works, not autoconf. On Sun, Feb 2, 2020 at 12:24 AM Clay Daniels wrote: > Take a look at the Porter's Handbook: > > > https://docs.freebsd.org/doc/7.4-RELEASE/usr/share/doc/en/books/porters-handbook/using-autotools.html > > On Sat, Feb 1, 2020 at 8:56 AM Niteesh wrote: > >> I am interested in adding autoconfiguration to one of my projects. >> The current drivers use lazy initialization, for example, the UART >> drivers initialize the hardware only during their first invocation. >> >> I would like to add a subsystem, that will read the DTB and call >> the appropriate drivers. >> >> I want to know how it is implemented in FreeBSD, I took a look at the >> code, but I am still couldn't figure out, when does FreeBSD start to >> parse the DTB, how does it fill up the device struct and few more. >> >> Can someone please explain how all this works with reference to code >> or point me to some documentation? >> >> Thanks, >> Niteesh >> _______________________________________________ >> freebsd-current@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-current >> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org >> " >> >