⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 platform.h

📁 vt6528芯片交换机API函数和文档运行程序
💻 H
字号:
/*
 * Copyright (c) 1996, 2003 VIA Networking Technologies, Inc.
 * All rights reserved.
 *
 * This software is copyrighted by and is the sole property of
 * VIA Networking Technologies, Inc. This software may only be used
 * in accordance with the corresponding license agreement. Any unauthorized
 * use, duplication, transmission, distribution, or disclosure of this
 * software is expressly forbidden.
 *
 * This software is provided by VIA Networking Technologies, Inc. "as is"
 * and any express or implied warranties, including, but not limited to, the
 * implied warranties of merchantability and fitness for a particular purpose
 * are disclaimed. In no event shall VIA Networking Technologies, Inc.
 * be liable for any direct, indirect, incidental, special, exemplary, or
 * consequential damages.
 *
 *
 * File:    platform.h
 *
 * Purpose: Functions of platform to support tasks/timers/ISRs
 *
 * Author:  Tevin Chen
 *
 * Date:    Jan 08, 2002
 *
 */


#ifndef __PLATFORM_H__
#define __PLATFORM_H__

#ifdef __SWITCH_CPUIF_PCI
#if !defined(__PCIDRIVER_H__)
#include "pcidriver.h"
#endif
#if !defined(__PCILIB_H__)
#include "pcilib.h"
#endif
#if !defined(__SWPCI_H__)
#include "swpci.h"
#endif
#endif

#if !defined(__DEVICE_H__)
#include "device.h"
#endif
#if !defined(__KERNEL_H__)
#include "kernel.h"
#endif
#if !defined(__ETHTYPE_H__)
#include "ethtype.h"
#endif
#if !defined(__SOC_H__)
#include "soc.h"
#endif




/*---------------------  Export Definitions  ------------------------*/
#define PLAT_ASIC_NON_CACHE_ADDR    ASIC_NON_CACHE_ADDR
#define PLAT_ASIC_EXTIO_BASE_ADDR   ASIC_EXTIO_BASE_ADDR
#define PLAT_ASIC_CPUIF_BASE_ADDR   ASIC_CPUIF_BASE_ADDR
#define PLAT_ASIC_MODULE_BASE_ADDR  ASIC_MODULE_BASE_ADDR

/*---------------------  Export Types  ------------------------------*/

/*---------------------  Export Macros  -----------------------------*/
#define ISR_vSetIntHandlers         INTR_vSetHandler
#define ISR_vIntDisable             INTR_vDisable
#define PLAT_vCpuCriticalEnter      INTR_vCriticalSectionEnter
#define PLAT_vCpuCriticalExit       INTR_vCriticalSectionLeave

#define ISR_vDummyHandler           IISR_vDummyHandler
#define ISR_vSwitchIntEnable        INTR_vSwitchEnable
#define ISR_vSwitchIntDisable       INTR_vSwitchDisable

#define PLAT_vSetMacResetPin        SOC_vSetMacResetPin
#define PLAT_vSetPhyResetPin        SOC_vSetPhyResetPin
#define PLAT_vBoardReboot           SOC_vBoardReboot
#define PLAT_vDelayLoop             SOC_vDelayPoll
#define PLAT_vDelay                 SOC_vDelay
#define PLAT_vCacheEnable           SOC_vCacheEnable
#define PLAT_vCacheDisable          SOC_vCacheDisable
#define PLAT_vDma0Enable            SOC_vDma0Enable
#define PLAT_vDma1Enable            SOC_vDma1Enable
#define PLAT_vDma0GenIntr           SOC_vDma0GenIntr
#define PLAT_vDma1GenIntr           SOC_vDma1GenIntr
#define PLAT_vDma0TrigRx            SOC_vDma0TrigRx
#define PLAT_vDma0TrigTx            SOC_vDma0TrigTx
#define PLAT_vDma1TrigTx            SOC_vDma1TrigTx

/*---------------------  Export Classes  ----------------------------*/

/*---------------------  Export Variables  --------------------------*/

/*---------------------  Export Functions  --------------------------*/
void IISR_vDummyHandler(void);
void INTR_vSwitchEnable(void);
void INTR_vSwitchDisable(void);




#endif /* __PLATFORM_H__ */


⌨️ 快捷键说明

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