00001
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094 #include <netinet/if_ether.h>
00095 #include <net/ether.h>
00096 #include <net/if_var.h>
00097 #include <dev/nicrtl.h>
00098
00099
00100 NICINFO dcb_eth0cs;
00101
00102 extern int CSNicOutput(NUTDEVICE * dev, NETBUF * nb);
00103 extern int CSNicInit(NUTDEVICE * dev);
00104
00105
00106
00107
00108
00109
00110 IFNET ifn_eth0cs = {
00111 IFT_ETHER,
00112 {0, 0, 0, 0, 0, 0},
00113 0,
00114 0,
00115 0,
00116 567,
00117 0,
00118 0,
00119 0,
00120 NutEtherInput,
00121 CSNicOutput,
00122 NutEtherOutput
00123 };
00124
00125
00126
00127
00128
00129
00130
00131
00132
00133
00134
00135 NUTDEVICE devEth0cs = {
00136 0,
00137 {'e', 't', 'h', '0', 'c', 's', 0, 0, 0}
00138 ,
00139 IFTYP_NET,
00140 0,
00141 0,
00142 &ifn_eth0cs,
00143 &dcb_eth0cs,
00144 CSNicInit,
00145 0,
00146 0,
00147 0,
00148 0,
00149 0,
00150 0,
00151 0
00152 };
00153