From owner-freebsd-ppc@freebsd.org Wed Mar 14 02:29:37 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 B99A2F4197F for ; Wed, 14 Mar 2018 02:29:37 +0000 (UTC) (envelope-from memereferencehere@gmail.com) Received: from mail-yw0-x232.google.com (mail-yw0-x232.google.com [IPv6:2607:f8b0:4002:c05::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 420DC8312C for ; Wed, 14 Mar 2018 02:29:37 +0000 (UTC) (envelope-from memereferencehere@gmail.com) Received: by mail-yw0-x232.google.com with SMTP id l24so1177894ywk.6 for ; Tue, 13 Mar 2018 19:29:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:mime-version:subject:message-id:date:to; bh=1i45ZYawHge1BPovGd+oInmXu7bsciJ7HRNVd91JX9o=; b=Fsr8IS7ZQNhNLa3KaOzLsjb5uiIDj5ITzKXWxrjwVmKzzW7SAHQ8k1PT67rZ2izAi0 yY2Z4hkskvQQiy3wipoDxBt/W4IKfLmmAsoUqsCpUO5Q1PjaMcit9oEzTYHsxmfhIATJ N/DoQ2h6UUjeotqeDXSHpQghyPOoiULUc4iDSSEVoCtuivK2LyirW3O7sOutgctc/ogv SpqO2w7OAs2+XTE9MnEshPDSqNUtRSiZD1q7ZNXwQj1f0BElX1x3SHvEIngoGsDUoqjS jAYovja9DoQi4NRME2aFX8Veu5m2nJe3kO3KVUHiw3ClD/CG4M+pHiIG5JzaXjFDLSNn fuyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:message-id:date:to; bh=1i45ZYawHge1BPovGd+oInmXu7bsciJ7HRNVd91JX9o=; b=NVsNzUn711RsWNKTA18zoeE4eQ+JeOyoVaxIfpYCVnT/BthTLh3tRNpez7xM8jno1N bWY3QH4ocSkItkLxtn599Rd82CxgOD/N42C5yNKaVcFPLV5bt2ZNo6Mc6Aq484dxJHuT ugrMcBRqh+7LGzJLGSyCPyUD1vlmlAIwiUVbEm7R/npF3HWocgskbqcFmKHCzcqgtKfN 5RzhYIjEU7tNZE/IXkl/Kk5RhmRoNB4vVMhfizOD67SjnlFap+ST9bedLuphJj/9IR6+ k5aRAA+k2U6QhSrRxKkrIXiNLSfOWi+YInIK8gzPt4AnjfWOTfgIu8enYOV5BUObQ/fb EbVg== X-Gm-Message-State: AElRT7FrUF27xVwPoDCSWGwPOHb0VRICXpu68RwvBa5OkFuwVDZr2Tin 2/ELOKpKpOaD0qw5pozRd9lkKzpT X-Google-Smtp-Source: AG47ELv/AIBWy79gidUNc44/HJY7r9XDP+/2i5Pc+PmstUyqN5asTxO9190zVojtFEAfOXRcKbuWdw== X-Received: by 2002:a25:7704:: with SMTP id s4-v6mr2098000ybc.53.1520994576289; Tue, 13 Mar 2018 19:29:36 -0700 (PDT) Received: from ?IPv6:2601:cb:100:607:15f7:9075:2afd:7b45? ([2601:cb:100:607:15f7:9075:2afd:7b45]) by smtp.gmail.com with ESMTPSA id o62sm641162ywb.17.2018.03.13.19.29.34 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Mar 2018 19:29:34 -0700 (PDT) From: Evan Sabin Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\)) Subject: Porting Xserve G5 Lights Drivers from OpenBSD to FreeBSD Message-Id: <3AC94C98-8A92-4D0C-8787-0873B5BE223C@gmail.com> Date: Tue, 13 Mar 2018 22:29:33 -0400 To: freebsd-ppc@freebsd.org X-Mailer: Apple Mail (2.3445.5.20) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.25 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 02:29:38 -0000 I feel as though it would be nice to have a more complete set of drivers = on my Xserve G5 running the latest FreeBSD =E2=80=94 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 =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 driver development on these = two systems, particularity in regards to the PPC64 architecture?=