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
  [EMAIL PROTECTED]  | Carson City, NV 89706
    775-886-6477    | www.matriplex.com 


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to