- No category
advertisement
pciLocalToPciAdrs (replaced with sysLocalToBusAdrs)
Synopsis.
int pciLocalToPciAdrs ( int adrsSpace, char *localAdrs, char **busAdrs, int busId) adrsSpace - specifies which PCI address space. Must be one of the following defined constants:
PCI_MEMORY_SPACE (1) or PCI_IO_SPACE (2).
localAdrs - local address to convert.
busAdrs - where the converted address is returned.
busId - This parameter is not used.
Say the application code allocates a buffer in the PPC440 DRAM. In order for other PCI masters to access this buffer, the buffer's PCI address must be obtained from its corresponding local address.
Description.
Returns.
Example.
OK
, or
ERROR
.
char *localAdrs, *busAdrs;
/* Allocate a 1KB buffer in MPC8240 DRAM */ localAdrs = malloc (1024); if (localAdrs == NULL)
return (ERROR);
/* Find PCI address of buffer */ if (pciLocalToPciAdrs (PCI_MEMORY_SPACE, localAdrs, &busAdrs, 0) == ERROR)
return (ERROR); printf ("buffer local addr=0x%x, buffer PCI
bus address=0x%x\n", localAdrs, busAdrs);
Issued June 20, 2007 M5000 Series: BSP User Guide
147
Deprecated Functions
148
M5000 Series: BSP User Guide Issued June 20, 2007
C
Built In Self Test
(BIST) API.
Issued June 20, 2007
M5000 Series: BSP User Guide
149
advertisement
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Related manuals
advertisement
Table of contents
- 35 sysBusToLocalAdrs
- 36 sysLocalToBusAdrs
- 37 Interrupt Pin
- 37 Interrupt Routing and Sharing
- 38 Interrupt Connection and Enabling
- 39 Overview
- 39 PCI buses and MidasBusID
- 40 PMC slot
- 40 MidasBusIdFromPciBusNo
- 42 MidasBusIdToPciBusNo
- 43 MidasGetPmcBridgeBusNumbers
- 44 MidasPmcSlotInfoGet
- 45 MidasPciSlotInfoGet
- 49 muMessageConnect
- 50 muIsMessageConnected
- 50 muMessageDisconnect
- 50 muMessageEnable
- 54 Overview
- 61 VME Address Modifier (AM) Codes
- 63 VME Master (PCI Slave) Access Windows
- 64 VME Slave (PCI Master) Access Windows
- 66 Functions
- 66 uniPciSlaveImageSet
- 68 uniVmeSlaveImageSet
- 70 uniVmeSlaveImageSetup
- 72 uniImageShow
- 73 Procedure
- 73 Viewing PCI Slave Image Configuration
- 73 Changing PCI Slave Image Configuration
- 73 Option 1
- 74 Option 2
- 75 Option 3
- 79 VME Interrupt Handling
- 80 VME Interrupt Generation
- 81 VxWorks Target Shell Example :
- 82 Universe DMA Driver
- 82 Universe DMA Interface Functions
- 82 uniDmaLibInit
- 83 uniDmaDirect
- 84 uniDmaChainCmdPktCreate
- 85 uniDmaChain
- 85 uniDmaChainStop
- 86 uniDmaNotifyFncSet
- 88 Overview
- 88 PXB Initialization
- 89 PXB DMA Driver
- 92 Configuring JUMBO packets
- 98 Installation
- 98 Files & Directories
- 104 Setting Network Parameters
- 104 TFTP:
- 104 NFS:
- 105 Flash VxWorks image
- 108 Setting up a DMA transaction
- 109 Single DMA transactions
- 110 Chained DMA transactions
- 112 Common status structure
- 112 Address translation functions
- 113 Single blocking DMA transfer example
- 114 Chained DMA transfer example
- 122 Overview
- 122 The MFS Functions
- 122 mfs_open
- 123 mfs_close
- 123 mfs_remove
- 124 mfs_dir
- 124 mfs_seek
- 125 mfs_stat
- 125 mfs_tell
- 126 mfs_eof
- 126 mfs_ftrunc
- 127 mfs_gets
- 128 mfs_read
- 129 mfs_write
- 129 mfs_pwd
- 130 mfs_ini_gettext
- 131 mfs_ini_settext
- 131 mfs_ini_setlong
- 132 mfs_ini_setlongh
- 132 mfs_ini_getlong
- 133 mfs_usr_load_file
- 134 The RACEdrv Section
- 134 The VmeInterface Section
- 135 The BoardInfo Section
- 135 The AutoStart Section
- 138 Overview
- 142 Gigabit Ethernet network communication does not work.
- 142 Command line compilation of the BSP fails.
- 146 pciToLocalAdrs (replaced with sysBusToLocalAdrs)
- 147 pciLocalToPciAdrs (replaced with sysLocalToBusAdrs)
- 150 C-1 Built In Self Test API Contents