2002-12-04 20:48:05

by Adrian Bunk

[permalink] [raw]
Subject: Why does the Comtrol Rocketport card not have a major assigned?

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


2002-12-04 21:09:56

by George G. Davis

[permalink] [raw]
Subject: Re: Why does the Comtrol Rocketport card not have a major assigned?

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 [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/

2002-12-04 21:26:06

by Adrian Bunk

[permalink] [raw]
Subject: Why does the _DoubleTalk card_ not have a major assigned?

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

2002-12-04 21:44:30

by Nicolas Pitre

[permalink] [raw]
Subject: Re: Why does the _DoubleTalk card_ not have a major assigned?

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

2002-12-15 00:53:46

by Adrian Bunk

[permalink] [raw]
Subject: Re: Why does the _DoubleTalk card_ not have a major assigned?

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