📄 bsp.h
字号:
/* @(#) pSOSystem PowerPC/V2.5.0: bsps/ylwknife/bsp.h (&U&) 4.5 98/10/22 10:57:32 */
/***********************************************************************/
/* */
/* MODULE: bsps/ylwknife/bsp.h */
/* DATE: 98/10/22 */
/* PURPOSE: Defining characteristics of a board-support package */
/* */
/*---------------------------------------------------------------------*/
/* */
/* 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. */
/* */
/*---------------------------------------------------------------------*/
/* */
/* This file defines the characteristics and capabilities of the */
/* BSP. Other files in the pSOSystem ADE refer to this file */
/* when an executable image is being built. */
/* */
/***********************************************************************/
#ifdef __cplusplus
extern "C" {
#endif
#ifndef _BSP_H
#define _BSP_H
/*---------------------------------------------------------------------*/
/* define CPU type first, at head of all include files in BSP module */
/*---------------------------------------------------------------------*/
#define IXP425 1
#include <types.h>
#include <../bsps/pub/bsps.h>
/***********************************************************************/
/* */
/* */
/* B O A R D - S U P P O R T P A C K A G E P R O F I L E */
/* */
/* */
/***********************************************************************/
/*=====================================================================*/
/* */
/* B A S I C C H A R A C T E R I S T I C S */
/* */
/* * BSP_VERSION - specifies revision level of pSOSystem */
/* which this BSP was written to support */
/* * BSP_CPUFAMILY - CPU processor FAMILY (68000, 88000, */
/* i960, or x86) */
/* * BSP_CPU - Specific processor within family (PPC604, */
/* PPC603, PPC601, PPC403GA etc) */
/* * BSP_FPU - Floating-point unit (yes/no) */
/* * BSP_MMU - Memory Management Unit (yes/no) */
/* * BSP_RAM_BASE - Starting address of RAM as seen by CPU */
/* * BSP_VME - YES if this is a VME board */
/* * BSP_LITTLE_ENDIAN - YES if board is "little-endian" */
/* */
/*=====================================================================*/
#define BSP_CPUFAMILY FAMILY_POWERPC
#define BSP_RAM_BASE BoardInfoDramBase()
#define BSP_FPU YES
#define BSP_MMU YES
#define BSP_VME NO
#define BSP_LITTLE_ENDIAN NO
/*=====================================================================*/
/* BSP Service Call Extension parameters. */
/* */
/* BSP_SVC_EXTENSION indicates if this BSP supports SERVICE CALL EXT. */
/* */
/*=====================================================================*/
#define BSP_SVC_EXTENSION YES /* Set to NO if you do not need */
/*=====================================================================*/
/* */
/* S E R I A L C H A N N E L S */
/* */
/* * BSP_SERIAL indicates if SERIAL Driver is supported in this BSP. */
/* * BSP_SERIAL_MINBAUD - lowest supported baud rate */
/* * BSP_SERIAL_MAXBAUD - highest supported baud rate */
/* * BSP_NEW_SERIAL indicates if this BSP supports DISI drivers */
/* * BSP_USE_SERIAL_MUX - indicates if this BSP needs SERIAL MUX */
/* * BSP_MAX_SER_DRIVERS indicates max. #of serial drivers can be */
/* attached to this BSP, both BSP ones and dynamic added ones. */
/* * BSP_MAX_SER_PORTS_PER_DRIVER indicates max #of serial ports */
/* per driver. */
/* */
/*=====================================================================*/
#define BSP_SERIAL 2
#define BSP_NEW_SERIAL YES
#define BSP_SERIAL_MINBAUD 300
#define BSP_SERIAL_MAXBAUD 38400
/*---------------------------------------------------------------------*/
/* Setting BSP_USE_SERIAL_MUX to NO for this BSP needs modifications */
/* to src/makefile and also BSP_SERIAL should be changed to number of */
/* serial PORTS supported on this BSP instead of YES. */
/* */
/* src/makefile : needs modifications to have only one serial driver */
/* included. Otherwise, multiple definition linking error will be */
/* reported and the final application will not RUN. */
/*---------------------------------------------------------------------*/
#define BSP_USE_SERIAL_MUX YES /* Use the Serial MUX */
#define BSP_MAX_SER_DRIVERS 32 /* Maximum #of serial Drivers */
#define BSP_MAX_SER_PORTS_PER_DRIVER (640*4) /* Max. #of Ports per Driver */
/*=====================================================================*/
/* */
/* P A R A L L E L C H A N N E L S */
/* */
/* * BSP_PARALLEL indicates the number of parallel channels supported*/
/* (0 = none) */
/* */
/*=====================================================================*/
#define BSP_PARALLEL 1
/*=====================================================================*/
/* */
/* L A N I N T E R F A C E S */
/* */
/* * BSP_LAN1 - YES if LAN is supported */
/* * BSP_LAN1_ENTRY - Function name of PRIMARY LAN entry point */
/* * BSP_LAN1_MTU - Maximum transmission unit (bytes) */
/* * BSP_LAN1_HWALEN - Length of hardware address in bytes */
/* * BSP_LAN1_FLAGS - Interface flags (per pNA manual) */
/* IFF_POLL 0x8000 interface is a polling type */
/* IFF_BROADCAST 0x0001 NI supports broadcasts */
/* IFF_RAWMEM 0x2000 driver uses "mblk" interface */
/* IFF_MULTICAST 0x0800 driver suports multicast */
/* * BSP_LAN1_PKB - number of packet buffers for RAM code */
/* * BSP_LAN1_PKB_ROM - number of packet buffers for ROM code */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -