From 89ccc9285e3bdc3108e6d33dbe83ac9a4f048bc0 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Thu, 1 Nov 2012 18:46:05 -0700 Subject: libpayload: Add a pointer for user data on the USB MSC data structure. This is so the user of libpayload can attach data to the device which it can retrieve when the device is referred to later, for instance in usbdisk_remove. Otherwise, there's no direct connection from the usbdev_t structure to any bookkeeping in the host firmware. Change-Id: I36fe693b0dcd2098e359c26744e376e73bd3a723 Signed-off-by: Gabe Black Reviewed-on: http://review.coreboot.org/2513 Tested-by: build bot (Jenkins) Reviewed-by: Nico Huber --- payloads/libpayload/include/usb/usbmsc.h | 1 + 1 file changed, 1 insertion(+) diff --git a/payloads/libpayload/include/usb/usbmsc.h b/payloads/libpayload/include/usb/usbmsc.h index fafa6f5979..5c3dadc180 100644 --- a/payloads/libpayload/include/usb/usbmsc.h +++ b/payloads/libpayload/include/usb/usbmsc.h @@ -36,6 +36,7 @@ typedef struct { endpoint_t *bulk_in; endpoint_t *bulk_out; int usbdisk_created; + void *data; /* For use by consumers of libpayload. */ } usbmsc_inst_t; #define MSC_INST(dev) ((usbmsc_inst_t*)(dev)->data) -- cgit v1.2.3