-/* $OpenBSD: bus.h,v 1.32 2019/05/13 21:27:59 mpi Exp $ */
+/* $OpenBSD: bus.h,v 1.33 2022/01/04 20:41:42 deraadt Exp $ */
/* $NetBSD: bus.h,v 1.10 1996/12/02 22:19:32 cgd Exp $ */
/*
#ifndef _MACHINE_BUS_H_
#define _MACHINE_BUS_H_
+#ifdef _KERNEL
+
/*
* Addresses (in bus space).
*/
int nsegs, off_t off, int prot, int flags);
#endif /* _ALPHA_BUS_DMA_PRIVATE */
+#endif /* _KERNEL */
+
#endif /* _MACHINE_BUS_H_ */
-/* $OpenBSD: bus.h,v 1.9 2017/05/08 00:27:45 dlg Exp $ */
+/* $OpenBSD: bus.h,v 1.10 2022/01/04 20:41:44 deraadt Exp $ */
/* $NetBSD: bus.h,v 1.1 2006/09/01 21:26:18 uwe Exp $ */
/*-
#ifndef _MACHINE_BUS_H_
#define _MACHINE_BUS_H_
+#ifdef _KERNEL
+
#include <sys/types.h>
typedef u_long bus_addr_t;
int nsegs, off_t off, int prot, int flags);
#endif /* _LANDISK_BUS_DMA_PRIVATE */
+#endif /* _KERNEL */
+
#endif /* _MACHINE_BUS_H_ */
-/* $OpenBSD: bus.h,v 1.34 2020/06/23 01:21:29 jmatthew Exp $ */
+/* $OpenBSD: bus.h,v 1.35 2022/01/04 20:41:44 deraadt Exp $ */
/* $NetBSD: bus.h,v 1.31 2001/09/21 15:30:41 wiz Exp $ */
/*-
#include <sys/atomic.h>
+#ifdef _KERNEL
+
/*
* Debug hooks
*/
bus_dma_segment_t dm_segs[1]; /* segments; variable length */
};
+#endif /* _KERNEL */
+
#endif /* _MACHINE_BUS_H_ */