From owner-freebsd-hackers Fri Jul 6 14:49:53 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.matriplex.com (ns1.matriplex.com [208.131.42.8]) by hub.freebsd.org (Postfix) with ESMTP id E3AE837B40E for ; Fri, 6 Jul 2001 14:49:39 -0700 (PDT) (envelope-from rh@matriplex.com) Received: from mail.matriplex.com (mail.matriplex.com [208.131.42.9]) by mail.matriplex.com (8.9.2/8.9.2) with ESMTP id OAA09099; Fri, 6 Jul 2001 14:49:38 -0700 (PDT) (envelope-from rh@matriplex.com) Date: Fri, 6 Jul 2001 14:49:38 -0700 (PDT) From: Richard Hodges To: Bhagyashri Bhagvat Cc: hackers@FreeBSD.ORG Subject: Re: Question about device driver In-Reply-To: <20010706203929.54462.qmail@web14903.mail.yahoo.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 On Fri, 6 Jul 2001, Bhagyashri Bhagvat wrote: > I am new to this mailing list, and to the world > of device drivers. Not sure if this is the right place > for this question. Please, let me know if this is not > the right place. > I am developing a device driver for an ATM card, That's a pretty big first step :-) Feel free to use mine as a template, if you like: http://www.hodges.org/rh/code/if_idt.tar.gz > and need to develop a debug interface, like a console, > so that I can access the card from the host. Can I > integrate a character device driver with my ATM driver > to provide a debug interface? The network drivers don't behave like character drivers. For status only messages, you could add a few sysctl entries to enable verbose messages, or maybe export a small number of important values. Is it possible to work with a "stateless CLI"? You might set up a magic address that you can use to send network packets to, in order to talk to the driver :-) This would be a bit more involved with a statefull shell, but not impossible (you could keep state in mbufs, for example). What kind of ATM driver are you going to work on? Whatever it is, I will probably be very interested in your progress! All the best, -Richard ------------------------------------------- Richard Hodges | Matriplex, inc. Product Manager | 769 Basque Way rh@matriplex.com | Carson City, NV 89706 775-886-6477 | www.matriplex.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message