From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 16 00:32:47 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7C1C516A401 for ; Mon, 16 Jul 2007 00:32:47 +0000 (UTC) (envelope-from sam@errno.com) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.freebsd.org (Postfix) with ESMTP id 4B9D413C48E for ; Mon, 16 Jul 2007 00:32:47 +0000 (UTC) (envelope-from sam@errno.com) Received: from trouble.errno.com (trouble.errno.com [10.0.0.248]) (authenticated bits=0) by ebb.errno.com (8.13.6/8.12.6) with ESMTP id l6G0BDBZ056570 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 15 Jul 2007 17:11:13 -0700 (PDT) (envelope-from sam@errno.com) Message-ID: <469AB840.50103@errno.com> Date: Sun, 15 Jul 2007 17:13:52 -0700 From: Sam Leffler User-Agent: Thunderbird 2.0.0.0 (X11/20070530) MIME-Version: 1.0 To: Maslan References: <319cceca0707151335jd8aef89k635d7edb01d08691@mail.gmail.com> <20070715212757.GA17029@heff.fud.org.nz> <319cceca0707151516h502fcf42hd7f68e2351120407@mail.gmail.com> In-Reply-To: <319cceca0707151516h502fcf42hd7f68e2351120407@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD Hackers , Andrew Thompson Subject: Re: loading a firmware image X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Jul 2007 00:32:47 -0000 Maslan wrote: >> The firmware is bundled in a seperate kernel module that can be loaded, >> read and then unloaded. See src/sys/modules/iwifw/iwi_bss for an example >> of the Makefile magic that creates the kld. > > if i wrote FIRMWS = filename:shortname:version in the Makefile > then i should user firmware_get("shortname") rather than > firmware_register(), is it right ?? > > firmware_register is emitted by the Makefile and used by the kld to register the firmware image under "shortname". Once the image is registered then other code in the kernel can get a reference to the image with firmware_get. firmware(9) is a pretty complete description of these facilities. Sam