Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Dec 2021 11:28:53 GMT
From:      Andriy Gapon <avg@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 906191040efb - stable/12 - twsi: add more of status definitions
Message-ID:  <202112031128.1B3BSrAx002460@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/12 has been updated by avg:

URL: https://cgit.FreeBSD.org/src/commit/?id=906191040efb9294bf391b5dcdd6c00816d3974c

commit 906191040efb9294bf391b5dcdd6c00816d3974c
Author:     Andriy Gapon <avg@FreeBSD.org>
AuthorDate: 2021-11-26 06:30:22 +0000
Commit:     Andriy Gapon <avg@FreeBSD.org>
CommitDate: 2021-12-03 09:35:39 +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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202112031128.1B3BSrAx002460>