From owner-freebsd-hackers Sun Oct 6 15:49:15 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 DD14637B401 for ; Sun, 6 Oct 2002 15:49:13 -0700 (PDT) Received: from valu.uninet.ee (valu.uninet.ee [194.204.34.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2FFBF43E42 for ; Sun, 6 Oct 2002 15:49:13 -0700 (PDT) (envelope-from taavi@uninet.ee) Received: by valu.uninet.ee (Postfix, from userid 1002) id 6469136420; Mon, 7 Oct 2002 01:48:57 +0300 (EEST) Received: from localhost (localhost [127.0.0.1]) by valu.uninet.ee (Postfix) with ESMTP id 62ABE3261A; Mon, 7 Oct 2002 01:48:57 +0300 (EEST) Date: Mon, 7 Oct 2002 01:48:57 +0300 (EEST) From: Taavi Talvik To: David Gilbert Cc: Neal Nelson , Subject: Re: [hackers] Writing a PCI ADSL Driver In-Reply-To: <15776.45692.149994.514416@canoe.velocet.net> Message-ID: <20021007013551.S98477-100000@valu.uninet.ee> 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 Sun, 6 Oct 2002, David Gilbert wrote: > Neal> Hi there. I'm thinking of writing a device driver for a > Neal> Traverse Pulsar PCI ADSL card and I was looking for some ideas > Neal> before I committed myself. I've been offered hardware and > Neal> support by the makers (http://www.traverse.com.au/) but I want > Neal> to make sure that I can actually do the job before accepting. > > Neal> I was wondering what kind of device driver I would need to > Neal> create. I use ADSL at home but I only know how to use it, I > Neal> don't know how it really works. Would I be able to create a > Neal> character device and just pretend it was a modem or would I need > Neal> to create a network device so that it can talk PPPoE over it? My > Neal> main concern is how to get ppp to talk to the device. > > I would expect that the most sensible "class" for the driver would be > somewhat like an ethernet device. Most commonly they're used with > PPPoE or bridged ethernet. This may irk some ... the underlying > implementation is almost always ATM, but they try very hard to behave > like ethernet devices. Problem with ADSL is that there are actually too many link layer encapsualtions in use - PPPoE, PPPoA, plain rfc1348 (if i remember rfc number correctly) etc. Due to above, most sensible is to take netgraph approach. Afterwards it's easy to adapt to different encapsulations. Actually it should be possible to autodetect all of this and connect appropriate netgraph hooks. best regards, taavi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message