On Fri, 28 Mar 2025 22:48:04 Robert Swindells wrote: > Nathanial Sloss <nathanialsl...@yahoo.com.au> wrote: > > Please see referenced patch for review: > > > > http://ftp.netbsd.org/pub/NetBSD/misc/nat/pbbat.diff > > > > It adds support for PowerBook 1xx batteries based on acpibat(4). > > > > The only thing I don't like is the attachment via aed(4) and the way > > it was handled (blindly attach at aed) so I'm hoping there will be > > alternative suggestions. It doesn't have a bus address as such so my > > initial pbatt* at adb? was not successful and competed with the aed(4) > > attachment. > > > > I'd really like to wrap up the attachment in aed in #ifdef conditionals > > but was unable to find/use NPBBAT > 0. > > > > I've opened up a PR to track the progress: PR port-mac68k/59228. > > Have you looked at how this might work with the nadb(4) code in > sys/dev/adb? > > There was a task on me to try to reorganize the config files for mac68k > into ones for systems that could use the new ADB code and ones using the > old code. There are nadb drivers for Mac II and IIfx/Q900/Q950. > > The idea was that we would gradually migrate systems to use nadb as more > host drivers got written.
Attaching to aed is fine, just wondering if there was something better. I could not find any reference to nadb for PowerBook 1xx unfornuately. I beleive I use pm_direct. It makes me wonder if plugging in an external adb keyboard to my PowerBook would work? Best regards and thanks for looking at this, Nat