From owner-freebsd-questions Wed Apr 3 7:16:42 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mail01.doctordesign.com (doctordesign.com [205.230.20.48]) by hub.freebsd.org (Postfix) with ESMTP id C68A537B41C; Wed, 3 Apr 2002 07:16:36 -0800 (PST) Received: by doctordesign.com with Internet Mail Service (5.5.2653.19) id ; Wed, 3 Apr 2002 07:16:29 -0800 Received: from menace.indy.doctordesign.com ([10.3.30.20]) by mail02.indy.doctordesign.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id G88KS9Y8; Wed, 3 Apr 2002 10:16:19 -0500 Received: (from carlk@localhost) by menace.indy.doctordesign.com (8.9.3/8.8.5) id KAA12383; Wed, 3 Apr 2002 10:16:14 -0500 From: "Kreider, Carl" To: freebsd-questions@freebsd.org, freebsd-hackers@freebsd.org Date: Wed, 3 Apr 2002 10:16:14 -0500 Subject: read a file from a driver Message-ID: <20020403101614.A12363@indy.doctordesign.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3us Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I am working on an embedded project running FreeBSD, and my driver for our custom card needs to load an FPGA with code. I know I can compile the code in as data, but for ease of development, I would rather fetch the FPGA code from a file. With a driver in kernel space. Really. Can it be done? If so, how? open() and read() are obviously in libc which rules them out. Do I have to write my own in assembler? -- Carl Kreider Wind River Doctor Design Services 700 E Beardsley Suite 14A Elkhart Indiana 46514 219-206-8050 x104 carl.kreider@windriver.com ckreider@doctordesign.com ckreider@acm.org ckreider@gte.net ============================================================= On two occasions I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question. -- Charles Babbage ============================================================= To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message