The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/dev/mxge/mxge_rss_ethp_z8e.c

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /*
    2  * from: FreeBSD: src/sys/tools/fw_stub.awk,v 1.6 2007/03/02 11:42:53 flz
    3  */
    4 #include <sys/cdefs.h>
    5 __FBSDID("$FreeBSD: releng/9.0/sys/dev/mxge/mxge_rss_ethp_z8e.c 175365 2008-01-15 20:34:49Z gallatin $");
    6 #include <sys/param.h>
    7 #include <sys/errno.h>
    8 #include <sys/kernel.h>
    9 #include <sys/module.h>
   10 #include <sys/linker.h>
   11 #include <sys/firmware.h>
   12 #include <sys/systm.h>
   13 #include <dev/mxge/rss_ethp_z8e.h>
   14 
   15 static int
   16 mxge_rss_ethp_z8e_fw_modevent(module_t mod, int type, void *unused)
   17 {
   18         const struct firmware *fp, *parent;
   19         int error;
   20         switch (type) {
   21         case MOD_LOAD:
   22 
   23                 fp = firmware_register("mxge_rss_ethp_z8e", rss_ethp_z8e, 
   24                                        (size_t)rss_ethp_z8e_length,
   25                                        rss_ethp_z8e_uncompressed_length, NULL);
   26                 if (fp == NULL)
   27                         goto fail_0;
   28                 parent = fp;
   29                 return (0);
   30         fail_0:
   31                 return (ENXIO);
   32         case MOD_UNLOAD:
   33                 error = firmware_unregister("mxge_rss_ethp_z8e");
   34                 return (error);
   35         }
   36         return (EINVAL);
   37 }
   38 
   39 static moduledata_t mxge_rss_ethp_z8e_fw_mod = {
   40         "mxge_rss_ethp_z8e_fw",
   41         mxge_rss_ethp_z8e_fw_modevent,
   42         0
   43 };
   44 DECLARE_MODULE(mxge_rss_ethp_z8e_fw, mxge_rss_ethp_z8e_fw_mod, SI_SUB_DRIVERS, SI_ORDER_FIRST);
   45 MODULE_VERSION(mxge_rss_ethp_z8e_fw, 1);
   46 MODULE_DEPEND(mxge_rss_ethp_z8e_fw, firmware, 1, 1, 1);
   47 

Cache object: cbfe1dabe5b8a8e4993db11af9bd4160


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.