mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-22 09:58:52 +09:00
![wdenk](/assets/img/avatar_default.png)
* 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)
31 lines
650 B
C
31 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
|