xref: /dflybsd-src/sys/dev/netif/ig_hal/e1000_dragonfly.h (revision 9b8968bb1582a7b62de2aaec346bef35a17a6b1c)
1efd6aee8SSepherosa Ziehau /*
2efd6aee8SSepherosa Ziehau  * Copyright (c) 2015 The DragonFly Project.  All rights reserved.
3efd6aee8SSepherosa Ziehau  *
4efd6aee8SSepherosa Ziehau  * This code is derived from software contributed to The DragonFly Project
5efd6aee8SSepherosa Ziehau  * by Sepherosa Ziehau <sepherosa@gmail.com>
6efd6aee8SSepherosa Ziehau  *
7efd6aee8SSepherosa Ziehau  * Redistribution and use in source and binary forms, with or without
8efd6aee8SSepherosa Ziehau  * modification, are permitted provided that the following conditions
9efd6aee8SSepherosa Ziehau  * are met:
10efd6aee8SSepherosa Ziehau  *
11efd6aee8SSepherosa Ziehau  * 1. Redistributions of source code must retain the above copyright
12efd6aee8SSepherosa Ziehau  *    notice, this list of conditions and the following disclaimer.
13efd6aee8SSepherosa Ziehau  * 2. Redistributions in binary form must reproduce the above copyright
14efd6aee8SSepherosa Ziehau  *    notice, this list of conditions and the following disclaimer in
15efd6aee8SSepherosa Ziehau  *    the documentation and/or other materials provided with the
16efd6aee8SSepherosa Ziehau  *    distribution.
17efd6aee8SSepherosa Ziehau  * 3. Neither the name of The DragonFly Project nor the names of its
18efd6aee8SSepherosa Ziehau  *    contributors may be used to endorse or promote products derived
19efd6aee8SSepherosa Ziehau  *    from this software without specific, prior written permission.
20efd6aee8SSepherosa Ziehau  *
21efd6aee8SSepherosa Ziehau  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22efd6aee8SSepherosa Ziehau  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23efd6aee8SSepherosa Ziehau  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
24efd6aee8SSepherosa Ziehau  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE
25efd6aee8SSepherosa Ziehau  * COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
26efd6aee8SSepherosa Ziehau  * INCIDENTAL, SPECIAL, EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING,
27efd6aee8SSepherosa Ziehau  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
28efd6aee8SSepherosa Ziehau  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
29efd6aee8SSepherosa Ziehau  * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30efd6aee8SSepherosa Ziehau  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
31efd6aee8SSepherosa Ziehau  * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32efd6aee8SSepherosa Ziehau  * SUCH DAMAGE.
33efd6aee8SSepherosa Ziehau  */
34efd6aee8SSepherosa Ziehau 
35efd6aee8SSepherosa Ziehau #ifndef _E1000_DRAGONFLY_H_
36efd6aee8SSepherosa Ziehau #define _E1000_DRAGONFLY_H_
37efd6aee8SSepherosa Ziehau 
38efd6aee8SSepherosa Ziehau void	e1000_fc2str(enum e1000_fc_mode fc, char *str, int len);
39d2f385fbSSepherosa Ziehau enum e1000_fc_mode e1000_ifmedia2fc(int ifm);
40d2f385fbSSepherosa Ziehau int	e1000_fc2ifmedia(enum e1000_fc_mode fc);
41*9b8968bbSSepherosa Ziehau void	e1000_force_flowctrl(struct e1000_hw *hw, int ifm);
42d2f385fbSSepherosa Ziehau 
43efd6aee8SSepherosa Ziehau #endif	/* !_E1000_DRAGONFLY_H_ */
44