From owner-freebsd-ppc@freebsd.org Wed Mar 14 04:28:25 2018 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 45DC2F4F90B for ; Wed, 14 Mar 2018 04:28:25 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from c.mail.sonic.net (c.mail.sonic.net [64.142.111.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CC0BF697E7 for ; Wed, 14 Mar 2018 04:28:24 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from comporellon.tachypleus.net (cpe-75-82-218-62.socal.res.rr.com [75.82.218.62]) (authenticated bits=0) by c.mail.sonic.net (8.15.1/8.15.1) with ESMTPSA id w2E4HY9k003541 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Tue, 13 Mar 2018 21:17:35 -0700 Subject: Re: Porting Xserve G5 Lights Drivers from OpenBSD to FreeBSD To: freebsd-ppc@freebsd.org References: <3AC94C98-8A92-4D0C-8787-0873B5BE223C@gmail.com> From: Nathan Whitehorn Message-ID: <96fecfee-af1e-9550-3429-952d808423ca@freebsd.org> Date: Tue, 13 Mar 2018 21:17:33 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <3AC94C98-8A92-4D0C-8787-0873B5BE223C@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Sonic-CAuth: UmFuZG9tSVbkJV8QxpAai7Qp6ky+gyGM3362Ogvc7pIaTTcFXLeLn46G817ibsPhDT9TW/puvIq+Nnk0yQj6/CrXNHmO6yjaY2OThROFEro= X-Sonic-ID: C;6AcNnz4n6BGslFDNXaHR5A== M;YNxbnz4n6BGslFDNXaHR5A== X-Spam-Flag: No X-Sonic-Spam-Details: 0.0/5.0 by cerberusd X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Mar 2018 04:28:25 -0000 It depends a very great deal on the driver. These don't look very hard to 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 drivers on my Xserve G5 running the latest FreeBSD — particularly, and really only, to support the processor indicator lights and the system identifier button and its corresponding rear light. As such, I did some searching and discovered the most feature-complete drivers for these hardware components 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/src/blob/master/sys/arch/macppc/dev/sysbutton.c ) I suppose my question is — 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 driver development on these two systems, particularity in regards to the PPC64 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" >