From aee44fa37d780cfec95c444f43defd89ded021f0 Mon Sep 17 00:00:00 2001 From: Nico Huber Date: Thu, 6 Jun 2013 10:20:35 +0200 Subject: libpayload: usb: Add interval attribute to endpoints Read bInterval from endpoint descriptors and store it in our endpoint_t struct. The interval is encoded dependently on the device' speed and the endpoint's type. Therefore, it will be normalized to the binary logarithm of the number of microframes, i.e. t = 125us * 2^interval The interval attribute will be used in the xHCI driver. Change-Id: I65a8eda6145faf34666800789f0292e640a8141b Signed-off-by: Nico Huber Reviewed-on: http://review.coreboot.org/3449 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- payloads/libpayload/include/usb/usb.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'payloads/libpayload/include/usb') diff --git a/payloads/libpayload/include/usb/usb.h b/payloads/libpayload/include/usb/usb.h index 3aac2aee6c..ab457088f8 100644 --- a/payloads/libpayload/include/usb/usb.h +++ b/payloads/libpayload/include/usb/usb.h @@ -91,6 +91,8 @@ typedef struct { int toggle; int maxpacketsize; endpoint_type type; + int interval; /* expressed as binary logarithm of the number + of microframes (i.e. t = 125us * 2^interval) */ } endpoint_t; enum { FULL_SPEED = 0, LOW_SPEED = 1, HIGH_SPEED = 2, SUPER_SPEED = 3 }; -- cgit v1.2.3