From owner-freebsd-mobile@FreeBSD.ORG Thu Apr 17 00:35:14 2008 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B16ED106564A; Thu, 17 Apr 2008 00:35:14 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 7061E8FC24; Thu, 17 Apr 2008 00:35:14 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id m3H0Yt9W027303; Wed, 16 Apr 2008 18:34:55 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Wed, 16 Apr 2008 18:35:54 -0600 (MDT) Message-Id: <20080416.183554.-1751000258.imp@bsdimp.com> To: jhb@freebsd.org From: "M. Warner Losh" In-Reply-To: <200804161037.26572.jhb@freebsd.org> References: <4805E5A2.1070705@sophia.ac.jp> <200804161037.26572.jhb@freebsd.org> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: takash-i@sophia.ac.jp, freebsd-mobile@freebsd.org Subject: Re: pciconf -w X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Apr 2008 00:35:14 -0000 In message: <200804161037.26572.jhb@freebsd.org> John Baldwin writes: : On Wednesday 16 April 2008 07:40:18 am Takashi Inoue wrote: : > Hi friends, : > : > Does anyone know how to trun off a pci device using pciconf -w ? : > : > Becase my MiniPCI Express wireless card is realy hot, : > I want to turn off when I don't need it. : > : > : > ath0@pci0:3:0:0: class=0x020000 card=0x058a1014 chip=0x1014168c : > rev=0x01 hdr=0x00 : > vendor = 'Atheros Communications Inc.' : > device = 'AR5212 Atheros AR5212 802.11abg wireless' : > class = network : > subclass = ethernet : > cap 01[40] = powerspec 2 supports D0 D3 current D0 : > cap 05[50] = MSI supports 1 message : > cap 10[60] = PCI-Express 1 legacy endpoint : > cap 11[90] = MSI-X supports 1 message in map 0x10 : : Bug warner (imp@FreeBSD.org) for his devctl patch and use that to turn it off. You could unload the ath driver :-) Of course, one could argue that the ath driver should set the device into D3 state when it has been ifconfig'd down. Warner