xref: /illumos-gate/usr/src/uts/common/io/e1000api/e1000_illumos.h (revision 42b53e0fbc5c05289c3d334bb864b784fafe5ce4)
1 /*
2  * This file and its contents are supplied under the terms of the
3  * Common Development and Distribution License ("CDDL"), version 1.0.
4  * You may only use this file in accordance with the terms of version
5  * 1.0 of the CDDL.
6  *
7  * A full copy of the text of the CDDL should have accompanied this
8  * source.  A copy of the CDDL is also available via the Internet at
9  * http://www.illumos.org/license/CDDL.
10  */
11 
12 /*
13  * Copyright 2023 Oxide Computer Company
14  */
15 
16 #ifndef _E1000_ILLUMOS_H
17 #define	_E1000_ILLUMOS_H
18 
19 /*
20  * illumos-specific e1000 common code pieces.
21  */
22 
23 #include "e1000_hw.h"
24 
25 #include <sys/mac.h>
26 #include <sys/mac_ether.h>
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
32 extern mac_ether_media_t e1000_link_to_media(struct e1000_hw *, uint32_t);
33 
34 #ifdef __cplusplus
35 }
36 #endif
37 
38 #endif /* _E1000_ILLUMOS_H */
39