lkml.org 
[lkml]   [1999]   [Sep]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: PATCH: Update for the serial driver.
Date
From
Theodore Y. Ts'o wrote:
>
> So we should settle the larger-scale issue of should the kernel take up
> in-kernel memory that maps PCI id's to names in general first, IMHO.
>
> We can certainly add a message saying that "PCI serial card 1415:9501
> detected". Would that solve your issue.

I thought the idea was to remove that functionality out of the kernel
completely. In our case, we're only adding the "names" for the cards
that "our" driver supports. We have a 16 or 20-byte structure per card
already, and if we want, we can declare it all to be init_data.

Anyway, if you don't like the strings-in-the-table approach, we should
move to an exported function from oldproc which returns the name of a
PCI device.

If oldproc is configured to be "on", it will return a pointer to a
string like "Specialix Speed4", while if it is "Off", it should return
a pointer to the string "11CB:9501".

Make sure that the function is always available, wether or not the
OLDPROC configuration option is turned on. This will prevent ifdefs
all over the place.

So we'd get:

printk ("Detected PCI serial card %s at 0x%x: %d ports.\n",
pci_dev_name (pdev), pdev->base[0], table[i].nports);

Printing:

Detected PCI serial card Specialix Speed4 at 0xff00: 4 ports.

or

Detected PCI serial card 1415:9501 at 0xff00: 4 ports.

depending on wether or not "oldproc" is configured.

Ok. I agree on the "overclocking" issue.

(You CAN overheat celerons by the way. Be careful).

Roger.

--
** R.E.Wolff@BitWizard.nl ** http://www.BitWizard.nl/ ** +31-15-2137555 **
*-- BitWizard writes Linux device drivers for any device you may have! --*
------ Microsoft SELLS you Windows, Linux GIVES you the whole house ------


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:53    [W:0.080 / U:1.784 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site