/* * ACPI or PNPBIOS should tell us about all platform devices, so we can * skip some blind probes. ISAPNP typically enumerates only plug-in ISA * devices, not built-in things like COM ports.
*/ int pnp_platform_devices;
EXPORT_SYMBOL(pnp_platform_devices);
/** * pnp_register_protocol - adds a pnp protocol to the pnp layer * @protocol: pointer to the corresponding pnp_protocol structure * * Ex protocols: ISAPNP, PNPBIOS, etc
*/ int pnp_register_protocol(struct pnp_protocol *protocol)
{ struct list_head *pos; int nodenum, ret;
ret = device_register(&dev->dev); if (ret)
pnp_delist_device(dev); elseif (dev->protocol->can_wakeup)
device_set_wakeup_capable(&dev->dev,
dev->protocol->can_wakeup(dev));
return ret;
}
/* * pnp_add_device - adds a pnp device to the pnp layer * @dev: pointer to dev to add * * adds to driver model, name database, fixups, interface, etc.
*/ int pnp_add_device(struct pnp_dev *dev)
{ int ret; char buf[128]; int len = 0; struct pnp_id *id;
if (dev->card) return -EINVAL;
ret = __pnp_add_device(dev); if (ret) return ret;
buf[0] = '\0'; for (id = dev->id; id; id = id->next)
len += scnprintf(buf + len, sizeof(buf) - len, " %s", id->id);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.