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

📄 bsplocal.h

📁 这是ARM在Vxworks的驱动源代码
💻 H
字号:
/* @(#) pSOSystem PowerPC/V2.5.0: bsps/ylwknife/src/bsplocal.h (&U&) 4.3 99/02/10 11:48:40 */
/***********************************************************************/
/*                                                                     */
/*   MODULE: bsps/ylwknife/src/bsplocal.h                              */
/*   DATE:    99/02/10                                                 */
/*   PURPOSE: Declarations of functions and variables local to the BSP */
/*                                                                     */
/*---------------------------------------------------------------------*/
/*                                                                     */
/*           Copyright 1991 - 1998, Integrated Systems, Inc.           */
/*                      ALL RIGHTS RESERVED                            */
/*                                                                     */
/*   Permission is hereby granted to licensees of Integrated Systems,  */
/*   Inc. products to use or abstract this computer program for the    */
/*   sole purpose of implementing a product based on Integrated        */
/*   Systems, Inc. products.   No other rights to reproduce, use,      */
/*   or disseminate this computer program, whether in part or in       */
/*   whole, are granted.                                               */
/*                                                                     */
/*   Integrated Systems, Inc. makes no representation or warranties    */
/*   with respect to the performance of this computer program, and     */
/*   specifically disclaims any responsibility for any damages,        */
/*   special or consequential, connected with the use of this program. */
/*                                                                     */
/*---------------------------------------------------------------------*/
/*                                                                     */
/*                                                                     */
/*                                                                     */
/***********************************************************************/
#ifndef _BSPLOCAL_H
#define _BSPLOCAL_H

#include <../bsps/pub/PowerPC.h>


/*=====================================================================*/
/* Code contained in the BSP source directory                          */
/*=====================================================================*/

/*---------------------------------------------------------------------*/
/* board.c: Miscellaneous routines pertaining to the particular board  */
/*---------------------------------------------------------------------*/
extern void SysInitFail(const char *string);

extern void InitBoard(void);

/*---------------------------------------------------------------------*/
/* isr.c: C-language portion of Interrupt Service Routine              */
/*---------------------------------------------------------------------*/
extern void IsrMain(unsigned long vector);
extern void IsrInit(void);

#if 0
/*---------------------------------------------------------------------*/
/* storage.c: Parameter storage and retrieval                          */
/*---------------------------------------------------------------------*/
void StorageRead(unsigned int nbytes, void *start, void *buff);
void StorageWrite(unsigned int nbytes, void *start, void *buff);
#endif

/*---------------------------------------------------------------------*/
/* NI virtual entry typedef                                            */
/*---------------------------------------------------------------------*/
typedef struct 
    {
    long   (*NiChEntry)(ULONG function, union nientry *p, ULONG handle);
    ULONG  handle;
    ULONG  err;
    } ni_vitual_entry_t;

/*---------------------------------------------------------------------*/
/* Ids (dev and vend, and PCI cfg addr) for ethernet devices found      */
/*---------------------------------------------------------------------*/
typedef struct 
    {
    ULONG id1;
    ULONG id2;
    } DEVEND_IDS;

/*---------------------------------------------------------------------*/
/* Board specific parameters structure definition                      */
/*---------------------------------------------------------------------*/
typedef struct enetParm                  /* Ethernet-specific parameters  */
    {
  	ULONG id1;
  	ULONG id2;
    UCHAR Eth00;                         /* Byte 0 of Ethernet address */
    UCHAR Eth01;                         /* Byte 1 of Ethernet address */
    UCHAR Eth02;                         /* Byte 2 of Ethernet address */
    UCHAR Eth03;                         /* Byte 3 of Ethernet address */
    UCHAR Eth04;                         /* Byte 4 of Ethernet address */
    UCHAR Eth05;                         /* Byte 5 of Ethernet address */
    UCHAR ReadSrom;                   /* Read SROM for Ethernet address */
    UCHAR Lan10BaseT;      /* TRUE if LAN should use 10BaseT interface */
    } ENET_PARM;

typedef struct syncParm				/* SYNC devices specific parms  */
	{
	ULONG id1;
	ULONG id2;
	ULONG data1;					/*-------------------------------------*/
									/* Device-specific data                */
									/*-------------------------------------*/
									/* For 16-async & 8-sync cards, both   */ 
									/* have the same device ID & vendor ID */
									/*-------------------------------------*/
									/*  data1==0: 16-async 				   */
									/*  data1==1: 8-sync                   */
									/*-------------------------------------*/
	} SYNC_PARM;	

typedef struct brdParm					/* BRD specific parms */
	{
	ENET_PARM 	enet[BSP_MAX_ENET];
	SYNC_PARM	sync[BSP_MAX_SYNC];
	} BRD_PARM;

#endif /* _BSPLOCAL_H */

⌨️ 快捷键说明

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