[PATCH] [POWERPC] Xilinx: hwicap driver
Grant Likely
grant.likely at secretlab.ca
Sat Feb 2 07:11:54 EST 2008
On 2/1/08, Stephen Neuendorffer <stephen.neuendorffer at xilinx.com> wrote:
> This includes code for new fifo-based xps_hwicap in addition to the
> older opb_hwicap, which has a significantly different interface. The
> common code between the two drivers is largely shared.
>
> Significant differences exists between this driver and what is
> supported in the EDK drivers. In particular, most of the
> architecture-specific code for reconfiguring individual FPGA resources
> has been removed. This functionality is likely better provided in a
> user-space support library. In addition, read and write access is
> supported. In addition, although the xps_hwicap cores support
> interrupt-driver mode, this driver only supports polled operation, in
> order to make the code simpler, and since the interrupt processing
> overhead is likely to slow down the throughput under Linux.
>
> Signed-off-by: Stephen Neuendorffer <stephen.neuendorffer at xilinx.com>
>
> Fixed to add mutexes, and a few style issues.
Inconsistent indentation (tabs vs. spaces) in some places. Otherwise:
Acked-by: Grant Likely <grant.likely at secretlab.ca>
g.
> +static int __devexit hwicap_remove(struct device *dev)
> +{
> + struct hwicap_drvdata *drvdata;
> +
> + drvdata = (struct hwicap_drvdata *)dev_get_drvdata(dev);
> +
> + if (!drvdata)
> + return 0;
> +
> + class_device_destroy(icap_class, drvdata->devt);
> + cdev_del(&drvdata->cdev);
> + iounmap(drvdata->base_address);
> + release_mem_region(drvdata->mem_start, drvdata->mem_size);
> + kfree(drvdata);
> + dev_set_drvdata(dev, NULL);
> + probed_devices[MINOR(dev->devt)-xhwicap_minor] = 0;
> +
> + return 0; /* success */
> +}
Here in particular
--
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
More information about the Linuxppc-dev
mailing list