From owner-freebsd-questions Tue Dec 19 14: 5:54 2000 From owner-freebsd-questions@FreeBSD.ORG Tue Dec 19 14:05:52 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from femail5.sdc1.sfba.home.com (femail5.sdc1.sfba.home.com [24.0.95.85]) by hub.freebsd.org (Postfix) with ESMTP id 5923237B400 for ; Tue, 19 Dec 2000 14:05:48 -0800 (PST) Received: from C1052484A ([24.5.25.254]) by femail5.sdc1.sfba.home.com (InterMail vM.4.01.03.00 201-229-121) with SMTP id <20001219220548.ZSFF29808.femail5.sdc1.sfba.home.com@C1052484A>; Tue, 19 Dec 2000 14:05:48 -0800 Message-ID: <008801c06a07$dfa63160$0100a8c0@mshome.net> From: "David Schultz" To: "trini0" , "FreeBSD Questions" References: <3A3F0055.44550ED8@optonline.net> Subject: Re: psm option flags Date: Tue, 19 Dec 2000 14:06:01 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Hey, all. Im trying to see if I could get my mouse working with my > "new" kvm. I read up on the psm man page about the optional flags. How > do I convert the bits into a flag number? Thanks for your help. The value of the nth bit should be 2^n if the bit is set, and 0 otherwise. Simply add all of the bits. For example, if you wanted to set HOOKRESUME (bit 13) and INITAFTERSUSPEND (bit 14), you'd have 2^13 + 2^14 = 0x6000. You could then make an entry in your kernel configuration file similar to this: device psm0 at atkbdc? irq 12 flags 0x6000 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message