summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/i386
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2003-10-08 15:33:52 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2003-10-08 15:33:52 +0000
commit67113c7655f2bb48f1a3b856f24195eb3077ded4 (patch)
treec7c5e9e2e26de4eb68e2ec7d8d7c5c5f82ff96a0 /c/src/lib/libbsp/i386
parent2003-10-07 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff)
downloadrtems-67113c7655f2bb48f1a3b856f24195eb3077ded4.tar.bz2
2003-10-08 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* comm/uart.h: Add extern "C" guards. * pci/pcibios.h: Ditto.
Diffstat (limited to 'c/src/lib/libbsp/i386')
-rw-r--r--c/src/lib/libbsp/i386/shared/ChangeLog5
-rw-r--r--c/src/lib/libbsp/i386/shared/comm/uart.h9
-rw-r--r--c/src/lib/libbsp/i386/shared/pci/pcibios.h7
3 files changed, 21 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/i386/shared/ChangeLog b/c/src/lib/libbsp/i386/shared/ChangeLog
index a0f4bd98ee..a9eaa59bd1 100644
--- a/c/src/lib/libbsp/i386/shared/ChangeLog
+++ b/c/src/lib/libbsp/i386/shared/ChangeLog
@@ -1,3 +1,8 @@
+2003-10-08 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
+
+ * comm/uart.h: Add extern "C" guards.
+ * pci/pcibios.h: Ditto.
+
2003-09-04 Joel Sherrill <joel@OARcorp.com>
* comm/gdb_glue.c, irq/idt.c, irq/irq.c, irq/irq.h, irq/irq_asm.S,
diff --git a/c/src/lib/libbsp/i386/shared/comm/uart.h b/c/src/lib/libbsp/i386/shared/comm/uart.h
index 116ae15c60..f9bf3a3a53 100644
--- a/c/src/lib/libbsp/i386/shared/comm/uart.h
+++ b/c/src/lib/libbsp/i386/shared/comm/uart.h
@@ -10,6 +10,10 @@
#ifndef _BSPUART_H
#define _BSPUART_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
void BSP_uart_init(int uart, unsigned long baud, unsigned long databits, unsigned long parity, unsigned long stopbits, int hwFlow);
void BSP_uart_set_attributes(int uart, unsigned long baud, unsigned long databits, unsigned long parity, unsigned long stopbits);
void BSP_uart_set_baud(int uart, unsigned long baud);
@@ -166,6 +170,11 @@ extern int BSPBaseBaud;
#define RECEIVE_FIFO_TRIGGER12 0xc0 /* trigger recieve interrupt after 12 byte */
#define TRIG_LEVEL 0xc0 /* Mask for the trigger level */
+#ifdef __cplusplus
+}
+#endif
+
+
#endif /* _BSPUART_H */
diff --git a/c/src/lib/libbsp/i386/shared/pci/pcibios.h b/c/src/lib/libbsp/i386/shared/pci/pcibios.h
index a94df84e4c..30e6926418 100644
--- a/c/src/lib/libbsp/i386/shared/pci/pcibios.h
+++ b/c/src/lib/libbsp/i386/shared/pci/pcibios.h
@@ -30,6 +30,10 @@
#define PCIB_DEVSIG_DEV(x) (((x)>>3) & 0x1f)
#define PCIB_DEVSIG_FUNC(x) ((x) & 0x7)
+#ifdef __cplusplus
+extern "C" {
+#endif
+
int pcib_init(void);
int pcib_find_by_devid(int vendorId, int devId, int idx, int *sig);
int pcib_find_by_class(int classCode, int idx, int *sig);
@@ -45,6 +49,9 @@ int
BSP_pciFindDevice( unsigned short vendorid, unsigned short deviceid,
int instance, int *pbus, int *pdev, int *pfun );
+#ifdef __cplusplus
+}
+#endif
#endif /* _PCIB_H */