Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Mar 2018 10:24:14 -0500
From:      Justin Hibbits <jrh29@alumni.cwru.edu>
To:        Evan Sabin <memereferencehere@gmail.com>
Cc:        FreeBSD PowerPC ML <freebsd-ppc@freebsd.org>
Subject:   Re: Porting Xserve G5 Lights Drivers from OpenBSD to FreeBSD
Message-ID:  <CAHSQbTBhZTUb5fmh3SYm=Ki_yq=4t=47o3Hq%2BmwXzR=n7P657A@mail.gmail.com>
In-Reply-To: <E33C4255-F190-4824-8F90-5E8CFC3D35EB@gmail.com>
References:  <3AC94C98-8A92-4D0C-8787-0873B5BE223C@gmail.com> <96fecfee-af1e-9550-3429-952d808423ca@freebsd.org> <E33C4255-F190-4824-8F90-5E8CFC3D35EB@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
I ported the abtn driver (sys/dev/adb/adb_buttons.c) from NetBSD.
That might be of some help to you.  It's a trivial driver, so doesn't
contain everything needed, but should be a useful start.

- Justin

On Wed, Mar 14, 2018 at 10:08 AM, Evan Sabin
<memereferencehere@gmail.com> wrote:
> I suppose I=E2=80=99ll just play around until I get things to work. That=
=E2=80=99s how you learn, right? Thanks!
>
>> On Mar 14, 2018, at 12:17 AM, Nathan Whitehorn <nwhitehorn@freebsd.org> =
wrote:
>>
>> It depends a very great deal on the driver. These don't look very hard t=
o port, but there isn't a general porting guide, unfortunately.
>> -Nathan
>>
>> On 03/13/18 19:29, Evan Sabin wrote:
>>> I feel as though it would be nice to have a more complete set of driver=
s on my Xserve G5 running the latest FreeBSD =E2=80=94 particularly, and re=
ally only, to support the processor indicator lights and the system identif=
ier button and its corresponding rear light. As such, I did some searching =
and discovered the most feature-complete drivers for these hardware compone=
nts could be found in the OpenBSD source code. (https://github.com/openbsd/=
src/blob/master/sys/arch/macppc/dev/xlights.c <https://github.com/openbsd/s=
rc/blob/master/sys/arch/macppc/dev/xlights.c>) (https://github.com/openbsd/=
src/blob/master/sys/arch/macppc/dev/sysbutton.c <https://github.com/openbsd=
/src/blob/master/sys/arch/macppc/dev/sysbutton.c>) I suppose my question is=
 =E2=80=94 How do I get from point A to point B, and how do I begin to port=
 these drivers from OpenBSD to FreeBSD? What are the core differences in dr=
iver development on these two systems, particularity in regards to the PPC6=
4 architecture?
>>> _______________________________________________
>>> freebsd-ppc@freebsd.org mailing list
>>> https://lists.freebsd.org/mailman/listinfo/freebsd-ppc
>>> To unsubscribe, send any mail to "freebsd-ppc-unsubscribe@freebsd.org"
>>>
>>
>> _______________________________________________
>> freebsd-ppc@freebsd.org mailing list
>> https://lists.freebsd.org/mailman/listinfo/freebsd-ppc
>> To unsubscribe, send any mail to "freebsd-ppc-unsubscribe@freebsd.org"
>
> _______________________________________________
> freebsd-ppc@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-ppc
> To unsubscribe, send any mail to "freebsd-ppc-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHSQbTBhZTUb5fmh3SYm=Ki_yq=4t=47o3Hq%2BmwXzR=n7P657A>