From owner-freebsd-hackers Thu Oct 10 16:41:29 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0810C37B401 for ; Thu, 10 Oct 2002 16:41:27 -0700 (PDT) Received: from srv2.resnet.ohio-state.edu (srv2.resnet.ohio-state.edu [164.107.3.56]) by mx1.FreeBSD.org (Postfix) with SMTP id 23D5E43EAF for ; Thu, 10 Oct 2002 16:41:27 -0700 (PDT) (envelope-from mistry.7@osu.edu) Received: (qmail 7697 invoked by uid 506); 10 Oct 2002 23:46:56 -0000 Received: from mistry.7@osu.edu by srv2.resnet.ohio-state.edu by uid 503 with qmail-scanner-1.14 ( Clear:. Processed in 0.034759 secs); 10 Oct 2002 23:46:56 -0000 Received: from rdrt-164-107-205-104.resnet.ohio-state.edu (HELO bigguy.am-productions.biz) (164.107.205.104) by srv2.resnet.ohio-state.edu with SMTP; 10 Oct 2002 23:46:56 -0000 Content-Type: text/plain; charset="us-ascii" From: Anish Mistry To: freebsd-hackers@freebsd.org Subject: csa kernel module access Date: Thu, 10 Oct 2002 19:41:05 -0400 User-Agent: KMail/1.4.3 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200210101941.05839.mistry.7@osu.edu> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG =09What would be the best way to read/write from a device that shows up o= n boot,=20 but there is no device node for it? =09Basically what I am trying to do is to be able to send to commands to = the csa=20 device so that I can control the breakout box for my GameTheatre XP so I=20 don't get cracking and popping since it isn't outputting the sound throug= h=20 the device correctly with just pcm. I have looked at the=20 /usr/share/examples/kld made a few modifications to make it create my own= =20 device node. =09How should I access the csa device so that I can have my module send=20 commands? --- relevent dmesg output --- csa0: mem=20 0xdd000000-0xdd0fffff,0xdd102000-0xdd102fff irq 5 at device 10.0 on pci0 csa: card is Hercules Game Theatre XP pcm1: on csa0 Thanks, --=20 Anish Mistry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message