From owner-freebsd-mobile@FreeBSD.ORG Wed Apr 16 16:03:45 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 57DAD1065671 for ; Wed, 16 Apr 2008 16:03:45 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.freebsd.org (Postfix) with ESMTP id 3803F8FC17 for ; Wed, 16 Apr 2008 16:03:45 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from trouble.errno.com (trouble.errno.com [10.0.0.248]) (authenticated bits=0) by ebb.errno.com (8.13.6/8.12.6) with ESMTP id m3GG3iuM036172 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 16 Apr 2008 09:03:45 -0700 (PDT) (envelope-from sam@freebsd.org) Message-ID: <48062360.8000106@freebsd.org> Date: Wed, 16 Apr 2008 09:03:44 -0700 From: Sam Leffler Organization: FreeBSD Project User-Agent: Thunderbird 2.0.0.9 (X11/20071125) MIME-Version: 1.0 To: Takashi Inoue References: <4805E5A2.1070705@sophia.ac.jp> In-Reply-To: <4805E5A2.1070705@sophia.ac.jp> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DCC--Metrics: ebb.errno.com; whitelist Cc: 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: Wed, 16 Apr 2008 16:03:45 -0000 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 > > Did you mark the interface down? When you do that it should power off the radio and the stop the mac's clock. Device id 0x1014 is not pcie as far as I know and I've never seen an Atheros card that supports MSI so something doesn't make sense here (perhaps I'm just unaware of MSI support coming in). Sam