Make this C++ safe.

This commit is contained in:
thorpej 2001-01-07 03:59:31 +00:00
parent f4f6931307
commit 7b9c3218e2

View File

@ -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 @@ struct alpha_pci_io_ops {
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 @@ extern const struct alpha_pci_io_ops *alpha_pci_io_switch;
#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_ */