]> git.sur5r.net Git - u-boot/blobdiff - include/devices.h
cfi: make flash_get_info() non static
[u-boot] / include / devices.h
index 09c2c5f511fa093067b4a9f101e7a1704fc1f154..84c4514880eb02c98ded2b6726f340db4a60dd6a 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,13 @@ extern char *stdio_names[MAX_FILES];
  */
 int    device_register (device_t * dev);
 int    devices_init (void);
-int    devices_done (void);
+#ifdef CONFIG_SYS_DEVICE_DEREGISTER
 int    device_deregister(char *devname);
+#endif
+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 +113,11 @@ int        drv_keyboard_init (void);
 #ifdef CONFIG_USB_TTY
 int    drv_usbtty_init (void);
 #endif
+#ifdef CONFIG_NETCONSOLE
+int    drv_nc_init (void);
+#endif
+#ifdef CONFIG_JTAG_CONSOLE
+int drv_jtag_console_init (void);
+#endif
 
 #endif /* _DEVICES_H_ */