From owner-freebsd-mobile Fri Jun 1 22:23:35 2001 Delivered-To: freebsd-mobile@freebsd.org Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by hub.freebsd.org (Postfix) with ESMTP id 56D2037B423 for ; Fri, 1 Jun 2001 22:23:32 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.11.3/8.11.1) with ESMTP id f525NKE07472; Fri, 1 Jun 2001 23:23:20 -0600 (MDT) (envelope-from imp@harmony.village.org) Message-Id: <200106020523.f525NKE07472@harmony.village.org> To: "Jacques A. Vidrine" Subject: Re: `pccardc status' patch Cc: freebsd-mobile@FreeBSD.ORG In-reply-to: Your message of "Fri, 01 Jun 2001 15:44:51 CDT." <20010601154451.C701@shade.nectar.com> References: <20010601154451.C701@shade.nectar.com> Date: Fri, 01 Jun 2001 23:23:20 -0600 From: Warner Losh 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 <20010601154451.C701@shade.nectar.com> "Jacques A. Vidrine" writes: : I found this functionality useful for certain scripts. ISTR something : similar in PAO once upon a time. : : $ pccardc status : slot 0: filled : slot 1: empty : $ pccardc status 0 : slot 0: filled : $ pccardc status 9 || echo exit_status=$? : pccardc: /dev/card9: No such file or directory : exit_status=1 : : The patch is against 4.3-RELEASE. modulo style(9) issues, this looks reasonable. I've often wanted something like this. I've also wanted something that would ask the bridge what voltage the card is running at, what I/O and memory is used. rdmap does part of this, but there's no rdpower... Too bad there's not a PIOCGPOW ioctl defined right now. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message