From d6f66ca2a0c9f4934f9512601da3b251d09dcfd0 Mon Sep 17 00:00:00 2001 From: Vladimir 'phcoder' Serbinenko Date: Fri, 20 Aug 2010 21:31:33 +0200 Subject: [PATCH] Export serial-related functions from kernel --- conf/mips-yeeloong.rmk | 2 +- include/grub/serial.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/conf/mips-yeeloong.rmk b/conf/mips-yeeloong.rmk index 90949866c..9cbbdf472 100644 --- a/conf/mips-yeeloong.rmk +++ b/conf/mips-yeeloong.rmk @@ -5,7 +5,7 @@ COMMON_CFLAGS += -march=mips3 COMMON_ASFLAGS += -march=mips3 kernel_img_HEADERS += pci.h bitmap.h video.h gfxterm.h font.h \ - bitmap_scale.h bufio.h cs5536.h machine/pci.h + bitmap_scale.h bufio.h cs5536.h machine/pci.h serial.h include $(srcdir)/conf/mips.mk diff --git a/include/grub/serial.h b/include/grub/serial.h index 68cec6fdf..652268b2e 100644 --- a/include/grub/serial.h +++ b/include/grub/serial.h @@ -88,9 +88,9 @@ struct grub_serial_port grub_term_input_t term_in; }; -grub_err_t grub_serial_register (struct grub_serial_port *port); +grub_err_t EXPORT_FUNC(grub_serial_register) (struct grub_serial_port *port); -void grub_serial_unregister (struct grub_serial_port *port); +void EXPORT_FUNC(grub_serial_unregister) (struct grub_serial_port *port); /* Set default settings. */ static inline grub_err_t @@ -114,6 +114,6 @@ grub_serial_config_defaults (struct grub_serial_port *port) void grub_ns8250_init (void); char *grub_serial_ns8250_add_port (grub_port_t port); extern struct grub_serial_driver grub_ns8250_driver; -void grub_serial_unregister_driver (struct grub_serial_driver *driver); +void EXPORT_FUNC(grub_serial_unregister_driver) (struct grub_serial_driver *driver); #endif