Index: uspace/lib/usbhost/include/usb/host/endpoint.h
===================================================================
--- uspace/lib/usbhost/include/usb/host/endpoint.h	(revision b5f813c78023578df239717fa27402f0915a7610)
+++ uspace/lib/usbhost/include/usb/host/endpoint.h	(revision b1dc2825b548f320348604f8b3abe66222a90fd6)
@@ -40,7 +40,10 @@
 #include <fibril_synch.h>
 #include <usb/usb.h>
+#include <atomic.h>
 
 /** Host controller side endpoint structure. */
 typedef struct endpoint {
+	/** Reference count. */
+	atomic_t refcnt;	
 	/** Part of linked list. */
 	link_t link;
@@ -91,4 +94,7 @@
 void endpoint_destroy(endpoint_t *instance);
 
+void endpoint_add_ref(endpoint_t *instance);
+void endpoint_del_ref(endpoint_t *instance);
+
 void endpoint_set_hc_data(endpoint_t *instance,
     void *data, int (*toggle_get)(void *), void (*toggle_set)(void *, int));
