Source-Changes-HG archive

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

[src/netbsd-1-5]: src/sys/arch/alpha/include Pull up revision 1.6 (requested ...



details:   https://anonhg.NetBSD.org/src/rev/64a5c51d6c58
branches:  netbsd-1-5
changeset: 490534:64a5c51d6c58
user:      jhawk <jhawk%NetBSD.org@localhost>
date:      Thu Jan 25 20:45:39 2001 +0000

description:
Pull up revision 1.6 (requested by thorpej):
  Make this file safe for inclusion in C++ programs.

diffstat:

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

diffs (38 lines):

diff -r 4393f7d2ef3f -r 64a5c51d6c58 sys/arch/alpha/include/pio.h
--- a/sys/arch/alpha/include/pio.h      Thu Jan 25 20:43:58 2001 +0000
+++ b/sys/arch/alpha/include/pio.h      Thu Jan 25 20:45:39 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.5.2.1 2001/01/25 20:45:39 jhawk 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