-/* $OpenBSD: acpi_machdep.c,v 1.86 2022/12/06 01:56:43 cheloha Exp $ */
+/* $OpenBSD: acpi_machdep.c,v 1.87 2023/01/30 10:49:04 jsg Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
*
#include <machine/acpiapm.h>
#include <machine/cpuvar.h>
+#include <machine/npx.h>
#include <dev/acpi/acpivar.h>
#include <dev/acpi/acpidev.h>
#include <dev/isa/isareg.h>
-#include <machine/apmvar.h>
-
#include "apm.h"
#include "isa.h"
#include "ioapic.h"
-/* $OpenBSD: acpiapm.c,v 1.2 2020/04/03 08:24:52 mpi Exp $ */
+/* $OpenBSD: acpiapm.c,v 1.3 2023/01/30 10:49:04 jsg Exp $ */
/*
* Copyright (c) 2007 Ted Unangst <tedu@openbsd.org>
*
#include <sys/param.h>
#include <machine/conf.h>
-#include <sys/event.h>
-
int (*acpiapm_open)(dev_t, int, int, struct proc *);
int (*acpiapm_close)(dev_t, int, int, struct proc *);
-/* $OpenBSD: amdmsr.c,v 1.11 2022/02/21 10:24:28 mpi Exp $ */
+/* $OpenBSD: amdmsr.c,v 1.12 2023/01/30 10:49:04 jsg Exp $ */
/*
* Copyright (c) 2008 Marc Balmer <mbalmer@openbsd.org>
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/device.h>
-#include <sys/gpio.h>
#include <sys/ioctl.h>
#include <sys/conf.h>
-#include <machine/amdmsr.h>
-#include <machine/bus.h>
+#include <machine/amdmsr.h>
#include <machine/cpufunc.h>
-#include <dev/pci/pcireg.h>
-#include <dev/pci/pcivar.h>
-#include <dev/pci/pcidevs.h>
-
#ifdef APERTURE
static int amdmsr_open_cnt;
extern int allowaperture;
-/* $OpenBSD: apic.c,v 1.6 2009/08/13 13:24:48 kettenis Exp $ */
+/* $OpenBSD: apic.c,v 1.7 2023/01/30 10:49:04 jsg Exp $ */
/* $NetBSD: apic.c,v 1.1.2.2 2000/02/21 18:51:00 sommerfeld Exp $ */
/*-
#include <sys/systm.h>
#include <machine/i82489reg.h>
-#include <machine/i82489var.h>
#include <machine/apicvar.h>
void
-/* $OpenBSD: apm.c,v 1.128 2022/12/06 01:56:44 cheloha Exp $ */
+/* $OpenBSD: apm.c,v 1.129 2023/01/30 10:49:04 jsg Exp $ */
/*-
* Copyright (c) 1998-2001 Michael Shalayeff. All rights reserved.
#include <sys/param.h>
#include <sys/systm.h>
-#include <sys/signalvar.h>
#include <sys/kernel.h>
#include <sys/kthread.h>
#include <sys/rwlock.h>
#include <sys/sysctl.h>
-#include <sys/malloc.h>
#include <sys/clockintr.h>
#include <sys/device.h>
#include <sys/fcntl.h>
-#include <sys/ioctl.h>
#include <sys/buf.h>
#include <sys/reboot.h>
#include <sys/event.h>
#include <machine/conf.h>
-#include <machine/cpu.h>
#include <machine/cpufunc.h>
#include <machine/gdt.h>
-#include <machine/psl.h>
#include <dev/isa/isareg.h>
-#include <i386/isa/isa_machdep.h>
-#include <i386/isa/nvram.h>
-#include <dev/isa/isavar.h>
#include <dev/wscons/wsdisplayvar.h>
#include <machine/acpiapm.h>
-/* $OpenBSD: autoconf.c,v 1.108 2022/09/08 10:22:06 kn Exp $ */
+/* $OpenBSD: autoconf.c,v 1.109 2023/01/30 10:49:04 jsg Exp $ */
/* $NetBSD: autoconf.c,v 1.20 1996/05/03 19:41:56 christos Exp $ */
/*-
#include <sys/systm.h>
#include <sys/proc.h>
#include <sys/user.h>
-#include <sys/buf.h>
-#include <sys/disklabel.h>
-#include <sys/conf.h>
#include <sys/reboot.h>
#include <sys/device.h>
-#include <sys/socket.h>
-#include <sys/socketvar.h>
#include <sys/hibernate.h>
#include <net/if.h>
#include <uvm/uvm_extern.h>
-#include <machine/pte.h>
-#include <machine/cpu.h>
#include <machine/gdt.h>
#include <machine/biosvar.h>
-#include <dev/cons.h>
-
#include "ioapic.h"
#include "acpi.h"
#include <machine/i82093var.h>
#endif
-#if NACPI > 0
-#include <dev/acpi/acpivar.h>
-#endif
-
#ifdef MULTIPROCESSOR
#include <machine/mpbiosvar.h>
#endif
-/* $OpenBSD: bios.c,v 1.127 2022/02/21 10:24:28 mpi Exp $ */
+/* $OpenBSD: bios.c,v 1.128 2023/01/30 10:49:04 jsg Exp $ */
/*
* Copyright (c) 1997-2001 Michael Shalayeff
#include <sys/param.h>
#include <sys/systm.h>
-#include <sys/kernel.h>
#include <sys/device.h>
#include <sys/errno.h>
#include <sys/malloc.h>
#include <dev/cons.h>
#include <stand/boot/bootarg.h>
-#include <machine/cpu.h>
-#include <machine/pio.h>
-#include <machine/cpufunc.h>
#include <machine/conf.h>
#include <machine/gdt.h>
-#include <machine/pcb.h>
#include <machine/biosvar.h>
-#include <machine/apmvar.h>
#include <machine/mpbiosvar.h>
#include <machine/smbiosvar.h>
#include <dev/pci/pcivar.h>
-#include <dev/acpi/acpireg.h>
-#include <dev/acpi/acpivar.h>
-
#include "apm.h"
#include "acpi.h"
#include "mpbios.h"
#include "com.h"
#if NCOM > 0
-#include <sys/tty.h>
+#include <sys/termios.h>
#include <dev/ic/comvar.h>
-#include <dev/ic/comreg.h>
#endif
#include "softraid.h"
-/* $OpenBSD: bus_dma.c,v 1.35 2015/12/17 17:16:04 tedu Exp $ */
+/* $OpenBSD: bus_dma.c,v 1.36 2023/01/30 10:49:04 jsg Exp $ */
/*-
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
* All rights reserved.
#include <sys/param.h>
#include <sys/systm.h>
-#include <sys/kernel.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/proc.h>
#include <machine/bus.h>
-#include <dev/isa/isareg.h>
-#include <dev/isa/isavar.h>
-
#include <uvm/uvm_extern.h>
int _bus_dmamap_load_buffer(bus_dma_tag_t, bus_dmamap_t, void *,
-/* $OpenBSD: bus_space.c,v 1.9 2015/04/25 21:31:24 guenther Exp $ */
+/* $OpenBSD: bus_space.c,v 1.10 2023/01/30 10:49:04 jsg Exp $ */
/*-
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
* All rights reserved.
*/
#include <sys/param.h>
-#include <sys/systm.h>
-#include <sys/malloc.h>
-#include <sys/extent.h>
#include <machine/bus.h>
-/* $OpenBSD: conf.c,v 1.174 2022/09/02 20:06:56 miod Exp $ */
+/* $OpenBSD: conf.c,v 1.175 2023/01/30 10:49:04 jsg Exp $ */
/* $NetBSD: conf.c,v 1.75 1996/05/03 19:40:20 christos Exp $ */
/*
#include <sys/param.h>
#include <sys/systm.h>
-#include <sys/buf.h>
#include <sys/device.h>
#include <sys/disklabel.h>
-#include <sys/ioctl.h>
#include <sys/tty.h>
#include <sys/vnode.h>
-/* $OpenBSD: cpu.c,v 1.110 2022/12/06 01:56:44 cheloha Exp $ */
+/* $OpenBSD: cpu.c,v 1.111 2023/01/30 10:49:04 jsg Exp $ */
/* $NetBSD: cpu.c,v 1.1.2.7 2000/06/26 02:04:05 sommerfeld Exp $ */
/*-
#include <sys/timeout.h>
#include <sys/systm.h>
#include <sys/device.h>
-#include <sys/malloc.h>
#include <sys/memrange.h>
#include <sys/atomic.h>
#include <machine/cpufunc.h>
#include <machine/cpuvar.h>
#include <machine/pmap.h>
-#include <machine/vmparam.h>
#include <machine/mpbiosvar.h>
-#include <machine/npx.h>
#include <machine/pcb.h>
#include <machine/specialreg.h>
#include <machine/segments.h>
#include <machine/pio.h>
#if NLAPIC > 0
-#include <machine/apicvar.h>
#include <machine/i82489reg.h>
#include <machine/i82489var.h>
#endif
-/* $OpenBSD: db_interface.c,v 1.44 2022/04/14 19:47:11 naddy Exp $ */
+/* $OpenBSD: db_interface.c,v 1.45 2023/01/30 10:49:05 jsg Exp $ */
/* $NetBSD: db_interface.c,v 1.22 1996/05/03 19:42:00 christos Exp $ */
/*
* Interface to new debugger.
*/
#include <sys/param.h>
-#include <sys/reboot.h>
#include <sys/systm.h>
-#include <sys/mutex.h>
-
-#include <uvm/uvm_extern.h>
#include <dev/cons.h>
#include <machine/db_machdep.h>
-#include <ddb/db_sym.h>
#include <ddb/db_command.h>
#include <ddb/db_extern.h>
-#include <ddb/db_access.h>
#include <ddb/db_output.h>
#include <ddb/db_run.h>
#include <ddb/db_var.h>
-/* $OpenBSD: db_mp.c,v 1.13 2020/09/11 09:27:10 mpi Exp $ */
+/* $OpenBSD: db_mp.c,v 1.14 2023/01/30 10:49:05 jsg Exp $ */
/*
* Copyright (c) 2003, 2004 Andreas Gunnarsson <andreas@openbsd.org>
#include <machine/db_machdep.h>
-#include <ddb/db_output.h>
-
struct db_mutex ddb_mp_mutex = DB_MUTEX_INITIALIZER;
volatile int ddb_state = DDB_STATE_NOT_RUNNING; /* protected by ddb_mp_mutex */
-/* $OpenBSD: db_trace.c,v 1.42 2020/05/14 06:58:54 mpi Exp $ */
+/* $OpenBSD: db_trace.c,v 1.43 2023/01/30 10:49:05 jsg Exp $ */
/* $NetBSD: db_trace.c,v 1.18 1996/05/03 19:42:01 christos Exp $ */
/*
#include <ddb/db_sym.h>
#include <ddb/db_access.h>
#include <ddb/db_variables.h>
-#include <ddb/db_output.h>
#include <ddb/db_interface.h>
/*
-/* $OpenBSD: esm.c,v 1.63 2022/04/16 19:32:54 naddy Exp $ */
+/* $OpenBSD: esm.c,v 1.64 2023/01/30 10:49:05 jsg Exp $ */
/*
* Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org>
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/device.h>
-#include <sys/kernel.h>
#include <sys/malloc.h>
#include <sys/timeout.h>
#include <sys/queue.h>
-/* $OpenBSD: est.c,v 1.54 2021/08/17 19:44:01 tb Exp $ */
+/* $OpenBSD: est.c,v 1.55 2023/01/30 10:49:05 jsg Exp $ */
/*
* Copyright (c) 2003 Michael Eriksson.
* All rights reserved.
#if NACPICPU > 0
#include <dev/acpi/acpidev.h>
-#include <dev/acpi/acpivar.h>
#endif
/* Convert MHz and mV into IDs for passing to the MSR. */
-/* $OpenBSD: gdt.c,v 1.43 2018/06/22 13:21:14 bluhm Exp $ */
+/* $OpenBSD: gdt.c,v 1.44 2023/01/30 10:49:05 jsg Exp $ */
/* $NetBSD: gdt.c,v 1.28 2002/12/14 09:38:50 junyoung Exp $ */
/*-
#include <sys/systm.h>
#include <sys/mutex.h>
-#include <uvm/uvm_extern.h>
-
-#include <machine/cpu.h>
#include <machine/gdt.h>
-#include <machine/pcb.h>
#include <machine/tss.h>
struct mutex gdt_lock_store = MUTEX_INITIALIZER(IPL_HIGH);
-/* $OpenBSD: hibernate_machdep.c,v 1.60 2023/01/17 23:12:37 jsg Exp $ */
+/* $OpenBSD: hibernate_machdep.c,v 1.61 2023/01/30 10:49:05 jsg Exp $ */
/*
* Copyright (c) 2011 Mike Larkin <mlarkin@openbsd.org>
#include <sys/param.h>
#include <sys/systm.h>
-#include <sys/buf.h>
-#include <sys/conf.h>
#include <sys/device.h>
#include <sys/disk.h>
#include <sys/disklabel.h>
#include <sys/hibernate.h>
-#include <sys/timeout.h>
-#include <sys/malloc.h>
#include <uvm/uvm_extern.h>
-#include <uvm/uvm_pmemrange.h>
#include <machine/biosvar.h>
#include <machine/hibernate.h>
-/* $OpenBSD: i686_mem.c,v 1.19 2018/07/30 14:19:12 kettenis Exp $ */
+/* $OpenBSD: i686_mem.c,v 1.20 2023/01/30 10:49:05 jsg Exp $ */
/*
* Copyright (c) 1999 Michael Smith <msmith@freebsd.org>
* All rights reserved.
*/
#include <sys/param.h>
-#include <sys/kernel.h>
#include <sys/systm.h>
#include <sys/malloc.h>
#include <sys/memrange.h>
#include <machine/cpufunc.h>
-#include <machine/intr.h>
#include <machine/specialreg.h>
/*
-/* $OpenBSD: ioapic.c,v 1.43 2022/02/21 10:24:28 mpi Exp $ */
+/* $OpenBSD: ioapic.c,v 1.44 2023/01/30 10:49:05 jsg Exp $ */
/* $NetBSD: ioapic.c,v 1.7 2003/07/14 22:32:40 lukem Exp $ */
/*-
#include <machine/bus.h>
#include <machine/psl.h>
-#include <uvm/uvm_extern.h>
-
#include <machine/i82093reg.h>
#include <machine/i82093var.h>
#include <machine/i82489reg.h>
#include <machine/i82489var.h>
-#include <machine/pmap.h>
-
#include <machine/mpbiosvar.h>
-#include "isa.h"
-
/*
* XXX locking
*/
-/* $OpenBSD: ipifuncs.c,v 1.33 2020/09/13 11:53:16 jsg Exp $ */
+/* $OpenBSD: ipifuncs.c,v 1.34 2023/01/30 10:49:05 jsg Exp $ */
/* $NetBSD: ipifuncs.c,v 1.1.2.3 2000/06/26 02:04:06 sommerfeld Exp $ */
/*-
#include "npx.h"
#include <sys/param.h>
-#include <sys/device.h>
#include <sys/memrange.h>
#include <sys/systm.h>
-#include <uvm/uvm_extern.h>
-
#include <machine/cpufunc.h>
#include <machine/cpuvar.h>
#include <machine/intr.h>
#include <machine/atomic.h>
-#include <machine/i82093var.h>
#include <machine/db_machdep.h>
-#include <machine/mplock.h>
-#include <machine/vmmvar.h>
void i386_ipi_nop(struct cpu_info *);
void i386_ipi_halt(struct cpu_info *);
-/* $OpenBSD: k1x-pstate.c,v 1.13 2021/08/11 18:46:11 tb Exp $ */
+/* $OpenBSD: k1x-pstate.c,v 1.14 2023/01/30 10:49:05 jsg Exp $ */
/*
* Copyright (c) 2011 Bryan Steele <brynet@gmail.com>
*
#include <sys/malloc.h>
#include <sys/sysctl.h>
-#include <machine/cpu.h>
#include <machine/cpufunc.h>
#include <machine/bus.h>
#if NACPICPU > 0
#include <dev/acpi/acpidev.h>
-#include <dev/acpi/acpivar.h>
#endif
extern int setperf_prio;
-/* $OpenBSD: k6_mem.c,v 1.13 2018/07/30 14:19:12 kettenis Exp $ */
+/* $OpenBSD: k6_mem.c,v 1.14 2023/01/30 10:49:05 jsg Exp $ */
/*-
* Copyright (c) 1999 Brian Fundakowski Feldman
* All rights reserved.
*/
#include <sys/param.h>
-#include <sys/kernel.h>
#include <sys/systm.h>
-#include <sys/ioccom.h>
#include <sys/malloc.h>
#include <sys/memrange.h>
#include <machine/cpufunc.h>
-#include <machine/specialreg.h>
/*
* A K6-2 MTRR is defined as the highest 15 bits having the address, the next
-/* $OpenBSD: lapic.c,v 1.53 2022/12/06 01:56:44 cheloha Exp $ */
+/* $OpenBSD: lapic.c,v 1.54 2023/01/30 10:49:05 jsg Exp $ */
/* $NetBSD: lapic.c,v 1.1.2.8 2000/02/23 06:10:50 sommerfeld Exp $ */
/*-
#include <uvm/uvm_extern.h>
-#include <machine/cpu.h>
#include <machine/cpufunc.h>
#include <machine/cpuvar.h>
#include <machine/pmap.h>
-#include <machine/vmparam.h>
#include <machine/mpbiosvar.h>
-#include <machine/pcb.h>
#include <machine/specialreg.h>
#include <machine/segments.h>
-/* $OpenBSD: longrun.c,v 1.17 2018/07/30 14:19:12 kettenis Exp $ */
+/* $OpenBSD: longrun.c,v 1.18 2023/01/30 10:49:05 jsg Exp $ */
/*
* Copyright (c) 2003 Ted Unangst
* Copyright (c) 2001 Tamotsu Hattori
#include <sys/param.h>
#include <sys/systm.h>
-#include <sys/kernel.h>
#include <sys/sysctl.h>
#include <sys/timeout.h>
-/* $OpenBSD: machdep.c,v 1.662 2023/01/11 02:49:34 cheloha Exp $ */
+/* $OpenBSD: machdep.c,v 1.663 2023/01/30 10:49:05 jsg Exp $ */
/* $NetBSD: machdep.c,v 1.214 1996/11/10 03:16:17 thorpej Exp $ */
/*-
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/signalvar.h>
-#include <sys/kernel.h>
#include <sys/proc.h>
#include <sys/user.h>
#include <sys/exec.h>
#include <sys/buf.h>
#include <sys/reboot.h>
#include <sys/conf.h>
-#include <sys/timeout.h>
#include <sys/malloc.h>
-#include <sys/mbuf.h>
#include <sys/msgbuf.h>
#include <sys/mount.h>
-#include <sys/vnode.h>
#include <sys/device.h>
#include <sys/extent.h>
#include <sys/sysctl.h>
#include <machine/cpu_full.h>
#include <machine/cpufunc.h>
#include <machine/cpuvar.h>
-#include <machine/gdt.h>
#include <machine/kcore.h>
#include <machine/pio.h>
#include <machine/psl.h>
-#include <machine/reg.h>
#include <machine/specialreg.h>
#include <machine/biosvar.h>
#include <machine/pte.h>
#endif /* MULTIPROCESSOR */
#include <dev/isa/isareg.h>
-#include <dev/isa/isavar.h>
#include <dev/ic/i8042reg.h>
-#include <dev/ic/mc146818reg.h>
#include <i386/isa/isa_machdep.h>
-#include <i386/isa/nvram.h>
#include "acpi.h"
#if NACPI > 0
#ifdef DDB
#include <machine/db_machdep.h>
-#include <ddb/db_access.h>
-#include <ddb/db_sym.h>
#include <ddb/db_extern.h>
#endif
#endif
#include "bios.h"
-#include "com.h"
-
-#if NCOM > 0
-#include <sys/termios.h>
-#include <dev/ic/comreg.h>
-#include <dev/ic/comvar.h>
-#endif /* NCOM > 0 */
#ifdef HIBERNATE
#include <machine/hibernate_var.h>
int has_rdrand;
int has_rdseed;
-#include "pvbus.h"
-#if NPVBUS > 0
-#include <dev/pv/pvvar.h>
-#endif
-
void winchip_cpu_setup(struct cpu_info *);
void amd_family5_setperf_setup(struct cpu_info *);
void amd_family5_setup(struct cpu_info *);
-/* $OpenBSD: mainbus.c,v 1.60 2022/02/21 10:24:28 mpi Exp $ */
+/* $OpenBSD: mainbus.c,v 1.61 2023/01/30 10:49:05 jsg Exp $ */
/* $NetBSD: mainbus.c,v 1.21 1997/06/06 23:14:20 thorpej Exp $ */
/*
#include "pci.h"
#include "eisa.h"
-#include "isa.h"
-#include "apm.h"
+#include "isadma.h"
#include "bios.h"
#include "acpi.h"
#include "ipmi.h"
/* $NetBSD: mem.c,v 1.31 1996/05/03 19:42:19 christos Exp $ */
-/* $OpenBSD: mem.c,v 1.54 2018/02/19 08:59:52 mpi Exp $ */
+/* $OpenBSD: mem.c,v 1.55 2023/01/30 10:49:05 jsg Exp $ */
/*
* Copyright (c) 1988 University of Utah.
* Copyright (c) 1982, 1986, 1990, 1993
#include <sys/filio.h>
#include <sys/systm.h>
#include <sys/uio.h>
-#include <sys/ioccom.h>
#include <sys/malloc.h>
#include <sys/memrange.h>
-#include <sys/fcntl.h>
#include <sys/rwlock.h>
-#include <machine/cpu.h>
#include <machine/conf.h>
#include <uvm/uvm_extern.h>
-/* $OpenBSD: mpbios.c,v 1.44 2022/02/21 10:24:28 mpi Exp $ */
+/* $OpenBSD: mpbios.c,v 1.45 2023/01/30 10:49:05 jsg Exp $ */
/* $NetBSD: mpbios.c,v 1.2 2002/10/01 12:56:57 fvdl Exp $ */
/*-
#include <sys/param.h>
#include <sys/systm.h>
-#include <sys/kernel.h>
#include <sys/device.h>
#include <sys/malloc.h>
#include <uvm/uvm_extern.h>
-#include <machine/specialreg.h>
-#include <machine/cputypes.h>
#include <machine/cpuvar.h>
#include <machine/bus.h>
#include <machine/biosvar.h>
-/* $OpenBSD: nvram.c,v 1.6 2016/03/07 05:32:47 naddy Exp $ */
+/* $OpenBSD: nvram.c,v 1.7 2023/01/30 10:49:05 jsg Exp $ */
/*
* Copyright (c) 2004 Joshua Stein <jcs@openbsd.org>
#include <sys/systm.h>
#include <sys/uio.h>
#include <sys/fcntl.h>
-#include <sys/conf.h>
#include <dev/ic/mc146818reg.h>
-#include <i386/isa/nvram.h>
/* checksum is calculated over bytes 2 to 31 and stored in byte 32 */
#define NVRAM_CSUM_START (MC_NVRAM_START + 2)
-/* $OpenBSD: pctr.c,v 1.30 2017/09/08 05:36:51 deraadt Exp $ */
+/* $OpenBSD: pctr.c,v 1.31 2023/01/30 10:49:05 jsg Exp $ */
/*
* Pentium performance counter driver for OpenBSD.
#include <sys/param.h>
#include <sys/errno.h>
#include <sys/fcntl.h>
-#include <sys/ioccom.h>
#include <sys/systm.h>
-#include <machine/cputypes.h>
-#include <machine/psl.h>
#include <machine/pctr.h>
#include <machine/cpu.h>
#include <machine/specialreg.h>
-/* $OpenBSD: pmap.c,v 1.219 2022/06/29 14:24:29 dv Exp $ */
+/* $OpenBSD: pmap.c,v 1.220 2023/01/30 10:49:05 jsg Exp $ */
/* $NetBSD: pmap.c,v 1.91 2000/06/02 17:46:37 thorpej Exp $ */
/*
#include <sys/systm.h>
#include <sys/atomic.h>
#include <sys/proc.h>
-#include <sys/malloc.h>
#include <sys/pool.h>
#include <sys/user.h>
-#include <sys/kernel.h>
#include <sys/mutex.h>
#include <uvm/uvm.h>
-#include <machine/cpu.h>
#include <machine/specialreg.h>
-#include <machine/gdt.h>
-#include <dev/isa/isareg.h>
#include <sys/msgbuf.h>
#include <stand/boot/bootarg.h>
-/* $OpenBSD: pmapae.c,v 1.67 2022/06/29 14:24:29 dv Exp $ */
+/* $OpenBSD: pmapae.c,v 1.68 2023/01/30 10:49:05 jsg Exp $ */
/*
* Copyright (c) 2006-2008 Michael Shalayeff
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/atomic.h>
-#include <sys/proc.h>
-#include <sys/malloc.h>
#include <sys/pool.h>
#include <sys/user.h>
-#include <sys/kernel.h>
#include <sys/mutex.h>
#include <uvm/uvm.h>
-#include <machine/cpu.h>
#include <machine/specialreg.h>
-#include <machine/gdt.h>
#include <dev/isa/isareg.h>
#include <i386/isa/isa_machdep.h>
-#include <sys/msgbuf.h>
-#include <stand/boot/bootarg.h>
#include "ksyms.h"
-/* $OpenBSD: powernow-k7.c,v 1.43 2018/07/30 14:19:12 kettenis Exp $ */
+/* $OpenBSD: powernow-k7.c,v 1.44 2023/01/30 10:49:05 jsg Exp $ */
/*
* Copyright (c) 2004 Martin Végiard.
#include <sys/malloc.h>
#include <sys/sysctl.h>
-#include <machine/cpu.h>
#include <machine/cpufunc.h>
#include <machine/bus.h>
#if NACPICPU > 0
#include <dev/acpi/acpidev.h>
-#include <dev/acpi/acpivar.h>
#endif
#define BIOS_START 0xe0000
-/* $OpenBSD: powernow-k8.c,v 1.34 2018/07/04 02:06:15 mlarkin Exp $ */
+/* $OpenBSD: powernow-k8.c,v 1.35 2023/01/30 10:49:05 jsg Exp $ */
/*
* Copyright (c) 2004 Martin Végiard.
#include <dev/isa/isareg.h>
#include <i386/isa/isa_machdep.h>
-#include <machine/cpu.h>
#include <machine/cpufunc.h>
#include <machine/bus.h>
#if NACPICPU > 0
#include <dev/acpi/acpidev.h>
-#include <dev/acpi/acpivar.h>
#endif
#define BIOS_START 0xe0000
-/* $OpenBSD: process_machdep.c,v 1.29 2018/07/09 19:20:29 guenther Exp $ */
+/* $OpenBSD: process_machdep.c,v 1.30 2023/01/30 10:49:05 jsg Exp $ */
/* $NetBSD: process_machdep.c,v 1.22 1996/05/03 19:42:25 christos Exp $ */
/*
#include <sys/param.h>
#include <sys/systm.h>
-#include <sys/time.h>
-#include <sys/kernel.h>
#include <sys/proc.h>
#include <sys/user.h>
-#include <sys/vnode.h>
#include <sys/ptrace.h>
#include <machine/psl.h>
-/* $OpenBSD: rbus_machdep.c,v 1.27 2010/09/22 02:28:37 jsg Exp $ */
+/* $OpenBSD: rbus_machdep.c,v 1.28 2023/01/30 10:49:05 jsg Exp $ */
/* $NetBSD: rbus_machdep.c,v 1.2 1999/10/15 06:43:06 haya Exp $ */
/*
#include <sys/param.h>
#include <sys/systm.h>
-#include <sys/device.h>
#include <sys/extent.h>
-#include <uvm/uvm_extern.h>
-
#include <machine/bus.h>
#include <dev/cardbus/rbus.h>
-/* $OpenBSD: sys_machdep.c,v 1.40 2018/07/09 19:20:29 guenther Exp $ */
+/* $OpenBSD: sys_machdep.c,v 1.41 2023/01/30 10:49:05 jsg Exp $ */
/* $NetBSD: sys_machdep.c,v 1.28 1996/05/03 19:42:29 christos Exp $ */
/*-
#include <sys/param.h>
#include <sys/systm.h>
-#include <sys/ioctl.h>
-#include <sys/time.h>
#include <sys/proc.h>
-#include <sys/signalvar.h>
#include <sys/user.h>
-#include <sys/uio.h>
-#include <sys/kernel.h>
-#include <sys/mtio.h>
-#include <sys/buf.h>
-#include <sys/signal.h>
-#include <sys/malloc.h>
#include <sys/mount.h>
#include <sys/syscallargs.h>
-#include <uvm/uvm_extern.h>
-
-#include <machine/cpu.h>
-#include <machine/cpufunc.h>
-#include <machine/gdt.h>
#include <machine/psl.h>
-#include <machine/reg.h>
#include <machine/sysarch.h>
extern struct vm_map *kernel_map;
-/* $OpenBSD: trap.c,v 1.158 2023/01/18 05:06:44 deraadt Exp $ */
+/* $OpenBSD: trap.c,v 1.159 2023/01/30 10:49:05 jsg Exp $ */
/* $NetBSD: trap.c,v 1.95 1996/05/05 06:50:02 mycroft Exp $ */
/*-
#include <sys/proc.h>
#include <sys/signalvar.h>
#include <sys/user.h>
-#include <sys/acct.h>
-#include <sys/kernel.h>
#include <sys/signal.h>
#include <sys/syscall.h>
#include <sys/syscall_mi.h>
#include <uvm/uvm_extern.h>
-#include <machine/cpu.h>
#include <machine/cpufunc.h>
#include <machine/psl.h>
-#include <machine/reg.h>
#include <machine/trap.h>
#ifdef DDB
#include <machine/db_machdep.h>
#endif
-#include <sys/exec.h>
-
#include "isa.h"
-#include "npx.h"
int upageflttrap(struct trapframe *, uint32_t);
int kpageflttrap(struct trapframe *, uint32_t);
-/* $OpenBSD: vm_machdep.c,v 1.72 2022/02/21 19:18:52 kettenis Exp $ */
+/* $OpenBSD: vm_machdep.c,v 1.73 2023/01/30 10:49:05 jsg Exp $ */
/* $NetBSD: vm_machdep.c,v 1.61 1996/05/03 19:42:35 christos Exp $ */
/*-
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/proc.h>
-#include <sys/signalvar.h>
-#include <sys/malloc.h>
-#include <sys/vnode.h>
#include <sys/buf.h>
#include <sys/user.h>
-#include <sys/exec.h>
-#include <sys/ptrace.h>
#include <uvm/uvm_extern.h>
-#include <machine/cpu.h>
-#include <machine/gdt.h>
-#include <machine/reg.h>
-#include <machine/specialreg.h>
-
#include "npx.h"
/*
-/* $OpenBSD: wscons_machdep.c,v 1.19 2016/03/07 05:32:47 naddy Exp $ */
+/* $OpenBSD: wscons_machdep.c,v 1.20 2023/01/30 10:49:05 jsg Exp $ */
/*
* Copyright (c) 2001 Aaron Campbell
#include <sys/param.h>
#include <sys/systm.h>
-#include <sys/kernel.h>
#include <sys/conf.h>
-#include <sys/device.h>
-#include <sys/extent.h>
#include <machine/bus.h>
#include <dev/ic/i8042reg.h>
#include <dev/ic/pckbcvar.h>
#endif
-#include "pckbd.h"
#include "ukbd.h"
#if (NUKBD > 0)
#include <dev/usb/ukbdvar.h>
-/* $OpenBSD: clock.c,v 1.62 2022/12/06 01:56:44 cheloha Exp $ */
+/* $OpenBSD: clock.c,v 1.63 2023/01/30 10:49:05 jsg Exp $ */
/* $NetBSD: clock.c,v 1.39 1996/05/12 23:11:54 mycroft Exp $ */
/*-
#include <sys/time.h>
#include <sys/kernel.h>
#include <sys/clockintr.h>
-#include <sys/device.h>
-#include <sys/stdint.h>
#include <sys/timeout.h>
#include <sys/timetc.h>
#include <sys/mutex.h>
-#include <machine/cpu.h>
#include <machine/intr.h>
#include <machine/pio.h>
#include <machine/cpufunc.h>
-/* $OpenBSD: isapnp_machdep.c,v 1.4 2008/06/26 05:42:11 ray Exp $ */
+/* $OpenBSD: isapnp_machdep.c,v 1.5 2023/01/30 10:49:05 jsg Exp $ */
/* $NetBSD: isapnp_machdep.c,v 1.5 1997/10/04 17:32:30 thorpej Exp $ */
/*-
#include <sys/param.h>
#include <sys/systm.h>
-#include <sys/device.h>
-#include <sys/malloc.h>
#include <machine/bus.h>
-/* $OpenBSD: joy.c,v 1.16 2018/07/30 14:19:12 kettenis Exp $ */
+/* $OpenBSD: joy.c,v 1.17 2023/01/30 10:49:05 jsg Exp $ */
/* $NetBSD: joy.c,v 1.3 1996/05/05 19:46:15 christos Exp $ */
/*-
#include <sys/device.h>
#include <sys/errno.h>
-#include <machine/cpu.h>
#include <machine/pio.h>
#include <machine/cpufunc.h>
#include <machine/joystick.h>
#include <machine/conf.h>
-#include <dev/isa/isavar.h>
#include <dev/isa/isareg.h>
#include <dev/ic/i8253reg.h>
#include <i386/isa/joyreg.h>
-/* $OpenBSD: joy_isapnp.c,v 1.8 2022/02/21 10:24:28 mpi Exp $ */
+/* $OpenBSD: joy_isapnp.c,v 1.9 2023/01/30 10:49:05 jsg Exp $ */
/* $NetBSD: joy.c,v 1.3 1996/05/05 19:46:15 christos Exp $ */
/*-
#include <sys/param.h>
#include <sys/systm.h>
-#include <sys/kernel.h>
#include <sys/device.h>
-#include <sys/errno.h>
#include <machine/cpu.h>
#include <machine/pio.h>
-#include <machine/cpufunc.h>
-#include <machine/joystick.h>
-#include <machine/conf.h>
#include <dev/isa/isavar.h>
-#include <dev/isa/isareg.h>
-#include <dev/ic/i8253reg.h>
#include <i386/isa/joyreg.h>
int joy_isapnp_probe(struct device *, void *, void *);
-/* $OpenBSD: npx.c,v 1.73 2022/02/21 10:24:28 mpi Exp $ */
+/* $OpenBSD: npx.c,v 1.74 2023/01/30 10:49:05 jsg Exp $ */
/* $NetBSD: npx.c,v 1.57 1996/05/12 23:12:24 mycroft Exp $ */
#if 0
#include <sys/param.h>
#include <sys/systm.h>
-#include <sys/conf.h>
#include <sys/proc.h>
#include <sys/signalvar.h>
#include <sys/user.h>
-#include <sys/ioctl.h>
#include <sys/device.h>
#include <uvm/uvm_extern.h>
-#include <machine/cpu.h>
#include <machine/intr.h>
#include <machine/npx.h>
#include <machine/pio.h>
#include <machine/specialreg.h>
#include <machine/i8259.h>
-#include <dev/isa/isareg.h>
#include <dev/isa/isavar.h>
/*
-/* $OpenBSD: agp_machdep.c,v 1.20 2014/11/16 12:30:57 deraadt Exp $ */
+/* $OpenBSD: agp_machdep.c,v 1.21 2023/01/30 10:49:05 jsg Exp $ */
/*
* Copyright (c) 2008 - 2009 Owain G. Ainsworth <oga@openbsd.org>
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/malloc.h>
-#include <sys/rwlock.h>
#include <dev/pci/pcivar.h>
#include <dev/pci/pcireg.h>
-#include <dev/pci/pcidevs.h>
#include <dev/pci/agpvar.h>
#include <uvm/uvm_extern.h>
-/* $OpenBSD: ali1543.c,v 1.5 2022/08/29 06:08:03 jsg Exp $ */
+/* $OpenBSD: ali1543.c,v 1.6 2023/01/30 10:49:05 jsg Exp $ */
/* $NetBSD: ali1543.c,v 1.2 2001/09/13 14:00:52 tshiozak Exp $ */
/*
#include <sys/param.h>
#include <sys/systm.h>
-#include <sys/errno.h>
-#include <sys/device.h>
-#include <sys/malloc.h>
#include <machine/intr.h>
#include <machine/bus.h>
#include <dev/pci/pcivar.h>
-#include <dev/pci/pcireg.h>
-#include <dev/pci/pcidevs.h>
#include <i386/pci/pcibiosvar.h>
#include <i386/pci/piixvar.h>
-/* $OpenBSD: amd756.c,v 1.5 2008/06/26 05:42:11 ray Exp $ */
+/* $OpenBSD: amd756.c,v 1.6 2023/01/30 10:49:05 jsg Exp $ */
/* $NetBSD$ */
/*-
#include <sys/param.h>
#include <sys/systm.h>
-#include <sys/device.h>
#include <sys/malloc.h>
#include <machine/intr.h>
#include <machine/bus.h>
#include <dev/pci/pcivar.h>
-#include <dev/pci/pcireg.h>
-#include <dev/pci/pcidevs.h>
#include <i386/pci/pcibiosvar.h>
#include <i386/pci/amd756reg.h>
-/* $OpenBSD: glxsb.c,v 1.41 2022/02/21 10:24:28 mpi Exp $ */
+/* $OpenBSD: glxsb.c,v 1.42 2023/01/30 10:49:05 jsg Exp $ */
/*
* Copyright (c) 2006 Tom Cosgrove <tom@openbsd.org>
#ifdef CRYPTO
#include <crypto/cryptodev.h>
-#include <crypto/aes.h>
#include <crypto/xform.h>
#include <crypto/cryptosoft.h>
#endif
-/* $OpenBSD: gscpcib.c,v 1.7 2022/02/21 10:24:28 mpi Exp $ */
+/* $OpenBSD: gscpcib.c,v 1.8 2023/01/30 10:49:05 jsg Exp $ */
/*
* Copyright (c) 2004 Alexander Yurchenko <grange@openbsd.org>
*
#include <sys/systm.h>
#include <sys/device.h>
#include <sys/gpio.h>
-#include <sys/kernel.h>
#include <machine/bus.h>
-/* $OpenBSD: ichpcib.c,v 1.31 2022/02/21 10:24:28 mpi Exp $ */
+/* $OpenBSD: ichpcib.c,v 1.32 2023/01/30 10:49:05 jsg Exp $ */
/*
* Copyright (c) 2004 Alexander Yurchenko <grange@openbsd.org>
*
#include <dev/pci/ichreg.h>
-#include <machine/cpu.h>
-#include <machine/cpufunc.h>
-
struct ichpcib_softc {
struct device sc_dev;
-/* $OpenBSD: opti82c558.c,v 1.8 2008/06/26 05:42:11 ray Exp $ */
+/* $OpenBSD: opti82c558.c,v 1.9 2023/01/30 10:49:05 jsg Exp $ */
/* $NetBSD: opti82c558.c,v 1.2 2000/07/18 11:24:09 soda Exp $ */
/*-
#include <sys/param.h>
#include <sys/systm.h>
-#include <sys/device.h>
#include <sys/malloc.h>
#include <machine/intr.h>
#include <machine/bus.h>
#include <dev/pci/pcivar.h>
-#include <dev/pci/pcireg.h>
-#include <dev/pci/pcidevs.h>
#include <i386/pci/pcibiosvar.h>
#include <i386/pci/opti82c558reg.h>
-/* $OpenBSD: opti82c700.c,v 1.8 2008/06/26 05:42:11 ray Exp $ */
+/* $OpenBSD: opti82c700.c,v 1.9 2023/01/30 10:49:05 jsg Exp $ */
/* $NetBSD: opti82c700.c,v 1.2 2000/07/18 11:07:20 soda Exp $ */
/*-
#include <sys/param.h>
#include <sys/systm.h>
-#include <sys/device.h>
#include <sys/malloc.h>
#include <machine/intr.h>
#include <machine/bus.h>
#include <dev/pci/pcivar.h>
-#include <dev/pci/pcireg.h>
-#include <dev/pci/pcidevs.h>
#include <i386/pci/pcibiosvar.h>
#include <i386/pci/opti82c700reg.h>
-/* $OpenBSD: pchb.c,v 1.93 2022/02/21 10:24:28 mpi Exp $ */
+/* $OpenBSD: pchb.c,v 1.94 2023/01/30 10:49:05 jsg Exp $ */
/* $NetBSD: pchb.c,v 1.65 2007/08/15 02:26:13 markd Exp $ */
/*
#include <sys/systm.h>
#include <sys/device.h>
#include <sys/timeout.h>
-#include <sys/rwlock.h>
#include <machine/bus.h>
-/* $OpenBSD: pci_addr_fixup.c,v 1.25 2014/05/04 20:09:15 sf Exp $ */
+/* $OpenBSD: pci_addr_fixup.c,v 1.26 2023/01/30 10:49:05 jsg Exp $ */
/* $NetBSD: pci_addr_fixup.c,v 1.7 2000/08/03 20:10:45 nathanw Exp $ */
/*-
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/malloc.h>
-#include <sys/kernel.h>
-#include <sys/device.h>
#include <sys/extent.h>
#include <uvm/uvm_extern.h>
#include <dev/pci/pcireg.h>
#include <dev/pci/pcivar.h>
-#include <dev/pci/pcidevs.h>
#include <i386/pci/pcibiosvar.h>
-/* $OpenBSD: pci_bus_fixup.c,v 1.9 2006/08/18 22:18:18 kettenis Exp $ */
+/* $OpenBSD: pci_bus_fixup.c,v 1.10 2023/01/30 10:49:05 jsg Exp $ */
/* $NetBSD: pci_bus_fixup.c,v 1.1 1999/11/17 07:32:58 thorpej Exp $ */
/*
#include <sys/param.h>
#include <sys/systm.h>
-#include <sys/kernel.h>
-#include <sys/device.h>
#include <machine/bus.h>
-/* $OpenBSD: pci_intr_fixup.c,v 1.63 2021/03/06 09:20:50 jsg Exp $ */
+/* $OpenBSD: pci_intr_fixup.c,v 1.64 2023/01/30 10:49:05 jsg Exp $ */
/* $NetBSD: pci_intr_fixup.c,v 1.10 2000/08/10 21:18:27 soda Exp $ */
/*
#include <sys/param.h>
#include <sys/systm.h>
-#include <sys/kernel.h>
#include <sys/malloc.h>
#include <sys/queue.h>
#include <sys/device.h>
#include <machine/bus.h>
#include <machine/intr.h>
-#include <machine/i8259.h>
#include <machine/i82093var.h>
#include <dev/pci/pcireg.h>
-/* $OpenBSD: piix.c,v 1.11 2015/09/01 06:01:24 deraadt Exp $ */
+/* $OpenBSD: piix.c,v 1.12 2023/01/30 10:49:05 jsg Exp $ */
/* $NetBSD: piix.c,v 1.1 1999/11/17 01:21:20 thorpej Exp $ */
/*-
#include <sys/param.h>
#include <sys/systm.h>
-#include <sys/device.h>
#include <sys/malloc.h>
#include <machine/intr.h>
#include <machine/bus.h>
#include <dev/pci/pcivar.h>
-#include <dev/pci/pcireg.h>
-#include <dev/pci/pcidevs.h>
#include <i386/pci/pcibiosvar.h>
#include <i386/pci/piixreg.h>
-/* $OpenBSD: rccosb4.c,v 1.6 2015/09/01 06:01:24 deraadt Exp $ */
+/* $OpenBSD: rccosb4.c,v 1.7 2023/01/30 10:49:05 jsg Exp $ */
/*
* Copyright (c) 2004,2005 Michael Shalayeff
#include <sys/param.h>
#include <sys/systm.h>
-#include <sys/device.h>
#include <sys/malloc.h>
#include <machine/intr.h>
#include <machine/bus.h>
#include <dev/pci/pcivar.h>
-#include <dev/pci/pcireg.h>
#include <i386/pci/pcibiosvar.h>
#include <i386/pci/piixvar.h>
-/* $OpenBSD: sis85c503.c,v 1.8 2008/06/26 05:42:11 ray Exp $ */
+/* $OpenBSD: sis85c503.c,v 1.9 2023/01/30 10:49:05 jsg Exp $ */
/* $NetBSD: sis85c503.c,v 1.2 2000/07/18 11:24:09 soda Exp $ */
/*-
#include <sys/param.h>
#include <sys/systm.h>
-#include <sys/device.h>
#include <machine/intr.h>
#include <machine/bus.h>
#include <dev/pci/pcivar.h>
-#include <dev/pci/pcireg.h>
-#include <dev/pci/pcidevs.h>
#include <i386/pci/pcibiosvar.h>
#include <i386/pci/sis85c503reg.h>
-/* $OpenBSD: vga_post.c,v 1.10 2021/01/03 02:29:28 jmatthew Exp $ */
+/* $OpenBSD: vga_post.c,v 1.11 2023/01/30 10:49:05 jsg Exp $ */
/* $NetBSD: vga_post.c,v 1.12 2009/03/15 21:32:36 cegger Exp $ */
/*-
*/
#include <sys/param.h>
-#include <sys/device.h>
#include <sys/malloc.h>
#include <uvm/uvm_extern.h>
-/* $OpenBSD: via8231.c,v 1.8 2008/06/26 05:42:11 ray Exp $ */
+/* $OpenBSD: via8231.c,v 1.9 2023/01/30 10:49:05 jsg Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
#include <sys/param.h>
#include <sys/systm.h>
-#include <sys/device.h>
#include <sys/malloc.h>
#include <machine/intr.h>
-/* $OpenBSD: via82c586.c,v 1.11 2008/06/26 05:42:11 ray Exp $ */
+/* $OpenBSD: via82c586.c,v 1.12 2023/01/30 10:49:05 jsg Exp $ */
/* $NetBSD: via82c586.c,v 1.2 2000/07/18 11:24:09 soda Exp $ */
/*-
#include <sys/param.h>
#include <sys/systm.h>
-#include <sys/device.h>
#include <machine/intr.h>
#include <machine/bus.h>
#include <dev/pci/pcivar.h>
-#include <dev/pci/pcireg.h>
-#include <dev/pci/pcidevs.h>
#include <i386/pci/pcibiosvar.h>
#include <i386/pci/via82c586reg.h>