From nobody Tue Oct 22 16:15:35 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XXy2c0Bszz5Pdqf; Tue, 22 Oct 2024 16:15:36 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XXy2b6jdnz4QHg; Tue, 22 Oct 2024 16:15:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729613735; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=3+YtJ4w/HwFoUDOBn5+MkYptxa04TPKynTbGu0zO4GI=; b=Zbj+tyyKLX+RLCxn+9bDJa1oJCGryFkHSYfzk+/GfBnMweJLsWl26JJfWjiP+BsdhgPia9 LncuRthbq8Bj+F23nJHFgvsk8nite6RnV1fYX/H2n1O38MN0+A1ahMASq9fVHl1c4BUs8I jjy4HyclZgfpG8ZpZQnvvXB8IM1cbbwasLfK6JY0PX4lXjZGfs0ZT61q9aK4tC7e6GoDYI IWN+ukmIud7JCVed5C26Llg+Eh7yRLZERUhz4uegvcKVvHcyYBcXglesqtu8sHPicKsS3Z F6tdxAXMkywEeHhwEfjK1Ze+QKdRrI+Rvb7al87Eb+pawYJ2FNU25KKjKua5eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729613735; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=3+YtJ4w/HwFoUDOBn5+MkYptxa04TPKynTbGu0zO4GI=; b=SF3KeP8V/XsDHWlqTR9YSieNqJEjjU2ndA8CGdS+hyqqADFhJNEatgxvrrX7Y2stUI7sxu aOTRtzvJWZyQopNQBeZoNxRHEt05asJgNyR3lfQrkvM8E8umw5O63KnJVOA5vDN7dj7SGw TVyGAPNnnMI5vd13EHvWQ6S+GRKFXuGqkC97OKMc1fLa4Ofy49rUQLtRI4Vp7p6ABS8pAn eldn5fbZ/LSWX+kumsF1AhbE7ejbXtQZOrDW6n4Ziw8fKCnKdUPHh3vghcn2LAFBUIG0h3 iCxx/j1VtBYckIrWmlJNws2LBpKa1yeaMikOd39a7dGxHuxT5vupIjZSPi+4ew== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1729613735; a=rsa-sha256; cv=none; b=Pz+MQK+OFfzjzdGGodBEcVsbbzsazHQZo2YOsQi4LXzzrkzJIvVaHfWyGITfo+jnpl+oIw wwLfV1TZjhwUVFRDBMNAeFr6qOo8FLb1F9tXJ5ZZhvxBNBMVxoEdX2DuqP0zK07UpZmqWc QRm0lByaW5KFtCJJFrp4SRxM/U20tG5h8+4FBBvw9Ac9L0sxj+q7SapSA8aRRDYIs73B9E EPZs8SysJCA6jR8jAP0VvAFaLAIIuv5xCwrOx+GthJ3ydLnklfhcFjn8paXWjcTubGsvzk dkeMwcbGF22mrdec9Uhvd5zIg6ax7/uHKxs/YWOf8H2tR8xACNOUiQKNE8OHzA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XXy2b67HvzLmP; Tue, 22 Oct 2024 16:15:35 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 49MGFZ2Z046314; Tue, 22 Oct 2024 16:15:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49MGFZOT046311; Tue, 22 Oct 2024 16:15:35 GMT (envelope-from git) Date: Tue, 22 Oct 2024 16:15:35 GMT Message-Id: <202410221615.49MGFZOT046311@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Colin Percival Subject: git: f6197f2bc05b - main - sys: Add GPIO_INTR_EDGE_MASK define List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: cperciva X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f6197f2bc05b5a8df260cbf55283fddf7c76fec4 Auto-Submitted: auto-generated The branch main has been updated by cperciva: URL: https://cgit.FreeBSD.org/src/commit/?id=f6197f2bc05b5a8df260cbf55283fddf7c76fec4 commit f6197f2bc05b5a8df260cbf55283fddf7c76fec4 Author: Colin Percival AuthorDate: 2024-10-22 16:06:41 +0000 Commit: Colin Percival CommitDate: 2024-10-22 16:15:30 +0000 sys: Add GPIO_INTR_EDGE_MASK define This is the GPIO_INTR_EDGE_* flags, just as a convenience to let code test flags for interrupt edginess. Sponsored by: Amazon --- sys/sys/gpio.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/sys/gpio.h b/sys/sys/gpio.h index ba5b362125f8..1a9e998a0e56 100644 --- a/sys/sys/gpio.h +++ b/sys/sys/gpio.h @@ -83,10 +83,10 @@ #define GPIO_INTR_EDGE_FALLING 0x00080000 /* edge trigger, falling */ #define GPIO_INTR_EDGE_BOTH 0x00100000 /* edge trigger, both */ #define GPIO_INTR_ATTACHED 0x00200000 /* interrupt attached to file */ +#define GPIO_INTR_EDGE_MASK (GPIO_INTR_EDGE_RISING | \ + GPIO_INTR_EDGE_FALLING | GPIO_INTR_EDGE_BOTH ) #define GPIO_INTR_MASK (GPIO_INTR_LEVEL_LOW | GPIO_INTR_LEVEL_HIGH | \ - GPIO_INTR_EDGE_RISING | \ - GPIO_INTR_EDGE_FALLING | GPIO_INTR_EDGE_BOTH | \ - GPIO_INTR_ATTACHED) + GPIO_INTR_EDGE_MASK | GPIO_INTR_ATTACHED) struct gpio_pin { uint32_t gp_pin; /* pin number */