代码搜索结果
找到约 15,197 项符合
Ethernet 的代码
ethernet.c
#include "Ethernet.h"
u16 local_eth_addr[3] = {0x4422, 0x8866, 0xCCAA};
inline u16 NIC_InPort(u16 reg)
{
ETH_Addr_Port = reg;
return ETH_Data_Port;
}
inline void NIC_OutPort(u16 reg, u1
ethernet.c
#include "Ethernet.h"
u16 local_eth_addr[3] = {0x4422, 0x8866, 0xCCAA};
inline u16 NIC_InPort(u16 reg)
{
ETH_Addr_Port = reg;
return ETH_Data_Port;
}
inline void NIC_OutPort(u16 reg, u1
readme_etheroutputdemo
FILE LIST -
etherOutputDemo.c
DESCRIPTION -
This demo sends (broadcast) data on an ethernet network interface
and handles (receives) raw input frames (input data) from
etherinputdemo.c
/* etherInputDemo.c - Demo for using low-level ethernet input routines */
/* Copyright 1984-1997 Wind River Systems, Inc. */
/*
modification history
--------------------
01e,06nov97,mm added copyr
etheroutputdemo.c
/* etherOutputDemo.c - Demo for using low-level output ethernet routines */
/* Copyright 1984-1997 Wind River Systems, Inc. */
/*
modification history
--------------------
01d,06nov97,mm added cop
netconf.ini
[Ethernet]
LocalIP=10.12.200.80
MaskCode=255.255.255.0
GateWayIP=10.12.200.200
FTPSvrIP=10.12.200.28
eth.h
#ifndef __ETH_H
#define __ETH_H
/*
* IEEE 802.3 Ethernet magic constants. The frame sizes omit the preamble
* and FCS/CRC (frame check sequence).
*/
#define ETH_ALEN 6 /* Octets in one etherne
arp.h
#ifndef __ARP_H
#define __ARP_H
#include "eth.h"
/* ARP protocol HARDWARE identifiers. */
#define ARPHRD_NETROM 0 /* from KA9Q: NET/ROM pseudo */
#define ARPHRD_ETHER 1 /* Ethernet 10Mbps */
#de
eth.h
#ifndef __ETH_H
#define __ETH_H
/*
* IEEE 802.3 Ethernet magic constants. The frame sizes omit the preamble
* and FCS/CRC (frame check sequence).
*/
#define ETH_ALEN 6 /* Octets in one etherne
arp.h
#ifndef __ARP_H
#define __ARP_H
#include "eth.h"
/* ARP protocol HARDWARE identifiers. */
#define ARPHRD_NETROM 0 /* from KA9Q: NET/ROM pseudo */
#define ARPHRD_ETHER 1 /* Ethernet 10Mbps */
#de