diff options
| author | Matthew Wilcox <willy@debian.org> | 2002-11-16 03:46:55 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2002-11-16 03:46:55 -0800 |
| commit | 49ec0f072db58d01de0b995372f58e6a053ec453 (patch) | |
| tree | fb6366a38ea27c73497d281837c49b959505ce6a /include/linux/pci.h | |
| parent | 5be2bc3c89f6813ab0ab21cdd27d6d0f2ee94d91 (diff) | |
[PATCH] eliminate pci_dev name
This removes the pci_dev "->name[]" field, and makes users use the
"struct device" name field instead.
It also trimps it down to 50 bytes and limited the length of the vendor
& device descriptions to 20 bytes each. Now we have three cases:
- unknown vendor & unknown device -> "PCI device %04x:%04x".
Clearly limited to 21 chars.
- known vendor, unknown device -> "PCI device %04x:%04x (%.20s)"
24 + 20 chars
- known vendor, known device -> "%.20s %.20s"
20 + 1 + 20 + 1, EXCEPT:
- multiple devices of the same type add " (#%d)"
so 42 + 4 + 4 = 50. This is the point where an IBMer tells me they
intend to sell a machine with > 9999 PCI devices of the same type ;-)
This limits the PCI IDs to a reasonable amount of space.
For release, I think we do want to go back up to 80 for prettier output
Diffstat (limited to 'include/linux/pci.h')
| -rw-r--r-- | include/linux/pci.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index 1861ec80c66c..7206acd7870b 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -371,7 +371,6 @@ struct pci_dev { struct resource dma_resource[DEVICE_COUNT_DMA]; struct resource irq_resource[DEVICE_COUNT_IRQ]; - char name[90]; /* device name */ char slot_name[8]; /* slot name */ int active; /* ISAPnP: device is active */ int ro; /* ISAPnP: read only */ |
