PCI8系列PCI9系列PCI9054linux驱动法式PLXSDKSamples================================================================ABOUTThisdocumentprovidesabriefdescriptionofthesamplesincludedinthePLXSDK.Pleaserefertothesourcecodeineachsample&thePLXSDKUser'sManualforadditionaldetails.ThePLXsamplesareintendedtodemonstrateuseofthePLXAPI.Thesamplesarenotintendedfordebugorrealworldapplications,althoughtheycanbeextendedtocomplexapplications.TheyshouldbetreatedasareferenceforwritingcustomsoftwarethatutilizesthePLXAPI.NotallsamplesworkwithallPLXdevices.ThePLXAPIsupportsnumerousPLXchipfamiliesinPCI/PCIe,including6000-seriesPCI-to-PCIbridges,9000-seriesPCI-to-Localbusbridges,&8000-seriesPCI/PCIebridges&switches.Somesamplesareprovidedonlyforspecificchipfamilies.SAMPLES-ApiTestSimpleapplicationthatcallsvariousPLXAPIsforaselecteddevice&verifiesreturncodes¶meters.TheAPIcallsmadedependuponthetypeofdeviceselected.-DSlaveDemonstrateshowtoread/writefromaPLX9000PCIBARspaceusingthePLXAPI/drivertoperformthedatatranser.Thisoperationisoftenreferredtoas"DirectSlave".-DSlave_BypassApiSimilartothe'DSlave'sample,exceptthissampleusesthePLXAPIonlytomapaPCIBARspacedirectlytotheapplication'svirtualspace.Theapplicationcanthendirectlyaccessthespaceviasimplememorydereferencing,bypassingthePLXAPI/driver&resultingingreaterperformance,especiallyforsmalltransfers.TheapplicationisresponsibleforinitializingtheBARspace,suchassetupoftranslation/remapregisters.-LocalToPciInt[9000-series&8311]DemonstrateshowtowaitforagenericLocal-to-PCIinterruptusingthePLXNotificationAPI.-NT_DmaTest[8000-seriesswitcheswithDMA&NTsupport]DemonstratesusingtheDMAengineinaPLX8000switchtotransferdatathroughaPLX
1