git: 3b7478a7c4df - stable/13 - twsi: add more of status definitions

From: Andriy Gapon <avg_at_FreeBSD.org>
Date: Fri, 03 Dec 2021 07:26:29 UTC
The branch stable/13 has been updated by avg:

URL: https://cgit.FreeBSD.org/src/commit/?id=3b7478a7c4df6111c921a8e88e89a3dc9dae18f9

commit 3b7478a7c4df6111c921a8e88e89a3dc9dae18f9
Author:     Andriy Gapon <avg@FreeBSD.org>
AuthorDate: 2021-11-26 06:30:22 +0000
Commit:     Andriy Gapon <avg@FreeBSD.org>
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