[openib-general] Generic device driver

Roland Dreier rolandd at cisco.com
Thu Jul 14 08:12:39 PDT 2005


    Suresh> Another newbee question. I only see a Mellanox HCA driver
    Suresh> in the gen2/trunk, which is a PCI device.  Where as, we
    Suresh> have a proprietary implementation of the HCA, where the
    Suresh> PHY is accessed by the host via an FPGA (Host-bridge).

    Suresh> 1. Is there a Generic Device Driver (I see it being
    Suresh> mentioned in many places).  2. If none, can I replace some
    Suresh> files/functions within the Mellanox driver with the low
    Suresh> level addresses etc, to achieve the same.

You will need to write a driver for your hardware.  One way to think
of it is if you have an ethernet interface, then you need to write a
NIC driver for your specific hardware.

For InfiniBand, your driver needs to discover the hardware.  For each
IB device, the driver must fill in a struct ib_device with function
pointers for the methods it implements, and pass the ib_device to
ib_register_device().  In mthca, this is done in mthca_register_device().

 - R.



More information about the general mailing list