summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2012-11-01 18:46:05 -0700
committerStefan Reinauer <stefan.reinauer@coreboot.org>2013-02-26 21:20:14 +0100
commit89ccc9285e3bdc3108e6d33dbe83ac9a4f048bc0 (patch)
tree67df2abbe3375d355a293ab691c2ea78652eedd3
parent5e70766f14253f53190ddd49a544460c6bc1e528 (diff)
downloadcoreboot-89ccc9285e3bdc3108e6d33dbe83ac9a4f048bc0.tar.xz
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 <gabeblack@google.com> Reviewed-on: http://review.coreboot.org/2513 Tested-by: build bot (Jenkins) Reviewed-by: Nico Huber <nico.huber@secunet.com>
-rw-r--r--payloads/libpayload/include/usb/usbmsc.h1
1 files changed, 1 insertions, 0 deletions
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)