serial: make local functions static
Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
This commit is contained in:
parent
6588c78bf3
commit
654f8d0f3d
|
@ -39,39 +39,39 @@ char *stdio_names[MAX_FILES] = { "stdin", "stdout", "stderr" };
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_SYS_DEVICE_NULLDEV
|
#ifdef CONFIG_SYS_DEVICE_NULLDEV
|
||||||
void nulldev_putc(struct stdio_dev *dev, const char c)
|
static void nulldev_putc(struct stdio_dev *dev, const char c)
|
||||||
{
|
{
|
||||||
/* nulldev is empty! */
|
/* nulldev is empty! */
|
||||||
}
|
}
|
||||||
|
|
||||||
void nulldev_puts(struct stdio_dev *dev, const char *s)
|
static void nulldev_puts(struct stdio_dev *dev, const char *s)
|
||||||
{
|
{
|
||||||
/* nulldev is empty! */
|
/* nulldev is empty! */
|
||||||
}
|
}
|
||||||
|
|
||||||
int nulldev_input(struct stdio_dev *dev)
|
static int nulldev_input(struct stdio_dev *dev)
|
||||||
{
|
{
|
||||||
/* nulldev is empty! */
|
/* nulldev is empty! */
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void stdio_serial_putc(struct stdio_dev *dev, const char c)
|
static void stdio_serial_putc(struct stdio_dev *dev, const char c)
|
||||||
{
|
{
|
||||||
serial_putc(c);
|
serial_putc(c);
|
||||||
}
|
}
|
||||||
|
|
||||||
void stdio_serial_puts(struct stdio_dev *dev, const char *s)
|
static void stdio_serial_puts(struct stdio_dev *dev, const char *s)
|
||||||
{
|
{
|
||||||
serial_puts(s);
|
serial_puts(s);
|
||||||
}
|
}
|
||||||
|
|
||||||
int stdio_serial_getc(struct stdio_dev *dev)
|
static int stdio_serial_getc(struct stdio_dev *dev)
|
||||||
{
|
{
|
||||||
return serial_getc();
|
return serial_getc();
|
||||||
}
|
}
|
||||||
|
|
||||||
int stdio_serial_tstc(struct stdio_dev *dev)
|
static int stdio_serial_tstc(struct stdio_dev *dev)
|
||||||
{
|
{
|
||||||
return serial_tstc();
|
return serial_tstc();
|
||||||
}
|
}
|
||||||
|
|
|
@ -256,28 +256,28 @@ void serial_initialize(void)
|
||||||
serial_assign(default_serial_console()->name);
|
serial_assign(default_serial_console()->name);
|
||||||
}
|
}
|
||||||
|
|
||||||
int serial_stub_start(struct stdio_dev *sdev)
|
static int serial_stub_start(struct stdio_dev *sdev)
|
||||||
{
|
{
|
||||||
struct serial_device *dev = sdev->priv;
|
struct serial_device *dev = sdev->priv;
|
||||||
|
|
||||||
return dev->start();
|
return dev->start();
|
||||||
}
|
}
|
||||||
|
|
||||||
int serial_stub_stop(struct stdio_dev *sdev)
|
static int serial_stub_stop(struct stdio_dev *sdev)
|
||||||
{
|
{
|
||||||
struct serial_device *dev = sdev->priv;
|
struct serial_device *dev = sdev->priv;
|
||||||
|
|
||||||
return dev->stop();
|
return dev->stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
void serial_stub_putc(struct stdio_dev *sdev, const char ch)
|
static void serial_stub_putc(struct stdio_dev *sdev, const char ch)
|
||||||
{
|
{
|
||||||
struct serial_device *dev = sdev->priv;
|
struct serial_device *dev = sdev->priv;
|
||||||
|
|
||||||
dev->putc(ch);
|
dev->putc(ch);
|
||||||
}
|
}
|
||||||
|
|
||||||
void serial_stub_puts(struct stdio_dev *sdev, const char *str)
|
static void serial_stub_puts(struct stdio_dev *sdev, const char *str)
|
||||||
{
|
{
|
||||||
struct serial_device *dev = sdev->priv;
|
struct serial_device *dev = sdev->priv;
|
||||||
|
|
||||||
|
|
|
@ -122,7 +122,7 @@ static void handle_error(void)
|
||||||
sci_out(&sh_sci, SCLSR, 0x00);
|
sci_out(&sh_sci, SCLSR, 0x00);
|
||||||
}
|
}
|
||||||
|
|
||||||
void serial_raw_putc(const char c)
|
static void serial_raw_putc(const char c)
|
||||||
{
|
{
|
||||||
while (1) {
|
while (1) {
|
||||||
/* Tx fifo is empty */
|
/* Tx fifo is empty */
|
||||||
|
@ -152,7 +152,7 @@ static int sh_serial_tstc(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int serial_getc_check(void)
|
static int serial_getc_check(void)
|
||||||
{
|
{
|
||||||
unsigned short status;
|
unsigned short status;
|
||||||
|
|
||||||
|
|
|
@ -944,7 +944,7 @@ static void parse_putc(const char c)
|
||||||
CURSOR_SET;
|
CURSOR_SET;
|
||||||
}
|
}
|
||||||
|
|
||||||
void video_putc(struct stdio_dev *dev, const char c)
|
static void video_putc(struct stdio_dev *dev, const char c)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_CFB_CONSOLE_ANSI
|
#ifdef CONFIG_CFB_CONSOLE_ANSI
|
||||||
int i;
|
int i;
|
||||||
|
@ -1158,7 +1158,7 @@ void video_putc(struct stdio_dev *dev, const char c)
|
||||||
flush_cache(VIDEO_FB_ADRS, VIDEO_SIZE);
|
flush_cache(VIDEO_FB_ADRS, VIDEO_SIZE);
|
||||||
}
|
}
|
||||||
|
|
||||||
void video_puts(struct stdio_dev *dev, const char *s)
|
static void video_puts(struct stdio_dev *dev, const char *s)
|
||||||
{
|
{
|
||||||
int count = strlen(s);
|
int count = strlen(s);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue