From owner-freebsd-mobile Sun Jan 5 15:19:19 2003 Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 00C3637B401 for ; Sun, 5 Jan 2003 15:19:19 -0800 (PST) Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3CB5E43EB2 for ; Sun, 5 Jan 2003 15:19:18 -0800 (PST) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.6/8.12.3) with ESMTP id h05NJG1e056224; Sun, 5 Jan 2003 16:19:16 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Sun, 05 Jan 2003 16:18:02 -0700 (MST) Message-Id: <20030105.161802.122420996.imp@bsdimp.com> To: freebsd-mobile@FreeBSD.ORG, pir@pir.net Subject: Re: Thinkpad X30, wireless card From: "M. Warner Losh" In-Reply-To: <20030105090809.GK17859@pir.net> References: <20030103220430.GE6054@pir.net> <20030103.201759.108374676.imp@bsdimp.com> <20030105090809.GK17859@pir.net> X-Mailer: Mew version 2.1 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org In message: <20030105090809.GK17859@pir.net> Peter Radcliffe writes: : Any ideas what it would take to unbreak it ? Well, the PCI code should save the first few (0x60?) words of the pci config space and suspend and restore them resume. Lots of other drivers do this, but the proper place is in the pci bus code. At a minimum, you'll need to save the BARs in suspend (maybe setting the power state to D3 afterwards) and then restore them afterwards (after setting the power state to D0).... Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message