mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-02 09:30:10 +00:00
281e00a3be
* Patch by Sascha Hauer, 28 Jun: - add generic support for Motorola i.MX architecture - add support for mx1ads, mx1fs2 and scb9328 boards * Patches by Marc Leeman, 23 Jul 2004: - Add define for the PCI/Memory Buffer Configuration Register - corrected comments in cpu/mpc824x/cpu_init.c * Add support for multiple serial interfaces (for example to allow modem dial-in / dial-out)
30 lines
650 B
C
30 lines
650 B
C
#ifndef __SERIAL_H__
|
|
#define __SERIAL_H__
|
|
|
|
#define NAMESIZE 16
|
|
#define CTLRSIZE 8
|
|
|
|
struct serial_device {
|
|
char name[NAMESIZE];
|
|
char ctlr[CTLRSIZE];
|
|
|
|
int (*init) (void);
|
|
void (*setbrg) (void);
|
|
int (*getc) (void);
|
|
int (*tstc) (void);
|
|
void (*putc) (const char c);
|
|
void (*puts) (const char *s);
|
|
|
|
struct serial_device *next;
|
|
};
|
|
|
|
extern struct serial_device serial_smc_device;
|
|
extern struct serial_device serial_scc_device;
|
|
extern struct serial_device * default_serial_console (void);
|
|
|
|
extern void serial_initialize(void);
|
|
extern void serial_devices_init(void);
|
|
extern int serial_assign(char * name);
|
|
extern void serial_reinit_all(void);
|
|
|
|
#endif
|