X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=include%2Fdevices.h;h=84c4514880eb02c98ded2b6726f340db4a60dd6a;hb=8d949aff38cfb4388cbd73876e77bcd06d601f20;hp=a27c4e83f1e9bd8ba2ca1d1cd16a91593cca167a;hpb=682011ff6968198da14b89e40d9f55b00f6d91f7;p=oweals%2Fu-boot.git diff --git a/include/devices.h b/include/devices.h index a27c4e83f1..84c4514880 100644 --- a/include/devices.h +++ b/include/devices.h @@ -21,7 +21,7 @@ * MA 02111-1307 USA */ -#include +#include #ifndef _DEVICES_H_ #define _DEVICES_H_ @@ -39,7 +39,7 @@ typedef struct { int flags; /* Device flags: input/output/system */ int ext; /* Supported extensions */ - char name[8]; /* Device name */ + char name[16]; /* Device name */ /* GENERAL functions */ @@ -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 @@ -105,5 +110,14 @@ int drv_video_init (void); #ifdef CONFIG_KEYBOARD int drv_keyboard_init (void); #endif +#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_ */