From nobody Sun Nov 03 16:16:50 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 4XhKVW508rz5cNTV; Sun, 03 Nov 2024 16:16:51 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XhKVW1jTWz4RpC; Sun, 3 Nov 2024 16:16:51 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730650611; 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=5k4oOgaAYfo+dPGdo9Cej8tg9sBOdmcF9bkeBQ+SaqU=; b=gBr8ecmdUpS32Kx4wMHpDWqdQZXc8H1Ma+72iRtx7FCE2EAve9vwUe+dQSX8dVMeLnLFE/ Mwdg9sog9O/gZMBEdFloruJV9O6j9PFbtsn0fytW11TD3a+RM1Bt6eTKVPViFnBkB/zOGD gQdBfzpxJofyzB2PTw9y1jap8SGrq1wAFX47eGaooalZhmTFkS6ZCTNwPicIHX6oeNzfyj 92Vuq9BoQKk2A3Q9XTw9p5IL/8OnL8suB0+VJzoMQUc/zT+8UOtgqikfRD61WTrYKfCD3g U+g7bdtyy1cysOog06i30C332fABlb3/dsjELmrewL2ctZf8/jN7N1ggEZkxkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730650611; 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=5k4oOgaAYfo+dPGdo9Cej8tg9sBOdmcF9bkeBQ+SaqU=; b=w2dHGwRotxQezxZcSUacwDBXAaAtN0dfot3r85FQGL0HGsUN8k3AzoGeMMw73sOtw5vkog vIgoUM7aR34HzcOtOOrsuYqRMazdRxlLvN+IVknP5EaKxGeABwyL3S319ku40gYu54BGqI 86vgu8eoXCqBk5hx/F0KHjh13+4x6CGfdNTcp3+w1EtWQr56R0aePslHRitYQxGapg9KCa fK4id20SPbZmA9IuXxUL1CzggQzAfTrkkeU63oCWch92WCuYreI59qExulKvCF9N0g0KCP +lanyvE2OCRlXlMZPfilzxPpIXjj1G0afhiOQPqIJu0sYF7IlQXAPYo+wP1oHA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730650611; a=rsa-sha256; cv=none; b=RH0Wj2ak24TkL3dutbLaHXBSzx6g2pXJ08D96JaxGyMt1kpIOk++rRE1Lj7+d4BKSjfHR2 Vw5HEd1UdB4fBKWlcfSlVX5NyIBgsvZh7+pubEBw55czn9cmpiI+iI11iMH2mg8BI5fb6L aW9tn0MbyerhPL6cUqmUGw9HiWjokjHxVBRZcpclTJ97yOWxkX1hxZvG5kWrStohMLpMgs X9MXV0MSkvU6lB5PqJYonPWqLsNcMvZu/hWZQqns9dB5hkwDgj6hQZZLfbBJx6+Y/CIqk0 6vzynXOqGsyz3IvBwfW7e3/8m1cdBVtoDRMhjwXlFl4uFpeUVPvOpXRIpf/SrA== 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 4XhKVW0FRyzwTM; Sun, 3 Nov 2024 16:16:51 +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 4A3GGoWL036375; Sun, 3 Nov 2024 16:16:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A3GGok5036372; Sun, 3 Nov 2024 16:16:50 GMT (envelope-from git) Date: Sun, 3 Nov 2024 16:16:50 GMT Message-Id: <202411031616.4A3GGok5036372@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Colin Percival Subject: git: 98ed0edd1a26 - releng/14.2 - 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/releng/14.2 X-Git-Reftype: branch X-Git-Commit: 98ed0edd1a267824e3465360cb222d77743528ed Auto-Submitted: auto-generated The branch releng/14.2 has been updated by cperciva: URL: https://cgit.FreeBSD.org/src/commit/?id=98ed0edd1a267824e3465360cb222d77743528ed commit 98ed0edd1a267824e3465360cb222d77743528ed Author: Colin Percival AuthorDate: 2024-10-22 16:06:41 +0000 Commit: Colin Percival CommitDate: 2024-11-03 16:15:19 +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. Approved by: re (kib) Sponsored by: Amazon (cherry picked from commit f6197f2bc05b5a8df260cbf55283fddf7c76fec4) (cherry picked from commit bebff69739ed5d9c6bbc7796a981da867420f77e) --- 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 */