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/net/iflib_private.h

Version: -  FREEBSD  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-2  -  FREEBSD-11-1  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-4  -  FREEBSD-10-3  -  FREEBSD-10-2  -  FREEBSD-10-1  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-3  -  FREEBSD-9-2  -  FREEBSD-9-1  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-4  -  FREEBSD-8-3  -  FREEBSD-8-2  -  FREEBSD-8-1  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-4  -  FREEBSD-7-3  -  FREEBSD-7-2  -  FREEBSD-7-1  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-4  -  FREEBSD-6-3  -  FREEBSD-6-2  -  FREEBSD-6-1  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-5  -  FREEBSD-5-4  -  FREEBSD-5-3  -  FREEBSD-5-2  -  FREEBSD-5-1  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  linux-2.6  -  linux-2.4.22  -  MK83  -  MK84  -  PLAN9  -  DFBSD  -  NETBSD  -  NETBSD5  -  NETBSD4  -  NETBSD3  -  NETBSD20  -  OPENBSD  -  xnu-517  -  xnu-792  -  xnu-792.6.70  -  xnu-1228  -  xnu-1456.1.26  -  xnu-1699.24.8  -  xnu-2050.18.24  -  OPENSOLARIS  -  minix-3-1-1 
SearchContext: -  none  -  3  -  10 

    1 /*-
    2  * Copyright (c) 2018, Matthew Macy (mmacy@freebsd.org)
    3  * All rights reserved.
    4  *
    5  * Redistribution and use in source and binary forms, with or without
    6  * modification, are permitted provided that the following conditions are met:
    7  *
    8  *  1. Redistributions of source code must retain the above copyright notice,
    9  *     this list of conditions and the following disclaimer.
   10  *
   11  *  2. Neither the name of Matthew Macy nor the names of its
   12  *     contributors may be used to endorse or promote products derived from
   13  *     this software without specific prior written permission.
   14  *
   15  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
   16  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   17  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   18  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
   19  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   20  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   21  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   22  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
   23  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   24  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   25  * POSSIBILITY OF SUCH DAMAGE.
   26  *
   27  * $FreeBSD: releng/12.0/sys/net/iflib_private.h 339338 2018-10-12 22:40:54Z erj $
   28  */
   29 
   30 #ifndef __NET_IFLIB_PRIVATE_H_
   31 #define __NET_IFLIB_PRIVATE_H_
   32 
   33 
   34 #define IFC_LEGACY              0x001
   35 #define IFC_QFLUSH              0x002
   36 #define IFC_MULTISEG            0x004
   37 #define IFC_DMAR                0x008
   38 #define IFC_SC_ALLOCATED        0x010
   39 #define IFC_INIT_DONE           0x020
   40 #define IFC_PREFETCH            0x040
   41 #define IFC_DO_RESET            0x080
   42 #define IFC_DO_WATCHDOG         0x100
   43 #define IFC_CHECK_HUNG          0x200
   44 #define IFC_PSEUDO              0x400
   45 #define IFC_IN_DETACH           0x800
   46 
   47 #define IFC_NETMAP_TX_IRQ       0x80000000
   48 
   49 MALLOC_DECLARE(M_IFLIB);
   50 
   51 #define IFLIB_MAX_TX_BYTES              (2*1024*1024)
   52 #define IFLIB_MIN_TX_BYTES              (8*1024)
   53 #define IFLIB_DEFAULT_TX_QDEPTH 2048
   54 
   55 
   56 struct iflib_cloneattach_ctx {
   57         struct if_clone *cc_ifc;
   58         caddr_t cc_params;
   59         const char *cc_name;
   60         int cc_len;
   61 };
   62 
   63 extern driver_t iflib_pseudodriver;
   64 int noop_attach(device_t dev);
   65 int iflib_pseudo_detach(device_t dev);
   66 
   67 int iflib_pseudo_register(device_t dev, if_shared_ctx_t sctx, if_ctx_t *ctxp,
   68             struct iflib_cloneattach_ctx *clctx);
   69 
   70 int iflib_pseudo_deregister(if_ctx_t ctx);
   71 
   72 uint32_t iflib_get_flags(if_ctx_t ctx);
   73 void iflib_set_detach(if_ctx_t ctx);
   74 void iflib_stop(if_ctx_t ctx);
   75 
   76 #endif

Cache object: 31a667c70211383edd57363ec90827c4


[ 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.