From owner-freebsd-hackers Fri Mar 17 20:59:37 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from sasami.jurai.net (sasami.jurai.net [63.67.141.99]) by hub.freebsd.org (Postfix) with ESMTP id 4733637B6DA for ; Fri, 17 Mar 2000 20:59:35 -0800 (PST) (envelope-from winter@jurai.net) Received: from localhost (winter@localhost) by sasami.jurai.net (8.9.3/8.8.7) with ESMTP id XAA89133; Fri, 17 Mar 2000 23:59:28 -0500 (EST) Date: Fri, 17 Mar 2000 23:59:28 -0500 (EST) From: "Matthew N. Dodd" To: "Gary T. Corcoran" Cc: Alfred Perlstein , freebsd-hackers@FreeBSD.ORG Subject: Re: How to read a file from a device driver? In-Reply-To: <38D3085D.37F31443@home.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, 17 Mar 2000, Gary T. Corcoran wrote: > I'm trying to initialize a network device, and I'm trying to download > code *into* my device from some binary system files. There is no > "user space" or user process, for that matter, to deal with at this > point. I just want to (at this step) open a file(s) directly from my > device driver, read the file(s), and download the relevant parts to my > device. There isn't really any clean way of doing this so most drivers that need to load firmware usually compile them in. :/ -- | Matthew N. Dodd | '78 Datsun 280Z | '75 Volvo 164E | FreeBSD/NetBSD | | winter@jurai.net | 2 x '84 Volvo 245DL | ix86,sparc,pmax | | http://www.jurai.net/~winter | This Space For Rent | ISO8802.5 4ever | To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message