-/* $OpenBSD: i82093var.h,v 1.5 2016/05/04 14:30:00 kettenis Exp $ */
+/* $OpenBSD: i82093var.h,v 1.6 2024/05/22 05:51:49 jsg Exp $ */
/* $NetBSD: i82093var.h,v 1.1 2003/02/26 21:26:10 fvdl Exp $ */
/*-
#define APIC_IRQ_ISLEGACY(x) (!((x) & APIC_INT_VIA_APIC))
#define APIC_IRQ_LEGACY_IRQ(x) ((x) & 0xff)
-void *apic_intr_establish(int, int, int, int (*)(void *), void *);
-void apic_intr_disestablish(void *);
-
void ioapic_print_redir(struct ioapic_softc *, char *, int);
-void ioapic_format_redir(char *, char *, int, u_int32_t, u_int32_t);
struct ioapic_softc *ioapic_find(int);
struct ioapic_softc *ioapic_find_bybase(int);
void ioapic_enable(void);
-void lapic_vectorset(void); /* XXX */
extern int ioapic_bsp_id;
extern int nioapics;
-/* $OpenBSD: isa_machdep.h,v 1.10 2024/05/13 00:16:09 jsg Exp $ */
+/* $OpenBSD: isa_machdep.h,v 1.11 2024/05/22 05:51:49 jsg Exp $ */
/* $NetBSD: isa_machdep.h,v 1.2 2003/05/09 23:51:28 fvdl Exp $ */
/*-
void *isa_intr_establish(isa_chipset_tag_t ic, int irq, int type,
int level, int (*ih_fun)(void *), void *ih_arg, char *);
void isa_intr_disestablish(isa_chipset_tag_t ic, void *handler);
-int isa_mem_alloc(bus_space_tag_t, bus_size_t, bus_size_t,
- bus_addr_t, int, bus_addr_t *, bus_space_handle_t *);
-void isa_mem_free(bus_space_tag_t, bus_space_handle_t, bus_size_t);
int isa_intr_check(isa_chipset_tag_t, int, int);
-/*
- * for ACPI code
- */
-
-void isa_reinit_irq(void);
-
/*
* ALL OF THE FOLLOWING ARE MACHINE-DEPENDENT, AND SHOULD NOT BE USED
* BY PORTABLE CODE.
-/* $OpenBSD: rbus_machdep.h,v 1.7 2011/03/23 16:54:34 pirofti Exp $ */
+/* $OpenBSD: rbus_machdep.h,v 1.8 2024/05/22 05:51:49 jsg Exp $ */
/* $NetBSD: rbus_machdep.h,v 1.2 1999/10/15 06:43:05 haya Exp $ */
/*
rbus_tag_t rbus_pccbb_parent_mem(struct device *,
struct pci_attach_args *);
-bus_addr_t rbus_min_start_hint(void);
-
void pccbb_attach_hook(struct device *, struct device *,
struct pci_attach_args *);
-/* $OpenBSD: acpi_machdep.c,v 1.21 2022/11/26 17:23:15 tobhe Exp $ */
+/* $OpenBSD: acpi_machdep.c,v 1.22 2024/05/22 05:51:49 jsg Exp $ */
/*
* Copyright (c) 2018 Mark Kettenis
*
int acpi_fdt_match(struct device *, void *, void *);
void acpi_fdt_attach(struct device *, struct device *, void *);
-void acpi_attach(struct device *, struct device *, void *);
const struct cfattach acpi_fdt_ca = {
sizeof(struct acpi_softc), acpi_fdt_match, acpi_fdt_attach
-/* $OpenBSD: db_interface.c,v 1.15 2024/02/23 18:19:03 cheloha Exp $ */
+/* $OpenBSD: db_interface.c,v 1.16 2024/05/22 05:51:49 jsg Exp $ */
/* $NetBSD: db_interface.c,v 1.34 2003/10/26 23:11:15 chris Exp $ */
/*
#include <ddb/db_run.h>
#include <ddb/db_variables.h>
-
-int db_access_und_sp (struct db_variable *, db_expr_t *, int);
-int db_access_abt_sp (struct db_variable *, db_expr_t *, int);
-int db_access_irq_sp (struct db_variable *, db_expr_t *, int);
-u_int db_fetch_reg (int, db_regs_t *);
-
int db_trapper (vaddr_t, u_int, trapframe_t *, int);
struct db_variable db_regs[] = {
-/* $OpenBSD: db_machdep.h,v 1.5 2021/08/30 08:11:12 jasper Exp $ */
+/* $OpenBSD: db_machdep.h,v 1.6 2024/05/22 05:51:49 jsg Exp $ */
/* $NetBSD: db_machdep.h,v 1.5 2001/11/22 18:00:00 thorpej Exp $ */
/*
#define branch_taken(ins, pc, fun, regs) \
db_branch_taken((ins), (pc), (regs))
-void db_show_frame_cmd(db_expr_t, int, db_expr_t, char *);
-
#define DDB_STATE_NOT_RUNNING 0
#define DDB_STATE_RUNNING 1
#define DDB_STATE_EXITING 2
-/* $OpenBSD: ommmc.c,v 1.40 2021/10/24 17:52:27 mpi Exp $ */
+/* $OpenBSD: ommmc.c,v 1.41 2024/05/22 05:51:49 jsg Exp $ */
/*
* Copyright (c) 2009 Dale Rahn <drahn@openbsd.org>
/* Host controller functions called by the attachment driver. */
-int ommmc_host_found(struct ommmc_softc *, bus_space_tag_t,
- bus_space_handle_t, bus_size_t, int);
void ommmc_power(int, void *);
void ommmc_shutdown(void *);
int ommmc_intr(void *);
-/* $OpenBSD: ipifuncs.c,v 1.35 2023/10/30 12:50:59 mvs Exp $ */
+/* $OpenBSD: ipifuncs.c,v 1.36 2024/05/22 05:51:49 jsg Exp $ */
/* $NetBSD: ipifuncs.c,v 1.1.2.3 2000/06/26 02:04:06 sommerfeld Exp $ */
/*-
i386_ipi_flush_fpu,
i386_ipi_synch_fpu,
i386_ipi_reload_mtrr,
-#if 0
- gdt_reload_cpu,
-#else
NULL,
-#endif
#ifdef DDB
i386_ipi_db,
#else
-/* $OpenBSD: gdt.h,v 1.17 2018/04/11 15:44:08 bluhm Exp $ */
+/* $OpenBSD: gdt.h,v 1.18 2024/05/22 05:51:49 jsg Exp $ */
/* $NetBSD: gdt.h,v 1.7.10.6 2002/08/19 01:22:36 sommerfeld Exp $ */
/*-
void gdt_alloc_cpu(struct cpu_info *);
void gdt_init(void);
void gdt_init_cpu(struct cpu_info *);
-void gdt_reload_cpu(/* XXX struct cpu_info * */ void);
void setgdt(int, void *, size_t, int, int, int, int);
#endif
-/* $OpenBSD: i82093var.h,v 1.11 2011/05/21 15:14:57 kettenis Exp $ */
+/* $OpenBSD: i82093var.h,v 1.12 2024/05/22 05:51:49 jsg Exp $ */
/* $NetBSD: i82093var.h,v 1.1 2003/02/26 21:26:10 fvdl Exp $ */
/*-
void apic_intr_disestablish(void *);
void ioapic_print_redir(struct ioapic_softc *, char *, int);
-void ioapic_format_redir(char *, char *, int, u_int32_t, u_int32_t);
struct ioapic_softc *ioapic_find(int);
struct ioapic_softc *ioapic_find_bybase(int);
void ioapic_enable(void);
-void lapic_vectorset(void); /* XXX */
extern int ioapic_bsp_id;
extern int nioapics;
-/* $OpenBSD: rbus_machdep.h,v 1.9 2011/03/23 16:54:35 pirofti Exp $ */
+/* $OpenBSD: rbus_machdep.h,v 1.10 2024/05/22 05:51:49 jsg Exp $ */
/* $NetBSD: rbus_machdep.h,v 1.2 1999/10/15 06:43:05 haya Exp $ */
/*
rbus_tag_t rbus_pccbb_parent_mem(struct device *,
struct pci_attach_args *);
-bus_addr_t rbus_min_start_hint(void);
-
void pccbb_attach_hook(struct device *, struct device *,
struct pci_attach_args *);
-/* $OpenBSD: i2s.c,v 1.38 2024/04/14 03:26:25 jsg Exp $ */
+/* $OpenBSD: i2s.c,v 1.39 2024/05/22 05:51:49 jsg Exp $ */
/* $NetBSD: i2s.c,v 1.1 2003/12/27 02:19:34 grant Exp $ */
/*-
void i2s_mute(u_int, int);
int i2s_cint(void *);
u_int i2s_gpio_offset(struct i2s_softc *, char *, int *);
-void i2s_init(struct i2s_softc *, int);
int i2s_intr(void *);
int i2s_iintr(void *);
-/* $OpenBSD: if_mc.c,v 1.33 2022/04/06 18:59:26 naddy Exp $ */
+/* $OpenBSD: if_mc.c,v 1.34 2024/05/22 05:51:49 jsg Exp $ */
/* $NetBSD: if_mc.c,v 1.9.16.1 2006/06/21 14:53:13 yamt Exp $ */
/*-
};
void mc_init(struct mc_softc *sc);
-void mc_put(struct mc_softc *sc, u_int len);
int mc_dmaintr(void *arg);
void mc_reset_rxdma(struct mc_softc *sc);
void mc_reset_txdma(struct mc_softc *sc);
-/* $OpenBSD: autoconf.h,v 1.12 2015/04/02 11:12:24 mpi Exp $ */
+/* $OpenBSD: autoconf.h,v 1.13 2024/05/22 05:51:49 jsg Exp $ */
/*
* Copyright (c) 1997 Per Fogelstrom
};
-void set_clockintr(void (*)(struct clockframe *));
-void set_iointr(void (*)(void *, int));
int badaddr(void *, u_int32_t);
-void calc_delayconst(void);
typedef int (time_read_t)(time_t *sec);
typedef int (time_write_t)(time_t sec);
-/* $OpenBSD: bus.h,v 1.26 2017/05/08 00:27:45 dlg Exp $ */
+/* $OpenBSD: bus.h,v 1.27 2024/05/22 05:51:49 jsg Exp $ */
/*
* Copyright (c) 1997 Per Fogelstrom. All rights reserved.
};
#define POWERPC_BUS_TAG_BASE(x) ((x)->bus_base)
-extern struct ppc_bus_space ppc_isa_io, ppc_isa_mem;
-
/*
* Access methods for bus resources
*/
-/* $OpenBSD: z8530var.h,v 1.10 2021/03/11 11:16:58 jsg Exp $ */
+/* $OpenBSD: z8530var.h,v 1.11 2024/05/22 05:51:49 jsg Exp $ */
/* $NetBSD: z8530var.h,v 1.5 2002/03/17 19:40:45 atatat Exp $ */
/*
volatile u_char zc_data; /* data */
u_char zc_xxx1[15];
};
-void zs_kgdb_init (void);
#ifndef ZSCCF_CHANNEL
#define ZSCCF_CHANNEL 0
-/* $OpenBSD: db_disasm.c,v 1.20 2020/06/06 22:53:04 kettenis Exp $ */
+/* $OpenBSD: db_disasm.c,v 1.21 2024/05/22 05:51:49 jsg Exp $ */
/*
* Copyright (c) 1996, 2001, 2003 Dale Rahn. All rights reserved.
*
return ((value >> (31 - base)) & mask);
}
-const struct opcode * search_op(const struct opcode *);
-
char *db_BOBI_cond[] = {
"ge",
"le",
-/* $OpenBSD: pmap.c,v 1.183 2024/04/03 19:30:59 gkoehler Exp $ */
+/* $OpenBSD: pmap.c,v 1.184 2024/05/22 05:51:49 jsg Exp $ */
/*
* Copyright (c) 2015 Martin Pieuchot
void pmap_syncicache_user_virt(pmap_t pm, vaddr_t va);
-void _pmap_kenter_pa(vaddr_t va, paddr_t pa, vm_prot_t prot, int flags,
- int cache);
void pmap_remove_pted(pmap_t, struct pte_desc *);
/* setup/initialization functions */
-/* $OpenBSD: pci_machdep.h,v 1.5 2021/06/09 19:46:33 kettenis Exp $ */
+/* $OpenBSD: pci_machdep.h,v 1.6 2024/05/22 05:51:49 jsg Exp $ */
/*
* Copyright (c) 2003-2004 Opsycon AB (www.opsycon.se / www.opsycon.com)
#define pci_dev_postattach(a, b)
void pci_mcfg_init(bus_space_tag_t, bus_addr_t, int, int, int);
-pci_chipset_tag_t pci_lookup_segment(int);
void pci_msi_enable(pci_chipset_tag_t, pcitag_t, bus_addr_t, uint32_t);
void pci_msix_enable(pci_chipset_tag_t, pcitag_t, bus_space_tag_t,
-/* $OpenBSD: db_disasm.c,v 1.3 2020/06/06 22:52:35 kettenis Exp $ */
+/* $OpenBSD: db_disasm.c,v 1.4 2024/05/22 05:51:49 jsg Exp $ */
/*
* Copyright (c) 1996, 2001, 2003 Dale Rahn. All rights reserved.
*
return ((value >> (31 - base)) & mask);
}
-const struct opcode * search_op(const struct opcode *);
-
char *db_BOBI_cond[] = {
"ge",
"le",
-/* $OpenBSD: riscv_cpu_intc.h,v 1.3 2021/05/12 01:20:52 jsg Exp $ */
+/* $OpenBSD: riscv_cpu_intc.h,v 1.4 2024/05/22 05:51:49 jsg Exp $ */
/*
* Copyright (c) 2020 Mars Li <mengshi.li.mars@gmai..com>
void *riscv_intc_intr_establish(int, int, int (*func)(void *),
void *, char *);
-void *riscv_intc_intr_establish_fdt(void *, int *, int, int (*)(void *),
- void *, char *);
void riscv_intc_intr_disestablish(void *cookie);
#endif /* _RISCV_CPU_INTC_H_ */
-/* $OpenBSD: pci_machdep.h,v 1.4 2024/02/03 10:37:26 kettenis Exp $ */
+/* $OpenBSD: pci_machdep.h,v 1.5 2024/05/22 05:51:49 jsg Exp $ */
/*
* Copyright (c) 2003-2004 Opsycon AB (www.opsycon.se / www.opsycon.com)
#define pci_dev_postattach(a, b)
void pci_mcfg_init(bus_space_tag_t, bus_addr_t, int, int, int);
-pci_chipset_tag_t pci_lookup_segment(int);
void pci_msi_enable(pci_chipset_tag_t, pcitag_t, bus_addr_t, uint32_t);
void pci_msix_enable(pci_chipset_tag_t, pcitag_t, bus_space_tag_t,
-/* $OpenBSD: cons.h,v 1.5 2024/05/13 01:15:50 jsg Exp $ */
+/* $OpenBSD: cons.h,v 1.6 2024/05/22 05:51:49 jsg Exp $ */
/* $NetBSD: cons.h,v 1.3 2000/05/19 05:26:17 eeh Exp $ */
/*-
struct consdev;
struct zs_chanstate;
-extern void *zs_conschan;
-
extern int zs_getc(void *arg);
extern void zs_putc(void *arg, int c);
-
-struct zschan *
-zs_get_chan_addr(int zsc_unit, int channel);
-/* $OpenBSD: machdep.c,v 1.217 2024/05/14 08:26:13 jsg Exp $ */
+/* $OpenBSD: machdep.c,v 1.218 2024/05/22 05:51:49 jsg Exp $ */
/* $NetBSD: machdep.c,v 1.108 2001/07/24 19:30:14 eeh Exp $ */
/*-
struct uvm_constraint_range *uvm_md_constraints[] = { NULL };
int physmem;
-extern caddr_t msgbufaddr;
int sparc_led_blink = 1;