Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Jul 2001 14:49:38 -0700 (PDT)
From:      Richard Hodges <rh@matriplex.com>
To:        Bhagyashri Bhagvat <bbhagvat@yahoo.com>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: Question about device driver
Message-ID:  <Pine.BSF.4.10.10107061442480.8900-100000@mail.matriplex.com>
In-Reply-To: <20010706203929.54462.qmail@web14903.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.10107061442480.8900-100000>