From befa7b3e6f517d471e41f4539b20cfefdf99d00b Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Wed, 16 Nov 2005 12:28:55 +0000 Subject: Add support for the I2C controller on via-pmu. ok deraadt@ --- sys/arch/macppc/dev/pm_direct.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'sys/arch/macppc/dev/pm_direct.h') diff --git a/sys/arch/macppc/dev/pm_direct.h b/sys/arch/macppc/dev/pm_direct.h index 065d518ecad..c3e4d3f238c 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.6 2005/10/21 22:07:45 kettenis Exp $ */ +/* $OpenBSD: pm_direct.h,v 1.7 2005/11/16 12:28:54 kettenis Exp $ */ /* $NetBSD: pm_direct.h,v 1.5 1999/07/12 15:54:55 tsubai Exp $ */ /* @@ -98,6 +98,8 @@ void pm_eject_pcmcia(int); #define PMU_SMART_BATTERY_STATE 0x6f /* Read battery state */ +#define PMU_I2C 0x9a /* I2C */ + /* Bits in PMU interrupt and interrupt mask bytes */ #define PMU_INT_ADB_AUTO 0x04 /* ADB autopoll, when PMU_INT_ADB */ #define PMU_INT_PCEJECT 0x04 /* PC-card eject buttons */ @@ -134,4 +136,9 @@ enum { #define PMU_PWR_AC_PRESENT (1 << 0) #define PMU_PWR_BATT_PRESENT (1 << 2) +/* PMU I2C */ +#define PMU_I2C_SIMPLE 0x00 +#define PMU_I2C_NORMAL 0x01 +#define PMU_I2C_COMBINED 0x02 + #endif -- cgit v1.2.3