From owner-freebsd-drivers@freebsd.org Sun Jan 5 20:14:53 2020 Return-Path: Delivered-To: freebsd-drivers@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 6A61E1E4B83 for ; Sun, 5 Jan 2020 20:14:53 +0000 (UTC) (envelope-from gsnb.gn@gmail.com) Received: from mail-io1-xd2d.google.com (mail-io1-xd2d.google.com [IPv6:2607:f8b0:4864:20::d2d]) (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 47rVHJ1wF8z3DJD for ; Sun, 5 Jan 2020 20:14:51 +0000 (UTC) (envelope-from gsnb.gn@gmail.com) Received: by mail-io1-xd2d.google.com with SMTP id i11so46577759ioi.12 for ; Sun, 05 Jan 2020 12:14:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=97vWlIfH7T+prbXt05hE6XPAFD693mKsCyhiuOMlvyA=; b=UdJkGRF6m3IaW8xU1qAPcjljqtyckgQA5YbQ6yxQ8akbEm5JgWOPHzdCaDLB3Fb1zW VH70S3E6lEYOGl7pJ0YuOcKcfb5BoI2sjQHt0kL5ZygAco76GjIBfzs0DKLVf66Z2tbu jQUpJLEFGXAsaGjHc0rsaEX9vTMZo3KVwziVu4bc1beEWs8NBM5PDXt/v9wQpIkX2fEv W/VvUQJjO3Gu0Q6jKQbmCCN3Q/aqLnU5xtCMJZxNBkX6dJs4dPQEDjztgYdJJhKmV9ZP sFJahGqwoi6o9dzmjUmOuR8tj5xuSpPT40WkItS1V3nqYEFucUuwHH6GS8HiyToWRD3W 9b7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=97vWlIfH7T+prbXt05hE6XPAFD693mKsCyhiuOMlvyA=; b=ssFmHvQ2vJXWWAX7V94+LnWh8bJfYCUyiu1ix1PKDbemxFvcAAdRyifXNHd5XLJ1nG CgO0Nl/jQPVAsXUaU8QqRs9iAYMpeVev0zjcW++IcnvqEG4kNoMYkpHVzf/qCTWFdm7V t63AH4pNA/jffzOsg3UfCtW34iYEJpPJ4BNjRcWDIo2SH9nNc2YKJUrqBxUQoxRuLV4U z7p2/fg3vPP2NxDzRIgqyjWauXz358iZC8IJrXjHjDm6mZVyjyZG9KyOHyEa7cpfYnPS /J+kSFduQbKm1CDFPlCGllhVHkhBntrX5mn7exDGzoMy9i7IRQWVmRRfXRliLuqiv+c5 jLyg== X-Gm-Message-State: APjAAAW9FKYVY/UplviJZhvreEFP1wDNJIMn5qEbBZZslkWudC7JJmPw i29rewe0B610KPAcsFt72fwdgLQnXDvchroUAddeFqLG2so= X-Google-Smtp-Source: APXvYqxbFW1FvKsGV+yNzhORXvtSm3h2DjqVNhVWBdGqtZ5cB1Wf2Qhzn+d7LDx8TgBsXUvZRm/t6zL3gWdlir3Q9Io= X-Received: by 2002:a02:c942:: with SMTP id u2mr78786323jao.49.1578255290611; Sun, 05 Jan 2020 12:14:50 -0800 (PST) MIME-Version: 1.0 From: Niteesh Date: Mon, 6 Jan 2020 01:44:39 +0530 Message-ID: Subject: OFWBUS: How does autoconfiguration work? To: freebsd-drivers@freebsd.org X-Rspamd-Queue-Id: 47rVHJ1wF8z3DJD X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=UdJkGRF6; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of gsnbgn@gmail.com designates 2607:f8b0:4864:20::d2d as permitted sender) smtp.mailfrom=gsnbgn@gmail.com X-Spamd-Result: default: False [-1.00 / 15.00]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_NONE(0.00)[]; URI_COUNT_ODD(1.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; SUBJECT_ENDS_QUESTION(1.00)[]; 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)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-drivers@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(0.00)[ip: (-6.75), ipnet: 2607:f8b0::/32(-2.13), asn: 15169(-1.86), country: US(-0.05)]; RCVD_IN_DNSWL_NONE(0.00)[d.2.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]; 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-drivers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Jan 2020 20:14:53 -0000 I am working on a project, the current infrastructure is such that the device driver manually probes the hardware to find a compatible device, and initializes it. I want an infrastructure similar to FreeBSD, I want the drivers to have a probe and an attach function. The system should loop through all the nodes in FDT and call the matching attach function. I searched for FreeBSD docs on auto configuration, but couldn't find anything useful. http://www.ico.aha.ru/h/The_Design_and_Implementation_of_the_FreeBSD_Operating_System/ch07lev1sec5.htm This book was somewhat helpful, but I am looking for something more deeper, which references code sections. Thank you