基于PLX_SDK的Linux下的PCI9054驱动程序的开发

本文介绍了如何基于PLX_SDK开发Linux下的PCI9054驱动程序,包括系统要求、SDK安装、环境变量配置、库函数和测试程序的编译以及驱动程序的编译过程。
摘要由CSDN通过智能技术生成

         来公司也有一段,一直是让我负责做9054驱动程序的开发。这段时间终于差不多了,趁着还熟悉,就整理下。

         既然是9054这种广为流传的芯片,自然有官方的模板代码,再从头开发一套肯定是不划算的。

        于是就有了本文描述的基于PLX_SDK的9054驱动程序的开发。

         首先是安装PLX_SDK的系统要求:

                   1. 内核版本不能高于2.7,即不能是3.0版本的内核

                   2.编译驱动的时候,必须有内核版本对应的内核源代码的支持

         如果以上没有问题,那OK,我们继续。

       第一步:  下官网下载PLX_SDK,有WINDOWS版的,也有Linux版的,这里使用的版本是PLX_SDK_Linux_v6_50_Final_2011-09-30.zip。

     

       第二步: 解压,打开Documentation\PLX_Linux_Release_Notes.htm,查看具体的安装步骤和要求。

                   To install the Linux support files, use the following steps:

1.    Copy the PLX Linux TAR file to the desired working directory, e.g. the user’s home directory or/usr/linux/src.

                     拷贝PLX Linux 压缩包至工作目录,例如/usr/linux/src,这里我的工作目录是/usr/src

2.    If the PLX file contains a .gz extension, the file must first be unzipped, as follows:
            gunzip PlxSdk.tar.gz

PCI8系列 PCI9系列 PCI9054 linux驱动程序 PLX SDK Samples ================================================================ ABOUT This document provides a brief description of the samples included in the PLX SDK. Please refer to the source code in each sample & the PLX SDK User's Manual for additional details. The PLX samples are intended to demonstrate use of the PLX API. The samples are not intended for debug or real world applications, although they can be extended to complex applications. They should be treated as a reference for writing custom software that utilizes the PLX API. Not all samples work with all PLX devices. The PLX API supports numerous PLX chip families in PCI/PCIe, including 6000-series PCI-to-PCI bridges, 9000-series PCI-to-Local bus bridges, & 8000-series PCI/PCIe bridges & switches. Some samples are provided only for specific chip families. SAMPLES - ApiTest Simple application that calls various PLX APIs for a selected device & verifies return codes & parameters. The API calls made depend upon the type of device selected. - DSlave Demonstrates how to read/write from a PLX 9000 PCI BAR space using the PLX API/driver to perform the data transer. This operation is often referred to as "Direct Slave". - DSlave_BypassApi Similar to the 'DSlave' sample, except this sample uses the PLX API only to map a PCI BAR space directly to the application's virtual space. The application can then directly access the space via simple memory dereferencing, bypassing the PLX API/driver & resulting in greater performance, especially for small transfers. The application is responsible for initializing the BAR space, such as setup of translation/remap registers. - LocalToPciInt [9000-series & 8311] Demonstrates how to wait for a generic Local-to-PCI interrupt using the PLX Notification API. - NT_DmaTest [8000-series switches with DMA & NT support] Demonstrates using the DMA engine in a PLX 8000 switch to transfer data through a PLX
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值