From nobody Fri Dec 03 07:26:29 2021 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 AC7DA18AD6F5; Fri, 3 Dec 2021 07:26:29 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J54BY27Rkz4qlY; Fri, 3 Dec 2021 07:26:29 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 2A3CB4B35; Fri, 3 Dec 2021 07:26:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1B37QTSo082423; Fri, 3 Dec 2021 07:26:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1B37QT7E082422; Fri, 3 Dec 2021 07:26:29 GMT (envelope-from git) Date: Fri, 3 Dec 2021 07:26:29 GMT Message-Id: <202112030726.1B37QT7E082422@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Andriy Gapon Subject: git: 3b7478a7c4df - stable/13 - twsi: add more of status definitions 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: avg X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 3b7478a7c4df6111c921a8e88e89a3dc9dae18f9 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638516389; 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=FnY3OwPI7GKXPxpX/cxS4DJHEJDQ3A3Dg8wJdF3PVbo=; b=fPQHSqO6nTY2j3C/8wz3y2vggE29V6avoRZBEL89PRwBSN8cjekOxIqivKFyqAjyhjIR9B GDfpDADbocxzNC4CYdzyRB6XtGeFrl0iAED4UsRxJBV2/H4aJTU8XwsZpJ2nuq7gWCoIlO YNMJExSywRLv/RoqUxNWRkBfL3uClr/l5OYUvbu+mlxsU/oxf3gl3a9lZmehyhhFzHFsTz sOtW48ezgrgZq+CGfLIQNlDSvi1wL9nWi76TX+F/PJFX8VGrKCQdQlS8KwuP8JXHo74e5B nq1vFV4W/V1TD56CGoks1UZIRbvOc4PbZppqlt+RAk1fPXPw7jIBM3XlWFmf+w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638516389; a=rsa-sha256; cv=none; b=DTN75Ta11B5DQmkhMBYl+o06bHAJnalxfupWeZVBGTWCM0zK+lP75XHs9D4wF9KyDKMeAB wceV36T+F1MByzef3uqR5LAfHpY8Cdnw4nuF4h4+i0b5z8Mc+UuOHF8/3/bnEVzlUSGUHd f5HW6kwS33zh5VX8EQKTQT5bb/ormPoNDyvHRNp8JMsF60QU+BuTtpE0tROzh85P3bC7aJ x1UbSRkzYGtwLZgnT9rk67WwRTLFr2uudhsgYaMi7wKC1FFeKZzy0VIlHWTFo6f1LCdF3F BhR4T+6ZHHcj1MTcXv98G6YqqCtnUwJhaprztWmMTZFiy48jUBberOZK7keR6g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by avg: URL: https://cgit.FreeBSD.org/src/commit/?id=3b7478a7c4df6111c921a8e88e89a3dc9dae18f9 commit 3b7478a7c4df6111c921a8e88e89a3dc9dae18f9 Author: Andriy Gapon AuthorDate: 2021-11-26 06:30:22 +0000 Commit: Andriy Gapon CommitDate: 2021-12-03 07:23:58 +0000 twsi: add more of status definitions For completeness and for future use. (cherry picked from commit de86f339cdda0a10130033ff1771fb13cfacd9d0) --- sys/dev/iicbus/twsi/twsi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/dev/iicbus/twsi/twsi.c b/sys/dev/iicbus/twsi/twsi.c index aa5de857c1d9..84bf0223fba7 100644 --- a/sys/dev/iicbus/twsi/twsi.c +++ b/sys/dev/iicbus/twsi/twsi.c @@ -68,16 +68,19 @@ __FBSDID("$FreeBSD$"); #define TWSI_CONTROL_TWSIEN (1 << 6) #define TWSI_CONTROL_INTEN (1 << 7) +#define TWSI_STATUS_BUS_ERROR 0x00 #define TWSI_STATUS_START 0x08 #define TWSI_STATUS_RPTD_START 0x10 #define TWSI_STATUS_ADDR_W_ACK 0x18 #define TWSI_STATUS_ADDR_W_NACK 0x20 #define TWSI_STATUS_DATA_WR_ACK 0x28 #define TWSI_STATUS_DATA_WR_NACK 0x30 +#define TWSI_STATUS_ARBITRATION_LOST 0x38 #define TWSI_STATUS_ADDR_R_ACK 0x40 #define TWSI_STATUS_ADDR_R_NACK 0x48 #define TWSI_STATUS_DATA_RD_ACK 0x50 #define TWSI_STATUS_DATA_RD_NOACK 0x58 +#define TWSI_STATUS_IDLE 0xf8 #define TWSI_DEBUG #undef TWSI_DEBUG