Changeset 66eb143 in rtems-libbsd


Ignore:
Timestamp:
Dec 12, 2016, 12:09:09 PM (3 years ago)
Author:
Christian Mauderer <Christian.Mauderer@…>
Branches:
fd86c091b97759106da7355ce1dd81ebe030e285, f020f08430150c1656a0ad0a1de13699db9b980b
Children:
d145449
Parents:
2e8dd24
git-author:
Christian Mauderer <Christian.Mauderer@…> (12/12/16 12:09:09)
git-committer:
Christian Mauderer <Christian.Mauderer@…> (01/17/17 11:50:57)
Message:

firmware: Port to RTEMS.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • freebsd/sys/kern/subr_firmware.c

    r2e8dd24 r66eb143  
    232232                 * It is ok for the lookup to fail; this can happen
    233233                 * when a module is unloaded on last reference and the
    234                  * module unload handler unregister's each of its
     234                 * module unload handler unregister's each of it's
    235235                 * firmware images.
    236236                 */
     
    255255}
    256256
     257#ifndef __rtems__
    257258static void
    258259loadimage(void *arg, int npending)
     
    295296        wakeup_one(imagename);          /* we're done */
    296297}
     298#endif /* __rtems__ */
    297299
    298300/*
     
    306308firmware_get(const char *imagename)
    307309{
     310#ifndef __rtems__
    308311        struct task fwload_task;
    309312        struct thread *td;
     313#endif /* __rtems__ */
    310314        struct priv_fw *fp;
    311315
     
    314318        if (fp != NULL)
    315319                goto found;
     320#ifndef __rtems__
    316321        /*
    317322         * Image not present, try to load the module holding it.
     
    345350                return NULL;
    346351        }
     352#else /* __rtems__ */
     353        return NULL;
     354#endif /* __rtems__ */
    347355found:                          /* common exit point on success */
    348356        if (fp->refcnt == 0 && fp->parent != NULL)
     
    380388}
    381389
     390#ifndef __rtems__
    382391/*
    383392 * Setup directory state for the firmware_tq thread so we can do i/o.
     
    527536DECLARE_MODULE(firmware, firmware_mod, SI_SUB_DRIVERS, SI_ORDER_FIRST);
    528537MODULE_VERSION(firmware, 1);
     538#endif /* __rtems__ */
  • libbsd.py

    r2e8dd24 r66eb143  
    238238            'sys/sys/filedesc.h',
    239239            'sys/sys/file.h',
     240            'sys/sys/firmware.h',
    240241            'sys/sys/fnv_hash.h',
    241242            'sys/sys/gpio.h',
     
    356357            'sys/kern/subr_counter.c',
    357358            'sys/kern/subr_eventhandler.c',
     359            'sys/kern/subr_firmware.c',
    358360            'sys/kern/subr_hash.c',
    359361            'sys/kern/subr_hints.c',
  • libbsd_waf.py

    r2e8dd24 r66eb143  
    817817              'freebsd/sys/kern/subr_counter.c',
    818818              'freebsd/sys/kern/subr_eventhandler.c',
     819              'freebsd/sys/kern/subr_firmware.c',
    819820              'freebsd/sys/kern/subr_hash.c',
    820821              'freebsd/sys/kern/subr_hints.c',
Note: See TracChangeset for help on using the changeset viewer.