Current Path : /sys/amd64/compile/hs32/modules/usr/src/sys/modules/libalias/modules/irc/@/amd64/compile/hs32/modules/usr/src/sys/modules/nfsclient/@/amd64/compile/hs32/modules/usr/src/sys/modules/if_gif/@/amd64/compile/hs32/modules/usr/src/sys/modules/runfw/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //sys/amd64/compile/hs32/modules/usr/src/sys/modules/libalias/modules/irc/@/amd64/compile/hs32/modules/usr/src/sys/modules/nfsclient/@/amd64/compile/hs32/modules/usr/src/sys/modules/if_gif/@/amd64/compile/hs32/modules/usr/src/sys/modules/runfw/runfw.c |
/* * Automatically generated by: * $FreeBSD: release/9.1.0/sys/tools/fw_stub.awk 220227 2011-03-31 21:33:33Z rstone $ */ #include <sys/param.h> #include <sys/errno.h> #include <sys/kernel.h> #include <sys/module.h> #include <sys/linker.h> #include <sys/firmware.h> #include <sys/systm.h> extern char _binary_runfw_start[], _binary_runfw_end[]; static int runfw_fw_modevent(module_t mod, int type, void *unused) { const struct firmware *fp, *parent; int error; switch (type) { case MOD_LOAD: fp = firmware_register("runfw", _binary_runfw_start , (size_t)(_binary_runfw_end - _binary_runfw_start), 1, NULL); if (fp == NULL) goto fail_0; parent = fp; return (0); fail_0: return (ENXIO); case MOD_UNLOAD: error = firmware_unregister("runfw"); return (error); } return (EINVAL); } static moduledata_t runfw_fw_mod = { "runfw_fw", runfw_fw_modevent, 0 }; DECLARE_MODULE(runfw_fw, runfw_fw_mod, SI_SUB_DRIVERS, SI_ORDER_FIRST); MODULE_VERSION(runfw_fw, 1); MODULE_DEPEND(runfw_fw, firmware, 1, 1, 1);