cs8950sw.h

来自「CIRRUS 93XX系列windows mobile 6.0 BSP」· C头文件 代码 · 共 55 行

H
55
字号
//**********************************************************************
//                                                                      
// Filename: cs8950dbg.h
//                                                                      
// Description: Header routine for the CS8950 mac and 
// ethernet debugging routines.
//
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//
// Use of this source code is subject to the terms of the Cirrus end-user
// license agreement (EULA) under which you licensed this SOFTWARE PRODUCT.
// If you did not accept the terms of the EULA, you are not authorized to 
// use this source code. For a copy of the EULA, please see the 
// EULA.RTF on your install media.
//
// Copyright(c) Cirrus Logic Corporation 2005, All Rights Reserved                       
//                                                                      
//**********************************************************************

#ifndef _CS8950SW_H_
#define _CS8950SW_H_


/* Loopback types */
#define LOOPBACK_NONE               0
#define LOOPBACK_INTERNAL_MAC       1
#define LOOPBACK_INTERNAL_PHY       2
#define LOOPBACK_PHY_COLLISION_TEST 3
#define LOOPBACK_EXTERNAL_10        4
#define LOOPBACK_EXTERNAL_100       5


//
// Prototypes for CS8950dbg.LIB functions
//
BOOL    CS8950Init(BYTE *pbBaseAddress, DWORD dwMultiplier, USHORT MacAddr[3]);
void    CS8950EnableInts(void);
void    CS8950DisableInts(void);
DWORD   CS8950GetPendingInterrupts(void);
UINT16  CS8950GetFrame( BYTE *pbData, UINT16 *pwLength );
UINT16  CS8950SendFrame( BYTE *pbData, DWORD dwLength );
void    CS8950Disable(void);
BOOL    CS8950ReadEEPROM(UINT16 EEPROMAddress, UINT16 *pwVal);
BOOL    CS8950WriteEEPROM( UINT16 EEPROMAddress, UINT16 Data );
BOOL    CS8950DMAInit(DWORD dwPhysicalAddr, DWORD dwVirtualAddr, DWORD dwSize);
void    CS8950MulticastAddAll(void);
BOOL    CS8950EthMulticastList(BYTE *pucMulticastAddressList, DWORD dwNoOfAddresses);
void    CS8950EthCurrentPacketFilter(DWORD dwRequestedFilter);


#endif /* define _CS8950SW_H_ */

⌨️ 快捷键说明

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