Lines Matching full:firmware
33 #include <sys/firmware.h>
53 * Loadable firmware support. See sys/sys/firmware.h and firmware(9)
56 * 'struct firmware' is the user-visible part of the firmware table.
58 * which embeds the public firmware structure.
93 #define FW_BINARY 0x080 /* Firmware directly loaded, file == NULL */
111 struct firmware fw; /* externally visible information */
115 * PRIV_FW returns the pointer to the container of struct firmware *x.
122 * Global firmware image registry.
127 * Firmware module operations are handled in a separate task as they
135 * This mutex protects accesses to the firmware table.
138 MTX_SYSINIT(firmware, &firmware_mtx, "firmware table", MTX_DEF);
140 static MALLOC_DEFINE(M_FIRMWARE, "firmware", "device firmware images");
145 "Max size permitted for a firmware file.");
167 * the last part of the string to the requested firmware if it
169 * /boot/firmware/abc/bca2233_fw.bin and match it against
182 * Register a firmware image with the specified name. The
187 const struct firmware *
189 unsigned int version, const struct firmware *parent)
224 printf("firmware: '%s' version %u: %zu bytes loaded at %p\n",
230 * Unregister/remove a firmware image. If there are outstanding
247 * firmware images.
267 static const char *fw_path = "/boot/firmware/";
280 const struct firmware *fw;
295 printf("Trying to load binary firmware from %s\n", fn);
313 printf("Firmware %s is too big: %lld bytes, %ld bytes max.\n",
332 printf("%s: Loaded binary firmware using %s\n", imagename, fn);
342 printf("%s: could not load binary firmware %s either\n", imagename, fn);
357 printf("%s: could not load firmware image, error %d\n",
369 printf("%s: firmware image loaded, "
382 * Lookup and potentially load the specified firmware image.
383 * If the firmware is not found in the registry, try to load a kernel
385 * If the firmware is located, a reference is returned. The caller must
388 const struct firmware *
407 "load firmware image %s\n", __func__, imagename);
440 const struct firmware *
448 * Release a reference to a firmware image returned by firmware_get.
452 * If this is the last reference to the firmware image, and this is an
457 firmware_put(const struct firmware *p, int flags)
523 * If we directly loaded the firmware, then we just need to
563 * Find all the binary firmware that was loaded in the boot loader via load -t
564 * firmware foo. There is only one firmware per file, it's the whole file, and
578 const struct firmware *fw;
587 if (type == NULL || strcmp(type, "firmware") != 0)
615 "firmware taskq");
654 "firmware",
658 DECLARE_MODULE(firmware, firmware_mod, SI_SUB_DRIVERS, SI_ORDER_FIRST);
659 MODULE_VERSION(firmware, 1);