mac.h

来自「这个一个FS8610相关的源码,质量很好啊」· C头文件 代码 · 共 68 行

H
68
字号
/**
 * \addtogroup t4socket
 * @{
 */

/**
 * \addtogroup t4mac T4 MAC Layer Configuration Functions
 * @{
 */

/**
 * \file mac.h
 * \brief MAC Layer Function Declaration Header File.
 */
 
/*
******************************************************************************
*
Copyright (c) 2006 FameG Shanghai, Inc. All rights reserved.
*
This is unpublished proprietary source code of FameG Shanghai, Inc.
*
The copyright notice above does not evidence any actual or intended
*
publication of such source code.
******************************************************************************
*/
/*
******************************************************************************
*
Project: T4 Hardware TCP/IP
*
Filename: mac.h
*
Date: 28/02/06
*
Purpose: MAC Layer Function Declaration
*
Author: Xiaofei Rui
******************************************************************************
*/


#ifndef __MAC_H__
#define __MAC_H__
#include "kernel/system.h"

#define	MAC_LOOPBACK_ENABLE		1
#define 	MAC_LOOPBACK_DISABLE		0


extern void mac_Init(UINT8 *addr);
extern void mac_SetSrcAddr(UINT8 XDATA *addr);
extern void mac_GetSrcAddr(UINT8 XDATA *addr);
extern void mac_SetMulticastHashTab(UINT8 val);
extern void mac_SetPHYMode(BOOL loopback);
extern void mac_SetMACMode(BOOL loopback);
extern void mac_WakEnable(void);
extern void mac_FlowCtrl(BOOL hth1536, BOOL lth512, UINT16 paustime);
extern void mac_VlanCtrl(UINT8 prio, UINT16 vid);
extern UINT16 mdio_read(UINT8 phy_id, UINT8 location);
extern void mdio_write (UINT8 phy_id, UINT8 location, UINT16 val);
extern void mac_Int_handler(void);

#endif /* __MAC_H__ */

/** @} */
/** @} */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?