diff options
-rw-r--r-- | sys/arch/macppc/dev/pm_direct.c | 6 | ||||
-rw-r--r-- | sys/arch/macppc/dev/pm_direct.h | 4 |
2 files changed, 6 insertions, 4 deletions
diff --git a/sys/arch/macppc/dev/pm_direct.c b/sys/arch/macppc/dev/pm_direct.c index 3fe5b6c67b6..a5bf4a1d703 100644 --- a/sys/arch/macppc/dev/pm_direct.c +++ b/sys/arch/macppc/dev/pm_direct.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pm_direct.c,v 1.30 2019/09/03 17:51:52 deraadt Exp $ */ +/* $OpenBSD: pm_direct.c,v 1.31 2022/09/18 21:36:41 gkoehler Exp $ */ /* $NetBSD: pm_direct.c,v 1.9 2000/06/08 22:10:46 tsubai Exp $ */ /* @@ -428,7 +428,7 @@ pm_intr(void) PM_VIA_CLR_INTR(); /* clear VIA1 interrupt */ /* ask PM what happened */ - pmdata.command = 0x78; + pmdata.command = PMU_INT_ACK; pmdata.num_data = 0; pmdata.s_buf = &pmdata.data[2]; pmdata.r_buf = &pmdata.data[2]; @@ -604,7 +604,7 @@ pm_adb_op(u_char *buffer, void *compRout, void *data, int command) } /* this command enables the interrupt by operating ADB devices */ - pmdata.command = 0x20; + pmdata.command = PMU_ADB_CMD; pmdata.num_data = 4; pmdata.s_buf = pmdata.data; pmdata.r_buf = pmdata.data; diff --git a/sys/arch/macppc/dev/pm_direct.h b/sys/arch/macppc/dev/pm_direct.h index 6b0c6667cc3..64f5a1550bb 100644 --- a/sys/arch/macppc/dev/pm_direct.h +++ b/sys/arch/macppc/dev/pm_direct.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pm_direct.h,v 1.13 2012/09/02 08:16:40 mpi Exp $ */ +/* $OpenBSD: pm_direct.h,v 1.14 2022/09/18 21:36:41 gkoehler Exp $ */ /* $NetBSD: pm_direct.h,v 1.7 2005/01/07 04:59:58 briggs Exp $ */ /* @@ -94,6 +94,8 @@ void pmu_fileserver_mode(int); #define PMU_SMART_BATTERY_STATE 0x6f /* Read battery state */ +#define PMU_ADB_CMD 0x20 /* Send ADB packet */ +#define PMU_INT_ACK 0x78 /* Read interrupt bits */ #define PMU_I2C 0x9a /* I2C */ /* Bits in PMU interrupt and interrupt mask bytes */ |