aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/genhd.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/genhd.h')
-rw-r--r--include/linux/genhd.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/genhd.h b/include/linux/genhd.h
index 7a1ce18..0885237 100644
--- a/include/linux/genhd.h
+++ b/include/linux/genhd.h
@@ -128,6 +128,9 @@ struct hd_struct {
#define GENHD_FL_EXT_DEVT 64 /* allow extended devt */
#define GENHD_FL_NATIVE_CAPACITY 128
#define GENHD_FL_BLOCK_EVENTS_ON_EXCL_WRITE 256
+#ifdef CONFIG_USB_HOST_NOTIFY
+#define GENHD_IF_USB 1
+#endif
enum {
DISK_EVENT_MEDIA_CHANGE = 1 << 0, /* media changed */
@@ -190,6 +193,10 @@ struct gendisk {
struct blk_integrity *integrity;
#endif
int node_id;
+#ifdef CONFIG_USB_HOST_NOTIFY
+ int media_present;
+ int interfaces;
+#endif
};
static inline struct gendisk *part_to_disk(struct hd_struct *part)