All of lore.kernel.org
 help / color / mirror / Atom feed
* Why does the Comtrol Rocketport card not have a major assigned?
@ 2002-12-04 20:55 Adrian Bunk
  2002-12-04 21:16 ` George G. Davis
  0 siblings, 1 reply; 5+ messages in thread
From: Adrian Bunk @ 2002-12-04 20:55 UTC (permalink / raw)
  To: Jim Van Zandt; +Cc: device, linux-kernel

Perhaps it's a silly question but I'd like to know why it is the way it 
is:

The 2.2, 2.4 and 2.5 kernels include a driver for the Comtrol Rocketport 
card (drivers/char/dtlk.c) which uses a local major (it does a
  "register_chrdev(0, "dtlk", &dtlk_fops);
). Is there a reason why it doesn't have a fixed major assigned?

TIA
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


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

* Re: Why does the Comtrol Rocketport card not have a major assigned?
  2002-12-04 20:55 Why does the Comtrol Rocketport card not have a major assigned? Adrian Bunk
@ 2002-12-04 21:16 ` George G. Davis
  2002-12-04 21:33   ` Why does the _DoubleTalk card_ " Adrian Bunk
  0 siblings, 1 reply; 5+ messages in thread
From: George G. Davis @ 2002-12-04 21:16 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: Jim Van Zandt, device, linux-kernel

Adrian Bunk wrote:
> 
> Perhaps it's a silly question but I'd like to know why it is the way it
> is:
> 
> The 2.2, 2.4 and 2.5 kernels include a driver for the Comtrol Rocketport
> card (drivers/char/dtlk.c) which uses a local major (it does a
>   "register_chrdev(0, "dtlk", &dtlk_fops);
> ). Is there a reason why it doesn't have a fixed major assigned?

Huh?:

	dtlk.c - DoubleTalk PC driver for Linux

That doesn't look like the Comtrol Rocketport (drivers/char/rocket.c)
driver to me. : )

Meanwhile 2.4.19 Documentation/devices.txt shows:

 46 char        Comtrol Rocketport serial card
                  0 = /dev/ttyR0        First Rocketport port
                  1 = /dev/ttyR1        Second Rocketport port
                    ...

--
Regards,
George

> TIA
> Adrian
> 
> --
> 
>        "Is there not promise of rain?" Ling Tan asked suddenly out
>         of the darkness. There had been need of rain for many days.
>        "Only a promise," Lao Er said.
>                                        Pearl S. Buck - Dragon Seed
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/

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

* Why does the _DoubleTalk card_ not have a major assigned?
  2002-12-04 21:16 ` George G. Davis
@ 2002-12-04 21:33   ` Adrian Bunk
  2002-12-04 21:50     ` Nicolas Pitre
  0 siblings, 1 reply; 5+ messages in thread
From: Adrian Bunk @ 2002-12-04 21:33 UTC (permalink / raw)
  To: George G. Davis; +Cc: Jim Van Zandt, device, linux-kernel

On Wed, Dec 04, 2002 at 04:16:52PM -0500, George G. Davis wrote:
> Adrian Bunk wrote:
> > Perhaps it's a silly question but I'd like to know why it is the way it
> > is:
> > 
> > The 2.2, 2.4 and 2.5 kernels include a driver for the Comtrol Rocketport
> > card (drivers/char/dtlk.c) which uses a local major (it does a
> >   "register_chrdev(0, "dtlk", &dtlk_fops);
> > ). Is there a reason why it doesn't have a fixed major assigned?
> 
> Huh?:
> 
> 	dtlk.c - DoubleTalk PC driver for Linux
> 
> That doesn't look like the Comtrol Rocketport (drivers/char/rocket.c)
> driver to me. : )

I was thinking about something else related to the Comtrol Rocketport 
when writing my mail, and I mixed the two things...  :-(

Please do a s/Comtrol Rocketport/DoubleTalk/g in my initial mail.

> Meanwhile 2.4.19 Documentation/devices.txt shows:
> 
>  46 char        Comtrol Rocketport serial card
>                   0 = /dev/ttyR0        First Rocketport port
>                   1 = /dev/ttyR1        Second Rocketport port
>                     ...

This is indeed true for the Comtrol Rocketport card but there's no
major for the DoubleTalk card (and this is the card I wanted to write
about).

> Regards,
> George

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


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

* Re: Why does the _DoubleTalk card_ not have a major assigned?
  2002-12-04 21:33   ` Why does the _DoubleTalk card_ " Adrian Bunk
@ 2002-12-04 21:50     ` Nicolas Pitre
  2002-12-15  1:01       ` Adrian Bunk
  0 siblings, 1 reply; 5+ messages in thread
From: Nicolas Pitre @ 2002-12-04 21:50 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: George G. Davis, Jim Van Zandt, device, lkml

On Wed, 4 Dec 2002, Adrian Bunk wrote:

> This is indeed true for the Comtrol Rocketport card but there's no
> major for the DoubleTalk card (and this is the card I wanted to write
> about).

Maybe because it doesn't need a static major?  For funky hardware like the
Doubletalk for which the number of Linux users worldwide can probably be
counted on your fingers you can just grep /proc/devices for its allocated
major and create the /dev node on the fly.


Nicolas


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

* Re: Why does the _DoubleTalk card_ not have a major assigned?
  2002-12-04 21:50     ` Nicolas Pitre
@ 2002-12-15  1:01       ` Adrian Bunk
  0 siblings, 0 replies; 5+ messages in thread
From: Adrian Bunk @ 2002-12-15  1:01 UTC (permalink / raw)
  To: Nicolas Pitre; +Cc: George G. Davis, Jim Van Zandt, device, lkml

On Wed, Dec 04, 2002 at 04:50:50PM -0500, Nicolas Pitre wrote:
> On Wed, 4 Dec 2002, Adrian Bunk wrote:
> 
> > This is indeed true for the Comtrol Rocketport card but there's no
> > major for the DoubleTalk card (and this is the card I wanted to write
> > about).
> 
> Maybe because it doesn't need a static major?  For funky hardware like the
> Doubletalk for which the number of Linux users worldwide can probably be
> counted on your fingers you can just grep /proc/devices for its allocated
> major and create the /dev node on the fly.

Thanks for your answer, I knew that this might have been a silly
question (and my confusing first mail didn't make it better...).

> Nicolas

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


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

end of thread, other threads:[~2002-12-15  0:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-04 20:55 Why does the Comtrol Rocketport card not have a major assigned? Adrian Bunk
2002-12-04 21:16 ` George G. Davis
2002-12-04 21:33   ` Why does the _DoubleTalk card_ " Adrian Bunk
2002-12-04 21:50     ` Nicolas Pitre
2002-12-15  1:01       ` Adrian Bunk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.