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

📄 target.nr

📁 VxWorks下 Mcpn750的BSP源代码
💻 NR
📖 第 1 页 / 共 5 页
字号:
'\" t.so wrs.an.\" PowerPlus/target.nr - Motorola MCPN750 target-specific documentation.\".\" Copyright 1984-1999 Wind River Systems, Inc..\" Copyright 1996,1997,1998,1999 Motorola, Inc., All Rights Reserved.\".\" modification history.\" --------------------.\" 01v,04dec01,mil  Changed USB ports to supported and added USB information..\" 01u,09oct01,mil  Added dec SROM fix in known problems (SPR 28677)..\"                  Also fixed refgen errors on missing \\te..\" 01t,27aug01,dgp  change manual page to reference entry per SPR 23698.\" 01s,13may99,srr  Changed documentation of PCI AutoConfiguration using.\"                  PCI_MSTR_MEM_LOCAL to PCI_MSTR_MEMIO_LOCAL..\" 01r,15apr99,srr  Changed to WRS address space naming convention..\" 01q,09Apr99,srr  Add CPV5000 as supported host node for shared memory..\" 01p,08feb99,scb  Writeup on MPCI spurious interrupts..\" 01o,08feb99,scb  Clarification in "Make Targets" section..\" 01n,28jan99,scb  Writeup on SENS support..\" 01m,01dec98,scb  One-line tweek about SM_ANCHOR_OFFSET value..\" 01l,23nov98,scb  Reentered info about unified sysBusToLocalAdrs() and .\"                  sysLocalToBusAdrs() and PCI address space designations .\"                  in pci.h (inadvertently dropped)..\" 01k,23nov98,scb  Emphasized caveat associated with PCI backpanel interrupts..\" 01j,23nov98,scb  Fix minor documentation error in building of "boot.bin"..\" 01i,19nov98,scb  Added "PCI autoconfiguration roll call" information..\" 01h,19nov98,scb  Cleaned out old MCP750 related information..\" 01g,17nov98,scb  Added section: "Booting the MCPN750"..\" 01f,16nov98,scb  Added Shared Memory Support information..\" 01e,05nov98,rhv  Added Dec2155x Information..\" 01d,21sep98,rhv  Added VPD information..\" 01c,08sep98,rhv  Added warning about VIA PCI-to-ISA bridge causing.\"                  interference with PCI Bus probing under Known Problems.\"                  section..\" 01b,28aug98,rhv  Added Processor Data Bus Parity configuration instructions..\" 01a,26aug98,srr  created from mcp750 target.nr (revision 01t)..\".\".TH "MCPN750" T "Motorola PowerPlus" "Rev: 13 May 99" "VXWORKS REFERENCE MANUAL".SH "NAME".aX "Motorola MCPN750".SH "INTRODUCTION"This reference entry provides board-specific information necessary to runVxWorks.  Before using a board with VxWorks, verify that the board runs in thefactory configuration by using vendor-supplied ROMs and jumper settings andchecking the RS-232 connection.The Motorola CompactPCI series of boards includes the following families: MCP750 and MCPN750.  This BSP encompasses MCPN750 only.The MCPN750 single-board computer is based on the PowerPC MPC750 (Arthur)microprocessors.  The series part numbers are of the form:    MCPN750-nnnn    where        nnnn = Processor speed and ECC DRAM size (DRAM contained on-board)            1222 = 266 MHz w/16MB            1232 = 266 MHz w/32MB            1332 = 366 MHz w/32MB            1342 = 366 MHz w/64MB            1352 = 366 MHz w/128MB            1362 = 366 MHz w/256MBThe MCPN750 transition module designation is TMCPN710.  The transitionmodule contains two RJ45 connectorsproviding access to the asynchronous serial ports permanently configured as EIA DTE, and two HD-26 connectors providing access to two serial ports (COM3 and COM4).For more information refer to the Motorola manual \f2"TMCPN710 Transition Module Installation and Use"\f1.The BAT registers are not supported in the current cache management strategy;therefore, they can best be used for non-cacheable, data-only address regions..SS "Boot ROMS"The MCPN750 boards have two sets of flash EEPROM (FLASH).  One set of two AMDAm29F040 FLASH is socketed (sockets XU1 and XU2) and contains Motorola'sPPC1-Bug.  The other set of E28f800 FLASH is soldered in.  The VxWorks bootkernel resides in the soldered FLASH.  See \f2Hardware Details: ROMConsiderations\f1 for information about loading and writing the boot kernelimage to the soldered FLASH.These boards have non-volatile RAM; thus, boot parameters are preservedwhenever the system is powered off.To load VxWorks, and for more information, follow the instructions in the\f2Tornado User's Guide: Getting Started.\f1.SS "Jumpers"The following jumpers are relevant to VxWorks configuration: .TS Eexpand;cf3 s slf3 lf3 lf3l l lw(2.6i) ..ne 6MCPN750.sp .5Jumper	Function	Description_J7	ROM controller	T{Install the jumper across pins 2 and 3 to select the socketed FLASH.Install the jumper across pins 1 and 2 to select the soldered FLASH(factory configuration).T}.TEFor details of jumper configuration, see the board diagram at the end ofthis entry and in the hardware manual.Note that ROM controller jumpers should be set to select socketed FLASH untilVxWorks boot code is written to soldered FLASH, after which the jumpers shouldbe restored to the factory configuration of soldered FLASH..SH "FEATURES"The following subsections list all supported and unsupported features, as wellas any feature interaction..SS "Supported Features"The following features of the MCPN750 are supported:.TS Eexpand;lf3 lf3lw13 lw(3.7i) ..ne 6.sp .5Feature	Description_Processors	T{MPC750; 66MHz bus clockT}L2 Cache	T{1MB in-line cache, write-through only.T}FLASH	T{4MB soldered (64-bit wide), 1MB socketed (16-bit wide).  Soldered used for VxWorks boot image.T}DRAM	T{16, 32, 64, 128MB, two-way interleaved; auto-sized or fixedT}NVRAM	T{8KB (MK48T59/559)8KBT}Peripherals	T{Four 16550C asynchronous serial ports COM1, COM2, COM3, and COM4;AUI or 10baseT/100baseTX Ethernet interface;Primary ATA/EIDE port and Compact Flash;USB ports 1 and 2T}ISA Interface	T{full 64KB memory and I/O spaceT}PCI Interface	T{32-bit address, 32-bit data; complies with \f2PCI Local Bus Specification\f1,Revision 2.1T}Miscellaneous	T{RESET switchT}.TE.SS "Booting the MCPN750"When running with an MCP750 in the same chassis, a reset performed onthe MCP750 will automatically reset all MCPN750s in the same chassis.Also, it generally makes no sense to reset (using the reset button) asingle MCPN750 in a chassis without resetting the MCP750 as well.  TheMCP750 PCI autoconfiguration (see below) only enumerates andinitializes the PCI bus during MCP750 initialization.  Part of thisPCI bus initialization involves the MCP750's programming of theMCPN750's Dec2155x downstream BARs.  Thus a single MCPN750 which isreset via the reset button press without rebooting the the MCP750 willnot be visible to the MCP750 and will be unable to partake ininterrupt handshaking or shared memory support.  Note that performinga ctrl-x type reboot on the MCPN750 (as opposed to a reset buttonpress) will not destroy the programming in the downstream BAR and theMCPN750 will still be visible to the MCP750 and will be able topartake in interrupt handshaking etc..SS "PCI Autoconfiguration"The board support package for the MCPN750 handles automaticdetection and configuration of compact PCI devices.  Inparticular, it performs the following:.IP "1)"Probes the host PCI bridge for all devices on the hostPCI bus (bus zero).  Note that among the devices on buszero might be PCI-PCI bridges.  These bridges are probedas well and recursive probing occurs until all devicesand bridges are found. .IP "2)"Memory is assigned to each device and sub-bridge found.For devices, each Base Address Register (BAR) is queried.Memory or I/O space (or both) is allocated for each BARwhich has been implemented..IP "3)"Complete initialization of the devices is performed,including cache Line size, command register, latency timer,interrupt line and base address registers (0 through 5).PCI-PCI bridges are initialized with the correct primarybus, secondary bus and subordinate bus designation.  Inshort, the entire bridge/device "tree" rooted at the hostpci bridge is completely configured and ready for driveraccess..SS "PCI Autoconfiguration Roll Call"A new feature to the PCI autoconfiguration is "roll call".  If youexpect to find a certain number of specific devices identified bydevice/vendor ID during PCI autoconfiguration you can enter theinformation into a roll call list.  For example assume that youknow that the autoconfiguration process should find 4 differentdevices with device/vendor ID of 0x00461011 (this would be theDec2155x device).  You want PCI autoconfiguration to "wait" untilit finds at least this many but you don't want it to wait morethan 20 seconds.  If 20 seconds have elapsed and 4 differentDec2155x chips have not appeared in the bus enumeration process,you would like the PCI autoconfiguration process to proceedanyway.You would construct the "roll call" list in "config.h" as shownbelow:#define ROLL_CALL_MAX_DURATION 20  #define PCI_ROLL_CALL_LIST_ENTRIES \{ 4, 0x00461011 },The parameter ROLL_CALL_MAX_DURATION specifies that no more than 20seconds should elapse before proceeding on with theautoconfiguration, even though less than 4 Dec2155x devices havebeen found.You can see the entry { 4, 0x00461011 } which says that you expectto find at least 4 devices whose device/vendor ID is 0x00461011.Note that "mcpx750.h" contains defines for some device/vendor IDs,such a define could be used here instead of a hard-codeddevice/vendor ID.Also note that this list can be extended so more than one device/vendor ID is identified with possibly a different count.If the list is empty (except for the termination entry) then thereis no roll call waiting performed, regardless of the setting ofROLL_CALL_MAX_DURATION (seconds).The roll call feature can be useful for devices which are slow toappear on the cPCI bus.  For example, MCPN750 CPU boards (whichcontain the Dec2155x nontransparent PCI bridge) will not bevisible to an MCP750 master which is enumerating the bus until theMCPN750 clears the "primary access lock-out" bit in the Dec2155x chipcontrol 0 register.  If the MCP750's bus enumeration occursbefore the MCPN750 software unlocks the Dec2155x, then the MCP750will not know the MCPN750 is present and will not configure it.The roll call feature allows for bus enumeration polling until thespecified devices actually appear.  Note that roll call may notalways be required for the example just presented.  Some systemconfigurations and timings may work without using the roll callfeature.  .SS "Dec2155x PCI-to-PCI Non-Transparent Bridge Support"This BSP contains support for the Dec2155x non-transparent PCI-to-PCIbridge. This device provides read/write access to and from the CompactPCI bus (cPCI).The following support is provided:.IPUp to 4 user configurable downstream cPCI to local PCI windows..IPUp to 2 user configurable upstream local PCI to cPCI windows..IPSupport for in-bound "doorbell" interrupts..IPSupport for cPCI backpanel interrupts..IPcPCI to local CPU address translation..IPLocal CPU to cPCI address translation..IPBuild-time validation of Dec2155x configuration parameters..SS "Dec2155x Support Limitations"The PReP standard does not support 64-bit PCI addressing. Therefore, thisBSP does not provide support for 64-bit addressing through the Dec2155x.There is a limitation when the cPCI to local PCI or cPCI to local CPUaddress translation routines are presented with a cPCI address which mapsinto a downstream window on the local board. The translation will succeedand return an address, but when that address is accessed, the Dec2155xwill attempt to access one of its own downstream windows. The transferwill fail because PCI devices cannot access themselves on the cPCI bus.Depending on how error detection is configured, the result will beinvalid data or a PCI Master Abort.Interrupt vectors are provided for the interrupts associated withDec2155x Hot Swap Power State transitions, Intelligent I/O (I2O), and theUpstream Memory 2 Base Address Register but no other support for thesefeatures is provided.During system startup, the Dec2155x must be configured and unlockedbefore the host enumerates the cPCI bus. To meet this timing requirement,the Dec2155x is configured by the vxWorks boot ROM image. If changes tothe Dec2155x configuration are made, new boot ROMs are required inaddition to a new kernel. For proper operation, the Dec2155xconfiguration in the Boot ROMs must match the configuration used by thekernel.The Dec2155x places certain limitations on window sizes and translationvalues. This BSP adheres to those limitations and providesbuild-time parameter checking to help avoid misconfigurations.Modifications to the default Dec2155x configuration provided in this BSPmust be made with care to avoid invalid configurations. Information onthe default Dec2155x configuration provided by this BSP is presented inthe next section and modification guidelines appear later in this file..SS "Dec2155x Default Configuration"The default Dec2155x configuration supports a host processor (MCP750) andup to 7 MCPN750s. The following interoperability is supported:.IPHost access to MCPN750 CSR and the low 4MB of MCPN750 DRAM..IPMCPN750 access to the low 4MB of host DRAM..IPMCPN750 access to peer MCPN750 CSR and low 4MB of peer MCPN750 DRAM..PThe BSP provides these features using the following Dec2155xconfiguration:.TS Ccenter;lf3 sr lw(3.2i) ..ne 6.sp .5Primary CSR and Downstream Memory 0 BAR:Size:	T{4MBT}Direction:	T{In-Bound (cPCI to MCPN750)T}cPCI Adrs:	T{Dynamic (assigned by host)T}Local PCI Adrs:	T{PCI_SLV_MEM_BUS (0x80000000 by convention)T}Local CPU Adrs:	T{PCI_SLV_MEM_LOCAL (0x00000000 by convention)T}Use:	T{R/W access to CSR (low 4KB) and MCPN750 DRAM (above 4KB)T}.TE

⌨️ 快捷键说明

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