Skip to contentSkip to conversation

Why does the Comtrol Rocketport card not have a major assigned?

DISCUSSION Adrian Bunk 3 participants 5 messages Dec 4, 2002 – Dec 15, 2002

lore
Share & tools
lore
#0 lore raw

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

Signature · 4 lines
       "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
#1 lore raw
Quoted 8 lines · Adrian Bunk

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

Quoted 15 lines

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/

#2 lore raw

Why does the _DoubleTalk card_ not have a major assigned?

Quoted 9 lines · George G. Davis
Quoted 7 lines · Adrian Bunk

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?

Quoted 6 lines

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.

Quoted 6 lines

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).

Quoted 2 lines

Regards,
George

cu
Adrian

Signature · 4 lines
       "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
#3 lore raw

Re: Why does the _DoubleTalk card_ not have a major assigned?

Quoted 3 lines · Adrian Bunk

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

#4 lore raw

Re: Why does the _DoubleTalk card_ not have a major assigned?

Quoted 10 lines · Nicolas Pitre
Quoted 3 lines · Adrian Bunk

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...).

Quoted 1 line

Nicolas

cu
Adrian

Signature · 4 lines
       "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