Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/alpha/include Make this C++ safe.



details:   https://anonhg.NetBSD.org/src/rev/f0f692f15774
branches:  trunk
changeset: 501752:f0f692f15774
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sun Jan 07 03:59:31 2001 +0000

description:
Make this C++ safe.

diffstat:

 sys/arch/alpha/include/pio.h |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (38 lines):

diff -r f3462ab3b841 -r f0f692f15774 sys/arch/alpha/include/pio.h
--- a/sys/arch/alpha/include/pio.h      Sun Jan 07 01:39:20 2001 +0000
+++ b/sys/arch/alpha/include/pio.h      Sun Jan 07 03:59:31 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pio.h,v 1.5 2000/06/19 12:19:38 simonb Exp $   */
+/*     $NetBSD: pio.h,v 1.6 2001/01/07 03:59:31 thorpej Exp $  */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -39,6 +39,7 @@
 #ifndef _ALPHA_PIO_H_
 #define        _ALPHA_PIO_H_
 
+#include <sys/cdefs.h>
 #include <machine/bus.h>
 
 #ifdef _KERNEL
@@ -53,8 +54,6 @@
        void            (*apio_outl)(bus_addr_t, u_int32_t);
 };
 
-extern const struct alpha_pci_io_ops *alpha_pci_io_switch;
-
 #define        inb(addr)       (*alpha_pci_io_switch->apio_inb)((addr))
 #define        inw(addr)       (*alpha_pci_io_switch->apio_inw)((addr))
 #define        inl(addr)       (*alpha_pci_io_switch->apio_inl)((addr))
@@ -63,7 +62,11 @@
 #define        outw(addr, val) (*alpha_pci_io_switch->apio_outw)((addr), (val))
 #define        outl(addr, val) (*alpha_pci_io_switch->apio_outl)((addr), (val))
 
+__BEGIN_DECLS
+extern const struct alpha_pci_io_ops *alpha_pci_io_switch;
+
 int    alpha_pci_io_enable(int);
+__END_DECLS
 #endif /* _KERNEL */
 
 #endif /* _ALPHA_PIO_H_ */



Home | Main Index | Thread Index | Old Index