-/* $OpenBSD: if_cnmac.c,v 1.19 2014/08/11 19:00:50 miod Exp $ */
+/* $OpenBSD: if_cnmac.c,v 1.20 2014/12/19 22:44:58 guenther Exp $ */
/*
* Copyright (c) 2007 Internet Initiative Japan, Inc.
#include <sys/stdint.h> /* uintptr_t */
#include <sys/sysctl.h>
#include <sys/syslog.h>
+#include <sys/endian.h>
#ifdef MBUF_TIMESTAMP
#include <sys/time.h>
#endif
#include <machine/bus.h>
#include <machine/intr.h>
-#include <machine/endian.h>
#include <machine/octeonvar.h>
#include <machine/octeon_model.h>
-/* $OpenBSD: db_access.c,v 1.12 2014/09/14 14:17:24 jsg Exp $ */
+/* $OpenBSD: db_access.c,v 1.13 2014/12/19 22:44:58 guenther Exp $ */
/* $NetBSD: db_access.c,v 1.8 1994/10/09 08:37:35 mycroft Exp $ */
/*
*/
#include <sys/param.h>
+#include <sys/endian.h>
#include <machine/db_machdep.h> /* type definitions */
-#include <machine/endian.h>
#include <ddb/db_access.h>
-/* $OpenBSD: audio.c,v 1.124 2014/11/16 12:30:59 deraadt Exp $ */
+/* $OpenBSD: audio.c,v 1.125 2014/12/19 22:44:58 guenther Exp $ */
/* $NetBSD: audio.c,v 1.119 1999/11/09 16:50:47 augustss Exp $ */
/*
#include <sys/audioio.h>
#include <sys/device.h>
#include <sys/task.h>
+#include <sys/endian.h>
#include <dev/audio_if.h>
#include <dev/rndvar.h>
-#include <machine/endian.h>
-
#include "wskbd.h" /* NWSKBD (mixer tuning using keyboard) */
#ifdef AUDIO_DEBUG
-/* $OpenBSD: if_ath_cardbus.c,v 1.16 2010/09/06 19:20:21 deraadt Exp $ */
+/* $OpenBSD: if_ath_cardbus.c,v 1.17 2014/12/19 22:44:58 guenther Exp $ */
/* $NetBSD: if_ath_cardbus.c,v 1.4 2004/08/02 19:14:28 mycroft Exp $ */
/*
#include <sys/errno.h>
#include <sys/device.h>
#include <sys/gpio.h>
-
-#include <machine/endian.h>
+#include <sys/endian.h>
#include <net/if.h>
#include <net/if_dl.h>
-/* $OpenBSD: if_atw_cardbus.c,v 1.20 2011/04/02 17:47:04 jasper Exp $ */
+/* $OpenBSD: if_atw_cardbus.c,v 1.21 2014/12/19 22:44:58 guenther Exp $ */
/* $NetBSD: if_atw_cardbus.c,v 1.9 2004/07/23 07:07:55 dyoung Exp $ */
/*-
#include <sys/ioctl.h>
#include <sys/errno.h>
#include <sys/device.h>
-
-#include <machine/endian.h>
+#include <sys/endian.h>
#include <net/if.h>
#include <net/if_dl.h>
-/* $OpenBSD: if_fxp_cardbus.c,v 1.33 2014/08/11 12:45:45 mpi Exp $ */
+/* $OpenBSD: if_fxp_cardbus.c,v 1.34 2014/12/19 22:44:58 guenther Exp $ */
/* $NetBSD: if_fxp_cardbus.c,v 1.12 2000/05/08 18:23:36 thorpej Exp $ */
/*
#include <sys/kernel.h>
#include <sys/timeout.h>
#include <sys/device.h>
+#include <sys/endian.h>
#include <net/if.h>
#include <net/if_dl.h>
#include <net/if_types.h>
#include <net/if_media.h>
-#include <machine/endian.h>
-
#if NBPFILTER > 0
#include <net/bpf.h>
#endif
-/* $OpenBSD: if_rl_cardbus.c,v 1.27 2014/11/24 02:03:37 brad Exp $ */
+/* $OpenBSD: if_rl_cardbus.c,v 1.28 2014/12/19 22:44:58 guenther Exp $ */
/* $NetBSD: if_rl_cardbus.c,v 1.3.8.3 2001/11/14 19:14:02 nathanw Exp $ */
/*
#include <sys/kernel.h>
#include <sys/timeout.h>
#include <sys/device.h>
+#include <sys/endian.h>
#include <net/if.h>
#include <net/if_dl.h>
#include <net/if_types.h>
#include <net/if_media.h>
-#include <machine/endian.h>
-
#if NBPFILTER > 0
#include <net/bpf.h>
#endif
-/* $OpenBSD: if_rtw_cardbus.c,v 1.22 2014/11/18 23:55:01 krw Exp $ */
+/* $OpenBSD: if_rtw_cardbus.c,v 1.23 2014/12/19 22:44:58 guenther Exp $ */
/* $NetBSD: if_rtw_cardbus.c,v 1.4 2004/12/20 21:05:34 dyoung Exp $ */
/*-
#include <sys/ioctl.h>
#include <sys/errno.h>
#include <sys/device.h>
-
-#include <machine/endian.h>
+#include <sys/endian.h>
#include <net/if.h>
#include <net/if_dl.h>
-/* $OpenBSD: acx.c,v 1.107 2014/09/14 14:17:24 jsg Exp $ */
+/* $OpenBSD: acx.c,v 1.108 2014/12/19 22:44:58 guenther Exp $ */
/*
* Copyright (c) 2006 Jonathan Gray <jsg@openbsd.org>
#include <sys/ioctl.h>
#include <sys/errno.h>
#include <sys/device.h>
+#include <sys/endian.h>
#include <machine/bus.h>
-#include <machine/endian.h>
#include <machine/intr.h>
#include <net/if.h>
-/* $OpenBSD: ar5008.c,v 1.26 2014/07/22 13:12:11 mpi Exp $ */
+/* $OpenBSD: ar5008.c,v 1.27 2014/12/19 22:44:58 guenther Exp $ */
/*-
* Copyright (c) 2009 Damien Bergamini <damien.bergamini@free.fr>
#include <sys/conf.h>
#include <sys/device.h>
#include <sys/stdint.h> /* uintptr_t */
+#include <sys/endian.h>
#include <machine/bus.h>
-#include <machine/endian.h>
#include <machine/intr.h>
#if NBPFILTER > 0
-/* $OpenBSD: ar5416.c,v 1.14 2014/07/22 13:12:11 mpi Exp $ */
+/* $OpenBSD: ar5416.c,v 1.15 2014/12/19 22:44:58 guenther Exp $ */
/*-
* Copyright (c) 2009 Damien Bergamini <damien.bergamini@free.fr>
#include <sys/timeout.h>
#include <sys/conf.h>
#include <sys/device.h>
+#include <sys/endian.h>
#include <machine/bus.h>
-#include <machine/endian.h>
#include <machine/intr.h>
#if NBPFILTER > 0
-/* $OpenBSD: ar5xxx.h,v 1.51 2013/11/21 16:16:08 mpi Exp $ */
+/* $OpenBSD: ar5xxx.h,v 1.52 2014/12/19 22:44:58 guenther Exp $ */
/*
* Copyright (c) 2004, 2005, 2006, 2007 Reyk Floeter <reyk@openbsd.org>
#include <sys/socket.h>
#include <sys/sockio.h>
#include <sys/errno.h>
+#include <sys/endian.h>
-#include <machine/endian.h>
#include <machine/bus.h>
#include <net/if.h>
-/* $OpenBSD: ar9003.c,v 1.30 2014/07/22 13:12:11 mpi Exp $ */
+/* $OpenBSD: ar9003.c,v 1.31 2014/12/19 22:44:58 guenther Exp $ */
/*-
* Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr>
#include <sys/conf.h>
#include <sys/device.h>
#include <sys/stdint.h> /* uintptr_t */
+#include <sys/endian.h>
#include <machine/bus.h>
-#include <machine/endian.h>
#include <machine/intr.h>
#if NBPFILTER > 0
-/* $OpenBSD: ar9280.c,v 1.20 2014/07/22 13:12:11 mpi Exp $ */
+/* $OpenBSD: ar9280.c,v 1.21 2014/12/19 22:44:58 guenther Exp $ */
/*-
* Copyright (c) 2009 Damien Bergamini <damien.bergamini@free.fr>
#include <sys/timeout.h>
#include <sys/conf.h>
#include <sys/device.h>
+#include <sys/endian.h>
#include <machine/bus.h>
-#include <machine/endian.h>
#include <machine/intr.h>
#if NBPFILTER > 0
-/* $OpenBSD: ar9285.c,v 1.21 2014/07/22 13:12:11 mpi Exp $ */
+/* $OpenBSD: ar9285.c,v 1.22 2014/12/19 22:44:58 guenther Exp $ */
/*-
* Copyright (c) 2009-2010 Damien Bergamini <damien.bergamini@free.fr>
#include <sys/timeout.h>
#include <sys/conf.h>
#include <sys/device.h>
+#include <sys/endian.h>
#include <machine/bus.h>
-#include <machine/endian.h>
#include <machine/intr.h>
#if NBPFILTER > 0
-/* $OpenBSD: ar9287.c,v 1.19 2014/07/22 13:12:11 mpi Exp $ */
+/* $OpenBSD: ar9287.c,v 1.20 2014/12/19 22:44:58 guenther Exp $ */
/*-
* Copyright (c) 2009 Damien Bergamini <damien.bergamini@free.fr>
#include <sys/timeout.h>
#include <sys/conf.h>
#include <sys/device.h>
+#include <sys/endian.h>
#include <machine/bus.h>
-#include <machine/endian.h>
#include <machine/intr.h>
#if NBPFILTER > 0
-/* $OpenBSD: ar9380.c,v 1.19 2014/07/22 13:12:11 mpi Exp $ */
+/* $OpenBSD: ar9380.c,v 1.20 2014/12/19 22:44:58 guenther Exp $ */
/*-
* Copyright (c) 2011 Damien Bergamini <damien.bergamini@free.fr>
#include <sys/queue.h>
#include <sys/conf.h>
#include <sys/device.h>
+#include <sys/endian.h>
#include <machine/bus.h>
-#include <machine/endian.h>
#if NBPFILTER > 0
#include <net/bpf.h>
-/* $OpenBSD: arcofi.c,v 1.10 2014/08/20 07:19:42 ratchov Exp $ */
+/* $OpenBSD: arcofi.c,v 1.11 2014/12/19 22:44:58 guenther Exp $ */
/*
* Copyright (c) 2011 Miodrag Vallat.
#include <sys/device.h>
#include <sys/kernel.h>
#include <sys/proc.h>
+#include <sys/endian.h>
#include <sys/audioio.h>
#include <dev/audio_if.h>
#include <machine/autoconf.h>
#include <machine/bus.h>
-#include <machine/endian.h>
#include <machine/intr.h>
#include <dev/ic/arcofivar.h>
-/* $OpenBSD: ath.c,v 1.101 2014/07/12 18:48:17 tedu Exp $ */
+/* $OpenBSD: ath.c,v 1.102 2014/12/19 22:44:58 guenther Exp $ */
/* $NetBSD: ath.c,v 1.37 2004/08/18 21:59:39 dyoung Exp $ */
/*-
#include <sys/errno.h>
#include <sys/timeout.h>
#include <sys/gpio.h>
+#include <sys/endian.h>
-#include <machine/endian.h>
#include <machine/bus.h>
#include <net/if.h>
* NB: Preserve byte order of IV for packet
* sniffers; it doesn't matter otherwise.
*/
-#if _BYTE_ORDER == _BIG_ENDIAN
+#if BYTE_ORDER == BIG_ENDIAN
ivp[0] = iv >> 0;
ivp[1] = iv >> 8;
ivp[2] = iv >> 16;
-/* $OpenBSD: athn.c,v 1.83 2014/07/22 13:12:11 mpi Exp $ */
+/* $OpenBSD: athn.c,v 1.84 2014/12/19 22:44:58 guenther Exp $ */
/*-
* Copyright (c) 2009 Damien Bergamini <damien.bergamini@free.fr>
#include <sys/conf.h>
#include <sys/device.h>
#include <sys/stdint.h> /* uintptr_t */
+#include <sys/endian.h>
#include <machine/bus.h>
-#include <machine/endian.h>
#include <machine/intr.h>
#if NBPFILTER > 0
-/* $OpenBSD: atw.c,v 1.83 2014/07/12 18:48:17 tedu Exp $ */
+/* $OpenBSD: atw.c,v 1.84 2014/12/19 22:44:58 guenther Exp $ */
/* $NetBSD: atw.c,v 1.69 2004/07/23 07:07:55 dyoung Exp $ */
/*-
#include <sys/errno.h>
#include <sys/device.h>
#include <sys/time.h>
-
-#include <machine/endian.h>
+#include <sys/endian.h>
#include <net/if.h>
#include <net/if_dl.h>
-/* $OpenBSD: bwi.c,v 1.111 2014/12/16 18:03:17 miod Exp $ */
+/* $OpenBSD: bwi.c,v 1.112 2014/12/19 22:44:58 guenther Exp $ */
/*
* Copyright (c) 2007 The DragonFly Project. All rights reserved.
#include <sys/socket.h>
#include <sys/sockio.h>
#include <sys/systm.h>
+#include <sys/endian.h>
#include <machine/bus.h>
-#include <machine/endian.h>
#include <machine/intr.h>
#include <net/if.h>
-/* $OpenBSD: dpt.c,v 1.34 2013/05/30 16:15:02 deraadt Exp $ */
+/* $OpenBSD: dpt.c,v 1.35 2014/12/19 22:44:58 guenther Exp $ */
/* $NetBSD: dpt.c,v 1.12 1999/10/23 16:26:33 ad Exp $ */
/*-
#include <sys/queue.h>
#include <sys/proc.h>
#include <sys/buf.h>
+#include <sys/endian.h>
-#include <machine/endian.h>
#include <machine/bus.h>
#include <scsi/scsi_all.h>
-/* $OpenBSD: gem.c,v 1.106 2014/08/27 05:54:15 dlg Exp $ */
+/* $OpenBSD: gem.c,v 1.107 2014/12/19 22:44:58 guenther Exp $ */
/* $NetBSD: gem.c,v 1.1 2001/09/16 00:11:43 eeh Exp $ */
/*
#include <sys/ioctl.h>
#include <sys/errno.h>
#include <sys/device.h>
-
-#include <machine/endian.h>
+#include <sys/endian.h>
#include <net/if.h>
#include <net/if_dl.h>
-/* $OpenBSD: malo.c,v 1.102 2014/09/14 14:17:24 jsg Exp $ */
+/* $OpenBSD: malo.c,v 1.103 2014/12/19 22:44:58 guenther Exp $ */
/*
* Copyright (c) 2006 Claudio Jeker <claudio@openbsd.org>
#include <sys/socket.h>
#include <sys/sockio.h>
#include <sys/systm.h>
+#include <sys/endian.h>
#include <machine/bus.h>
-#include <machine/endian.h>
#include <machine/intr.h>
#include <net/if.h>
-/* $OpenBSD: pgt.c,v 1.75 2014/07/22 13:12:12 mpi Exp $ */
+/* $OpenBSD: pgt.c,v 1.76 2014/12/19 22:44:58 guenther Exp $ */
/*
* Copyright (c) 2006 Claudio Jeker <claudio@openbsd.org>
#include <sys/device.h>
#include <machine/bus.h>
-#include <machine/endian.h>
#include <machine/intr.h>
#include <net/if.h>
-/* $OpenBSD: rt2560.c,v 1.67 2014/09/06 05:41:35 jsg Exp $ */
+/* $OpenBSD: rt2560.c,v 1.68 2014/12/19 22:44:58 guenther Exp $ */
/*-
* Copyright (c) 2005, 2006
#include <sys/timeout.h>
#include <sys/conf.h>
#include <sys/device.h>
+#include <sys/endian.h>
#include <machine/bus.h>
-#include <machine/endian.h>
#include <machine/intr.h>
#if NBPFILTER > 0
-/* $OpenBSD: rt2661.c,v 1.76 2014/09/06 05:41:35 jsg Exp $ */
+/* $OpenBSD: rt2661.c,v 1.77 2014/12/19 22:44:58 guenther Exp $ */
/*-
* Copyright (c) 2006
#include <sys/conf.h>
#include <sys/device.h>
#include <sys/queue.h>
+#include <sys/endian.h>
#include <machine/bus.h>
-#include <machine/endian.h>
#include <machine/intr.h>
#if NBPFILTER > 0
-/* $OpenBSD: rt2860.c,v 1.76 2014/11/18 02:37:30 tedu Exp $ */
+/* $OpenBSD: rt2860.c,v 1.77 2014/12/19 22:44:58 guenther Exp $ */
/*-
* Copyright (c) 2007-2010 Damien Bergamini <damien.bergamini@free.fr>
#include <sys/timeout.h>
#include <sys/conf.h>
#include <sys/device.h>
+#include <sys/endian.h>
#include <machine/bus.h>
-#include <machine/endian.h>
#include <machine/intr.h>
#if NBPFILTER > 0
-/* $OpenBSD: rtw.c,v 1.87 2014/07/13 23:10:23 deraadt Exp $ */
+/* $OpenBSD: rtw.c,v 1.88 2014/12/19 22:44:58 guenther Exp $ */
/* $NetBSD: rtw.c,v 1.29 2004/12/27 19:49:16 dyoung Exp $ */
/*-
#include <sys/socket.h>
#include <sys/time.h>
#include <sys/types.h>
+#include <sys/endian.h>
-#include <machine/endian.h>
#include <machine/bus.h>
#include <machine/intr.h> /* splnet */
-/* $OpenBSD: siop.c,v 1.68 2014/07/13 23:10:23 deraadt Exp $ */
+/* $OpenBSD: siop.c,v 1.69 2014/12/19 22:44:58 guenther Exp $ */
/* $NetBSD: siop.c,v 1.79 2005/11/18 23:10:32 bouyer Exp $ */
/*
#include <sys/malloc.h>
#include <sys/buf.h>
#include <sys/kernel.h>
+#include <sys/endian.h>
-#include <machine/endian.h>
#include <machine/bus.h>
#include <dev/microcode/siop/siop.out>
-/* $OpenBSD: siop_common.c,v 1.35 2012/02/24 06:19:00 guenther Exp $ */
+/* $OpenBSD: siop_common.c,v 1.36 2014/12/19 22:44:58 guenther Exp $ */
/* $NetBSD: siop_common.c,v 1.37 2005/02/27 00:27:02 perry Exp $ */
/*
#include <sys/buf.h>
#include <sys/kernel.h>
#include <sys/scsiio.h>
+#include <sys/endian.h>
-#include <machine/endian.h>
#include <machine/bus.h>
#include <scsi/scsi_all.h>
-/* $OpenBSD: aicasm.c,v 1.15 2012/12/05 23:20:19 deraadt Exp $ */
+/* $OpenBSD: aicasm.c,v 1.16 2014/12/19 22:44:58 guenther Exp $ */
/*
* Aic7xxx SCSI host adapter firmware asssembler
*
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGES.
*
- * $Id: aicasm.c,v 1.15 2012/12/05 23:20:19 deraadt Exp $
+ * $Id: aicasm.c,v 1.16 2014/12/19 22:44:58 guenther Exp $
*
* $FreeBSD: src/sys/dev/aic7xxx/aicasm/aicasm.c,v 1.37 2004/03/12 21:45:25 trhodes Exp $
*/
#include <string.h>
#include <sysexits.h>
#include <unistd.h>
-
-#if linux
#include <endian.h>
-#else
-#include <machine/endian.h>
-#endif
#include "aicasm.h"
#include "aicasm_symbol.h"
-/* $OpenBSD: aac_pci.c,v 1.24 2009/04/06 15:18:45 kettenis Exp $ */
+/* $OpenBSD: aac_pci.c,v 1.25 2014/12/19 22:44:58 guenther Exp $ */
/*-
* Copyright (c) 2000 Michael Smith
#include <sys/queue.h>
#include <sys/selinfo.h>
#include <sys/rwlock.h>
+#include <sys/endian.h>
#include <machine/bus.h>
-#include <machine/endian.h>
#include <machine/intr.h>
#include <scsi/scsi_all.h>
-/* $OpenBSD: cac_pci.c,v 1.14 2013/05/30 16:15:02 deraadt Exp $ */
+/* $OpenBSD: cac_pci.c,v 1.15 2014/12/19 22:44:58 guenther Exp $ */
/* $NetBSD: cac_pci.c,v 1.10 2001/01/10 16:48:04 ad Exp $ */
/*-
#include <sys/kernel.h>
#include <sys/device.h>
#include <sys/queue.h>
+#include <sys/endian.h>
-#include <machine/endian.h>
#include <machine/bus.h>
#include <dev/pci/pcidevs.h>
-/* $OpenBSD: dpt_pci.c,v 1.8 2013/12/06 21:03:03 deraadt Exp $ */
+/* $OpenBSD: dpt_pci.c,v 1.9 2014/12/19 22:44:58 guenther Exp $ */
/* $NetBSD: dpt_pci.c,v 1.2 1999/09/29 17:33:02 ad Exp $ */
/*
#include <sys/device.h>
#include <sys/queue.h>
#include <sys/proc.h>
+#include <sys/endian.h>
-#include <machine/endian.h>
#include <machine/bus.h>
#ifdef __NetBSD__
-/* $OpenBSD: gdt_pci.c,v 1.23 2014/05/04 20:09:15 sf Exp $ */
+/* $OpenBSD: gdt_pci.c,v 1.24 2014/12/19 22:44:58 guenther Exp $ */
/*
* Copyright (c) 1999, 2000 Niklas Hallqvist. All rights reserved.
#include <sys/kernel.h>
#include <sys/malloc.h>
#include <sys/queue.h>
+#include <sys/endian.h>
#include <machine/bus.h>
-#include <machine/endian.h>
#include <machine/intr.h>
#include <scsi/scsi_all.h>
-/* $OpenBSD: hifn7751reg.h,v 1.45 2005/09/06 18:27:54 jolan Exp $ */
+/* $OpenBSD: hifn7751reg.h,v 1.46 2014/12/19 22:44:58 guenther Exp $ */
/*
* Invertex AEON / Hifn 7751 driver
#ifndef __HIFN_H__
#define __HIFN_H__
-#include <machine/endian.h>
+#include <sys/endian.h>
/*
* Some PCI configuration space offset defines. The names were made
-/* $OpenBSD: if_atw_pci.c,v 1.15 2012/10/18 21:44:21 deraadt Exp $ */
+/* $OpenBSD: if_atw_pci.c,v 1.16 2014/12/19 22:44:58 guenther Exp $ */
/* $NetBSD: if_atw_pci.c,v 1.7 2004/07/23 07:07:55 dyoung Exp $ */
/*-
#include <sys/ioctl.h>
#include <sys/errno.h>
#include <sys/device.h>
-
-#include <machine/endian.h>
+#include <sys/endian.h>
#include <net/if.h>
#include <net/if_dl.h>
-/* $OpenBSD: if_cas.c,v 1.35 2014/11/18 01:56:32 brad Exp $ */
+/* $OpenBSD: if_cas.c,v 1.36 2014/12/19 22:44:58 guenther Exp $ */
/*
*
#include <sys/ioctl.h>
#include <sys/errno.h>
#include <sys/device.h>
-
-#include <machine/endian.h>
+#include <sys/endian.h>
#include <net/if.h>
#include <net/if_dl.h>
-/* $OpenBSD: if_gem_pci.c,v 1.34 2012/10/16 10:58:04 jsg Exp $ */
+/* $OpenBSD: if_gem_pci.c,v 1.35 2014/12/19 22:44:58 guenther Exp $ */
/* $NetBSD: if_gem_pci.c,v 1.1 2001/09/16 00:11:42 eeh Exp $ */
/*
#include <sys/socket.h>
#include <sys/errno.h>
#include <sys/device.h>
-
-#include <machine/endian.h>
+#include <sys/endian.h>
#include <net/if.h>
#include <net/if_dl.h>
-/* $OpenBSD: if_ipw.c,v 1.103 2014/12/19 15:46:22 krw Exp $ */
+/* $OpenBSD: if_ipw.c,v 1.104 2014/12/19 22:44:58 guenther Exp $ */
/*-
* Copyright (c) 2004-2008
#include <sys/systm.h>
#include <sys/conf.h>
#include <sys/device.h>
+#include <sys/endian.h>
#include <machine/bus.h>
-#include <machine/endian.h>
#include <machine/intr.h>
#include <dev/pci/pcireg.h>
-/* $OpenBSD: if_iwi.c,v 1.119 2014/11/18 02:37:30 tedu Exp $ */
+/* $OpenBSD: if_iwi.c,v 1.120 2014/12/19 22:44:58 guenther Exp $ */
/*-
* Copyright (c) 2004-2008
#include <sys/conf.h>
#include <sys/device.h>
#include <sys/task.h>
+#include <sys/endian.h>
#include <machine/bus.h>
-#include <machine/endian.h>
#include <machine/intr.h>
#include <dev/pci/pcireg.h>
-/* $OpenBSD: if_iwn.c,v 1.135 2014/09/10 07:22:09 dcoppa Exp $ */
+/* $OpenBSD: if_iwn.c,v 1.136 2014/12/19 22:44:58 guenther Exp $ */
/*-
* Copyright (c) 2007-2010 Damien Bergamini <damien.bergamini@free.fr>
#include <sys/conf.h>
#include <sys/device.h>
#include <sys/task.h>
+#include <sys/endian.h>
#include <machine/bus.h>
-#include <machine/endian.h>
#include <machine/intr.h>
#include <dev/pci/pcireg.h>
-/* $OpenBSD: if_pcn.c,v 1.31 2014/12/08 16:21:38 brad Exp $ */
+/* $OpenBSD: if_pcn.c,v 1.32 2014/12/19 22:44:58 guenther Exp $ */
/* $NetBSD: if_pcn.c,v 1.26 2005/05/07 09:15:44 is Exp $ */
/*
#include <sys/errno.h>
#include <sys/device.h>
#include <sys/queue.h>
+#include <sys/endian.h>
#include <net/if.h>
#include <net/if_dl.h>
#include <machine/bus.h>
#include <machine/intr.h>
-#include <machine/endian.h>
#include <dev/mii/mii.h>
#include <dev/mii/miivar.h>
-/* $OpenBSD: if_rtw_pci.c,v 1.17 2012/12/05 23:20:20 deraadt Exp $ */
+/* $OpenBSD: if_rtw_pci.c,v 1.18 2014/12/19 22:44:58 guenther Exp $ */
/* $NetBSD: if_rtw_pci.c,v 1.1 2004/09/26 02:33:36 dyoung Exp $ */
/*-
#include <sys/ioctl.h>
#include <sys/errno.h>
#include <sys/device.h>
-
-#include <machine/endian.h>
+#include <sys/endian.h>
#include <net/if.h>
#include <net/if_dl.h>
-/* $OpenBSD: if_wpi.c,v 1.120 2014/07/22 13:12:11 mpi Exp $ */
+/* $OpenBSD: if_wpi.c,v 1.121 2014/12/19 22:44:58 guenther Exp $ */
/*-
* Copyright (c) 2006-2008
#include <sys/conf.h>
#include <sys/device.h>
#include <sys/task.h>
+#include <sys/endian.h>
#include <machine/bus.h>
-#include <machine/endian.h>
#include <machine/intr.h>
#include <dev/pci/pcireg.h>
-/* $OpenBSD: if_xge.c,v 1.57 2014/07/22 13:12:11 mpi Exp $ */
+/* $OpenBSD: if_xge.c,v 1.58 2014/12/19 22:44:58 guenther Exp $ */
/* $NetBSD: if_xge.c,v 1.1 2005/09/09 10:30:27 ragge Exp $ */
/*
#include <sys/kernel.h>
#include <sys/socket.h>
#include <sys/device.h>
+#include <sys/endian.h>
#include <net/if.h>
#include <net/if_dl.h>
#include <machine/bus.h>
#include <machine/intr.h>
-#include <machine/endian.h>
#include <dev/mii/mii.h>
#include <dev/mii/miivar.h>
-/* $OpenBSD: pciide.c,v 1.349 2014/10/16 19:30:59 kettenis Exp $ */
+/* $OpenBSD: pciide.c,v 1.350 2014/12/19 22:44:58 guenther Exp $ */
/* $NetBSD: pciide.c,v 1.127 2001/08/03 01:31:08 tsutsui Exp $ */
/*
#include <sys/systm.h>
#include <sys/device.h>
#include <sys/malloc.h>
+#include <sys/endian.h>
#include <machine/bus.h>
-#include <machine/endian.h>
#include <dev/ata/atavar.h>
#include <dev/ata/satareg.h>
-/* $OpenBSD: siop_pci_common.c,v 1.18 2010/07/23 07:47:13 jsg Exp $ */
+/* $OpenBSD: siop_pci_common.c,v 1.19 2014/12/19 22:44:58 guenther Exp $ */
/* $NetBSD: siop_pci_common.c,v 1.25 2005/06/28 00:28:42 thorpej Exp $ */
/*
#include <sys/malloc.h>
#include <sys/buf.h>
#include <sys/kernel.h>
-
-#include <machine/endian.h>
+#include <sys/endian.h>
#include <dev/pci/pcireg.h>
#include <dev/pci/pcivar.h>
-/* $OpenBSD: rasops.c,v 1.35 2014/12/13 21:05:33 doug Exp $ */
+/* $OpenBSD: rasops.c,v 1.36 2014/12/19 22:44:58 guenther Exp $ */
/* $NetBSD: rasops.c,v 1.35 2001/02/02 06:01:01 marcus Exp $ */
/*-
#include <sys/systm.h>
#include <sys/time.h>
#include <sys/workq.h>
-
-#include <machine/endian.h>
+#include <sys/endian.h>
#include <dev/wscons/wsdisplayvar.h>
#include <dev/wscons/wsconsio.h>
-/* $OpenBSD: rasops1.c,v 1.8 2010/08/28 12:48:14 miod Exp $ */
+/* $OpenBSD: rasops1.c,v 1.9 2014/12/19 22:44:58 guenther Exp $ */
/* $NetBSD: rasops1.c,v 1.11 2000/04/12 14:22:29 pk Exp $ */
/*-
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/time.h>
-#include <machine/endian.h>
+#include <sys/endian.h>
#include <dev/wscons/wsdisplayvar.h>
#include <dev/wscons/wsconsio.h>
-/* $OpenBSD: rasops2.c,v 1.10 2010/08/28 12:48:14 miod Exp $ */
+/* $OpenBSD: rasops2.c,v 1.11 2014/12/19 22:44:59 guenther Exp $ */
/* $NetBSD: rasops2.c,v 1.5 2000/04/12 14:22:29 pk Exp $ */
/*-
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/time.h>
-#include <machine/endian.h>
+#include <sys/endian.h>
#include <dev/wscons/wsdisplayvar.h>
#include <dev/wscons/wsconsio.h>
-/* $OpenBSD: rasops24.c,v 1.9 2010/08/28 12:48:14 miod Exp $ */
+/* $OpenBSD: rasops24.c,v 1.10 2014/12/19 22:44:59 guenther Exp $ */
/* $NetBSD: rasops24.c,v 1.12 2000/04/12 14:22:29 pk Exp $ */
/*-
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/time.h>
-
-#include <machine/endian.h>
+#include <sys/endian.h>
#include <dev/wscons/wsdisplayvar.h>
#include <dev/wscons/wsconsio.h>
-/* $OpenBSD: rasops4.c,v 1.10 2010/08/28 12:48:14 miod Exp $ */
+/* $OpenBSD: rasops4.c,v 1.11 2014/12/19 22:44:59 guenther Exp $ */
/* $NetBSD: rasops4.c,v 1.4 2001/11/15 09:48:15 lukem Exp $ */
/*-
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/time.h>
-#include <machine/endian.h>
+#include <sys/endian.h>
#include <dev/wscons/wsdisplayvar.h>
#include <dev/wscons/wsconsio.h>
-/* $OpenBSD: rasops_masks.h,v 1.4 2008/06/26 05:42:18 ray Exp $ */
+/* $OpenBSD: rasops_masks.h,v 1.5 2014/12/19 22:44:59 guenther Exp $ */
/* $NetBSD: rasops_masks.h,v 1.5 2000/06/13 13:37:01 ad Exp $ */
/*-
#define _RASOPS_MASKS_H_ 1
#include <sys/types.h>
-#include <machine/endian.h>
+#include <sys/endian.h>
/*
* Convenience macros. To get around the problem of dealing with properly
-/* $OpenBSD: ehci.c,v 1.172 2014/12/17 15:27:49 kettenis Exp $ */
+/* $OpenBSD: ehci.c,v 1.173 2014/12/19 22:44:59 guenther Exp $ */
/* $NetBSD: ehci.c,v 1.66 2004/06/30 03:11:56 mycroft Exp $ */
/*
#include <sys/queue.h>
#include <sys/timeout.h>
#include <sys/pool.h>
+#include <sys/endian.h>
#include <machine/bus.h>
-#include <machine/endian.h>
#include <dev/usb/usb.h>
#include <dev/usb/usbdi.h>
-/* $OpenBSD: if_athn_usb.c,v 1.23 2014/10/31 21:19:14 tedu Exp $ */
+/* $OpenBSD: if_athn_usb.c,v 1.24 2014/12/19 22:44:59 guenther Exp $ */
/*-
* Copyright (c) 2011 Damien Bergamini <damien.bergamini@free.fr>
#include <sys/timeout.h>
#include <sys/conf.h>
#include <sys/device.h>
+#include <sys/endian.h>
#include <machine/bus.h>
-#include <machine/endian.h>
#include <machine/intr.h>
#if NBPFILTER > 0
-/* $OpenBSD: if_otus.c,v 1.42 2014/07/13 15:52:49 mpi Exp $ */
+/* $OpenBSD: if_otus.c,v 1.43 2014/12/19 22:44:59 guenther Exp $ */
/*-
* Copyright (c) 2009 Damien Bergamini <damien.bergamini@free.fr>
#include <sys/timeout.h>
#include <sys/conf.h>
#include <sys/device.h>
+#include <sys/endian.h>
#include <machine/bus.h>
-#include <machine/endian.h>
#include <machine/intr.h>
#if NBPFILTER > 0
-/* $OpenBSD: if_ral.c,v 1.128 2014/07/13 15:52:49 mpi Exp $ */
+/* $OpenBSD: if_ral.c,v 1.129 2014/12/19 22:44:59 guenther Exp $ */
/*-
* Copyright (c) 2005, 2006
#include <sys/timeout.h>
#include <sys/conf.h>
#include <sys/device.h>
+#include <sys/endian.h>
#include <machine/bus.h>
-#include <machine/endian.h>
#include <machine/intr.h>
#if NBPFILTER > 0
-/* $OpenBSD: if_rsu.c,v 1.22 2014/07/13 15:52:49 mpi Exp $ */
+/* $OpenBSD: if_rsu.c,v 1.23 2014/12/19 22:44:59 guenther Exp $ */
/*-
* Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr>
#include <sys/timeout.h>
#include <sys/conf.h>
#include <sys/device.h>
+#include <sys/endian.h>
#include <machine/bus.h>
-#include <machine/endian.h>
#include <machine/intr.h>
#if NBPFILTER > 0
-/* $OpenBSD: if_rum.c,v 1.106 2014/07/13 15:52:49 mpi Exp $ */
+/* $OpenBSD: if_rum.c,v 1.107 2014/12/19 22:44:59 guenther Exp $ */
/*-
* Copyright (c) 2005-2007 Damien Bergamini <damien.bergamini@free.fr>
#include <sys/timeout.h>
#include <sys/conf.h>
#include <sys/device.h>
+#include <sys/endian.h>
#include <machine/bus.h>
-#include <machine/endian.h>
#include <machine/intr.h>
#if NBPFILTER > 0
-/* $OpenBSD: if_run.c,v 1.104 2014/09/26 12:04:07 mlarkin Exp $ */
+/* $OpenBSD: if_run.c,v 1.105 2014/12/19 22:44:59 guenther Exp $ */
/*-
* Copyright (c) 2008-2010 Damien Bergamini <damien.bergamini@free.fr>
#include <sys/timeout.h>
#include <sys/conf.h>
#include <sys/device.h>
+#include <sys/endian.h>
#include <machine/bus.h>
-#include <machine/endian.h>
#include <machine/intr.h>
#if NBPFILTER > 0
-/* $OpenBSD: if_uath.c,v 1.63 2014/11/18 02:37:30 tedu Exp $ */
+/* $OpenBSD: if_uath.c,v 1.64 2014/12/19 22:44:59 guenther Exp $ */
/*-
* Copyright (c) 2006
#include <sys/timeout.h>
#include <sys/conf.h>
#include <sys/device.h>
+#include <sys/endian.h>
#include <machine/bus.h>
-#include <machine/endian.h>
#include <machine/intr.h>
#if NBPFILTER > 0
-/* $OpenBSD: if_upgt.c,v 1.64 2014/07/13 15:52:49 mpi Exp $ */
+/* $OpenBSD: if_upgt.c,v 1.65 2014/12/19 22:44:59 guenther Exp $ */
/*
* Copyright (c) 2007 Marcus Glocker <mglocker@openbsd.org>
#include <sys/timeout.h>
#include <sys/conf.h>
#include <sys/device.h>
+#include <sys/endian.h>
#include <machine/bus.h>
-#include <machine/endian.h>
#include <machine/intr.h>
#if NBPFILTER > 0
-/* $OpenBSD: if_urtw.c,v 1.48 2014/09/01 16:02:06 mpi Exp $ */
+/* $OpenBSD: if_urtw.c,v 1.49 2014/12/19 22:44:59 guenther Exp $ */
/*-
* Copyright (c) 2009 Martynas Venckus <martynas@openbsd.org>
#include <sys/timeout.h>
#include <sys/conf.h>
#include <sys/device.h>
+#include <sys/endian.h>
#include <machine/bus.h>
-#include <machine/endian.h>
#if NBPFILTER > 0
#include <net/bpf.h>
#endif
-/* $OpenBSD: if_urtwn.c,v 1.38 2014/07/13 15:52:49 mpi Exp $ */
+/* $OpenBSD: if_urtwn.c,v 1.39 2014/12/19 22:44:59 guenther Exp $ */
/*-
* Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr>
#include <sys/timeout.h>
#include <sys/conf.h>
#include <sys/device.h>
+#include <sys/endian.h>
#include <machine/bus.h>
-#include <machine/endian.h>
#include <machine/intr.h>
#if NBPFILTER > 0
-/* $OpenBSD: if_zyd.c,v 1.104 2014/07/13 15:52:49 mpi Exp $ */
+/* $OpenBSD: if_zyd.c,v 1.105 2014/12/19 22:44:59 guenther Exp $ */
/*-
* Copyright (c) 2006 by Damien Bergamini <damien.bergamini@free.fr>
#include <sys/timeout.h>
#include <sys/conf.h>
#include <sys/device.h>
+#include <sys/endian.h>
#include <machine/bus.h>
-#include <machine/endian.h>
#if NBPFILTER > 0
#include <net/bpf.h>
-/* $OpenBSD: ohci.c,v 1.141 2014/12/08 21:47:10 mpi Exp $ */
+/* $OpenBSD: ohci.c,v 1.142 2014/12/19 22:44:59 guenther Exp $ */
/* $NetBSD: ohci.c,v 1.139 2003/02/22 05:24:16 tsutsui Exp $ */
/* $FreeBSD: src/sys/dev/usb/ohci.c,v 1.22 1999/11/17 22:33:40 n_hibma Exp $ */
#include <sys/queue.h>
#include <sys/timeout.h>
#include <sys/pool.h>
+#include <sys/endian.h>
#include <machine/bus.h>
-#include <machine/endian.h>
#include <dev/usb/usb.h>
#include <dev/usb/usbdi.h>
-/* $OpenBSD: uberry.c,v 1.22 2014/07/12 20:26:33 mpi Exp $ */
+/* $OpenBSD: uberry.c,v 1.23 2014/12/19 22:44:59 guenther Exp $ */
/*-
* Copyright (c) 2006 Theo de Raadt <deraadt@openbsd.org>
#include <sys/timeout.h>
#include <sys/conf.h>
#include <sys/device.h>
+#include <sys/endian.h>
#include <machine/bus.h>
-#include <machine/endian.h>
#include <machine/intr.h>
#include <dev/usb/usb.h>
-/* $OpenBSD: uhci.c,v 1.134 2014/12/17 15:27:50 kettenis Exp $ */
+/* $OpenBSD: uhci.c,v 1.135 2014/12/19 22:44:59 guenther Exp $ */
/* $NetBSD: uhci.c,v 1.172 2003/02/23 04:19:26 simonb Exp $ */
/* $FreeBSD: src/sys/dev/usb/uhci.c,v 1.33 1999/11/17 22:33:41 n_hibma Exp $ */
#include <sys/queue.h>
#include <sys/timeout.h>
#include <sys/pool.h>
+#include <sys/endian.h>
#include <machine/bus.h>
-#include <machine/endian.h>
#include <dev/usb/usb.h>
#include <dev/usb/usbdi.h>
-/* $OpenBSD: uts.c,v 1.34 2014/07/12 18:48:53 tedu Exp $ */
+/* $OpenBSD: uts.c,v 1.35 2014/12/19 22:44:59 guenther Exp $ */
/*
* Copyright (c) 2007 Robert Nagy <robert@openbsd.org>
#include <sys/timeout.h>
#include <sys/conf.h>
#include <sys/device.h>
+#include <sys/endian.h>
#include <machine/bus.h>
-#include <machine/endian.h>
#include <machine/intr.h>
#include <dev/usb/usb.h>
-/* $OpenBSD: xhci.c,v 1.46 2014/12/15 17:10:44 mpi Exp $ */
+/* $OpenBSD: xhci.c,v 1.47 2014/12/19 22:44:59 guenther Exp $ */
/*
* Copyright (c) 2014 Martin Pieuchot
#include <sys/queue.h>
#include <sys/timeout.h>
#include <sys/pool.h>
+#include <sys/endian.h>
#include <machine/bus.h>
-#include <machine/endian.h>
#include <dev/usb/usb.h>
#include <dev/usb/usbdi.h>
* Public domain.
*/
-#include <sys/types.h>
-#include <machine/endian.h>
+#include <sys/endian.h>
#undef htonl
* Public domain.
*/
-#include <sys/types.h>
-#include <machine/endian.h>
+#include <sys/endian.h>
#undef htons
-/* $OpenBSD: bpb.h,v 1.5 2006/12/15 03:04:24 krw Exp $ */
+/* $OpenBSD: bpb.h,v 1.6 2014/12/19 22:44:59 guenther Exp $ */
/* $NetBSD: bpb.h,v 1.6 1997/10/17 11:23:35 ws Exp $ */
/*
* 16-bit and 32-bit quantities on byte boundaries. If this is not true,
* use the macros for the big-endian case.
*/
-#include <machine/endian.h>
+#include <sys/endian.h>
#if (BYTE_ORDER == LITTLE_ENDIAN) && !defined(__STRICT_ALIGNMENT)
#define getushort(x) *((u_int16_t *)(x))
#define getulong(x) *((u_int32_t *)(x))
-/* $OpenBSD: ext2fs.h,v 1.21 2014/07/14 08:54:13 pelikan Exp $ */
+/* $OpenBSD: ext2fs.h,v 1.22 2014/12/19 22:44:59 guenther Exp $ */
/* $NetBSD: ext2fs.h,v 1.10 2000/01/28 16:00:23 bouyer Exp $ */
/*
* Modified for ext2fs by Manuel Bouyer.
*/
-#include <machine/endian.h>
+#include <sys/endian.h>
/*
* Each disk drive contains some number of file systems.