📄 mac.h
字号:
/**
* \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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -