userland firmware loader?

From: Brian Fundakowski Feldman (green_at_FreeBSD.org)
Date: 07/10/04

  • Next message: Poul-Henning Kamp: "Re: userland firmware loader?"
    Date: Fri, 9 Jul 2004 19:23:56 -0400
    To: arch@FreeBSD.org
    
    

    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? It wouldn't be very hard to
    provide an API with somewhat sysctl-like semantics via a device_*()
    function to return data to userland, and a new newbus device method to
    recieve data. Does this seem like something that should be done so
    that many drivers don't waste space in the kernel with firmware images,
    and don't need firmware via a separate kld module, without having to
    reimplement it separately in each driver that could use this
    functionality?

    Alternately, I could just not be seeing where this kind of functionality
    already exists. The usio driver in /etc/usbd.conf does something a
    little like what I want to do, but it's not generic and only does it
    based on a "load" event instead of a "give me firmware" event.

    Thanks,

    -- 
    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"
    

  • Next message: Poul-Henning Kamp: "Re: userland firmware loader?"

    Relevant Pages