]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - include/devices.h
USB: descriptor handling
[karo-tx-uboot.git] / include / devices.h
index 09c2c5f511fa093067b4a9f101e7a1704fc1f154..6b78d5888942faccf2c511fbd6724bcb60e9df27 100644 (file)
@@ -21,7 +21,7 @@
  * MA 02111-1307 USA
  */
 
-#include <lists.h>
+#include <linux/list.h>
 
 #ifndef _DEVICES_H_
 #define _DEVICES_H_
@@ -59,6 +59,7 @@ typedef struct {
 /* Other functions */
 
        void *priv;                     /* Private extensions                   */
+       struct list_head list;
 } device_t;
 
 /*
@@ -82,7 +83,6 @@ typedef struct {
 /*
  * VARIABLES
  */
-extern list_t devlist;
 extern device_t *stdio_devices[];
 extern char *stdio_names[MAX_FILES];
 
@@ -91,8 +91,11 @@ extern char *stdio_names[MAX_FILES];
  */
 int    device_register (device_t * dev);
 int    devices_init (void);
-int    devices_done (void);
 int    device_deregister(char *devname);
+struct list_head* device_get_list(void);
+device_t* device_get_by_name(char* name);
+device_t* device_clone(device_t *dev);
+
 #ifdef CONFIG_LCD
 int    drv_lcd_init (void);
 #endif
@@ -108,5 +111,8 @@ int drv_keyboard_init (void);
 #ifdef CONFIG_USB_TTY
 int    drv_usbtty_init (void);
 #endif
+#ifdef CONFIG_NETCONSOLE
+int    drv_nc_init (void);
+#endif
 
 #endif /* _DEVICES_H_ */