|
|
|
@ -29,8 +29,8 @@ |
|
|
|
|
|
|
|
|
|
DECLARE_GLOBAL_DATA_PTR; |
|
|
|
|
|
|
|
|
|
static struct serial_device *serial_devices = NULL; |
|
|
|
|
static struct serial_device *serial_current = NULL; |
|
|
|
|
static struct serial_device *serial_devices; |
|
|
|
|
static struct serial_device *serial_current; |
|
|
|
|
|
|
|
|
|
void serial_register(struct serial_device *dev) |
|
|
|
|
{ |
|
|
|
@ -52,8 +52,8 @@ void serial_initialize (void) |
|
|
|
|
#if defined(CONFIG_8xx_CONS_SMC1) || defined(CONFIG_8xx_CONS_SMC2) |
|
|
|
|
serial_register(&serial_smc_device); |
|
|
|
|
#endif |
|
|
|
|
#if defined(CONFIG_8xx_CONS_SCC1) || defined(CONFIG_8xx_CONS_SCC2) \ |
|
|
|
|
|| defined(CONFIG_8xx_CONS_SCC3) || defined(CONFIG_8xx_CONS_SCC4) |
|
|
|
|
#if defined(CONFIG_8xx_CONS_SCC1) || defined(CONFIG_8xx_CONS_SCC2) || \ |
|
|
|
|
defined(CONFIG_8xx_CONS_SCC3) || defined(CONFIG_8xx_CONS_SCC4) |
|
|
|
|
serial_register(&serial_scc_device); |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
@ -167,10 +167,9 @@ void serial_reinit_all (void) |
|
|
|
|
{ |
|
|
|
|
struct serial_device *s; |
|
|
|
|
|
|
|
|
|
for (s = serial_devices; s; s = s->next) { |
|
|
|
|
for (s = serial_devices; s; s = s->next) |
|
|
|
|
s->init(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static struct serial_device *get_current(void) |
|
|
|
|
{ |
|
|
|
|