Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified)) by mollari.NetBSD.org (Postfix) with ESMTPS id 246C41A923B for ; Wed, 27 Jan 2021 04:54:11 +0000 (UTC) Received: by mail.netbsd.org (Postfix, from userid 605) id 3BF5884DD0; Wed, 27 Jan 2021 04:54:10 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 6EBA884DC5 for ; Wed, 27 Jan 2021 04:54:09 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id 7MWt6crHOXKE for ; Wed, 27 Jan 2021 04:54:09 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id 118D684CED for ; Wed, 27 Jan 2021 04:54:09 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 0B02FFA90; Wed, 27 Jan 2021 04:54:09 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Wed, 27 Jan 2021 04:54:09 +0000 From: "Jason R Thorpe" Subject: CVS commit: src/sys To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20210127045409.0B02FFA90@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Jason R Thorpe" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: thorpej Date: Wed Jan 27 04:54:08 UTC 2021 Modified Files: src/sys/kern: subr_autoconf.c src/sys/sys: device.h Log Message: Add device_compatible_match_id() and device_compatible_lookup_id(), which are like device_compatible_match() and device_compatible_lookup(), but take a single scalar value as an ID. Add a "uintptr_t id" field to device_compatible_entry, in an anonymous union with the existing "const char *compat" field. To generate a diff of this commit: cvs rdiff -u -r1.276 -r1.277 src/sys/kern/subr_autoconf.c cvs rdiff -u -r1.163 -r1.164 src/sys/sys/device.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.