<p dir="ltr">Sorry I am completely out of sort here, </p>
<p dir="ltr">should I register it on a PCI bus without any ID table?</p>
<div class="gmail_quote">On 15 Apr 2016 7:43 p.m., &quot;Gadre Nayan&quot; &lt;<a href="mailto:gadrenayan@gmail.com">gadrenayan@gmail.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Oh offcourse, I forgot.</p>
<p dir="ltr">So then should a char driver interface suffice. </p>
<div class="gmail_quote">On 15 Apr 2016 7:29 p.m., &quot;Greg KH&quot; &lt;<a href="mailto:greg@kroah.com" target="_blank">greg@kroah.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Fri, Apr 15, 2016 at 01:59:12PM +0530, Gadre Nayan wrote:<br>
&gt; Dear all,<br>
&gt;<br>
&gt; I am trying to test a dummy UIO driver to get timer interrupt events<br>
&gt; in Userspace.<br>
&gt;<br>
&gt; I register the UIO driver as a platform driver:<br>
&gt;<br>
&gt; static struct platform_device *uio_dummy_device;<br>
&gt;<br>
&gt; static struct device_driver uio_dummy_driver = {<br>
&gt;         .name           = &quot;uio_dummy&quot;,<br>
&gt;         .bus            = &amp;platform_bus_type,<br>
&gt;         .probe          = uio_dummy_probe,<br>
&gt;         .remove         = uio_dummy_remove,<br>
&gt;         .shutdown       = uio_dummy_shutdown,<br>
&gt; };<br>
&gt;<br>
&gt; /*<br>
&gt;  * Main initialization/remove routines<br>
&gt;  */<br>
&gt; static int __init uio_dummy_init(void)<br>
&gt; {<br>
&gt;         printk(&quot;uio_dummy_init( )\n&quot; );<br>
&gt;         uio_dummy_device = platform_device_register_simple(&quot;uio_dummy&quot;, -1,<br>
&gt;                                                            NULL, 0);<br>
<br>
Why are you using a platform driver and device on x86?  That&#39;s not going<br>
to work at all, as your device doesn&#39;t have an irq.  Please use this on<br>
a &quot;real&quot; device that has an interrupt assigned to it.<br>
<br>
hope this helps,<br>
<br>
greg k-h<br>
</blockquote></div>
</blockquote></div>