Re: userland firmware loader?
From: Brian Fundakowski Feldman (green_at_freebsd.org)
Date: 07/10/04
- Previous message: Poul-Henning Kamp: "Re: userland firmware loader?"
- In reply to: Poul-Henning Kamp: "Re: userland firmware loader?"
- Next in thread: M. Warner Losh: "Re: userland firmware loader?"
- Reply: M. Warner Losh: "Re: userland firmware loader?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 10 Jul 2004 11:16:47 -0400 To: Poul-Henning Kamp <phk@phk.freebsd.dk>
On Sat, Jul 10, 2004 at 10:38:36AM +0200, Poul-Henning Kamp wrote:
> In message <20040709232355.GB1626@green.homeunix.org>, Brian Fundakowski Feldma
> n writes:
>
> >I'm writing a driver that uses a 100KB firmware file and could need to
> >read it again, after initialization, to reset the device (or to load
> >more). Since this device is primarily found in CardBus form, I think
> >it makes a lot of sense to be able to get the firmware file at any time
> >but without specific user intervention.
> >
> >Is this something devd should be doing?
>
> I would advocate a generic interface for retrieving firmware from userland.
What do you think about using the normal devctl_notify(9) for pushing
out firmware requests, and having a new device method that receives just
a user data pointer and length for it to copyin(9)? It wouldn't be a
very symmetrical API, but it seems like a way that might fit it into the
current structure the easiest, devd and devctl and newbus.
-- Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\ <> green@FreeBSD.org \ The Power to Serve! \ Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\ _______________________________________________ freebsd-arch@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-arch To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"
- Previous message: Poul-Henning Kamp: "Re: userland firmware loader?"
- In reply to: Poul-Henning Kamp: "Re: userland firmware loader?"
- Next in thread: M. Warner Losh: "Re: userland firmware loader?"
- Reply: M. Warner Losh: "Re: userland firmware loader?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
- Re: userland firmware loader?
... Since this device is primarily found in CardBus form, ... :> I would advocate
a generic interface for retrieving firmware from userland. ... devd and devctl and
newbus. ... Does the driver block until then? ... (freebsd-arch) - Re: cvs commit: src/sys/modules/iwi Makefile src/sys/dev/iwi if_iwi.c if_iwireg.h if_iwivar.h
... jhb> resume since devd won't run until the kernel is fully back up. ... des>
...or keep the firmware image in memory after loading it the first ... I don't like the
kld option. ... The good things about it are that the driver can request that modules
... (freebsd-arch) - Re: cvs commit: src/sys/modules/iwi Makefile src/sys/dev/iwi if_iwi.c if_iwireg.h if_iwivar.h
... > jhb> resume since devd won't run until the kernel is fully back up. ...
> des> ...or keep the firmware image in memory after loading it the first ... >
scottl> Or have the firmware be embedded in a KLD, ... > The good things about it
are that the driver can request that modules ... (freebsd-arch)