Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Sep 2001 15:46:31 -0500
From:      "Andy Schweig" <aes@stg.com>
To:        Poul-Henning Kamp <phk@critter.freebsd.dk>
Cc:        hackers@FreeBSD.ORG, SBS Project Staff <sbsproj@stg.com>
Subject:   Re: Major number request
Message-ID:  <3B9E7827.39529B62@stg.com>
References:  <24842.1000237419@critter>

next in thread | previous in thread | raw e-mail | index | archive | help
Actually, it will be a Netgraph node. The idea is to use the character device
interface for configuration. Each of these cards has a 6-byte MAC address
programmed into it which can be used as a unique ID for the card. We would like
to be able to program the driver with an association between MAC address and
card number (0, 1, 2, etc.). This card number would determine the name of the
Netgraph node (e.g., "wan520c0"). It would seem that this configuration would
have to happen before the creation of any Netgraph nodes, which means that some
method other than Netgraph would need to be used to give the driver this mapping
information (e.g., an ioctl using the character device interface).

Another strategy occurred to me while writing this mail, namely that a default
association could be made between Netgraph node names and physical devices which
could be changed by issuing a control message to the Netgraph node. Perhaps this
is a better alternative. I would welcome any suggestions you might have for
handling this situation. Thanks again for your help...

Andy

Poul-Henning Kamp wrote:
> 
> In message <3B9E644A.AA666A68@stg.com>, "Andy Schweig" writes:
> >Hello,
> >
> >Software Technologies Group (http://www.stg.com) is currently developing a
> >FreeBSD driver for SBS Technologies (http://www.sbs.com) for their WANic 520
> >series of WAN interface cards. The design of the driver requires the creation of
> >a device node. Would it be possible to get a major number reserved for this
> >driver? Thanks for your help...
> 
> Hi Andy,
> 
> I'm pretty sure that you should not make this a "classical device" but
> rather a NetGraph node.
> 
> Contact julian@freebsd.org for details on NetGraph if you cannot find
> any docs on it.
> 
> You may also want to look at the "musycc" and "if_mn" drivers which
> support similar cards.
> 
> --
> Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
> phk@FreeBSD.ORG         | TCP/IP since RFC 956
> FreeBSD committer       | BSD since 4.3-tahoe
> Never attribute to malice what can adequately be explained by incompetence.

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?3B9E7827.39529B62>