From owner-freebsd-acpi@FreeBSD.ORG Sun May 8 11:58:59 2005 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3BC3316A4E1 for ; Sun, 8 May 2005 11:58:59 +0000 (GMT) Received: from sana.init-main.com (104.194.138.210.bn.2iij.net [210.138.194.104]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8DE1E43D80 for ; Sun, 8 May 2005 11:58:56 +0000 (GMT) (envelope-from takawata@init-main.com) Received: from init-main.com (localhost [127.0.0.1]) by sana.init-main.com (8.13.3/8.13.1) with ESMTP id j48Bva9s043547; Sun, 8 May 2005 20:57:37 +0900 (JST) (envelope-from takawata@init-main.com) Message-Id: <200505081157.j48Bva9s043547@sana.init-main.com> To: Martin Cracauer In-reply-to: Your message of "Sun, 08 May 2005 02:44:49 -0400." <20050508024448.A943@cons.org> Date: Sun, 08 May 2005 20:57:36 +0900 From: Takanori Watanabe cc: freebsd-acpi@freebsd.org Subject: Re: Porting code from the Linux ibm-acpi sourceforge package X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 May 2005 11:58:59 -0000 In message <20050508024448.A943@cons.org>, Martin Cracauer さんいわく: >Hi, > >I reinstalled my Thinkpad R40 with FreeBSD-5-stable. Works very well >except for video corruption on sleep and that I miss some ACPI >functionality I had with the ibm-acpi package under Linux. Some functionalies are implimented in acpi_ibm. >More specifically, I would like to port or reimplement some parts of >it, and I would like to start with the code to eject and re-mount the >ultrabay devices. > >I have the Linux code in front of me which is showing, for the example >of the basic bay identifier and the eject code: > >IBM_HANDLE(bay, root, > "\\_SB.PCI.IDE.SECN.MAST", /* 570 */ > "\\_SB.PCI0.IDE0.IDES.IDSM", /* 600e/x, 770e, 770x */ > "\\_SB.PCI0.IDE0.SCND.MSTR", /* all others */ >); /* A21e, R30, R31 */ >IBM_HANDLE(bay_ej, bay, > "_EJ3", /* 600e/x, A2xm/p, A3x */ > "_EJ0", /* all others */ >); /* 570,A21e,G4x,R30,R31,R32,R40e,R50e */ > But eject handling is not supported .