資源簡介
zynq7000+88E1111的lwip,支持ps中兩路mac分別掛接兩路phy的應用,同時修復了88E1111初始化中的速率協商部分

代碼片段和文件信息
/*?sys_arch.c?-
?* provide?sys_arch?functionality?as?required?for?lwIP
?* most?of?this?functionality?is?obtained?from?xilkernel
?* this?file?acts?as?a?wrapper?around?the?xilkernel?functions
?*/
/******************************************************************************
*
*?Copyright?(C)?2007?-?2014?Xilinx?Inc.??All?rights?reserved.
*
*?Permission?is?hereby?granted?free?of?charge?to?any?person?obtaining?a?copy
*?of?this?software?and?associated?documentation?files?(the?“Software“)?to?deal
*?in?the?Software?without?restriction?including?without?limitation?the?rights
*?to?use?copy?modify?merge?publish?distribute?sublicense?and/or?sell
*?copies?of?the?Software?and?to?permit?persons?to?whom?the?Software?is
*?furnished?to?do?so?subject?to?the?following?conditions:
*
*?The?above?copyright?notice?and?this?permission?notice?shall?be?included?in
*?all?copies?or?substantial?portions?of?the?Software.
*
*?Use?of?the?Software?is?limited?solely?to?applications:
*?(a)?running?on?a?Xilinx?device?or
*?(b)?that?interact?with?a?Xilinx?device?through?a?bus?or?interconnect.
*
*?THE?SOFTWARE?IS?PROVIDED?“AS?IS“?WITHOUT?WARRANTY?OF?ANY?KIND?EXPRESS?OR
*?IMPLIED?INCLUDING?BUT?NOT?LIMITED?TO?THE?WARRANTIES?OF?MERCHANTABILITY
*?FITNESS?FOR?A?PARTICULAR?PURPOSE?AND?NONINFRINGEMENT.?IN?NO?EVENT?SHALL?THE
*?XILINX?CONSORTIUM?BE?LIABLE?FOR?ANY?CLAIM?DAMAGES?OR?OTHER?LIABILITY
*?WHETHER?IN?AN?ACTION?OF?CONTRACT?TORT?OR?OTHERWISE?ARISING?FROM?OUT?OF
*?OR?IN?CONNECTION?WITH?THE?SOFTWARE?OR?THE?USE?OR?OTHER?DEALINGS?IN?THE
*?SOFTWARE.
*
*?Except?as?contained?in?this?notice?the?name?of?the?Xilinx?shall?not?be?used
*?in?advertising?or?otherwise?to?promote?the?sale?use?or?other?dealings?in
*?this?Software?without?prior?written?authorization?from?Xilinx.
*
******************************************************************************/
#include?“lwipopts.h“
#ifdef?OS_IS_XILKERNEL
#include?“xmk.h“
#include?“sys/timer.h“
#include?“sys/process.h“
#include?“lwip/sys.h“
#include?“lwip/opt.h“
#include?“lwip/stats.h“
#include?“arch/sys_arch.h“
#include?“lwipopts.h“
#include?“lwip/debug.h“
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?“os_config.h“
#include?“errno.h“
struct?thread_start_param?{
struct?sys_thread?*thread;
void?(*function)(void*);
void?*arg;
};
struct?sys_thread?{
pthread_t?tid;
struct?thread_start_param?tp;
};
/*?statically?allocate?required?structures?*/
struct?sys_mbox_s?????? lwip_mbox[SYS_MBOX_MAX];
struct?sys_thread???? lwip_thread[SYS_THREAD_MAX];
static?int?SemaphoreCnt?=?0;
void
sys_init?()
{
int?i;
/*?Initialize?mailboxes?*/
for?(i?=?0;?i? lwip_mbox[i].used?=?0;
/*?Initialize?threads?*/
for?(i?=?0;?i? lwip_thread[i].tid?=?TID_FREE;
}
err_t
sys_sem_new(sys_sem_t?*sem?u8_t?count)
{
int?i;
int?shared?=?0;
if?(SemaphoreCnt?>=?SYS_SEM_MAX)
LWIP_
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-10-26?10:53??zynq_lwip\
?????目錄???????????0??2018-10-26?10:46??zynq_lwip\include\
?????目錄???????????0??2018-10-26?10:46??zynq_lwip\include\arch\
?????文件????????3510??2017-11-11?19:31??zynq_lwip\include\arch\cc.h
?????文件????????2626??2017-11-11?19:31??zynq_lwip\include\arch\cpu.h
?????文件????????2686??2017-11-11?19:31??zynq_lwip\include\arch\perf.h
?????文件????????4026??2017-11-11?19:31??zynq_lwip\include\arch\sys_arch.h
?????目錄???????????0??2018-10-26?10:46??zynq_lwip\include\lwip\
?????文件???????11431??2017-11-11?19:31??zynq_lwip\include\lwip\api.h
?????文件????????5878??2017-11-11?19:31??zynq_lwip\include\lwip\api_msg.h
?????文件????????9514??2017-11-11?19:31??zynq_lwip\include\lwip\arch.h
?????文件????????4589??2017-11-11?19:31??zynq_lwip\include\lwip\autoip.h
?????文件????????4150??2017-11-11?19:31??zynq_lwip\include\lwip\debug.h
?????文件????????4000??2017-11-11?19:31??zynq_lwip\include\lwip\def.h
?????文件????????7765??2017-11-11?19:31??zynq_lwip\include\lwip\dhcp.h
?????文件????????5722??2017-11-11?19:31??zynq_lwip\include\lwip\dns.h
?????文件????????3171??2017-11-11?19:31??zynq_lwip\include\lwip\err.h
?????文件????????3869??2017-11-11?19:31??zynq_lwip\include\lwip\icmp.h
?????文件????????3879??2017-11-11?19:31??zynq_lwip\include\lwip\igmp.h
?????文件????????4220??2017-11-11?19:31??zynq_lwip\include\lwip\inet.h
?????文件????????3501??2017-11-11?19:31??zynq_lwip\include\lwip\inet_chksum.h
?????文件????????2947??2017-11-11?19:31??zynq_lwip\include\lwip\init.h
?????文件????????8332??2017-11-11?19:31??zynq_lwip\include\lwip\ip.h
?????文件????????9740??2017-11-11?19:31??zynq_lwip\include\lwip\ip_addr.h
?????文件????????2929??2017-11-11?19:31??zynq_lwip\include\lwip\ip_frag.h
?????文件????????4144??2017-11-11?19:31??zynq_lwip\include\lwip\mem.h
?????文件????????3929??2017-11-11?19:31??zynq_lwip\include\lwip\memp.h
?????文件????????5489??2017-11-11?19:31??zynq_lwip\include\lwip\memp_std.h
?????文件????????4077??2017-11-11?19:31??zynq_lwip\include\lwip\netbuf.h
?????文件????????4641??2017-11-11?19:31??zynq_lwip\include\lwip\netdb.h
?????文件???????12313??2017-11-11?19:31??zynq_lwip\include\lwip\netif.h
............此處省略232個文件信息
評論
共有 條評論