summaryrefslogtreecommitdiff
path: root/sys/isa/pnp.c
diff options
context:
space:
mode:
authorKazutaka YOKOTA <yokota@FreeBSD.org>2001-09-15 10:18:56 +0000
committerKazutaka YOKOTA <yokota@FreeBSD.org>2001-09-15 10:18:56 +0000
commitd117cb4e193498b16f279437b196dba68e3e8f00 (patch)
tree92c2431e88292567e6f37868d51bd998fc2e4bd3 /sys/isa/pnp.c
parentb8febfd1f20fc45253de4814716c26c185fe675d (diff)
downloadsrc-test2-d117cb4e193498b16f279437b196dba68e3e8f00.tar.gz
src-test2-d117cb4e193498b16f279437b196dba68e3e8f00.zip
Notes
Diffstat (limited to 'sys/isa/pnp.c')
-rw-r--r--sys/isa/pnp.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/sys/isa/pnp.c b/sys/isa/pnp.c
index de376202250a..bf7ca97d8cf2 100644
--- a/sys/isa/pnp.c
+++ b/sys/isa/pnp.c
@@ -513,6 +513,15 @@ pnp_create_devices(device_t parent, pnp_id *p, int csn,
scanning -= large_len;
if (PNP_LRES_NUM(tag) == PNP_TAG_ID_ANSI) {
+ if (dev) {
+ /*
+ * This is an optional device
+ * indentifier string. Skipt it
+ * for now.
+ */
+ continue;
+ }
+ /* else mandately card identifier string */
if (large_len > sizeof(buf) - 1)
large_len = sizeof(buf) - 1;
bcopy(resinfo, buf, large_len);
@@ -524,8 +533,6 @@ pnp_create_devices(device_t parent, pnp_id *p, int csn,
large_len--;
buf[large_len] = '\0';
desc = buf;
- if (dev)
- device_set_desc_copy(dev, desc);
continue;
}
@@ -565,6 +572,9 @@ pnp_create_devices(device_t parent, pnp_id *p, int csn,
dev = BUS_ADD_CHILD(parent, ISA_ORDER_PNP, NULL, -1);
if (desc)
device_set_desc_copy(dev, desc);
+ else
+ device_set_desc_copy(dev,
+ pnp_eisaformat(logical_id));
isa_set_vendorid(dev, p->vendor_id);
isa_set_serial(dev, p->serial);
isa_set_logicalid(dev, logical_id);