aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/usb.h
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2005-06-21 00:15:16 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2005-10-28 19:47:46 -0400
commit3099e75a7ccc3c5b0a4cf988a76d9c4a7fa5e91a (patch)
tree8b1e7e5ddf097b347717e64aefb14ab33c9b2f90 /include/linux/usb.h
parent4592bf5a22593704bb9e8c584a81bf6ca4f6cfec (diff)
[PATCH] USB: add notifier functions to the USB core for devices and busses
This should let us get rid of all of the different hooks in the USB core for when something has changed. Also, some other parts of the kernel have wanted to know this kind of information at times. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/usb.h')
-rw-r--r--include/linux/usb.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/usb.h b/include/linux/usb.h
index 207b1ad9d990..a2d923fd54f9 100644
--- a/include/linux/usb.h
+++ b/include/linux/usb.h
@@ -1135,6 +1135,14 @@ usb_maxpacket(struct usb_device *udev, int pipe, int is_out)
1135 1135
1136/* -------------------------------------------------------------------------- */ 1136/* -------------------------------------------------------------------------- */
1137 1137
1138/* Events from the usb core */
1139#define USB_DEVICE_ADD 0x0001
1140#define USB_DEVICE_REMOVE 0x0002
1141#define USB_BUS_ADD 0x0003
1142#define USB_BUS_REMOVE 0x0004
1143extern void usb_register_notify(struct notifier_block *nb);
1144extern void usb_unregister_notify(struct notifier_block *nb);
1145
1138#ifdef DEBUG 1146#ifdef DEBUG
1139#define dbg(format, arg...) printk(KERN_DEBUG "%s: " format "\n" , __FILE__ , ## arg) 1147#define dbg(format, arg...) printk(KERN_DEBUG "%s: " format "\n" , __FILE__ , ## arg)
1140#else 1148#else