Subject: power-off by PMU command
To: port-mac68k <port-mac68k@netbsd.org>
From: None <ngc@ff.iij4u.or.jp>
List: port-mac68k
Date: 03/13/2001 01:44:08
--VHVlLCAxMyBNYXIgMjAwMSAwMTo0NDowOCArMDkwMA==
Content-Transfer-Encoding: 7bit
Content-Type: text/plain
Hi.
I succeeded power-off by PMU commands, on my PowerBook 180c.
To power-off by PMU commands, patch attachment file to
mac68k/dev/pm_direct.c, and call "pm_powerdown" at
reboot/shutdown sequence in mac68k/mac68k/machdep.c .
This patch is experimental, so it is possible to cause
your computer something wrong.
Thanks,
--------------------------------
Hiroshi Noguchi
E-mail: ngc@ff.iij4u.or.jp
http://homepage1.nifty.com/driver/
--VHVlLCAxMyBNYXIgMjAwMSAwMTo0NDowOCArMDkwMA==
Content-Type: application/octet-stream; name="pm_pdwn.patch"
Content-Disposition: attachment;
filename="pm_pdwn.patch"
Content-Transfer-Encoding: base64
LS0tIHBtX2RpcmVjdC5jLm9yZwlXZWQgU2VwIDI3IDEyOjU3OjUxIDIwMDAKKysrIHBtX2RpcmVj
dC5jCVR1ZSBNYXIgMTMgMDE6MzQ6NTkgMjAwMQpAQCAtMTE4MCwzICsxMTgwLDM4IEBACiAKIAog
CisjaWYgMQorLyoKKyAqIHBvd2VyIG9mZiBjb21wdXRlciBieSBQTVUgY29tbWFuZAorICovCitp
bnQgCitwbV9wb3dlcmRvd24oKQoreworCVBNRGF0YQl0bXBEYXRhOworCWludAkJcnZhbDsKKwlp
bnQJCWo7CisKKwkvKiB3YWl0IHdoaWxlIGEgbW9tZW50ICovCisJZm9yKCBqID0gMCA7IGogPCAx
MDAwMDAwIDsgaisrKTsKKworCXRtcERhdGEuc19idWYgPSAmKHRtcERhdGEuZGF0YVswXSk7CisJ
dG1wRGF0YS5yX2J1ZiA9ICYodG1wRGF0YS5kYXRhWzBdKTsKKwl0bXBEYXRhLm51bV9kYXRhID0g
MDsKKworCS8qCisJICogTWFnaWM6CisJICogSXQgaXMgbmVjY2Vzc2FyeS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