From owner-freebsd-current@freebsd.org Sat Feb 1 18:54:11 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 9CEDD1FFBAD for ; Sat, 1 Feb 2020 18:54:11 +0000 (UTC) (envelope-from clay.daniels.jr@gmail.com) Received: from mail-lf1-x144.google.com (mail-lf1-x144.google.com [IPv6:2a00:1450:4864:20::144]) (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 4893Ck5nZCz3Pfb for ; Sat, 1 Feb 2020 18:54:10 +0000 (UTC) (envelope-from clay.daniels.jr@gmail.com) Received: by mail-lf1-x144.google.com with SMTP id l18so7075581lfc.1 for ; Sat, 01 Feb 2020 10:54:10 -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=2EuZCMKDV5o1h/iuK7YlYLFFzSJ9qhipfLPGvyY8J0Q=; b=O1vPiFRGpsZvjTkF3C8lZ1fqTc4uqroyoHWDYQe6n/RVyLbJcUZrqGT/unZ91DjkGP HwQBKPbMUe0LUWHrqkbZE3b6DTsJbswvZ0GcchliajcVDjXHg03tX9B1CaJnCYJI9Q9K mwskoh2hMVi+ZrIz+QTyaz3pmitxyd5ESOSs818iXm8HGgbrICS6f6hUuqHqnJaQzf0+ vCk05c8VVhs8Wc69LhdMd0VHH/pzAK4BAUXqmaszNPpY73o6NiJTRsz1/cCqNsyd5Xtz nOhyl2RD0HO6oOCt+sPzVatoWIHljGRxITe0wCAbJLdrGoeST0hVaVZ+XsEozRJkYcJz g3jA== 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=2EuZCMKDV5o1h/iuK7YlYLFFzSJ9qhipfLPGvyY8J0Q=; b=hGJU+jDbNpiPoTlfBMceL4M1tBvFtgDk5Kd+K+8elYndYoe9lX+8E2EsM7x0kN0MNa lFwQ26+PJk7mxj+nXbf2ArSTQEsZecN0qfqN3IvMxZKKe8uvHY2M22Ks98SHUdsClHAo 4Woe8jFIfmm3GgaWs1HFqoFcVn7FfhHtg96RswsRdlQSDaA/bcRy9scMQcfMopBkH2Sz QXH8yI+jx5l6cwybYzftpiiELf35VKHhZf/gLTtDQwYoyOULBD4pKsy6kkDIyNKQZubb R4+LC4hArUiH1itzIPjgXH31dBaNjt5FE0t8AnTFwFZpmi/Sd9fCHoyRySRqANuqw9di qbsw== X-Gm-Message-State: APjAAAXZbGU/7/UrGPkYaENqHbKIvpueHDu5X1rlG7ivrSI7Xe0vyx3a 7TuxQDxWL9r5YmxKUO2sECoIQDau7TaNbFn03w== X-Google-Smtp-Source: APXvYqyox2QkhdWBI8/EdlVz3eoSQpB6WqLBc8yGl675hRbQ/RyQM/+uqq2UcawUfNQyLt9PMfWj2CuH4Q9i70tNBfQ= X-Received: by 2002:a19:5212:: with SMTP id m18mr8435720lfb.7.1580583248198; Sat, 01 Feb 2020 10:54:08 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Clay Daniels Date: Sat, 1 Feb 2020 12:53:56 -0600 Message-ID: Subject: Re: OFWBUS: How does autoconfiguration work? To: Niteesh Cc: "freebsd-current@freebsd.org" X-Rspamd-Queue-Id: 4893Ck5nZCz3Pfb X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=O1vPiFRG; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of claydanielsjr@gmail.com designates 2a00:1450:4864:20::144 as permitted sender) smtp.mailfrom=claydanielsjr@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:2a00:1450: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:2a00:1450::/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)[4.4.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(0.00)[ip: (2.59), ipnet: 2a00:1450::/32(-2.50), 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: Sat, 01 Feb 2020 18:54:11 -0000 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" >