1*55485da1Smsaitoh /* $NetBSD: ixgbe_netmap.h,v 1.3 2023/10/06 14:37:04 msaitoh Exp $ */ 2dc7f84c8Smsaitoh /****************************************************************************** 3dc7f84c8Smsaitoh 4dc7f84c8Smsaitoh Copyright (c) 2001-2017, Intel Corporation 5dc7f84c8Smsaitoh All rights reserved. 6dc7f84c8Smsaitoh 7dc7f84c8Smsaitoh Redistribution and use in source and binary forms, with or without 8dc7f84c8Smsaitoh modification, are permitted provided that the following conditions are met: 9dc7f84c8Smsaitoh 10dc7f84c8Smsaitoh 1. Redistributions of source code must retain the above copyright notice, 11dc7f84c8Smsaitoh this list of conditions and the following disclaimer. 12dc7f84c8Smsaitoh 13dc7f84c8Smsaitoh 2. Redistributions in binary form must reproduce the above copyright 14dc7f84c8Smsaitoh notice, this list of conditions and the following disclaimer in the 15dc7f84c8Smsaitoh documentation and/or other materials provided with the distribution. 16dc7f84c8Smsaitoh 17dc7f84c8Smsaitoh 3. Neither the name of the Intel Corporation nor the names of its 18dc7f84c8Smsaitoh contributors may be used to endorse or promote products derived from 19dc7f84c8Smsaitoh this software without specific prior written permission. 20dc7f84c8Smsaitoh 21dc7f84c8Smsaitoh THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 22dc7f84c8Smsaitoh AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 23dc7f84c8Smsaitoh IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 24dc7f84c8Smsaitoh ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 25dc7f84c8Smsaitoh LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 26dc7f84c8Smsaitoh CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 27dc7f84c8Smsaitoh SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 28dc7f84c8Smsaitoh INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 29dc7f84c8Smsaitoh CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 30dc7f84c8Smsaitoh ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 31dc7f84c8Smsaitoh POSSIBILITY OF SUCH DAMAGE. 32dc7f84c8Smsaitoh 33dc7f84c8Smsaitoh ******************************************************************************/ 34dc7f84c8Smsaitoh /*$FreeBSD: head/sys/dev/ixgbe/ixgbe_netmap.h 320688 2017-07-05 17:27:03Z erj $*/ 35dc7f84c8Smsaitoh 36dc7f84c8Smsaitoh 37dc7f84c8Smsaitoh #ifndef _IXGBE_NETMAP_H_ 38dc7f84c8Smsaitoh #define _IXGBE_NETMAP_H_ 39dc7f84c8Smsaitoh 40dc7f84c8Smsaitoh #ifdef DEV_NETMAP 41dc7f84c8Smsaitoh 42dc7f84c8Smsaitoh #include <net/netmap.h> 43dc7f84c8Smsaitoh #include <sys/selinfo.h> 44dc7f84c8Smsaitoh #include <dev/netmap/netmap_kern.h> 45dc7f84c8Smsaitoh 46dc7f84c8Smsaitoh extern int ix_crcstrip; 47dc7f84c8Smsaitoh 48dc7f84c8Smsaitoh /* 49dc7f84c8Smsaitoh * ixgbe_netmap.c contains functions for netmap 50dc7f84c8Smsaitoh * support that extend the standard driver. See additional 51dc7f84c8Smsaitoh * comments in ixgbe_netmap.c. 52dc7f84c8Smsaitoh */ 53*55485da1Smsaitoh void ixgbe_netmap_attach(struct ixgbe_softc *); 54dc7f84c8Smsaitoh 55dc7f84c8Smsaitoh #else 56dc7f84c8Smsaitoh #define ixgbe_netmap_attach(a) do { } while (/*CONSTCOND*/false) 57dc7f84c8Smsaitoh #define netmap_detach(a) do { } while (/*CONSTCOND*/false) 58dc7f84c8Smsaitoh #endif /* DEV_NETMAP */ 59dc7f84c8Smsaitoh 60dc7f84c8Smsaitoh #endif /* _IXGBE_NETMAP_H_ */ 61