for (index = 0; index < nports; ++index) { if (test_bit(index, &ehci->companion_ports))
len += sysfs_emit_at(buf, len, "%d\n", index + 1);
} return len;
}
/* * Dedicate or undedicate a port to the companion controller. * Syntax is "[-]portnum", where a leading '-' sign means * return control of the port to the EHCI controller.
*/ static ssize_t companion_store(struct device *dev, struct device_attribute *attr, constchar *buf, size_t count)
{ struct ehci_hcd *ehci; int portnum, new_owner;
if (uframe_periodic_max < 100 || uframe_periodic_max >= 125) {
ehci_info(ehci, "rejecting invalid request for " "uframe_periodic_max=%u\n", uframe_periodic_max); return -EINVAL;
}
ret = -EINVAL;
/* * lock, so that our checking does not race with possible periodic * bandwidth allocation through submitting new urbs.
*/
spin_lock_irqsave (&ehci->lock, flags);
/* * for request to decrease max periodic bandwidth, we have to check * to see whether the decrease is possible.
*/ if (uframe_periodic_max < ehci->uframe_periodic_max) {
u8 allocated_max = 0;
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.