linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Coding device driver for a minor device.
@ 2001-04-07 19:42 Karsten Jeppesen
  2001-04-08  0:53 ` David Schleef
  0 siblings, 1 reply; 3+ messages in thread
From: Karsten Jeppesen @ 2001-04-07 19:42 UTC (permalink / raw)
  To: linuxppc-dev


I have done modules.

Now the problem is that I have 2 pushbuttons that I would like to read.
Looking in the device list I see dev 10, which has a lot of - let us call it
miscellaneous - content. This one seems to fit here. Maybe as a minor 185 or
186.
But how do I locate the device driver for device major 10?

I am certain there is a simple way - somebody knows it?


Sinserely,
Karsten Jeppesen


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Coding device driver for a minor device.
  2001-04-07 19:42 Coding device driver for a minor device Karsten Jeppesen
@ 2001-04-08  0:53 ` David Schleef
  2001-04-08  5:34   ` Karsten Jeppesen
  0 siblings, 1 reply; 3+ messages in thread
From: David Schleef @ 2001-04-08  0:53 UTC (permalink / raw)
  To: Karsten Jeppesen; +Cc: linuxppc-dev


On Sat, Apr 07, 2001 at 12:42:19PM -0700, Karsten Jeppesen wrote:
>
> I have done modules.
>
> Now the problem is that I have 2 pushbuttons that I would like to read.
> Looking in the device list I see dev 10, which has a lot of - let us call it
> miscellaneous - content. This one seems to fit here. Maybe as a minor 185 or
> 186.
> But how do I locate the device driver for device major 10?
>
> I am certain there is a simple way - somebody knows it?

See linux/include/linux/miscdevice.h.  And you should probably use
a minor in the range of 240-255, as those are reserved for local
use.



dave...


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Coding device driver for a minor device.
  2001-04-08  0:53 ` David Schleef
@ 2001-04-08  5:34   ` Karsten Jeppesen
  0 siblings, 0 replies; 3+ messages in thread
From: Karsten Jeppesen @ 2001-04-08  5:34 UTC (permalink / raw)
  To: David Schleef, Karsten Jeppesen; +Cc: linuxppc-dev


Thanks Dave,

Looking through it I decided for major 10, minor 156, the lcd front panel.
It is not merely a local use device rather I have a new ppc platform which
has a front VFD, two push buttons and a tri-state led.

Thaks again,

karsten

> From: David Schleef <ds@schleef.org>
> Reply-To: David Schleef <ds@schleef.org>
> Date: Sat, 7 Apr 2001 17:53:34 -0700
> To: Karsten Jeppesen <karsten@jeppesens.com>
> Cc: linuxppc-dev@lists.linuxppc.org
> Subject: Re: Coding device driver for a minor device.
>
>
> On Sat, Apr 07, 2001 at 12:42:19PM -0700, Karsten Jeppesen wrote:
>>
>> I have done modules.
>>
>> Now the problem is that I have 2 pushbuttons that I would like to read.
>> Looking in the device list I see dev 10, which has a lot of - let us call it
>> miscellaneous - content. This one seems to fit here. Maybe as a minor 185 or
>> 186.
>> But how do I locate the device driver for device major 10?
>>
>> I am certain there is a simple way - somebody knows it?
>
> See linux/include/linux/miscdevice.h.  And you should probably use
> a minor in the range of 240-255, as those are reserved for local
> use.
>
>
>
> dave...
>
>
>


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-04-08  5:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-07 19:42 Coding device driver for a minor device Karsten Jeppesen
2001-04-08  0:53 ` David Schleef
2001-04-08  5:34   ` Karsten Jeppesen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).