📄 mac_init.h
字号:
/*
*-------------------------------------------------------------------------------
*
* I N T E L P R O P R I E T A R Y
*
* COPYRIGHT (c) 2002 BY INTEL CORPORATION. ALL RIGHTS
* RESERVED. NO PART OF THIS PROGRAM OR PUBLICATION MAY
* BE REPRODUCED, TRANSMITTED, TRANSCRIBED, STORED IN A
* RETRIEVAL SYSTEM, OR TRANSLATED INTO ANY LANGUAGE OR COMPUTER
* LANGUAGE IN ANY FORM OR BY ANY MEANS, ELECTRONIC, MECHANICAL,
* MAGNETIC, OPTICAL, CHEMICAL, MANUAL, OR OTHERWISE, WITHOUT
* THE PRIOR WRITTEN PERMISSION OF :
*
* INTEL CORPORATION
*
* 2200 MISSION COLLEGE BLVD
*
* SANTA CLARA, CALIFORNIA 95052-8119
*
* ------------------------------------------------------------------------------
*/
#if !defined(__MAC_INIT_H__)
#define __MAC_INIT_H__
#include "diag.h"
void mac_reset_config(void);
void mac_disable_reset(void);
short check_autoneg_status_mixed_mode(void);
void read_all_regs(void);
UINT32 config_phy(void);
void mac_config(void);
void config_phy_for_line_lpbk(void);
void spRestore(void);
void spConfig(void);
void phy_write(void);
void get_stats(void);
void gbe_mac_phy_read_all(void);
void check_error_display_rxstats(void);
/**
* Pre-processor symbol and macro definitions.
*
*/
/**
* Type definitions.
*/
/* this structure holds MAC device specific info.,
such as type, port count etc.
This structure is inherited from the IXP1200 diagnostics code. */
typedef struct _MacDat {
int DevType; /* device type */
char *Descstr; /* descriptor string */
int PortCnt; /* port count */
int IOBase; /* IO Base address */
int PortIOSz; /* per port memory */
int MCPortMsk;
int MCPortBase;
int MCPortMax;
/* int bytesToSend; */
int MCPortRxMsk;
} MacDat;
/**
* Prototypes for interface functions.
*/
/**
* NAME: init_mac_dev
*
* DESCRIPTION: This function will initialize the MAC device and bring it
* in an operational state.
*
* @Param: - IN : None
* @Param: - INOUT : None
* @Param: - OUT : None
*
* @Return: 0 if successful or a valid error token for failure.
*/
UINT32 init_mac_dev (UINT32);
/**
* NAME: macScan
*
* DESCRIPTION: This function will scan for the MAC device.
*
* @Param: - IN : None
* @Param: - INOUT : None
* @Param: - OUT : None
*
* @Return: 0 if successful or a valid error token for failure.
*/
UINT32 macScan(void);
/**
* Exported variables.
*/
#endif /* end !defined(__MAC_INIT_H__) */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -