12 #include "intel_i210.h" 15 #if !defined(__gnu_linux__) 16 #include <machine/endian.h> 19 #define __htons(x) htobe16(x) 20 #define __ntohs(x) be16toh(x) 46 return __ntohs(network);
55 if (eth_discover_devices() >= 0) {
56 for (
int i = 0;; ++i) {
57 struct eth_device *dev = eth_get_device(i);
59 adapters[i-1].
next = NULL;
62 strncpy(adapters[i].name, dev->
name, MAX_DEVICE_NAME);
63 adapters[i].
next = &adapters[i+1];
char name[EC_MAXLEN_ADAPTERNAME]
void oshw_free_adapters(ec_adaptert *adapter)
Headerfile for all ethercat headers.
ec_adaptert * oshw_find_adapters(void)
uint16 oshw_ntohs(uint16 network)
uint16 oshw_htons(uint16 host)
ec_adaptert adapters[DEVS_MAX_NB]
Headerfile for ethercatbase.c.