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

📄 target.nr

📁 VxWorks下 Mcpn750的BSP源代码
💻 NR
📖 第 1 页 / 共 5 页
字号:
either be a build-time static parameter or it must be able tobe communicated to the master node via the "sm=xxxxxxxx" bootconfiguration parameter.  The nonzero nodes need not know thelocation of the anchor at build or boot time but can be configuredto poll for the anchor dynamically..LPNote:  Another piece of shared memory terminology is "host node".The "host node" is the node which configures the compact PCI busduring startup initialization.  In a system consisting of an MCP750and one or more MCPN750s, the "host node" is the MCP750.  Don't confuse"host node" with "master node".  "Master node" is simply a synonym for"node 0".  The "host node" may or may not be the "master node".  Notealso that the "host node" need not necessarily be a VxWorks node.Below are the crucial "config.h" parameters involved in shared memory:.IP "CPCI_MSTR_MEM_BUS (address):"The parameter is used to identify the address where the systemDRAM will be configured at.  This is dependent on the hostboard used and is defined in "config.h".  The explaination saysto set the value to 0x80000000 for a MCP750 host (default) or0x00000000 for a CPV5000 host.  .IP "SM_OFF_BOARD (TRUE or FALSE):"The parameter has a configurable value of either TRUE or FALSEand directly determines the value of SM_ANCHOR_ADRS (the anchoraddress).  If SM_OFF_BOARD is defined as FALSE, then the anchor is on-boardand SM_ANCHOR_ADRS is defined to beLOCAL_MEM_LOCAL_ADRS + SM_ANCHOR_OFFSET.LOCAL_MEM_LOCAL_ADRS is defined as 0x0 in "config.h" andSM_ANCHOR_OFFSET is defined as 0x4100 in "config.h" to work withan MCP750.  SM_ANCHOR_OFFSET needs to be changed to 0x1100 in"config.h" to work with a CPV5000.  If defined as TRUE, then SM_ANCHOR_ADRS is defined as a functioncall: sysSmAnchorAdrs() (defined in "sysLib.c").  This functionwill dynamically poll, at system startup, various locations(explained below) for the exact location of the shared memoryanchor.  Note that if "sm=xxxxxxxx" is used as a boot parameter, thenSM_OFF_BOARD has no effect.  The value of "xxxxxxxx" will be usedas the anchor location regardless of the setting of SM_OFF_BOARD.If simply "sm" is used as a boot parameter, then SM_OFF_BOARD isqueried at initialization time to determine if polling is requiredor not..IP "SYS_SM_SYSTEM_MEM_POLL (#define or #undef):"This define only has an effect if anchor polling is called for(because SM_OFF_BOARD is defined as TRUE and "sm" is used with no"=xxxxxxxx").  In this case, simply defining SYS_SM_SYSTEM_MEM_POLLwill cause the node to poll for the anchor at compact PCI busaddress CPCI_MSTR_MEM_BUS + SM_ANCHOR_OFFSET (0x80004100)."System memory" (which is the host node's DRAM) willbe included as one of the locations where the anchor might reside.Note that other locations my be polled as well (explained later).Not defining SYS_SM_SYSTEM_MEM_POLL will prevent the polling ofsystem  memory for the anchor..IP "SYS_SM_ANCHOR_POLL_LIST (#define or #undef):"This define has an effect only if polling is called for (seeSM_OFF_BOARD explained above).  When defined,SYS_SM_ANCHOR_POLL_LIST allows a list of devices, identified bydevice/vendor ID and subsystem ID/subsystem vendor ID to bespecified as candidates for the anchor location.  Devices whichappear directly on the compact PCI bus are found and if theyappear on the list defined by SYS_SM_ANCHOR_POLL_LIST, they arechecked to see if they house the shared memory anchor.  The memorydefined by the first memory BAR is queried at offsetSM_ANCHOR_OFFSET (0x4100 by default, defined in "config.h").  IfSYS_SM_ANCHOR_POLL_LIST is not defined, ALL devices on the compactPCI bus will be considered candidates for the anchor location andwill be polled.  If SYS_SM_ANCHOR_POLL_LIST defined but empty, NOdevices on the compact PCI bus will be considered candidates forthe anchor location.  In that case, the only location polled wouldbe system memory if SYS_SM_SYSTEM_MEM_POLL (see above) was defined..IP "INCLUDE_SM_SEQ_ADDR (#define or #undef)"If "undef'ed", sequential addressing is disabled.  This symbolis defined by default..LPConsider a system consisting of an MCP750 (host node) and two MCPN750s.The following six configurations are the only ones possible:.TS Eexpand;lf3 lf3 lf3 lf3l l l l ..ne 8.sp .5	Master node on...	Anchor on...	Sequential Addressing?_1.	MCP750	MCP750	NO2.	MCP750	MCP750	YES3.	MCPN750	MCP750	NO4.	MCPN750	MCP750	YES5.	MCPN750	MCPN750	NO6.	MCPN750	MCPN750	YES.TENOTE: Master node on MCPN750 and Anchor on CPV5000 is not supported.Below is a description of how each of the above systems would beconfigured.  Crucial "config.h" and boot parameter settings for anexample system are given.  In each example, SYS_SM_ANCHOR_POLL_LISTwas defined to contain information identifying the Dec2155x bridgechip (present on the MCPN750).  See "config.h" for the example ofhow this was done..ne 6.IP "1)"MCP750 master, MCP750 anchor, no sequential addressing:.CS   MCP750:        #define SM_OFF_BOARD FALSE        #undef  SYS_SM_SYSTEM_MEM_POLL        #undef  INCLUDE_SM_SEQ_ADDR        boot device          : dc        host name            : sunray        processor number     : 0        inet on ethernet (e) : 124.170.16.112        inet on backplane (b): 124.200.200.1:ffffff00        host inet (h)        : 124.170.16.143        gateway inet (g)     : 124.170.16.233        target name (tn)     : gamma   MCPN750-1:        #define SM_OFF_BOARD TRUE        #define SYS_SM_SYSTEM_MEM_POLL        #undef  INCLUDE_SM_SEQ_ADDR        boot device          : sm        host name            : sunray        processor number     : 1        inet on ethernet (e) : 124.170.16.109        inet on backplane (b): 124.200.200.2        host inet (h)        : 124.170.16.143        gateway inet (g)     : 124.200.200.1        target name (tn)     : alpha   MCPN750-2:        (same "config.h" setup as MCPN750-1 above)        boot device          : sm        host name            : sunray        processor number     : 2        inet on ethernet (e) : 124.170.16.110        inet on backplane (b): 124.200.200.3        host inet (h)        : 124.170.16.143        gateway inet (g)     : 124.200.200.1        target name (tn)     : beta.CE.ne 6.IP "2)"MCP750 master, MCP750 anchor, sequential addressing:.CS   MCP750:        #define SM_OFF_BOARD FALSE        #define SYS_CPCI_BUS_NUMBER    1        #undef SYS_SM_SYSTEM_MEM_POLL        /* #undef INCLUDE_SM_SEQ_ADDR */        boot device          : dc        host name            : sunray        processor number     : 0        inet on ethernet (e) : 124.170.16.112:ffffff00        inet on backplane (b): 124.200.200.1:ffffff00        host inet (h)        : 124.170.16.143        gateway inet (g)     : 124.170.16.233        target name (tn)     : gamma   MCPN750-1:        #define SM_OFF_BOARD TRUE        #define SYS_CPCI_BUS_NUMBER    1        #define SYS_SM_SYSTEM_MEM_POLL        /* #undef INCLUDE_SM_SEQ_ADDR */        boot device          : sm        host name            : sunray        processor number     : 1        inet on ethernet (e) :        inet on backplane (b):        host inet (h)        : 124.170.16.143        gateway inet (g)     :        target name (tn)     : alpha   MCPN750-2:        (same "config.h" setup as MCPN750-1 above)        boot device          : sm        host name            : sunray        processor number     : 2        inet on ethernet (e) :        inet on backplane (b):        host inet (h)        : 124.170.16.143        gateway inet (g)     :        target name (tn)     : beta.CE.ne 6.IP "3)"MCPN750 master, MCP750 anchor, no sequential addressing:.CS   MCP750:        #define SM_OFF_BOARD FALSE        #undef  SYS_SM_SYSTEM_MEM_POLL        #undef  INCLUDE_SM_SEQ_ADDR        boot device          : sm        host name            : sunray        processor number     : 1        inet on ethernet (e) : 124.170.16.112        inet on backplane (b): 124.200.200.1        host inet (h)        : 124.170.16.143        gateway inet (g)     : 124.200.200.2        target name (tn)     : gamma   MCPN750-1:        #define SM_OFF_BOARD TRUE        #define SYS_SM_SYSTEM_MEM_POLL        #undef  INCLUDE_SM_SEQ_ADDR        boot device          : dc        processor number     : 0        host name            : sunray        inet on ethernet (e) : 124.170.16.109        inet on backplane (b): 124.200.200.2:ffffff00        host inet (h)        : 124.170.16.143        gateway inet (g)     : 124.170.16.233        target name (tn)     : alpha   MCPN750-2:        #define SM_OFF_BOARD TRUE        #define SYS_SM_SYSTEM_MEM_POLL        #undef  INCLUDE_SM_SEQ_ADDR        boot device          : sm        processor number     : 2        host name            : sunray        inet on ethernet (e) : 124.170.16.110        inet on backplane (b): 124.200.200.3        host inet (h)        : 124.170.16.143        gateway inet (g)     : 124.200.200.2        target name (tn)     : beta.CE.ne 6.IP "4)"MCPN750 master, MCP750 anchor, sequential addressing:.CS   MCP750:        #define SM_OFF_BOARD FALSE        #undef  SYS_SM_SYSTEM_MEM_POLL        /* #undef  INCLUDE_SM_SEQ_ADDR */        boot device          : sm        processor number     : 1        host name            : sunray        inet on ethernet (e) :        inet on backplane (b):        host inet (h)        : 124.170.16.143        gateway inet (g)     :        target name (tn)     : gamma   MCPN750-1:        #define SM_OFF_BOARD TRUE        #define SYS_CPCI_BUS_NUMBER    1        #define SYS_SM_SYSTEM_MEM_POLL        /* #undef  INCLUDE_SM_SEQ_ADDR */        boot device          : dc        processor number     : 0        host name            : sunray        inet on ethernet (e) : 124.170.16.109:ffffff00        inet on backplane (b): 124.200.200.1:ffffff00        host inet (h)        : 124.170.16.143        gateway inet (g)     : 124.170.16.233        target name (tn)     : alpha   MCPN750-2:        #define SM_OFF_BOARD TRUE        #define SYS_CPCI_BUS_NUMBER    1        #define SYS_SM_SYSTEM_MEM_POLL        /* #undef  INCLUDE_SM_SEQ_ADDR */        boot device          : sm        processor number     : 2        host name            : sunray        inet on ethernet (e) :        inet on backplane (b):        host inet (h)        : 124.170.16.143        gateway inet (g)     :        target name (tn)     : beta.CE.ne 6.IP "5)"MCPN750 master, MCPN750 anchor, no sequential addressing:.CS   MCP750:        #define SM_OFF_BOARD TRUE        #undef  SYS_SM_SYSTEM_MEM_POLL        #undef  INCLUDE_SM_SEQ_ADDR        boot device          : sm        processor number     : 1        host name            : sunray        inet on ethernet (e) : 124.170.16.112        inet on backplane (b): 124.200.200.1        host inet (h)        : 124.170.16.143        gateway inet (g)     : 124.200.200.2        user (u)             : ball        ftp password (pw) (blank = use rsh):        flags (f)            : 0x0        target name (tn)     : gamma   MCPN750-1:        #define SM_OFF_BOARD FALSE        #undef  SYS_SM_SYSTEM_MEM_POLL        #undef  INCLUDE_SM_SEQ_ADDR        boot device          : dc        processor number     : 0        host name            : sunray        inet on ethernet (e) : 124.170.16.109        inet on backplane (b): 124.200.200.2:ffffff00        host inet (h)        : 124.170.16.143        gateway inet (g)     : 124.170.16.233        target name (tn)     : alpha   MCPN750-2:        #define SM_OFF_BOARD TRUE        #undef  SYS_SM_SYSTEM_MEM_POLL        #undef  INCLUDE_SM_SEQ_ADDR        boot device          : sm        processor number     : 2        host name            : sunray        inet on ethernet (e) : 124.170.16.110        inet on backplane (b): 124.200.200.3

⌨️ 快捷键说明

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