summaryrefslogtreecommitdiff
path: root/sys/arch/macppc/dev/adb.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/macppc/dev/adb.c')
-rw-r--r--sys/arch/macppc/dev/adb.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/sys/arch/macppc/dev/adb.c b/sys/arch/macppc/dev/adb.c
index d8644b94ba7..b8413c852e4 100644
--- a/sys/arch/macppc/dev/adb.c
+++ b/sys/arch/macppc/dev/adb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: adb.c,v 1.21 2007/02/18 19:33:48 gwk Exp $ */
+/* $OpenBSD: adb.c,v 1.22 2007/02/26 00:11:49 gwk Exp $ */
/* $NetBSD: adb.c,v 1.6 1999/08/16 06:28:09 tsubai Exp $ */
/* $NetBSD: adb_direct.c,v 1.14 2000/06/08 22:10:45 tsubai Exp $ */
@@ -278,7 +278,7 @@ void setsoftadb(void);
int adb_intr(void *arg);
void adb_cuda_autopoll(void);
-void adb_cuda_fileserver_mode(int);
+void adb_cuda_fileserver_mode(void);
#ifdef ADB_DEBUG
/*
@@ -1525,8 +1525,6 @@ adb_poweroff(void)
return 0;
case ADB_HW_CUDA:
- /* Clear the wake on AC loss event */
- adb_cuda_fileserver_mode(0);
output[0] = 0x02; /* 2 byte message */
output[1] = 0x01; /* to pram/rtc/soft-power device */
output[2] = 0x0a; /* set poweroff */
@@ -1572,7 +1570,7 @@ adb_cuda_autopoll()
}
void
-adb_cuda_fileserver_mode(int on)
+adb_cuda_fileserver_mode()
{
volatile int flag = 0;
int result;
@@ -1581,7 +1579,7 @@ adb_cuda_fileserver_mode(int on)
output[0] = 0x03; /* 3-byte message */
output[1] = 0x01; /* to pram/rtc device/soft-power device */
output[2] = 0x13; /* cuda file server mode */
- output[3] = on;
+ output[3] = 0x01; /* True - Turn on after AC loss */
result = send_adb_cuda(output, output, adb_op_comprout,
(void *)&flag, 0);
@@ -1743,7 +1741,7 @@ adbattach(struct device *parent, struct device *self, void *aux)
}
if (adbHardware == ADB_HW_CUDA)
- adb_cuda_fileserver_mode(1);
+ adb_cuda_fileserver_mode();
if (adbHardware == ADB_HW_PMU)
pmu_fileserver_mode(1);
}