From owner-freebsd-current@FreeBSD.ORG Thu Mar 27 19:33:01 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DA26237B401 for ; Thu, 27 Mar 2003 19:33:01 -0800 (PST) Received: from axe-inc.co.jp (axegw.axe-inc.co.jp [61.199.217.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id BA96143F3F for ; Thu, 27 Mar 2003 19:32:58 -0800 (PST) (envelope-from takawata@axe-inc.co.jp) Received: from axe-inc.co.jp ([192.47.224.47]) by axe-inc.co.jp (8.9.3+3.2W/3.7W) with ESMTP id MAA19447; Fri, 28 Mar 2003 12:32:53 +0900 (JST) Message-Id: <200303280332.MAA19447@axe-inc.co.jp> To: Anish Mistry In-reply-to: Your message of "Thu, 27 Mar 2003 22:09:29 EST." <200303272209.29542.mistry.7@osu.edu> Date: Fri, 28 Mar 2003 12:35:06 +0900 From: User Takawata X-Spam-Status: No, hits=-7.2 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,RCVD_IN_NJABL, RCVD_IN_UNCONFIRMED_DSBL,X_NJABL_OPEN_PROXY autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) cc: current@freebsd.org Subject: Re: ACPI and USB X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Mar 2003 03:33:04 -0000 In message <200303272209.29542.mistry.7@osu.edu>, Anish Mistry wrote: >Hi, > > I finally got -CURRENT to install on my laptop as of 2003-03-25 and have >been playing around with the acpi code trying to figure it out. One of the >main problems is to get my USB bus to wake up after a suspend, currently all >the USB devices dies when suspended and resumed. >How can I tell the USB PowerResource to turn on? I've been able to access >devices that have a HID and create drivers for those, but I don't know how to >access resources with only _ADR addresses. >below: You may get know PCI bus number where the USB bridge connected to and use _ADR to pick Device and Function number. In following structure, The \SB.PCI1.FOO0 device has Bus no 2, Device No 4 Function number 0.And this is accessible with pci2:4:0 by pciconf(8). Device(\_SB){ Device(PCI0){ ... } Device(PCI1){ Name(_ADR, 0); Name(_BBN, 2) ... Device(FOO0){ Name(_ADR, 0x40000) } } } > The USB portion of my acpidump > > Device(USB_) { > Name(_ADR, 0x00020000) > Name(_PR0, Package(0x1) { > USBP, > }) > Name(_PR1, Package(0x1) { > USBP, > }) > Name(_PR2, Package(0x1) { > USBP, > }) > PowerResource(USBP, 1, 0) { > Name(RSTA, 0x1) > Method(_STA) { > Return(RSTA) > } > Method(_ON_) { > Store(One, RSTA) > } > Method(_OFF) { > Store(Zero, RSTA) > } > } > } I want to know RSTA imprementation.(Probably, it is defined by Field Op.) Please show me full dump. Temporally work around may done by accessing Hardware registers as same way as accessing RSTA ACPI object. But we will have to have framework to bind PowerResource and Device together.