mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
* Code cleanup
* 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)
This commit is contained in:
30
include/serial.h
Normal file
30
include/serial.h
Normal file
@@ -0,0 +1,30 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user