Cada dia es una batalla mas
This commit is contained in:
parent
d4708f35f9
commit
65428aad14
151 changed files with 617 additions and 465 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: process_machdep.c,v 1.16 2018/06/05 06:39:10 guenther Exp $ */
|
||||
/* $OpenBSD: process_machdep.c,v 1.17 2024/05/13 01:15:50 jsg Exp $ */
|
||||
/* $NetBSD: process_machdep.c,v 1.1 2003/04/26 18:39:31 fvdl Exp $ */
|
||||
|
||||
/*-
|
||||
|
@ -65,10 +65,6 @@
|
|||
|
||||
static __inline struct trapframe *process_frame(struct proc *);
|
||||
static __inline struct fxsave64 *process_fpframe(struct proc *);
|
||||
#if 0
|
||||
static __inline int verr_gdt(struct pmap *, int sel);
|
||||
static __inline int verr_ldt(struct pmap *, int sel);
|
||||
#endif
|
||||
|
||||
static __inline struct trapframe *
|
||||
process_frame(struct proc *p)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: vmm_machdep.c,v 1.26 2024/05/03 13:48:29 dv Exp $ */
|
||||
/* $OpenBSD: vmm_machdep.c,v 1.27 2024/05/13 01:15:50 jsg Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2014 Mike Larkin <mlarkin@openbsd.org>
|
||||
*
|
||||
|
@ -115,7 +115,6 @@ int vmm_inject_ud(struct vcpu *);
|
|||
int vmm_inject_gp(struct vcpu *);
|
||||
int vmm_inject_db(struct vcpu *);
|
||||
void vmx_handle_intr(struct vcpu *);
|
||||
void vmx_handle_intwin(struct vcpu *);
|
||||
void vmx_handle_misc_enable_msr(struct vcpu *);
|
||||
int vmm_get_guest_memtype(struct vm *, paddr_t);
|
||||
int vmx_get_guest_faulttype(void);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: acpipci.c,v 1.7 2022/02/21 11:03:39 mpi Exp $ */
|
||||
/* $OpenBSD: acpipci.c,v 1.8 2024/05/13 01:15:50 jsg Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2018 Mark Kettenis
|
||||
*
|
||||
|
@ -85,7 +85,6 @@ const char *acpipci_hids[] = {
|
|||
NULL
|
||||
};
|
||||
|
||||
void acpipci_attach_deferred(struct device *);
|
||||
int acpipci_print(void *, const char *);
|
||||
int acpipci_parse_resources(int, union acpi_resource *, void *);
|
||||
void acpipci_osc(struct acpipci_softc *);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: pci_machdep.c,v 1.79 2024/02/02 21:13:35 kettenis Exp $ */
|
||||
/* $OpenBSD: pci_machdep.c,v 1.80 2024/05/13 10:01:53 kettenis Exp $ */
|
||||
/* $NetBSD: pci_machdep.c,v 1.3 2003/05/07 21:33:58 fvdl Exp $ */
|
||||
|
||||
/*-
|
||||
|
@ -349,11 +349,55 @@ struct pic msi_pic = {
|
|||
void
|
||||
msi_hwmask(struct pic *pic, int pin)
|
||||
{
|
||||
pci_chipset_tag_t pc = NULL; /* XXX */
|
||||
pcitag_t tag = PCI_MSI_TAG(pin);
|
||||
int vec = PCI_MSI_VEC(pin);
|
||||
pcireg_t reg, mask;
|
||||
int off;
|
||||
|
||||
if (pci_get_capability(pc, tag, PCI_CAP_MSIX, &off, ®) == 0)
|
||||
return;
|
||||
|
||||
/* We can't mask if per-vector masking isn't implemented. */
|
||||
if ((reg & PCI_MSI_MC_PVMASK) == 0)
|
||||
return;
|
||||
|
||||
if (reg & PCI_MSI_MC_C64) {
|
||||
mask = pci_conf_read(pc, tag, off + PCI_MSI_MASK64);
|
||||
pci_conf_write(pc, tag, off + PCI_MSI_MASK64,
|
||||
mask | (1U << vec));
|
||||
} else {
|
||||
mask = pci_conf_read(pc, tag, off + PCI_MSI_MASK32);
|
||||
pci_conf_write(pc, tag, off + PCI_MSI_MASK32,
|
||||
mask | (1U << vec));
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
msi_hwunmask(struct pic *pic, int pin)
|
||||
{
|
||||
pci_chipset_tag_t pc = NULL; /* XXX */
|
||||
pcitag_t tag = PCI_MSI_TAG(pin);
|
||||
int vec = PCI_MSI_VEC(pin);
|
||||
pcireg_t reg, mask;
|
||||
int off;
|
||||
|
||||
if (pci_get_capability(pc, tag, PCI_CAP_MSIX, &off, ®) == 0)
|
||||
return;
|
||||
|
||||
/* We can't mask if per-vector masking isn't implemented. */
|
||||
if ((reg & PCI_MSI_MC_PVMASK) == 0)
|
||||
return;
|
||||
|
||||
if (reg & PCI_MSI_MC_C64) {
|
||||
mask = pci_conf_read(pc, tag, off + PCI_MSI_MASK64);
|
||||
pci_conf_write(pc, tag, off + PCI_MSI_MASK64,
|
||||
mask & ~(1U << vec));
|
||||
} else {
|
||||
mask = pci_conf_read(pc, tag, off + PCI_MSI_MASK32);
|
||||
pci_conf_write(pc, tag, off + PCI_MSI_MASK32,
|
||||
mask & ~(1U << vec));
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -531,11 +575,51 @@ struct pic msix_pic = {
|
|||
void
|
||||
msix_hwmask(struct pic *pic, int pin)
|
||||
{
|
||||
pci_chipset_tag_t pc = NULL; /* XXX */
|
||||
bus_space_tag_t memt = X86_BUS_SPACE_MEM; /* XXX */
|
||||
bus_space_handle_t memh;
|
||||
pcitag_t tag = PCI_MSI_TAG(pin);
|
||||
int entry = PCI_MSI_VEC(pin);
|
||||
pcireg_t reg;
|
||||
uint32_t ctrl;
|
||||
|
||||
if (pci_get_capability(pc, tag, PCI_CAP_MSIX, NULL, ®) == 0)
|
||||
return;
|
||||
|
||||
KASSERT(entry <= PCI_MSIX_MC_TBLSZ(reg));
|
||||
|
||||
if (pci_msix_table_map(pc, tag, memt, &memh))
|
||||
panic("%s: cannot map registers", __func__);
|
||||
|
||||
ctrl = bus_space_read_4(memt, memh, PCI_MSIX_VC(entry));
|
||||
bus_space_write_4(memt, memh, PCI_MSIX_VC(entry),
|
||||
ctrl | PCI_MSIX_VC_MASK);
|
||||
|
||||
pci_msix_table_unmap(pc, tag, memt, memh);
|
||||
}
|
||||
|
||||
void
|
||||
msix_hwunmask(struct pic *pic, int pin)
|
||||
{
|
||||
pci_chipset_tag_t pc = NULL; /* XXX */
|
||||
bus_space_tag_t memt = X86_BUS_SPACE_MEM; /* XXX */
|
||||
bus_space_handle_t memh;
|
||||
pcitag_t tag = PCI_MSI_TAG(pin);
|
||||
int entry = PCI_MSI_VEC(pin);
|
||||
pcireg_t reg;
|
||||
uint32_t ctrl;
|
||||
|
||||
if (pci_get_capability(pc, tag, PCI_CAP_MSIX, NULL, ®) == 0)
|
||||
return;
|
||||
|
||||
if (pci_msix_table_map(pc, tag, memt, &memh))
|
||||
panic("%s: cannot map registers", __func__);
|
||||
|
||||
ctrl = bus_space_read_4(memt, memh, PCI_MSIX_VC(entry));
|
||||
bus_space_write_4(memt, memh, PCI_MSIX_VC(entry),
|
||||
ctrl & ~PCI_MSIX_VC_MASK);
|
||||
|
||||
pci_msix_table_unmap(pc, tag, memt, memh);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -1,3 +1 @@
|
|||
extern struct bus_space armv7_bs_tag;
|
||||
|
||||
void armv7_intr_bootstrap(vaddr_t);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: agintc.c,v 1.55 2024/02/03 10:37:25 kettenis Exp $ */
|
||||
/* $OpenBSD: agintc.c,v 1.56 2024/05/13 01:15:50 jsg Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2007, 2009, 2011, 2017 Dale Rahn <drahn@dalerahn.com>
|
||||
* Copyright (c) 2018 Mark Kettenis <kettenis@openbsd.org>
|
||||
|
@ -255,9 +255,7 @@ void agintc_route(struct agintc_softc *, int, int,
|
|||
struct cpu_info *);
|
||||
void agintc_route_irq(void *, int, struct cpu_info *);
|
||||
void agintc_intr_barrier(void *);
|
||||
void agintc_wait_rwp(struct agintc_softc *sc);
|
||||
void agintc_r_wait_rwp(struct agintc_softc *sc);
|
||||
uint32_t agintc_r_ictlr(void);
|
||||
|
||||
int agintc_ipi_ddb(void *v);
|
||||
int agintc_ipi_halt(void *v);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: apldart.c,v 1.20 2024/01/20 11:22:46 kettenis Exp $ */
|
||||
/* $OpenBSD: apldart.c,v 1.21 2024/05/13 01:15:50 jsg Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2021 Mark Kettenis <kettenis@openbsd.org>
|
||||
*
|
||||
|
@ -241,8 +241,6 @@ int apldart_dmamap_load_raw(bus_dma_tag_t, bus_dmamap_t,
|
|||
bus_dma_segment_t *, int, bus_size_t, int);
|
||||
void apldart_dmamap_unload(bus_dma_tag_t, bus_dmamap_t);
|
||||
|
||||
void apldart_write(struct apldart_softc *sc, bus_size_t, uint32_t);
|
||||
|
||||
int
|
||||
apldart_match(struct device *parent, void *match, void *aux)
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: aplefuse.c,v 1.1 2022/12/17 11:56:44 kettenis Exp $ */
|
||||
/* $OpenBSD: aplefuse.c,v 1.2 2024/05/13 01:15:50 jsg Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2022 Mark Kettenis <kettenis@openbsd.org>
|
||||
*
|
||||
|
@ -47,7 +47,6 @@ struct cfdriver aplefuse_cd = {
|
|||
};
|
||||
|
||||
int aplefuse_nvmem_read(void *, bus_addr_t, void *, bus_size_t);
|
||||
int aplefuse_nvmem_write(void *, bus_addr_t, const void *, bus_size_t);
|
||||
|
||||
int
|
||||
aplefuse_match(struct device *parent, void *match, void *aux)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: aplspi.c,v 1.5 2023/07/23 11:17:50 kettenis Exp $ */
|
||||
/* $OpenBSD: aplspi.c,v 1.6 2024/05/13 01:15:50 jsg Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2021 Mark Kettenis <kettenis@openbsd.org>
|
||||
*
|
||||
|
@ -89,7 +89,6 @@ int aplspi_acquire_bus(void *, int);
|
|||
void aplspi_release_bus(void *, int);
|
||||
|
||||
void aplspi_set_cs(struct aplspi_softc *, int, int);
|
||||
int aplspi_wait_state(struct aplspi_softc *, uint32_t, uint32_t);
|
||||
|
||||
void aplspi_scan(struct aplspi_softc *);
|
||||
|
||||
|
|
|
@ -82,7 +82,6 @@ int exiic_detach(struct device *, int);
|
|||
void exiic_scan(struct device *, struct i2cbus_attach_args *, void *);
|
||||
void exiic_setspeed(struct exiic_softc *, int);
|
||||
int exiic_wait_state(struct exiic_softc *, uint32_t, uint32_t, uint32_t);
|
||||
int exiic_start(struct exiic_softc *, int, int, void *, int);
|
||||
|
||||
void exiic_xfer_start(struct exiic_softc *);
|
||||
int exiic_xfer_wait(struct exiic_softc *);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: exmct.c,v 1.6 2021/10/24 17:52:27 mpi Exp $ */
|
||||
/* $OpenBSD: exmct.c,v 1.7 2024/05/13 01:15:50 jsg Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2012-2013 Patrick Wildt <patrick@blueri.se>
|
||||
*
|
||||
|
@ -45,8 +45,6 @@ struct exmct_softc *exmct_sc;
|
|||
|
||||
int exmct_match(struct device *, void *, void *);
|
||||
void exmct_attach(struct device *, struct device *, void *);
|
||||
void exmct_stop(void);
|
||||
void exmct_reset(void);
|
||||
|
||||
const struct cfattach exmct_ca = {
|
||||
sizeof (struct exmct_softc), exmct_match, exmct_attach
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: amdisplay.c,v 1.17 2022/07/15 17:57:25 kettenis Exp $ */
|
||||
/* $OpenBSD: amdisplay.c,v 1.18 2024/05/13 01:15:50 jsg Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2016 Ian Sutton <ians@openbsd.org>
|
||||
*
|
||||
|
@ -91,7 +91,6 @@ struct amdisplay_softc {
|
|||
int amdisplay_match(struct device *, void *, void *);
|
||||
void amdisplay_attach(struct device *, struct device *, void *);
|
||||
int amdisplay_detach(struct device *, int);
|
||||
int amdisplay_activate(struct device *, int);
|
||||
int amdisplay_intr(void *);
|
||||
|
||||
int amdisplay_ioctl(void *, u_long, caddr_t, int, struct proc *);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: omapid.c,v 1.5 2021/10/24 17:52:27 mpi Exp $ */
|
||||
/* $OpenBSD: omapid.c,v 1.6 2024/05/13 01:15:50 jsg Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2013 Dale Rahn <drahn@dalerahn.com>
|
||||
*
|
||||
|
@ -44,7 +44,6 @@ struct omapid_softc *omapid_sc;
|
|||
|
||||
|
||||
void omapid_attach(struct device *parent, struct device *self, void *args);
|
||||
void omapid_wpending(int flags);
|
||||
|
||||
const struct cfattach omapid_ca = {
|
||||
sizeof (struct omapid_softc), NULL, omapid_attach
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: omdisplay.c,v 1.10 2022/07/15 17:57:25 kettenis Exp $ */
|
||||
/* $OpenBSD: omdisplay.c,v 1.11 2024/05/13 01:15:50 jsg Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2007 Dale Rahn <drahn@openbsd.org>
|
||||
*
|
||||
|
@ -453,7 +453,6 @@ void omdisplay_free_screen(void *v, void *cookie);
|
|||
void omdisplay_start(struct omdisplay_softc *sc);
|
||||
void omdisplay_stop(struct omdisplay_softc *sc);
|
||||
int omdisplay_intr(void *v);
|
||||
void omdisplay_dumpreg(struct omdisplay_softc *sc);
|
||||
|
||||
const struct cfattach omdisplay_ca = {
|
||||
sizeof (struct omdisplay_softc), omdisplay_match, omdisplay_attach,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: omehci.c,v 1.9 2021/10/24 17:52:27 mpi Exp $ */
|
||||
/* $OpenBSD: omehci.c,v 1.10 2024/05/13 01:15:50 jsg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2005 David Gwynne <dlg@openbsd.org>
|
||||
|
@ -85,11 +85,6 @@ struct omehci_softc {
|
|||
|
||||
int omehci_init(struct omehci_softc *);
|
||||
void omehci_soft_phy_reset(struct omehci_softc *sc, unsigned int port);
|
||||
void omehci_enable(struct omehci_softc *);
|
||||
void omehci_disable(struct omehci_softc *);
|
||||
void omehci_utmi_init(struct omehci_softc *sc, unsigned int en_mask);
|
||||
void misc_setup(struct omehci_softc *sc);
|
||||
void omehci_uhh_init(struct omehci_softc *sc);
|
||||
|
||||
const struct cfattach omehci_ca = {
|
||||
sizeof (struct omehci_softc), omehci_match, omehci_attach,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: prcm.c,v 1.18 2021/10/24 17:52:28 mpi Exp $ */
|
||||
/* $OpenBSD: prcm.c,v 1.19 2024/05/13 01:15:50 jsg Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2007,2009 Dale Rahn <drahn@openbsd.org>
|
||||
*
|
||||
|
@ -88,7 +88,6 @@ struct prcm_softc {
|
|||
uint32_t cm2_avail;
|
||||
};
|
||||
|
||||
int prcm_match(struct device *, void *, void *);
|
||||
void prcm_attach(struct device *, struct device *, void *);
|
||||
int prcm_setup_dpll5(struct prcm_softc *);
|
||||
uint32_t prcm_v3_bit(int mod);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: prcmvar.h,v 1.8 2020/04/05 13:11:13 kettenis Exp $ */
|
||||
/* $OpenBSD: prcmvar.h,v 1.9 2024/05/13 01:15:50 jsg Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2007,2009 Dale Rahn <drahn@openbsd.org>
|
||||
*
|
||||
|
@ -17,7 +17,6 @@
|
|||
|
||||
void prcm_setclock(int clock, int speed);
|
||||
void prcm_enablemodule(int mod);
|
||||
void prcm_disablemodule(int mod);
|
||||
|
||||
#define PRCM_CLK_SPEED_32 0
|
||||
#define PRCM_CLK_SPEED_SYS 1
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: sxitimer.c,v 1.24 2023/09/17 14:50:51 cheloha Exp $ */
|
||||
/* $OpenBSD: sxitimer.c,v 1.25 2024/05/13 01:15:50 jsg Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2007,2009 Dale Rahn <drahn@openbsd.org>
|
||||
* Copyright (c) 2013 Raphael Graf <r@undefined.ch>
|
||||
|
@ -75,7 +75,6 @@
|
|||
int sxitimer_match(struct device *, void *, void *);
|
||||
void sxitimer_attach(struct device *, struct device *, void *);
|
||||
int sxitimer_tickintr(void *);
|
||||
int sxitimer_statintr(void *);
|
||||
void sxitimer_cpu_initclocks(void);
|
||||
void sxitimer_cpu_startclock(void);
|
||||
void sxitimer_setstatclockrate(int);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: mpbios.c,v 1.45 2023/01/30 10:49:05 jsg Exp $ */
|
||||
/* $OpenBSD: mpbios.c,v 1.46 2024/05/13 01:15:50 jsg Exp $ */
|
||||
/* $NetBSD: mpbios.c,v 1.2 2002/10/01 12:56:57 fvdl Exp $ */
|
||||
|
||||
/*-
|
||||
|
@ -152,7 +152,6 @@ struct mp_map
|
|||
|
||||
int mp_print(void *, const char *);
|
||||
int mp_match(struct device *, void *, void *);
|
||||
int mpbios_cpu_start(struct cpu_info *);
|
||||
const void *mpbios_search(struct device *, paddr_t, int, struct mp_map *);
|
||||
static __inline int mpbios_cksum(const void *, int);
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: clock.c,v 1.68 2023/09/17 14:50:51 cheloha Exp $ */
|
||||
/* $OpenBSD: clock.c,v 1.69 2024/05/13 01:15:50 jsg Exp $ */
|
||||
/* $NetBSD: clock.c,v 1.39 1996/05/12 23:11:54 mycroft Exp $ */
|
||||
|
||||
/*-
|
||||
|
@ -105,7 +105,6 @@ WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|||
#include <dev/ic/i8253reg.h>
|
||||
#include <i386/isa/nvram.h>
|
||||
|
||||
void spinwait(int);
|
||||
int clockintr(void *);
|
||||
int gettick(void);
|
||||
int rtcget(mc_todregs *);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: npx.c,v 1.75 2024/04/29 00:29:48 jsg Exp $ */
|
||||
/* $OpenBSD: npx.c,v 1.76 2024/05/13 01:15:50 jsg Exp $ */
|
||||
/* $NetBSD: npx.c,v 1.57 1996/05/12 23:12:24 mycroft Exp $ */
|
||||
|
||||
#if 0
|
||||
|
@ -157,7 +157,6 @@ npxdna_notset(struct cpu_info *ci)
|
|||
int (*npxdna_func)(struct cpu_info *) = npxdna_notset;
|
||||
int npxdna_s87(struct cpu_info *);
|
||||
int npxdna_xmm(struct cpu_info *);
|
||||
void npxexit(void);
|
||||
|
||||
/*
|
||||
* Special interrupt handlers. Someday intr0-intr15 will be used to count
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: pcibiosvar.h,v 1.18 2010/07/02 16:11:19 jsg Exp $ */
|
||||
/* $OpenBSD: pcibiosvar.h,v 1.19 2024/05/13 01:15:50 jsg Exp $ */
|
||||
/* $NetBSD: pcibios.h,v 1.2 2000/04/28 17:15:16 uch Exp $ */
|
||||
|
||||
/*
|
||||
|
@ -105,8 +105,6 @@ struct pcibios_pir_header {
|
|||
#define PIR_DEVFUNC_FUNCTION(devfunc) ((devfunc) & 7)
|
||||
#define PIR_DEVFUNC_COMPOSE(dev,func) ((((dev) &0x1f) << 3) | ((func) & 7))
|
||||
|
||||
void pcibios_init(void);
|
||||
|
||||
extern struct pcibios_pir_header pcibios_pir_header;
|
||||
extern struct pcibios_intr_routing *pcibios_pir_table;
|
||||
extern int pcibios_pir_table_nentries;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: db_command.c,v 1.100 2023/09/19 11:35:30 claudio Exp $ */
|
||||
/* $OpenBSD: db_command.c,v 1.101 2024/05/13 01:15:50 jsg Exp $ */
|
||||
/* $NetBSD: db_command.c,v 1.20 1996/03/30 22:30:05 christos Exp $ */
|
||||
|
||||
/*
|
||||
|
@ -115,7 +115,6 @@ void db_stack_trace_cmd(db_expr_t, int, db_expr_t, char *);
|
|||
void db_dmesg_cmd(db_expr_t, int, db_expr_t, char *);
|
||||
void db_show_panic_cmd(db_expr_t, int, db_expr_t, char *);
|
||||
void db_bcstats_print_cmd(db_expr_t, int, db_expr_t, char *);
|
||||
void db_struct_offset_cmd(db_expr_t, int, db_expr_t, char *);
|
||||
void db_ctf_show_struct(db_expr_t, int, db_expr_t, char *);
|
||||
void db_show_regs(db_expr_t, int, db_expr_t, char *);
|
||||
void db_write_cmd(db_expr_t, int, db_expr_t, char *);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: db_extern.h,v 1.21 2019/11/07 13:16:25 mpi Exp $ */
|
||||
/* $OpenBSD: db_extern.h,v 1.22 2024/05/13 01:15:50 jsg Exp $ */
|
||||
/* $NetBSD: db_extern.h,v 1.1 1996/02/05 01:57:00 christos Exp $ */
|
||||
|
||||
/*
|
||||
|
@ -55,7 +55,6 @@ int db_readline(char *, int);
|
|||
void db_trap(int, int);
|
||||
|
||||
/* db_prof.c */
|
||||
void db_prof_init(void);
|
||||
int db_prof_enable(void);
|
||||
void db_prof_disable(void);
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: acpi.c,v 1.426 2024/01/08 19:52:29 kettenis Exp $ */
|
||||
/* $OpenBSD: acpi.c,v 1.428 2024/05/13 19:56:37 kettenis Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
|
||||
* Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org>
|
||||
|
@ -106,8 +106,6 @@ void acpi_create_thread(void *);
|
|||
void acpi_init_pm(struct acpi_softc *);
|
||||
|
||||
int acpi_founddock(struct aml_node *, void *);
|
||||
int acpi_foundpss(struct aml_node *, void *);
|
||||
int acpi_foundtmp(struct aml_node *, void *);
|
||||
int acpi_foundprw(struct aml_node *, void *);
|
||||
int acpi_foundvideo(struct aml_node *, void *);
|
||||
int acpi_foundsbs(struct aml_node *node, void *);
|
||||
|
@ -1965,6 +1963,12 @@ acpi_sleep_task(void *arg0, int sleepmode)
|
|||
|
||||
#endif /* SMALL_KERNEL */
|
||||
|
||||
int
|
||||
acpi_resuming(struct acpi_softc *sc)
|
||||
{
|
||||
return (getuptime() < sc->sc_resume_time + 10);
|
||||
}
|
||||
|
||||
void
|
||||
acpi_reset(void)
|
||||
{
|
||||
|
@ -2031,6 +2035,10 @@ acpi_pbtn_task(void *arg0, int dummy)
|
|||
en | ACPI_PM1_PWRBTN_EN);
|
||||
splx(s);
|
||||
|
||||
/* Ignore button events if we're resuming. */
|
||||
if (acpi_resuming(sc))
|
||||
return;
|
||||
|
||||
switch (pwr_action) {
|
||||
case 0:
|
||||
break;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: acpi_x86.c,v 1.17 2023/07/06 06:58:07 deraadt Exp $ */
|
||||
/* $OpenBSD: acpi_x86.c,v 1.18 2024/05/13 19:56:37 kettenis Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
|
||||
* Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org>
|
||||
|
@ -114,6 +114,8 @@ sleep_resume(void *v)
|
|||
{
|
||||
struct acpi_softc *sc = v;
|
||||
|
||||
sc->sc_resume_time = getuptime();
|
||||
|
||||
acpibtn_disable_psw(); /* disable _LID for wakeup */
|
||||
|
||||
/* 3rd resume AML step: _TTS(runstate) */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: acpibtn.c,v 1.51 2023/06/29 20:58:08 dv Exp $ */
|
||||
/* $OpenBSD: acpibtn.c,v 1.52 2024/05/13 19:56:37 kettenis Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2005 Marco Peereboom <marco@openbsd.org>
|
||||
*
|
||||
|
@ -229,6 +229,10 @@ acpibtn_notify(struct aml_node *node, int notify_type, void *arg)
|
|||
dnprintf(10, "acpibtn_notify: %.2x %s\n", notify_type,
|
||||
sc->sc_devnode->name);
|
||||
|
||||
/* Ignore button events if we're resuming. */
|
||||
if (acpi_resuming(sc->sc_acpi))
|
||||
return (0);
|
||||
|
||||
switch (sc->sc_btn_type) {
|
||||
case ACPIBTN_LID:
|
||||
#ifndef SMALL_KERNEL
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: acpidebug.c,v 1.33 2022/08/10 16:58:16 patrick Exp $ */
|
||||
/* $OpenBSD: acpidebug.c,v 1.34 2024/05/13 01:15:50 jsg Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2006 Marco Peereboom <marco@openbsd.org>
|
||||
*
|
||||
|
@ -48,10 +48,6 @@ void db_aml_showvalue(struct aml_value *);
|
|||
void db_aml_walktree(struct aml_node *);
|
||||
void db_disprint(void *, const char *, ...);
|
||||
|
||||
const char *db_aml_fieldacc(int);
|
||||
const char *db_aml_fieldlock(int);
|
||||
const char *db_aml_fieldupdate(int);
|
||||
|
||||
/* name of scope for lexer */
|
||||
char scope[80];
|
||||
|
||||
|
|
|
@ -531,6 +531,5 @@ enum {
|
|||
|
||||
void acpidmar_pci_hook(pci_chipset_tag_t, struct pci_attach_args *);
|
||||
void dmar_ptmap(bus_dma_tag_t, bus_addr_t);
|
||||
void acpidmar_sw(int);
|
||||
|
||||
#define __EXTRACT(v,m) (((v) >> m##_SHIFT) & m##_MASK)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: acpitz.c,v 1.59 2022/08/10 16:58:16 patrick Exp $ */
|
||||
/* $OpenBSD: acpitz.c,v 1.60 2024/05/13 01:15:50 jsg Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2006 Can Erkin Acar <canacar@openbsd.org>
|
||||
* Copyright (c) 2005 Marco Peereboom <marco@openbsd.org>
|
||||
|
@ -78,7 +78,6 @@ struct cfdriver acpitz_cd = {
|
|||
|
||||
void acpitz_init_perf(void *);
|
||||
void acpitz_setperf(int);
|
||||
void acpitz_monitor(struct acpitz_softc *);
|
||||
void acpitz_refresh(void *);
|
||||
int acpitz_notify(struct aml_node *, int, void *);
|
||||
int acpitz_gettempreading(struct acpitz_softc *, char *);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: acpivar.h,v 1.125 2023/11/29 03:41:31 jsg Exp $ */
|
||||
/* $OpenBSD: acpivar.h,v 1.127 2024/05/13 19:56:37 kettenis Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
|
||||
*
|
||||
|
@ -269,6 +269,7 @@ struct acpi_softc {
|
|||
struct aml_node *sc_sst;
|
||||
struct aml_node *sc_wak;
|
||||
int sc_state;
|
||||
time_t sc_resume_time;
|
||||
struct acpiec_softc *sc_ec; /* XXX assume single EC */
|
||||
|
||||
struct acpi_ac_head sc_ac;
|
||||
|
@ -340,7 +341,7 @@ int acpi_sleep_cpu(struct acpi_softc *, int);
|
|||
void acpi_sleep_pm(struct acpi_softc *, int);
|
||||
void acpi_resume_pm(struct acpi_softc *, int);
|
||||
void acpi_resume_cpu(struct acpi_softc *, int);
|
||||
void acpi_sleep_walk(struct acpi_softc *, int);
|
||||
int acpi_resuming(struct acpi_softc *);
|
||||
|
||||
#define ACPI_IOREAD 0
|
||||
#define ACPI_IOWRITE 1
|
||||
|
@ -354,12 +355,9 @@ void acpi_register_gsb(struct acpi_softc *, struct aml_node *);
|
|||
|
||||
int acpi_set_gpehandler(struct acpi_softc *, int,
|
||||
int (*)(struct acpi_softc *, int, void *), void *, int);
|
||||
void acpi_enable_gpe(struct acpi_softc *, uint32_t);
|
||||
|
||||
int acpiec_intr(struct acpiec_softc *);
|
||||
void acpiec_read(struct acpiec_softc *, uint8_t, int, uint8_t *);
|
||||
void acpiec_write(struct acpiec_softc *, uint8_t, int, uint8_t *);
|
||||
void acpiec_handle_events(struct acpiec_softc *);
|
||||
|
||||
#if NACPIPWRRES > 0
|
||||
int acpipwrres_ref_incr(struct acpipwrres_softc *, struct aml_node *);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: dsdt.c,v 1.266 2024/04/13 23:44:11 jsg Exp $ */
|
||||
/* $OpenBSD: dsdt.c,v 1.267 2024/05/13 01:15:50 jsg Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org>
|
||||
*
|
||||
|
@ -78,13 +78,6 @@ void aml_bufcpy(void *, int, const void *, int, int);
|
|||
|
||||
int aml_pc(uint8_t *);
|
||||
|
||||
struct aml_value *aml_parseop(struct aml_scope *, struct aml_value *,int);
|
||||
struct aml_value *aml_parsetarget(struct aml_scope *, struct aml_value *,
|
||||
struct aml_value **);
|
||||
struct aml_value *aml_parseterm(struct aml_scope *, struct aml_value *);
|
||||
|
||||
struct aml_value *aml_evaltarget(struct aml_scope *scope,
|
||||
struct aml_value *res);
|
||||
int aml_evalterm(struct aml_scope *scope,
|
||||
struct aml_value *raw, struct aml_value *dst);
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: dsdt.h,v 1.81 2024/01/08 19:52:29 kettenis Exp $ */
|
||||
/* $OpenBSD: dsdt.h,v 1.82 2024/05/13 01:15:50 jsg Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2005 Marco Peereboom <marco@openbsd.org>
|
||||
*
|
||||
|
@ -51,8 +51,6 @@ struct aml_value *aml_allocvalue(int, int64_t, const void *);
|
|||
void aml_freevalue(struct aml_value *);
|
||||
void aml_notify(struct aml_node *, int);
|
||||
void aml_showvalue(struct aml_value *);
|
||||
void aml_walkroot(void);
|
||||
void aml_walktree(struct aml_node *);
|
||||
|
||||
void aml_find_node(struct aml_node *, const char *,
|
||||
int (*)(struct aml_node *, void *), void *);
|
||||
|
@ -325,7 +323,6 @@ const char *aml_val_to_string(const struct aml_value *);
|
|||
void aml_disasm(struct aml_scope *scope, int lvl,
|
||||
void (*dbprintf)(void *, const char *, ...),
|
||||
void *arg);
|
||||
int aml_getpci(struct aml_node *, int64_t *);
|
||||
int aml_evalhid(struct aml_node *, struct aml_value *);
|
||||
|
||||
int acpi_walkmem(int, const char *);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: dwgpio.c,v 1.7 2022/04/06 18:59:27 naddy Exp $ */
|
||||
/* $OpenBSD: dwgpio.c,v 1.8 2024/05/13 01:15:50 jsg Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2020 Mark Kettenis
|
||||
*
|
||||
|
@ -91,7 +91,6 @@ int dwgpio_found_hid(struct aml_node *, void *);
|
|||
int dwgpio_read_pin(void *, int);
|
||||
void dwgpio_write_pin(void *, int, int);
|
||||
void dwgpio_intr_establish(void *, int, int, int (*)(void *), void *);
|
||||
int dwgpio_pin_intr(struct dwgpio_softc *, int);
|
||||
int dwgpio_intr(void *);
|
||||
|
||||
int
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: glkgpio.c,v 1.6 2022/10/20 20:40:57 kettenis Exp $ */
|
||||
/* $OpenBSD: glkgpio.c,v 1.7 2024/05/13 01:15:50 jsg Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2016 Mark Kettenis
|
||||
* Copyright (c) 2019 James Hastings
|
||||
|
@ -73,7 +73,6 @@ const char *glkgpio_hids[] = {
|
|||
NULL
|
||||
};
|
||||
|
||||
int glkgpio_parse_resources(int, union acpi_resource *, void *);
|
||||
int glkgpio_read_pin(void *, int);
|
||||
void glkgpio_write_pin(void *, int, int);
|
||||
void glkgpio_intr_establish(void *, int, int, int (*)(void *), void *);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: tpm.c,v 1.18 2023/08/15 08:27:29 miod Exp $ */
|
||||
/* $OpenBSD: tpm.c,v 1.19 2024/05/13 01:15:50 jsg Exp $ */
|
||||
|
||||
/*
|
||||
* Minimal interface to Trusted Platform Module chips implementing the
|
||||
|
@ -218,8 +218,6 @@ int tpm_request_locality_tis(struct tpm_softc *, int);
|
|||
int tpm_request_locality_crb(struct tpm_softc *, int);
|
||||
void tpm_release_locality_tis(struct tpm_softc *);
|
||||
void tpm_release_locality_crb(struct tpm_softc *);
|
||||
int tpm_getburst_tis(struct tpm_softc *);
|
||||
int tpm_getburst_crb(struct tpm_softc *);
|
||||
uint8_t tpm_status(struct tpm_softc *);
|
||||
|
||||
uint32_t tpm2_start_method(struct acpi_softc *);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: ams.c,v 1.8 2022/04/06 18:59:27 naddy Exp $ */
|
||||
/* $OpenBSD: ams.c,v 1.9 2024/05/13 01:15:50 jsg Exp $ */
|
||||
/* $NetBSD: ams.c,v 1.11 2000/12/19 03:13:40 tsubai Exp $ */
|
||||
|
||||
/*
|
||||
|
@ -70,7 +70,6 @@ const struct wsmouse_accessops ams_accessops = {
|
|||
|
||||
void ems_init(struct ams_softc *);
|
||||
void ms_adbcomplete(caddr_t buffer, caddr_t data_area, int adb_command);
|
||||
void ms_handoff(adb_event_t *event, struct ams_softc *);
|
||||
void ms_processevent(adb_event_t *event, struct ams_softc *);
|
||||
|
||||
int
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: atascsi.c,v 1.153 2022/04/16 19:19:58 naddy Exp $ */
|
||||
/* $OpenBSD: atascsi.c,v 1.154 2024/05/13 01:15:50 jsg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 David Gwynne <dlg@openbsd.org>
|
||||
|
@ -128,7 +128,6 @@ void atascsi_atapi_cmd(struct scsi_xfer *);
|
|||
void atascsi_atapi_cmd_done(struct ata_xfer *);
|
||||
|
||||
void atascsi_pmp_cmd(struct scsi_xfer *);
|
||||
void atascsi_pmp_cmd_done(struct ata_xfer *);
|
||||
void atascsi_pmp_sense(struct scsi_xfer *xs);
|
||||
void atascsi_pmp_inq(struct scsi_xfer *xs);
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: atavar.h,v 1.22 2022/01/09 05:42:37 jsg Exp $ */
|
||||
/* $OpenBSD: atavar.h,v 1.23 2024/05/13 01:15:50 jsg Exp $ */
|
||||
/* $NetBSD: atavar.h,v 1.13 1999/03/10 13:11:43 bouyer Exp $ */
|
||||
|
||||
/*
|
||||
|
@ -168,7 +168,6 @@ void wdc_reset_channel(struct ata_drive_datas *, int);
|
|||
|
||||
int wdc_ata_addref(struct ata_drive_datas *);
|
||||
void wdc_ata_delref(struct ata_drive_datas *);
|
||||
void wdc_ata_kill_pending(struct ata_drive_datas *);
|
||||
|
||||
int ata_get_params(struct ata_drive_datas*, u_int8_t,
|
||||
struct ataparams *);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: cons.h,v 1.19 2022/07/02 08:50:41 visa Exp $ */
|
||||
/* $OpenBSD: cons.h,v 1.20 2024/05/13 01:15:50 jsg Exp $ */
|
||||
/* $NetBSD: cons.h,v 1.14 1996/03/14 19:08:35 christos Exp $ */
|
||||
|
||||
/*
|
||||
|
@ -86,7 +86,6 @@ int cngetc(void);
|
|||
void cnputc(int);
|
||||
void cnpollc(int);
|
||||
void cnbell(u_int, u_int, u_int);
|
||||
void cnrint(void);
|
||||
void nullcnpollc(dev_t, int);
|
||||
|
||||
/* console-specific types */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: amlusbphy.c,v 1.3 2022/01/09 05:42:37 jsg Exp $ */
|
||||
/* $OpenBSD: amlusbphy.c,v 1.4 2024/05/13 01:15:50 jsg Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2019 Mark Kettenis <kettenis@openbsd.org>
|
||||
*
|
||||
|
@ -109,8 +109,6 @@ struct cfdriver amlusbphy_cd = {
|
|||
};
|
||||
|
||||
int amlusbphy_enable(void *, uint32_t *);
|
||||
uint16_t amlusbphy_read(struct amlusbphy_softc *, bus_addr_t);
|
||||
void amlusbphy_write(struct amlusbphy_softc *, bus_addr_t, uint16_t);
|
||||
|
||||
int
|
||||
amlusbphy_match(struct device *parent, void *match, void *aux)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: if_mvpp.c,v 1.52 2024/03/18 21:37:44 patrick Exp $ */
|
||||
/* $OpenBSD: if_mvpp.c,v 1.53 2024/05/13 01:15:50 jsg Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2008, 2019 Mark Kettenis <kettenis@openbsd.org>
|
||||
* Copyright (c) 2017, 2020 Patrick Wildt <patrick@blueri.se>
|
||||
|
@ -284,7 +284,6 @@ void mvpp2_inband_statchg(struct mvpp2_port *);
|
|||
void mvpp2_port_change(struct mvpp2_port *);
|
||||
|
||||
void mvpp2_tick(void *);
|
||||
void mvpp2_rxtick(void *);
|
||||
|
||||
int mvpp2_link_intr(void *);
|
||||
int mvpp2_intr(void *);
|
||||
|
@ -322,7 +321,6 @@ struct mvpp2_dmamem *
|
|||
mvpp2_dmamem_alloc(struct mvpp2_softc *, bus_size_t, bus_size_t);
|
||||
void mvpp2_dmamem_free(struct mvpp2_softc *, struct mvpp2_dmamem *);
|
||||
struct mbuf *mvpp2_alloc_mbuf(struct mvpp2_softc *, bus_dmamap_t);
|
||||
void mvpp2_fill_rx_ring(struct mvpp2_softc *);
|
||||
|
||||
void mvpp2_interrupts_enable(struct mvpp2_port *, int);
|
||||
void mvpp2_interrupts_disable(struct mvpp2_port *, int);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: imxspi.c,v 1.4 2022/02/14 00:53:40 jsg Exp $ */
|
||||
/* $OpenBSD: imxspi.c,v 1.5 2024/05/13 01:15:50 jsg Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2018 Patrick Wildt <patrick@blueri.se>
|
||||
*
|
||||
|
@ -106,7 +106,6 @@ int imxspi_match(struct device *, void *, void *);
|
|||
void imxspi_attach(struct device *, struct device *, void *);
|
||||
void imxspi_attachhook(struct device *);
|
||||
int imxspi_detach(struct device *, int);
|
||||
int imxspi_intr(void *);
|
||||
|
||||
void imxspi_config(void *, struct spi_config *);
|
||||
uint32_t imxspi_clkdiv(struct imxspi_softc *, uint32_t);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: qccpu.c,v 1.2 2023/07/01 18:59:11 drahn Exp $ */
|
||||
/* $OpenBSD: qccpu.c,v 1.3 2024/05/13 01:15:50 jsg Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2023 Dale Rahn <drahn@openbsd.org>
|
||||
*
|
||||
|
@ -78,7 +78,6 @@ struct qccpu_softc {
|
|||
|
||||
int qccpu_match(struct device *, void *, void *);
|
||||
void qccpu_attach(struct device *, struct device *, void *);
|
||||
void qccpu_enable(void *, uint32_t *, int);
|
||||
int qccpu_set_frequency(void *, uint32_t *, uint32_t);
|
||||
uint32_t qccpu_get_frequency(void *, uint32_t *);
|
||||
uint32_t qccpu_lut_to_freq(struct qccpu_softc *, int, uint32_t);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: qcgpio_fdt.c,v 1.2 2022/11/08 11:51:34 patrick Exp $ */
|
||||
/* $OpenBSD: qcgpio_fdt.c,v 1.3 2024/05/13 01:15:50 jsg Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2022 Mark Kettenis <kettenis@openbsd.org>
|
||||
*
|
||||
|
@ -93,7 +93,6 @@ void qcgpio_fdt_intr_disestablish(void *);
|
|||
void qcgpio_fdt_intr_enable(void *);
|
||||
void qcgpio_fdt_intr_disable(void *);
|
||||
void qcgpio_fdt_intr_barrier(void *);
|
||||
int qcgpio_fdt_pin_intr(struct qcgpio_softc *, int);
|
||||
int qcgpio_fdt_intr(void *);
|
||||
|
||||
int
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: qcrtc.c,v 1.3 2023/07/22 22:48:35 patrick Exp $ */
|
||||
/* $OpenBSD: qcrtc.c,v 1.4 2024/05/13 01:15:50 jsg Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2022 Patrick Wildt <patrick@blueri.se>
|
||||
*
|
||||
|
@ -60,8 +60,6 @@ struct cfdriver qcrtc_cd = {
|
|||
int qcrtc_gettime(struct todr_chip_handle *, struct timeval *);
|
||||
int qcrtc_settime(struct todr_chip_handle *, struct timeval *);
|
||||
|
||||
void qcrtc_tick(void *);
|
||||
|
||||
extern int qcscm_uefi_rtc_get(uint32_t *);
|
||||
extern int qcscm_uefi_rtc_set(uint32_t);
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: qcspmi.c,v 1.3 2022/12/21 23:26:54 patrick Exp $ */
|
||||
/* $OpenBSD: qcspmi.c,v 1.4 2024/05/13 01:15:50 jsg Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2022 Patrick Wildt <patrick@blueri.se>
|
||||
*
|
||||
|
@ -165,7 +165,6 @@ void qcspmi_intr_disestablish(void *);
|
|||
void qcspmi_intr_enable(void *);
|
||||
void qcspmi_intr_disable(void *);
|
||||
void qcspmi_intr_barrier(void *);
|
||||
int qcspmi_pin_intr(struct qcspmi_softc *, int);
|
||||
int qcspmi_intr(void *);
|
||||
|
||||
const struct cfattach qcspmi_ca = {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: rkdrm.c,v 1.21 2024/02/15 09:48:03 jsg Exp $ */
|
||||
/* $OpenBSD: rkdrm.c,v 1.22 2024/05/13 01:15:50 jsg Exp $ */
|
||||
/* $NetBSD: rk_drm.c,v 1.3 2019/12/15 01:00:58 mrg Exp $ */
|
||||
/*-
|
||||
* Copyright (c) 2019 Jared D. McNeill <jmcneill@invisible.ca>
|
||||
|
@ -51,11 +51,6 @@ int rkdrm_match(struct device *, void *, void *);
|
|||
void rkdrm_attach(struct device *, struct device *, void *);
|
||||
void rkdrm_attachhook(struct device *);
|
||||
|
||||
#ifdef notyet
|
||||
vmem_t *rkdrm_alloc_cma_pool(struct drm_device *, size_t);
|
||||
#endif
|
||||
|
||||
int rkdrm_load(struct drm_device *, unsigned long);
|
||||
int rkdrm_unload(struct drm_device *);
|
||||
|
||||
struct drm_driver rkdrm_driver = {
|
||||
|
@ -212,8 +207,6 @@ int rkdrm_show_screen(void *, void *, int,
|
|||
void (*)(void *, int, int), void *);
|
||||
void rkdrm_doswitch(void *);
|
||||
void rkdrm_enter_ddb(void *, void *);
|
||||
int rkdrm_get_param(struct wsdisplay_param *);
|
||||
int rkdrm_set_param(struct wsdisplay_param *);
|
||||
|
||||
struct wsscreen_descr rkdrm_stdscreen = {
|
||||
"std",
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: rkspi.c,v 1.1 2024/03/02 19:50:30 kettenis Exp $ */
|
||||
/* $OpenBSD: rkspi.c,v 1.2 2024/05/13 01:15:50 jsg Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2018,2023 Patrick Wildt <patrick@blueri.se>
|
||||
* Copyright (c) 2024 Mark Kettenis <kettenis@openbsd.org>
|
||||
|
@ -105,7 +105,6 @@ struct rkspi_softc {
|
|||
int rkspi_match(struct device *, void *, void *);
|
||||
void rkspi_attach(struct device *, struct device *, void *);
|
||||
int rkspi_detach(struct device *, int);
|
||||
int rkspi_intr(void *);
|
||||
|
||||
void rkspi_config(void *, struct spi_config *);
|
||||
int rkspi_transfer(void *, char *, char *, int, int);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: ssdfb.c,v 1.13 2022/07/15 17:57:26 kettenis Exp $ */
|
||||
/* $OpenBSD: ssdfb.c,v 1.14 2024/05/13 01:15:50 jsg Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2018 Patrick Wildt <patrick@blueri.se>
|
||||
*
|
||||
|
@ -119,7 +119,6 @@ void ssdfb_write_command(struct ssdfb_softc *, char *, size_t);
|
|||
void ssdfb_write_data(struct ssdfb_softc *, char *, size_t);
|
||||
|
||||
void ssdfb_init(struct ssdfb_softc *);
|
||||
void ssdfb_update(void *);
|
||||
|
||||
void ssdfb_partial(struct ssdfb_softc *, uint32_t, uint32_t,
|
||||
uint32_t, uint32_t);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: sximmc.c,v 1.14 2024/02/07 22:35:08 kettenis Exp $ */
|
||||
/* $OpenBSD: sximmc.c,v 1.15 2024/05/13 01:15:50 jsg Exp $ */
|
||||
/* $NetBSD: awin_mmc.c,v 1.23 2015/11/14 10:32:40 bouyer Exp $ */
|
||||
|
||||
/*-
|
||||
|
@ -214,7 +214,6 @@ int sximmc_host_reset(sdmmc_chipset_handle_t);
|
|||
uint32_t sximmc_host_ocr(sdmmc_chipset_handle_t);
|
||||
int sximmc_host_maxblklen(sdmmc_chipset_handle_t);
|
||||
int sximmc_card_detect(sdmmc_chipset_handle_t);
|
||||
int sximmc_write_protect(sdmmc_chipset_handle_t);
|
||||
int sximmc_bus_power(sdmmc_chipset_handle_t, uint32_t);
|
||||
int sximmc_bus_clock(sdmmc_chipset_handle_t, int, int);
|
||||
int sximmc_bus_width(sdmmc_chipset_handle_t, int);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: gpiodcf.c,v 1.10 2022/07/02 08:50:42 visa Exp $ */
|
||||
/* $OpenBSD: gpiodcf.c,v 1.11 2024/05/13 01:15:50 jsg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2008 Marc Balmer <mbalmer@openbsd.org>
|
||||
|
@ -89,7 +89,6 @@ struct gpiodcf_softc {
|
|||
#define T_WARN 300000 /* degrade sensor status to warning (5min) */
|
||||
#define T_CRIT 900000 /* degrade sensor status to critical (15min) */
|
||||
|
||||
void gpiodcf_intr(void *);
|
||||
void gpiodcf_probe(void *);
|
||||
void gpiodcf_bv_probe(void *);
|
||||
void gpiodcf_mg_probe(void *);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: ietp.h,v 1.1 2023/07/08 02:43:02 jcs Exp $ */
|
||||
/* $OpenBSD: ietp.h,v 1.2 2024/05/13 01:15:50 jsg Exp $ */
|
||||
/*
|
||||
* Elantech touchpad I2C driver
|
||||
*
|
||||
|
@ -59,8 +59,6 @@ struct ietp_softc {
|
|||
bool is_clickpad;
|
||||
};
|
||||
|
||||
int ietp_open(struct ietp_softc *);
|
||||
void ietp_close(struct ietp_softc *);
|
||||
int ietp_ioctl(void *, u_long, caddr_t, int, struct proc *);
|
||||
int ietp_enable(void *dev);
|
||||
void ietp_disable(void *dev);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: imt.c,v 1.5 2020/07/09 21:01:56 jcs Exp $ */
|
||||
/* $OpenBSD: imt.c,v 1.6 2024/05/13 01:15:50 jsg Exp $ */
|
||||
/*
|
||||
* HID-over-i2c multitouch trackpad driver for devices conforming to
|
||||
* Windows Precision Touchpad standard
|
||||
|
@ -45,7 +45,6 @@ struct imt_softc {
|
|||
};
|
||||
|
||||
int imt_enable(void *);
|
||||
int imt_open(struct ihidev *);
|
||||
void imt_intr(struct ihidev *, void *, u_int);
|
||||
void imt_disable(void *);
|
||||
int imt_ioctl(void *, u_long, caddr_t, int, struct proc *);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: pca9548.c,v 1.6 2022/04/06 18:59:28 naddy Exp $ */
|
||||
/* $OpenBSD: pca9548.c,v 1.7 2024/05/13 01:15:50 jsg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2020 Mark Kettenis
|
||||
|
@ -93,7 +93,6 @@ void pcamux_attach_acpi(struct pcamux_softc *, struct i2c_attach_args *);
|
|||
int pcamux_attach_acpi_mux(struct aml_node *, void *);
|
||||
void pcamux_acpi_bus_scan(struct device *,
|
||||
struct i2cbus_attach_args *, void *);
|
||||
int pcamux_acpi_found_channel(struct aml_node *, void *);
|
||||
int pcamux_acpi_found_hid(struct aml_node *, void *);
|
||||
int pcamux_acpi_parse_crs(int, union acpi_resource *, void *);
|
||||
#endif
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: anvar.h,v 1.23 2009/10/13 19:33:16 pirofti Exp $ */
|
||||
/* $OpenBSD: anvar.h,v 1.24 2024/05/13 01:15:50 jsg Exp $ */
|
||||
/* $NetBSD: anvar.h,v 1.10 2005/02/27 00:27:00 perry Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1997, 1998, 1999
|
||||
|
@ -161,8 +161,6 @@ struct an_softc {
|
|||
|
||||
int an_attach(struct an_softc *);
|
||||
int an_detach(struct an_softc *);
|
||||
int an_activate(struct device *, int);
|
||||
void an_power(int, void *);
|
||||
int an_intr(void *);
|
||||
int an_init(struct ifnet *);
|
||||
void an_stop(struct ifnet *, int);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: atw.c,v 1.100 2022/04/21 21:03:02 stsp Exp $ */
|
||||
/* $OpenBSD: atw.c,v 1.101 2024/05/13 01:15:50 jsg Exp $ */
|
||||
/* $NetBSD: atw.c,v 1.69 2004/07/23 07:07:55 dyoung Exp $ */
|
||||
|
||||
/*-
|
||||
|
@ -163,10 +163,6 @@ void atw_si4126_print(struct atw_softc *);
|
|||
#define DPRINTF3(sc, x) /* nothing */
|
||||
#endif
|
||||
|
||||
#ifdef ATW_STATS
|
||||
void atw_print_stats(struct atw_softc *);
|
||||
#endif
|
||||
|
||||
const char *atw_printmac(u_int8_t);
|
||||
|
||||
/* ifnet methods */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: com.c,v 1.178 2023/09/11 08:41:26 mvs Exp $ */
|
||||
/* $OpenBSD: com.c,v 1.179 2024/05/13 01:15:50 jsg Exp $ */
|
||||
/* $NetBSD: com.c,v 1.82.4.1 1996/06/02 09:08:00 mrg Exp $ */
|
||||
|
||||
/*
|
||||
|
@ -94,7 +94,6 @@ static u_char tiocm_xxx2mcr(int);
|
|||
|
||||
void compwroff(struct com_softc *);
|
||||
void cominit(bus_space_tag_t, bus_space_handle_t, int, int);
|
||||
int com_is_console(bus_space_tag_t, bus_addr_t);
|
||||
|
||||
struct cfdriver com_cd = {
|
||||
NULL, "com", DV_TTY
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: dc.c,v 1.156 2023/11/10 15:51:20 bluhm Exp $ */
|
||||
/* $OpenBSD: dc.c,v 1.157 2024/05/13 01:15:50 jsg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997, 1998, 1999
|
||||
|
@ -134,7 +134,6 @@
|
|||
#endif
|
||||
|
||||
int dc_intr(void *);
|
||||
struct dc_type *dc_devtype(void *);
|
||||
int dc_newbuf(struct dc_softc *, int, struct mbuf *);
|
||||
int dc_encap(struct dc_softc *, bus_dmamap_t, struct mbuf *, u_int32_t *);
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: gemvar.h,v 1.31 2015/11/28 09:42:10 jmatthew Exp $ */
|
||||
/* $OpenBSD: gemvar.h,v 1.32 2024/05/13 01:15:50 jsg Exp $ */
|
||||
/* $NetBSD: gemvar.h,v 1.1 2001/09/16 00:11:43 eeh Exp $ */
|
||||
|
||||
/*
|
||||
|
@ -272,15 +272,7 @@ do { \
|
|||
} while (0)
|
||||
|
||||
#ifdef _KERNEL
|
||||
void gem_attach(struct gem_softc *, const u_int8_t *);
|
||||
int gem_activate(struct device *, int);
|
||||
int gem_detach(struct gem_softc *);
|
||||
int gem_intr(void *);
|
||||
int gem_read_srom(struct gem_softc *);
|
||||
int gem_srom_crcok(const u_int8_t *);
|
||||
int gem_isv_srom(const u_int8_t *);
|
||||
int gem_isv_srom_enaddr(struct gem_softc *, u_int8_t *);
|
||||
int gem_parse_old_srom(struct gem_softc *, u_int8_t *);
|
||||
|
||||
int gem_mediachange(struct ifnet *);
|
||||
void gem_mediastatus(struct ifnet *, struct ifmediareq *);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: nvme.c,v 1.110 2024/05/10 21:23:32 krw Exp $ */
|
||||
/* $OpenBSD: nvme.c,v 1.111 2024/05/13 11:41:52 krw Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2014 David Gwynne <dlg@openbsd.org>
|
||||
|
@ -16,7 +16,10 @@
|
|||
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "bio.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/buf.h>
|
||||
#include <sys/kernel.h>
|
||||
|
@ -25,6 +28,7 @@
|
|||
#include <sys/queue.h>
|
||||
#include <sys/mutex.h>
|
||||
#include <sys/pool.h>
|
||||
#include <sys/disk.h>
|
||||
|
||||
#include <sys/atomic.h>
|
||||
|
||||
|
@ -33,7 +37,9 @@
|
|||
#include <scsi/scsi_all.h>
|
||||
#include <scsi/scsi_disk.h>
|
||||
#include <scsi/scsiconf.h>
|
||||
#include <scsi/sdvar.h>
|
||||
|
||||
#include <dev/biovar.h>
|
||||
#include <dev/ic/nvmereg.h>
|
||||
#include <dev/ic/nvmevar.h>
|
||||
|
||||
|
@ -83,17 +89,27 @@ void nvme_scsi_cmd(struct scsi_xfer *);
|
|||
void nvme_minphys(struct buf *, struct scsi_link *);
|
||||
int nvme_scsi_probe(struct scsi_link *);
|
||||
void nvme_scsi_free(struct scsi_link *);
|
||||
uint64_t nvme_scsi_size(struct nvm_identify_namespace *);
|
||||
uint64_t nvme_scsi_size(const struct nvm_identify_namespace *);
|
||||
|
||||
#ifdef HIBERNATE
|
||||
#include <uvm/uvm_extern.h>
|
||||
#include <sys/hibernate.h>
|
||||
#include <sys/disk.h>
|
||||
#include <sys/disklabel.h>
|
||||
|
||||
int nvme_hibernate_io(dev_t, daddr_t, vaddr_t, size_t, int, void *);
|
||||
#endif
|
||||
|
||||
#if NBIO > 0
|
||||
void nvme_bio_status(struct bio_status *, const char *, ...);
|
||||
|
||||
const char *nvme_bioctl_sdname(const struct nvme_softc *, int);
|
||||
|
||||
int nvme_bioctl(struct device *, u_long, caddr_t);
|
||||
int nvme_bioctl_inq(struct nvme_softc *, struct bioc_inq *);
|
||||
int nvme_bioctl_vol(struct nvme_softc *, struct bioc_vol *);
|
||||
int nvme_bioctl_disk(struct nvme_softc *, struct bioc_disk *);
|
||||
#endif /* NBIO > 0 */
|
||||
|
||||
const struct scsi_adapter nvme_switch = {
|
||||
nvme_scsi_cmd, nvme_minphys, nvme_scsi_probe, nvme_scsi_free, NULL
|
||||
};
|
||||
|
@ -283,6 +299,7 @@ nvme_attach(struct nvme_softc *sc)
|
|||
u_int nccbs = 0;
|
||||
|
||||
mtx_init(&sc->sc_ccb_mtx, IPL_BIO);
|
||||
rw_init(&sc->sc_lock, "nvme_lock");
|
||||
SIMPLEQ_INIT(&sc->sc_ccb_list);
|
||||
scsi_iopool_init(&sc->sc_iopool, sc, nvme_ccb_get, nvme_ccb_put);
|
||||
if (sc->sc_ops == NULL)
|
||||
|
@ -384,7 +401,12 @@ nvme_attach(struct nvme_softc *sc)
|
|||
saa.saa_quirks = saa.saa_flags = 0;
|
||||
saa.saa_wwpn = saa.saa_wwnn = 0;
|
||||
|
||||
config_found(&sc->sc_dev, &saa, scsiprint);
|
||||
sc->sc_scsibus = (struct scsibus_softc *)config_found(&sc->sc_dev,
|
||||
&saa, scsiprint);
|
||||
#if NBIO > 0
|
||||
if (bio_register(&sc->sc_dev, nvme_bioctl) != 0)
|
||||
printf("%s: unable to register bioctl\n", DEVNAME(sc));
|
||||
#endif /* NBIO > 0 */
|
||||
|
||||
return (0);
|
||||
|
||||
|
@ -889,7 +911,7 @@ nvme_scsi_free(struct scsi_link *link)
|
|||
}
|
||||
|
||||
uint64_t
|
||||
nvme_scsi_size(struct nvm_identify_namespace *ns)
|
||||
nvme_scsi_size(const struct nvm_identify_namespace *ns)
|
||||
{
|
||||
uint64_t ncap, nsze;
|
||||
|
||||
|
@ -1716,3 +1738,274 @@ nvme_hibernate_io(dev_t dev, daddr_t blkno, vaddr_t addr, size_t size,
|
|||
}
|
||||
|
||||
#endif
|
||||
|
||||
#if NBIO > 0
|
||||
int
|
||||
nvme_bioctl(struct device *self, u_long cmd, caddr_t data)
|
||||
{
|
||||
struct nvme_softc *sc = (struct nvme_softc *)self;
|
||||
int error = 0;
|
||||
|
||||
rw_enter_write(&sc->sc_lock);
|
||||
|
||||
switch (cmd) {
|
||||
case BIOCINQ:
|
||||
error = nvme_bioctl_inq(sc, (struct bioc_inq *)data);
|
||||
break;
|
||||
case BIOCVOL:
|
||||
error = nvme_bioctl_vol(sc, (struct bioc_vol *)data);
|
||||
break;
|
||||
case BIOCDISK:
|
||||
error = nvme_bioctl_disk(sc, (struct bioc_disk *)data);
|
||||
break;
|
||||
default:
|
||||
printf("nvme_bioctl() Unknown command (%lu)\n", cmd);
|
||||
error = ENOTTY;
|
||||
}
|
||||
|
||||
rw_exit_write(&sc->sc_lock);
|
||||
|
||||
return error;
|
||||
}
|
||||
|
||||
void
|
||||
nvme_bio_status(struct bio_status *bs, const char *fmt, ...)
|
||||
{
|
||||
va_list ap;
|
||||
|
||||
va_start(ap, fmt);
|
||||
bio_status(bs, 0, BIO_MSG_INFO, fmt, &ap);
|
||||
va_end(ap);
|
||||
}
|
||||
|
||||
const char *
|
||||
nvme_bioctl_sdname(const struct nvme_softc *sc, int target)
|
||||
{
|
||||
const struct scsi_link *link;
|
||||
const struct sd_softc *sd;
|
||||
|
||||
link = scsi_get_link(sc->sc_scsibus, target, 0);
|
||||
if (link) {
|
||||
sd = (struct sd_softc *)(link->device_softc);
|
||||
if (ISSET(link->state, SDEV_S_DYING) || sd == NULL ||
|
||||
ISSET(sd->flags, SDF_DYING))
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (nvme_read4(sc, NVME_VS) == 0xffffffff)
|
||||
return NULL;
|
||||
|
||||
return DEVNAME(sd);
|
||||
}
|
||||
|
||||
int
|
||||
nvme_bioctl_inq(struct nvme_softc *sc, struct bioc_inq *bi)
|
||||
{
|
||||
char sn[41], mn[81], fr[17];
|
||||
struct nvm_identify_controller *idctrl = &sc->sc_identify;
|
||||
struct bio_status *bs;
|
||||
unsigned int nn;
|
||||
uint32_t cc, csts, vs;
|
||||
|
||||
/* Don't tell bioctl about namespaces > last configured namespace. */
|
||||
for (nn = sc->sc_nn; nn > 0; nn--) {
|
||||
if (sc->sc_namespaces[nn].ident)
|
||||
break;
|
||||
}
|
||||
bi->bi_novol = bi->bi_nodisk = nn;
|
||||
strlcpy(bi->bi_dev, DEVNAME(sc), sizeof(bi->bi_dev));
|
||||
|
||||
bs = &bi->bi_bio.bio_status;
|
||||
bio_status_init(bs, &sc->sc_dev);
|
||||
bs->bs_status = BIO_STATUS_SUCCESS;
|
||||
|
||||
scsi_strvis(sn, idctrl->sn, sizeof(idctrl->sn));
|
||||
scsi_strvis(mn, idctrl->mn, sizeof(idctrl->mn));
|
||||
scsi_strvis(fr, idctrl->fr, sizeof(idctrl->fr));
|
||||
|
||||
nvme_bio_status(bs, "%s, %s, %s", mn, fr, sn);
|
||||
nvme_bio_status(bs, "Max i/o %zu bytes%s%s%s, Sanitize 0x%b",
|
||||
sc->sc_mdts,
|
||||
ISSET(idctrl->lpa, NVM_ID_CTRL_LPA_PE) ?
|
||||
", Persisent Event Log" : "",
|
||||
ISSET(idctrl->fna, NVM_ID_CTRL_FNA_CRYPTOFORMAT) ?
|
||||
", CryptoFormat" : "",
|
||||
ISSET(idctrl->vwc, NVM_ID_CTRL_VWC_PRESENT) ?
|
||||
", Volatile Write Cache" : "",
|
||||
lemtoh32(&idctrl->sanicap), NVM_ID_CTRL_SANICAP_FMT
|
||||
);
|
||||
|
||||
if (idctrl->ctratt != 0)
|
||||
nvme_bio_status(bs, "Features 0x%b", lemtoh32(&idctrl->ctratt),
|
||||
NVM_ID_CTRL_CTRATT_FMT);
|
||||
|
||||
if (idctrl->oacs || idctrl->oncs) {
|
||||
nvme_bio_status(bs, "Admin commands 0x%b, NVM commands 0x%b",
|
||||
lemtoh16(&idctrl->oacs), NVM_ID_CTRL_OACS_FMT,
|
||||
lemtoh16(&idctrl->oncs), NVM_ID_CTRL_ONCS_FMT);
|
||||
}
|
||||
|
||||
cc = nvme_read4(sc, NVME_CC);
|
||||
csts = nvme_read4(sc, NVME_CSTS);
|
||||
vs = nvme_read4(sc, NVME_VS);
|
||||
|
||||
if (vs == 0xffffffff) {
|
||||
nvme_bio_status(bs, "Invalid PCIe register mapping");
|
||||
return 0;
|
||||
}
|
||||
|
||||
nvme_bio_status(bs, "NVMe %u.%u%s%s%sabled, %sReady%s%s%s%s",
|
||||
NVME_VS_MJR(vs), NVME_VS_MNR(vs),
|
||||
(NVME_CC_CSS_R(cc) == NVME_CC_CSS_NVM) ? ", NVM I/O command set" : "",
|
||||
(NVME_CC_CSS_R(cc) == 0x7) ? ", Admin command set only" : "",
|
||||
ISSET(cc, NVME_CC_EN) ? ", En" : "Dis",
|
||||
ISSET(csts, NVME_CSTS_RDY) ? "" : "Not ",
|
||||
ISSET(csts, NVME_CSTS_CFS) ? ", Fatal Error, " : "",
|
||||
(NVME_CC_SHN_R(cc) == NVME_CC_SHN_NORMAL) ? ", Normal shutdown" : "",
|
||||
(NVME_CC_SHN_R(cc) == NVME_CC_SHN_ABRUPT) ? ", Abrupt shutdown" : "",
|
||||
ISSET(csts, NVME_CSTS_SHST_DONE) ? " complete" : "");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
nvme_bioctl_vol(struct nvme_softc *sc, struct bioc_vol *bv)
|
||||
{
|
||||
const struct nvm_identify_namespace *idns;
|
||||
const char *sd;
|
||||
int target;
|
||||
unsigned int lbaf;
|
||||
|
||||
target = bv->bv_volid + 1;
|
||||
if (target > sc->sc_nn) {
|
||||
bv->bv_status = BIOC_SVINVALID;
|
||||
return 0;
|
||||
}
|
||||
|
||||
bv->bv_level = 'c';
|
||||
bv->bv_nodisk = 1;
|
||||
|
||||
idns = sc->sc_namespaces[target].ident;
|
||||
if (idns == NULL) {
|
||||
bv->bv_status = BIOC_SVINVALID;
|
||||
return 0;
|
||||
}
|
||||
|
||||
lbaf = NVME_ID_NS_FLBAS(idns->flbas);
|
||||
if (idns->nlbaf > 16)
|
||||
lbaf |= (idns->flbas >> 1) & 0x3f;
|
||||
bv->bv_size = nvme_scsi_size(idns) << idns->lbaf[lbaf].lbads;
|
||||
|
||||
sd = nvme_bioctl_sdname(sc, target);
|
||||
if (sd) {
|
||||
strlcpy(bv->bv_dev, sd, sizeof(bv->bv_dev));
|
||||
bv->bv_status = BIOC_SVONLINE;
|
||||
} else
|
||||
bv->bv_status = BIOC_SVOFFLINE;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
nvme_bioctl_disk(struct nvme_softc *sc, struct bioc_disk *bd)
|
||||
{
|
||||
const char *rpdesc[4] = {
|
||||
" (Best)",
|
||||
" (Better)",
|
||||
" (Good)",
|
||||
" (Degraded)"
|
||||
};
|
||||
const char *protection[4] = {
|
||||
"not enabled",
|
||||
"Type 1",
|
||||
"Type 2",
|
||||
"Type 3",
|
||||
};
|
||||
char buf[32], msg[BIO_MSG_LEN];
|
||||
struct nvm_identify_namespace *idns;
|
||||
struct bio_status *bs;
|
||||
uint64_t id1, id2;
|
||||
unsigned int i, lbaf, target;
|
||||
uint16_t ms;
|
||||
uint8_t dps;
|
||||
|
||||
target = bd->bd_volid + 1;
|
||||
if (target > sc->sc_nn)
|
||||
return EINVAL;
|
||||
bd->bd_channel = sc->sc_scsibus->sc_dev.dv_unit;
|
||||
bd->bd_target = target;
|
||||
bd->bd_lun = 0;
|
||||
snprintf(bd->bd_procdev, sizeof(bd->bd_procdev), "Namespace %u", target);
|
||||
|
||||
bs = &bd->bd_bio.bio_status;
|
||||
bs->bs_status = BIO_STATUS_SUCCESS;
|
||||
snprintf(bs->bs_controller, sizeof(bs->bs_controller), "%11u",
|
||||
bd->bd_diskid);
|
||||
|
||||
idns = sc->sc_namespaces[target].ident;
|
||||
if (idns == NULL) {
|
||||
bd->bd_status = BIOC_SDUNUSED;
|
||||
return 0;
|
||||
}
|
||||
|
||||
lbaf = NVME_ID_NS_FLBAS(idns->flbas);
|
||||
if (idns->nlbaf > nitems(idns->lbaf))
|
||||
lbaf |= (idns->flbas >> 1) & 0x3f;
|
||||
bd->bd_size = lemtoh64(&idns->nsze) << idns->lbaf[lbaf].lbads;
|
||||
|
||||
if (memcmp(idns->nguid, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 16)) {
|
||||
memcpy(&id1, idns->nguid, sizeof(uint64_t));
|
||||
memcpy(&id2, idns->nguid + sizeof(uint64_t), sizeof(uint64_t));
|
||||
snprintf(bd->bd_serial, sizeof(bd->bd_serial), "%08llx%08llx",
|
||||
id1, id2);
|
||||
} else if (memcmp(idns->eui64, "\0\0\0\0\0\0\0\0", 8)) {
|
||||
memcpy(&id1, idns->eui64, sizeof(uint64_t));
|
||||
snprintf(bd->bd_serial, sizeof(bd->bd_serial), "%08llx", id1);
|
||||
}
|
||||
|
||||
msg[0] = '\0';
|
||||
for (i = 0; i <= idns->nlbaf; i++) {
|
||||
if (idns->lbaf[i].lbads == 0)
|
||||
continue;
|
||||
snprintf(buf, sizeof(buf), "%s%s%u",
|
||||
strlen(msg) ? ", " : "", (i == lbaf) ? "*" : "",
|
||||
1 << idns->lbaf[i].lbads);
|
||||
strlcat(msg, buf, sizeof(msg));
|
||||
ms = lemtoh16(&idns->lbaf[i].ms);
|
||||
if (ms) {
|
||||
snprintf(buf, sizeof(buf), "+%u", ms);
|
||||
strlcat(msg, buf, sizeof(msg));
|
||||
}
|
||||
strlcat(msg, rpdesc[idns->lbaf[i].rp], sizeof(msg));
|
||||
}
|
||||
nvme_bio_status(bs, "Formats %s", msg);
|
||||
|
||||
if (idns->nsfeat)
|
||||
nvme_bio_status(bs, "Features 0x%b", idns->nsfeat,
|
||||
NVME_ID_NS_NSFEAT_FMT);
|
||||
|
||||
if (idns->dps) {
|
||||
dps = idns->dps;
|
||||
snprintf(msg, sizeof(msg), "Data Protection (0x%02x) "
|
||||
"Protection Data in ", dps);
|
||||
if (ISSET(dps, NVME_ID_NS_DPS_PIP))
|
||||
strlcat(msg, "first", sizeof(msg));
|
||||
else
|
||||
strlcat(msg, "last", sizeof(msg));
|
||||
strlcat(msg, "bytes of metadata, Protection ", sizeof(msg));
|
||||
if (NVME_ID_NS_DPS_TYPE(dps) >= nitems(protection))
|
||||
strlcat(msg, "Type unknown", sizeof(msg));
|
||||
else
|
||||
strlcat(msg, protection[NVME_ID_NS_DPS_TYPE(dps)],
|
||||
sizeof(msg));
|
||||
nvme_bio_status(bs, "%s", msg);
|
||||
}
|
||||
|
||||
if (nvme_bioctl_sdname(sc, target) == NULL)
|
||||
bd->bd_status = BIOC_SDOFFLINE;
|
||||
else
|
||||
bd->bd_status = BIOC_SDONLINE;
|
||||
|
||||
return 0;
|
||||
}
|
||||
#endif /* NBIO > 0 */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: nvmereg.h,v 1.13 2023/12/20 13:37:25 krw Exp $ */
|
||||
/* $OpenBSD: nvmereg.h,v 1.14 2024/05/13 11:41:52 krw Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2014 David Gwynne <dlg@openbsd.org>
|
||||
|
@ -290,16 +290,30 @@ struct nvm_identify_controller {
|
|||
u_int8_t mdts; /* Maximum Data Transfer Size */
|
||||
u_int16_t cntlid; /* Controller ID */
|
||||
|
||||
u_int8_t _reserved1[176];
|
||||
u_int8_t _reserved1[16];
|
||||
u_int32_t ctratt;
|
||||
#define NVM_ID_CTRL_CTRATT_FMT "\020" \
|
||||
"\016DELEG" "\017DEVNVM" "\020ELBAS" "\005ENDURGRPS" \
|
||||
"\014FIXCAPMGMT" "\001HOSTID" "\013MDS" "\002NOPSPM" \
|
||||
"\010NSGRAN" "\003NVMSETS" "\006PREDLATENCY" "\004READRCVRY" \
|
||||
"\011SQASSOC" "\007TBKAS" "\012UUIDLIST" "\015VARCAPMGMT"
|
||||
|
||||
u_int8_t _reserved9[156];
|
||||
|
||||
/* Admin Command Set Attributes & Optional Controller Capabilities */
|
||||
|
||||
u_int16_t oacs; /* Optional Admin Command Support */
|
||||
#define NVM_ID_CTRL_OACS_FMT "\020" \
|
||||
"\013CAFL" "\011DBBC" "\006DIREC" "\005DST" "\012GLBAS" \
|
||||
"\002FORMAT" "\003FWCD" "\007MISR" "\004NSMGMT" "\001SECSR" \
|
||||
"\010VM"
|
||||
|
||||
u_int8_t acl; /* Abort Command Limit */
|
||||
u_int8_t aerl; /* Asynchronous Event Request Limit */
|
||||
|
||||
u_int8_t frmw; /* Firmware Updates */
|
||||
u_int8_t lpa; /* Log Page Attributes */
|
||||
#define NVM_ID_CTRL_LPA_PE (1 << 4)
|
||||
u_int8_t elpe; /* Error Log Page Entries */
|
||||
u_int8_t npss; /* Number of Power States Support */
|
||||
|
||||
|
@ -308,7 +322,11 @@ struct nvm_identify_controller {
|
|||
u_int8_t apsta; /* Autonomous Power State Transition
|
||||
Attributes */
|
||||
|
||||
u_int8_t _reserved2[246];
|
||||
u_int8_t _reserved2[62];
|
||||
u_int32_t sanicap;
|
||||
#define NVM_ID_CTRL_SANICAP_FMT "\020" \
|
||||
"\002BlockErase" "\001CryptoErase" "\003Overwrite"
|
||||
u_int8_t _reserved10[180];
|
||||
|
||||
/* NVM Command Set Attributes */
|
||||
|
||||
|
@ -319,10 +337,16 @@ struct nvm_identify_controller {
|
|||
u_int32_t nn; /* Number of Namespaces */
|
||||
|
||||
u_int16_t oncs; /* Optional NVM Command Support */
|
||||
#define NVM_ID_CTRL_ONCS_FMT "\020" \
|
||||
"\006RSV" "\001SCMP" "\011SCPY" "\003SDMGMT" "\005SF" \
|
||||
"\010SV" "\002SWU" "\004SWZ" "\007TS"
|
||||
|
||||
u_int16_t fuses; /* Fused Operation Support */
|
||||
|
||||
u_int8_t fna; /* Format NVM Attributes */
|
||||
#define NVM_ID_CTRL_FNA_CRYPTOFORMAT (1 << 2)
|
||||
u_int8_t vwc; /* Volatile Write Cache */
|
||||
#define NVM_ID_CTRL_VWC_PRESENT (1 << 0)
|
||||
u_int16_t awun; /* Atomic Write Unit Normal */
|
||||
|
||||
u_int16_t awupf; /* Atomic Write Unit Power Fail */
|
||||
|
@ -364,16 +388,24 @@ struct nvm_identify_namespace {
|
|||
|
||||
u_int8_t nsfeat; /* Namespace Features */
|
||||
#define NVME_ID_NS_NSFEAT_THIN_PROV (1 << 0)
|
||||
#define NVME_ID_NS_NSFEAT_FMT "\020" \
|
||||
"\002NSABP" "\005OPTPERF" "\001THIN_PROV" "\004UIDREUSE" "\003DAE"
|
||||
|
||||
u_int8_t nlbaf; /* Number of LBA Formats */
|
||||
u_int8_t flbas; /* Formatted LBA Size */
|
||||
#define NVME_ID_NS_FLBAS(_f) ((_f) & 0x0f)
|
||||
#define NVME_ID_NS_FLBAS_MD 0x10
|
||||
#define NVME_ID_NS_FLBAS(_f) ((_f) & 0x0f)
|
||||
#define NVME_ID_NS_FLBAS_MD 0x10
|
||||
u_int8_t mc; /* Metadata Capabilities */
|
||||
|
||||
u_int8_t dpc; /* End-to-end Data Protection
|
||||
Capabilities */
|
||||
u_int8_t dps; /* End-to-end Data Protection Type Settings */
|
||||
#define NVME_ID_NS_DPS_PIP (1 << 3)
|
||||
#define NVME_ID_NS_DPS_TYPE(_f) ((_f) & 0x7)
|
||||
|
||||
u_int8_t _reserved1[98];
|
||||
u_int8_t _reserved1[74];
|
||||
uint8_t nguid[16];
|
||||
uint8_t eui64[8]; /* BIG-endian */
|
||||
|
||||
struct nvm_namespace_format
|
||||
lbaf[16]; /* LBA Format Support */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: nvmevar.h,v 1.28 2021/08/29 12:02:52 kettenis Exp $ */
|
||||
/* $OpenBSD: nvmevar.h,v 1.29 2024/05/13 11:41:52 krw Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2014 David Gwynne <dlg@openbsd.org>
|
||||
|
@ -125,6 +125,8 @@ struct nvme_softc {
|
|||
struct nvme_ccb_list sc_ccb_list;
|
||||
struct nvme_dmamem *sc_ccb_prpls;
|
||||
struct scsi_iopool sc_iopool;
|
||||
struct rwlock sc_lock;
|
||||
struct scsibus_softc *sc_scsibus;
|
||||
};
|
||||
|
||||
#define DEVNAME(_sc) ((_sc)->sc_dev.dv_xname)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: qwxvar.h,v 1.24 2024/03/02 15:18:57 stsp Exp $ */
|
||||
/* $OpenBSD: qwxvar.h,v 1.25 2024/05/13 01:15:50 jsg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2018-2019 The Linux Foundation.
|
||||
|
@ -807,8 +807,6 @@ enum hal_ce_desc {
|
|||
HAL_CE_DESC_DST_STATUS,
|
||||
};
|
||||
|
||||
void qwx_ce_byte_swap(void *mem, uint32_t len);
|
||||
|
||||
struct ce_ie_addr {
|
||||
uint32_t ie1_reg_addr;
|
||||
uint32_t ie2_reg_addr;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: rtl81x9reg.h,v 1.104 2022/06/03 10:38:40 dlg Exp $ */
|
||||
/* $OpenBSD: rtl81x9reg.h,v 1.105 2024/05/13 01:15:50 jsg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997, 1998
|
||||
|
@ -1091,6 +1091,5 @@ struct rl_softc {
|
|||
|
||||
extern int rl_attach(struct rl_softc *);
|
||||
extern int rl_intr(void *);
|
||||
extern void rl_setmulti(struct rl_softc *);
|
||||
int rl_detach(struct rl_softc *);
|
||||
int rl_activate(struct device *, int);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: rtwvar.h,v 1.32 2024/05/12 08:44:09 jsg Exp $ */
|
||||
/* $OpenBSD: rtwvar.h,v 1.33 2024/05/13 01:15:50 jsg Exp $ */
|
||||
/* $NetBSD: rtwvar.h,v 1.10 2004/12/26 22:37:57 mycroft Exp $ */
|
||||
|
||||
/*-
|
||||
|
@ -446,7 +446,6 @@ void rtw_disable(struct rtw_softc *);
|
|||
int rtw_enable(struct rtw_softc *);
|
||||
|
||||
int rtw_activate(struct device *, int);
|
||||
void rtw_shutdown(void *);
|
||||
|
||||
const char *rtw_pwrstate_string(enum rtw_pwrstate);
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: siopvar.h,v 1.17 2011/09/23 10:40:06 miod Exp $ */
|
||||
/* $OpenBSD: siopvar.h,v 1.18 2024/05/13 01:15:50 jsg Exp $ */
|
||||
/* $NetBSD: siopvar.h,v 1.22 2005/11/18 23:10:32 bouyer Exp $ */
|
||||
|
||||
/*
|
||||
|
@ -137,4 +137,3 @@ struct siop_softc {
|
|||
void siop_attach(struct siop_softc *);
|
||||
int siop_intr(void *);
|
||||
void siop_add_dev(struct siop_softc *, int, int);
|
||||
void siop_del_dev(struct siop_softc *, int, int);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: smc91cxx.c,v 1.52 2022/08/15 01:59:00 jsg Exp $ */
|
||||
/* $OpenBSD: smc91cxx.c,v 1.53 2024/05/13 01:15:50 jsg Exp $ */
|
||||
/* $NetBSD: smc91cxx.c,v 1.11 1998/08/08 23:51:41 mycroft Exp $ */
|
||||
|
||||
/*-
|
||||
|
@ -177,7 +177,6 @@ int smc91cxx_set_media(struct smc91cxx_softc *, uint64_t);
|
|||
void smc91cxx_read(struct smc91cxx_softc *);
|
||||
void smc91cxx_reset(struct smc91cxx_softc *);
|
||||
void smc91cxx_start(struct ifnet *);
|
||||
void smc91cxx_resume(struct smc91cxx_softc *);
|
||||
void smc91cxx_watchdog(struct ifnet *);
|
||||
int smc91cxx_ioctl(struct ifnet *, u_long, caddr_t);
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: trm.c,v 1.44 2022/01/09 05:42:42 jsg Exp $
|
||||
/* $OpenBSD: trm.c,v 1.45 2024/05/13 01:15:50 jsg Exp $
|
||||
* ------------------------------------------------------------
|
||||
* O.S : OpenBSD
|
||||
* File Name : trm.c
|
||||
|
@ -61,8 +61,6 @@
|
|||
|
||||
/* #define TRM_DEBUG0 */
|
||||
|
||||
void trm_initSRB(struct trm_scsi_req_q *);
|
||||
|
||||
void trm_check_eeprom(struct trm_adapter_nvram *, bus_space_tag_t, bus_space_handle_t);
|
||||
void trm_read_all (struct trm_adapter_nvram *, bus_space_tag_t, bus_space_handle_t);
|
||||
void trm_write_all (struct trm_adapter_nvram *, bus_space_tag_t, bus_space_handle_t);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: fd.c,v 1.108 2022/04/06 18:59:28 naddy Exp $ */
|
||||
/* $OpenBSD: fd.c,v 1.109 2024/05/13 01:15:50 jsg Exp $ */
|
||||
/* $NetBSD: fd.c,v 1.90 1996/05/12 23:12:03 mycroft Exp $ */
|
||||
|
||||
/*-
|
||||
|
@ -138,7 +138,6 @@ struct cfdriver fd_cd = {
|
|||
};
|
||||
|
||||
int fdgetdisklabel(dev_t, struct fd_softc *, struct disklabel *, int);
|
||||
int fd_get_parms(struct fd_softc *);
|
||||
void fdstrategy(struct buf *);
|
||||
void fdstart(struct fd_softc *);
|
||||
int fdintr(struct fdc_softc *);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: midi.c,v 1.56 2023/09/26 19:55:24 mvs Exp $ */
|
||||
/* $OpenBSD: midi.c,v 1.57 2024/05/13 01:15:50 jsg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2003, 2004 Alexandre Ratchov
|
||||
|
@ -50,7 +50,6 @@ void midi_timeout(void *);
|
|||
void midi_out_start(struct midi_softc *);
|
||||
void midi_out_stop(struct midi_softc *);
|
||||
void midi_out_do(struct midi_softc *);
|
||||
void midi_attach(struct midi_softc *, struct device *);
|
||||
|
||||
|
||||
const struct cfattach midi_ca = {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: brswphy.c,v 1.4 2022/04/06 18:59:29 naddy Exp $ */
|
||||
/* $OpenBSD: brswphy.c,v 1.5 2024/05/13 01:15:51 jsg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2014 Paul Irofti <paul@irofti.net>
|
||||
|
@ -160,7 +160,6 @@ struct cfdriver brswphy_cd = {
|
|||
|
||||
int brswphy_service(struct mii_softc *, struct mii_data *, int);
|
||||
void brswphy_status(struct mii_softc *);
|
||||
void brswphy_reset(struct mii_softc *);
|
||||
|
||||
const struct mii_phy_funcs brswphy_funcs = {
|
||||
brswphy_service, brswphy_status, mii_phy_reset,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: tqphy.c,v 1.19 2022/04/06 18:59:29 naddy Exp $ */
|
||||
/* $OpenBSD: tqphy.c,v 1.20 2024/05/13 01:15:51 jsg Exp $ */
|
||||
/* $NetBSD: tqphy.c,v 1.9 2000/02/02 23:34:57 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
|
@ -78,7 +78,6 @@
|
|||
|
||||
int tqphymatch(struct device *, void *, void *);
|
||||
void tqphyattach(struct device *, struct device *, void *);
|
||||
int tqphydetach(struct device *, int);
|
||||
|
||||
const struct cfattach tqphy_ca = {
|
||||
sizeof(struct mii_softc), tqphymatch, tqphyattach, mii_phy_detach
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: openfirm.h,v 1.18 2021/05/06 19:45:16 kettenis Exp $ */
|
||||
/* $OpenBSD: openfirm.h,v 1.19 2024/05/13 01:15:51 jsg Exp $ */
|
||||
/* $NetBSD: openfirm.h,v 1.1 1996/09/30 16:35:10 ws Exp $ */
|
||||
|
||||
/*
|
||||
|
@ -79,12 +79,6 @@ int OF_getnodebyname(int, const char *);
|
|||
int OF_getnodebyphandle(uint32_t);
|
||||
int OF_getindex(int, const char *, const char *);
|
||||
|
||||
/*
|
||||
* Some generic routines for OpenFirmware handling.
|
||||
*/
|
||||
int ofnmmatch(char *cp1, char *cp2);
|
||||
void ofw_intr_establish(void);
|
||||
|
||||
/*
|
||||
* Generic OpenFirmware probe argument.
|
||||
* This is how all probe structures must start
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: agp_i810.c,v 1.95 2022/03/11 18:00:45 mpi Exp $ */
|
||||
/* $OpenBSD: agp_i810.c,v 1.96 2024/05/13 01:15:51 jsg Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2000 Doug Rabson
|
||||
|
@ -104,9 +104,6 @@ int agp_i810_enable(void *, u_int32_t mode);
|
|||
void intagp_write_gtt(struct agp_i810_softc *, bus_size_t, paddr_t);
|
||||
int intagp_gmch_match(struct pci_attach_args *);
|
||||
|
||||
extern void intagp_dma_sync(bus_dma_tag_t, bus_dmamap_t,
|
||||
bus_addr_t, bus_size_t, int);
|
||||
|
||||
const struct cfattach intagp_ca = {
|
||||
sizeof(struct agp_i810_softc), agp_i810_probe, agp_i810_attach,
|
||||
NULL, agp_i810_activate,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: agpvar.h,v 1.34 2022/01/09 05:42:45 jsg Exp $ */
|
||||
/* $OpenBSD: agpvar.h,v 1.35 2024/05/13 01:15:51 jsg Exp $ */
|
||||
/* $NetBSD: agpvar.h,v 1.4 2001/10/01 21:54:48 fvdl Exp $ */
|
||||
|
||||
/*-
|
||||
|
@ -190,10 +190,4 @@ int agp_release(void *);
|
|||
*/
|
||||
int agp_enable(void *, u_int32_t);
|
||||
|
||||
/*
|
||||
* Retrieve information about a memory block allocated with
|
||||
* agp_alloc_memory().
|
||||
*/
|
||||
void agp_memory_info(void *, void *, struct agp_memory_info *);
|
||||
|
||||
#endif /* !_PCI_AGPVAR_H_ */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: auacer.c,v 1.28 2022/10/26 20:19:07 kn Exp $ */
|
||||
/* $OpenBSD: auacer.c,v 1.29 2024/05/13 01:15:51 jsg Exp $ */
|
||||
/* $NetBSD: auacer.c,v 1.3 2004/11/10 04:20:26 kent Exp $ */
|
||||
|
||||
/*-
|
||||
|
@ -174,7 +174,6 @@ int auacer_allocmem(struct auacer_softc *, size_t, size_t,
|
|||
int auacer_freemem(struct auacer_softc *, struct auacer_dma *);
|
||||
|
||||
int auacer_set_rate(struct auacer_softc *, int, u_long);
|
||||
void auacer_finish_attach(struct device *);
|
||||
|
||||
static void auacer_reset(struct auacer_softc *sc);
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: auglx.c,v 1.24 2024/04/14 03:26:25 jsg Exp $ */
|
||||
/* $OpenBSD: auglx.c,v 1.25 2024/05/13 01:15:51 jsg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2008 Marc Balmer <mbalmer@openbsd.org>
|
||||
|
@ -227,7 +227,6 @@ int auglx_trigger_output(void *, void *, void *, int, void (*)(void *),
|
|||
void *, struct audio_params *);
|
||||
int auglx_trigger_input(void *, void *, void *, int, void (*)(void *),
|
||||
void *, struct audio_params *);
|
||||
int auglx_alloc_cdata(struct auglx_softc *);
|
||||
int auglx_alloc_prd(struct auglx_softc *, size_t, struct auglx_ring *);
|
||||
void auglx_free_prd(struct auglx_softc *sc, struct auglx_ring *bm);
|
||||
int auglx_allocmem(struct auglx_softc *, size_t, size_t, struct auglx_dma *);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: fms.c,v 1.36 2022/10/26 20:19:08 kn Exp $ */
|
||||
/* $OpenBSD: fms.c,v 1.37 2024/05/13 01:15:51 jsg Exp $ */
|
||||
/* $NetBSD: fms.c,v 1.5.4.1 2000/06/30 16:27:50 simonb Exp $ */
|
||||
|
||||
/*-
|
||||
|
@ -121,7 +121,6 @@ void fms_reset_codec(void *);
|
|||
|
||||
int fms_allocmem(struct fms_softc *, size_t, size_t,
|
||||
struct fms_dma *);
|
||||
int fms_freemem(struct fms_softc *, struct fms_dma *);
|
||||
|
||||
int
|
||||
fms_match(struct device *parent, void *match, void *aux)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: gcu.c,v 1.6 2022/03/11 18:00:45 mpi Exp $ */
|
||||
/* $OpenBSD: gcu.c,v 1.7 2024/05/13 01:15:51 jsg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2009 Dariusz Swiderski <sfires@sfires.net>
|
||||
|
@ -32,7 +32,6 @@
|
|||
|
||||
int gcu_probe(struct device *, void *, void *);
|
||||
void gcu_attach(struct device *, struct device *, void *);
|
||||
int gcu_detach(struct device *, int);
|
||||
|
||||
const struct pci_matchid gcu_devices[] = {
|
||||
{ PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_EP80579_GCU }
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: i82365_pci.c,v 1.14 2022/03/11 18:00:45 mpi Exp $ */
|
||||
/* $OpenBSD: i82365_pci.c,v 1.15 2024/05/13 01:15:51 jsg Exp $ */
|
||||
/* $NetBSD: i82365_pci.c,v 1.11 2000/02/24 03:42:44 itohy Exp $ */
|
||||
|
||||
/*
|
||||
|
@ -94,8 +94,6 @@ pcic_pci_match(struct device *parent, void *match, void *aux)
|
|||
return (0);
|
||||
}
|
||||
|
||||
void pcic_isa_config_interrupts(struct device *);
|
||||
|
||||
void
|
||||
pcic_pci_attach(struct device *parent, struct device *self, void *aux)
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: if_aq_pci.c,v 1.26 2023/11/10 15:51:20 bluhm Exp $ */
|
||||
/* $OpenBSD: if_aq_pci.c,v 1.27 2024/05/13 01:15:51 jsg Exp $ */
|
||||
/* $NetBSD: if_aq.c,v 1.27 2021/06/16 00:21:18 riastradh Exp $ */
|
||||
|
||||
/*
|
||||
|
@ -1106,7 +1106,6 @@ const struct aq_product {
|
|||
|
||||
int aq_match(struct device *, void *, void *);
|
||||
void aq_attach(struct device *, struct device *, void *);
|
||||
int aq_detach(struct device *, int);
|
||||
int aq_activate(struct device *, int);
|
||||
int aq_intr(void *);
|
||||
int aq_intr_link(void *);
|
||||
|
@ -1115,7 +1114,6 @@ int aq_init_rss(struct aq_softc *);
|
|||
int aq_hw_reset(struct aq_softc *);
|
||||
int aq_hw_init(struct aq_softc *, int, int);
|
||||
void aq_hw_qos_set(struct aq_softc *);
|
||||
void aq_l3_filter_set(struct aq_softc *);
|
||||
void aq_hw_init_tx_path(struct aq_softc *);
|
||||
void aq_hw_init_rx_path(struct aq_softc *);
|
||||
int aq_set_mac_addr(struct aq_softc *, int, uint8_t *);
|
||||
|
@ -1156,7 +1154,6 @@ static inline unsigned int aq_rx_fill_slots(struct aq_softc *,
|
|||
|
||||
int aq_dmamem_alloc(struct aq_softc *, struct aq_dmamem *,
|
||||
bus_size_t, u_int);
|
||||
void aq_dmamem_zero(struct aq_dmamem *);
|
||||
void aq_dmamem_free(struct aq_softc *, struct aq_dmamem *);
|
||||
|
||||
int aq1_get_mac_addr(struct aq_softc *);
|
||||
|
|
|
@ -31,7 +31,7 @@ POSSIBILITY OF SUCH DAMAGE.
|
|||
|
||||
***************************************************************************/
|
||||
|
||||
/* $OpenBSD: if_em.c,v 1.375 2024/05/07 18:35:23 jan Exp $ */
|
||||
/* $OpenBSD: if_em.c,v 1.376 2024/05/13 01:15:51 jsg Exp $ */
|
||||
/* $FreeBSD: if_em.c,v 1.46 2004/09/29 18:28:28 mlaier Exp $ */
|
||||
|
||||
#include <dev/pci/if_em.h>
|
||||
|
@ -277,7 +277,6 @@ void em_enable_intr(struct em_softc *);
|
|||
void em_disable_intr(struct em_softc *);
|
||||
void em_free_transmit_structures(struct em_softc *);
|
||||
void em_free_receive_structures(struct em_softc *);
|
||||
void em_update_stats_counters(struct em_softc *);
|
||||
void em_disable_aspm(struct em_softc *);
|
||||
void em_txeof(struct em_queue *);
|
||||
int em_allocate_receive_structures(struct em_softc *);
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
|
||||
*******************************************************************************/
|
||||
|
||||
/* $OpenBSD: if_em_hw.h,v 1.93 2024/02/16 22:30:54 mglocker Exp $ */
|
||||
/* $OpenBSD: if_em_hw.h,v 1.94 2024/05/13 01:15:51 jsg Exp $ */
|
||||
/* $FreeBSD: if_em_hw.h,v 1.15 2005/05/26 23:32:02 tackerman Exp $ */
|
||||
|
||||
/* if_em_hw.h
|
||||
|
@ -343,7 +343,6 @@ struct em_softc;
|
|||
int32_t em_reset_hw(struct em_hw *hw);
|
||||
int32_t em_init_hw(struct em_softc *sc);
|
||||
int32_t em_set_mac_type(struct em_hw *hw);
|
||||
int em_max_queues(struct em_hw *hw);
|
||||
void em_set_media_type(struct em_hw *hw);
|
||||
|
||||
/* Link Configuration */
|
||||
|
@ -361,9 +360,6 @@ int32_t em_read_phy_reg(struct em_hw *hw, uint32_t reg_addr, uint16_t *phy_data)
|
|||
int32_t em_write_phy_reg(struct em_hw *hw, uint32_t reg_addr, uint16_t data);
|
||||
int32_t em_phy_hw_reset(struct em_hw *hw);
|
||||
int32_t em_phy_reset(struct em_hw *hw);
|
||||
int32_t em_phy_get_info(struct em_hw *hw, struct em_phy_info *phy_info);
|
||||
int32_t em_validate_mdi_setting(struct em_hw *hw);
|
||||
void em_phy_powerdown_workaround(struct em_hw *hw);
|
||||
int em_sgmii_uses_mdio_82575(struct em_hw *);
|
||||
int32_t em_read_phy_reg_i2c(struct em_hw *, uint32_t, uint16_t *);
|
||||
int32_t em_write_phy_reg_i2c(struct em_hw *, uint32_t, uint16_t);
|
||||
|
@ -372,9 +368,6 @@ int32_t em_read_sfp_data_byte(struct em_hw *, uint16_t, uint8_t *);
|
|||
/* EEPROM Functions */
|
||||
int32_t em_init_eeprom_params(struct em_hw *hw);
|
||||
|
||||
/* MNG HOST IF functions */
|
||||
uint32_t em_enable_mng_pass_thru(struct em_hw *hw);
|
||||
|
||||
#define E1000_MNG_DHCP_TX_PAYLOAD_CMD 64
|
||||
#define E1000_HI_MAX_MNG_DATA_LENGTH 0x6F8 /* Host Interface data length */
|
||||
|
||||
|
@ -432,21 +425,11 @@ void em_mc_addr_list_update(struct em_hw *hw, uint8_t * mc_addr_list, uint32_t m
|
|||
uint32_t em_hash_mc_addr(struct em_hw *hw, uint8_t *mc_addr);
|
||||
void em_mta_set(struct em_hw *hw, uint32_t hash_value);
|
||||
void em_rar_set(struct em_hw *hw, uint8_t *mc_addr, uint32_t rar_index);
|
||||
void em_write_vfta(struct em_hw *hw, uint32_t offset, uint32_t value);
|
||||
|
||||
/* LED functions */
|
||||
int32_t em_setup_led(struct em_hw *hw);
|
||||
int32_t em_cleanup_led(struct em_hw *hw);
|
||||
int32_t em_led_on(struct em_hw *hw);
|
||||
int32_t em_led_off(struct em_hw *hw);
|
||||
int32_t em_blink_led_start(struct em_hw *hw);
|
||||
|
||||
/* Adaptive IFS Functions */
|
||||
|
||||
/* Everything else */
|
||||
void em_clear_hw_cntrs(struct em_hw *hw);
|
||||
void em_reset_adaptive(struct em_hw *hw);
|
||||
void em_update_adaptive(struct em_hw *hw);
|
||||
void em_get_bus_info(struct em_hw *hw);
|
||||
void em_pci_set_mwi(struct em_hw *hw);
|
||||
void em_pci_clear_mwi(struct em_hw *hw);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: if_iwn.c,v 1.261 2024/02/16 11:44:52 stsp Exp $ */
|
||||
/* $OpenBSD: if_iwn.c,v 1.262 2024/05/13 01:15:51 jsg Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2007-2010 Damien Bergamini <damien.bergamini@free.fr>
|
||||
|
@ -230,7 +230,6 @@ void iwn_tune_sensitivity(struct iwn_softc *,
|
|||
const struct iwn_rx_stats *);
|
||||
int iwn_send_sensitivity(struct iwn_softc *);
|
||||
int iwn_set_pslevel(struct iwn_softc *, int, int, int);
|
||||
int iwn_send_temperature_offset(struct iwn_softc *);
|
||||
int iwn_send_btcoex(struct iwn_softc *);
|
||||
int iwn_send_advanced_btcoex(struct iwn_softc *);
|
||||
int iwn5000_runtime_calib(struct iwn_softc *);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: if_iwx.c,v 1.184 2024/05/08 14:03:54 stsp Exp $ */
|
||||
/* $OpenBSD: if_iwx.c,v 1.185 2024/05/13 01:15:51 jsg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2014, 2016 genua gmbh <info@genua.de>
|
||||
|
@ -453,7 +453,6 @@ uint16_t iwx_rs_vht_rates(struct iwx_softc *, struct ieee80211_node *, int);
|
|||
int iwx_rs_init_v3(struct iwx_softc *, struct iwx_node *);
|
||||
int iwx_rs_init_v4(struct iwx_softc *, struct iwx_node *);
|
||||
int iwx_rs_init(struct iwx_softc *, struct iwx_node *);
|
||||
int iwx_enable_data_tx_queues(struct iwx_softc *);
|
||||
int iwx_phy_send_rlc(struct iwx_softc *, struct iwx_phy_ctxt *,
|
||||
uint8_t, uint8_t);
|
||||
int iwx_phy_ctxt_update(struct iwx_softc *, struct iwx_phy_ctxt *,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: if_ix.c,v 1.213 2024/05/07 18:35:23 jan Exp $ */
|
||||
/* $OpenBSD: if_ix.c,v 1.214 2024/05/13 01:15:51 jsg Exp $ */
|
||||
|
||||
/******************************************************************************
|
||||
|
||||
|
@ -125,7 +125,6 @@ int ixgbe_allocate_msix(struct ix_softc *);
|
|||
void ixgbe_setup_msix(struct ix_softc *);
|
||||
int ixgbe_allocate_queues(struct ix_softc *);
|
||||
void ixgbe_free_pci_resources(struct ix_softc *);
|
||||
void ixgbe_local_timer(void *);
|
||||
void ixgbe_setup_interface(struct ix_softc *);
|
||||
void ixgbe_config_gpie(struct ix_softc *);
|
||||
void ixgbe_config_delay_values(struct ix_softc *);
|
||||
|
@ -182,7 +181,6 @@ int ixgbe_legacy_intr(void *);
|
|||
void ixgbe_enable_queue(struct ix_softc *, uint32_t);
|
||||
void ixgbe_enable_queues(struct ix_softc *);
|
||||
void ixgbe_disable_queue(struct ix_softc *, uint32_t);
|
||||
void ixgbe_rearm_queue(struct ix_softc *, uint32_t);
|
||||
|
||||
/* MSI-X (multiple vectors interrupt handlers) */
|
||||
int ixgbe_link_intr(void *);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: if_vmx.c,v 1.84 2024/05/07 18:35:23 jan Exp $ */
|
||||
/* $OpenBSD: if_vmx.c,v 1.85 2024/05/13 01:15:51 jsg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2013 Tsubai Masanari
|
||||
|
@ -209,8 +209,6 @@ void vmxnet3_reset(struct vmxnet3_softc *);
|
|||
int vmxnet3_init(struct vmxnet3_softc *);
|
||||
int vmxnet3_ioctl(struct ifnet *, u_long, caddr_t);
|
||||
void vmxnet3_start(struct ifqueue *);
|
||||
int vmxnet3_load_mbuf(struct vmxnet3_softc *, struct vmxnet3_txring *,
|
||||
struct mbuf **);
|
||||
void vmxnet3_watchdog(struct ifnet *);
|
||||
void vmxnet3_media_status(struct ifnet *, struct ifmediareq *);
|
||||
int vmxnet3_media_change(struct ifnet *);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: if_wb.c,v 1.75 2023/11/10 15:51:24 bluhm Exp $ */
|
||||
/* $OpenBSD: if_wb.c,v 1.76 2024/05/13 01:15:51 jsg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997, 1998
|
||||
|
@ -127,7 +127,6 @@
|
|||
int wb_probe(struct device *, void *, void *);
|
||||
void wb_attach(struct device *, struct device *, void *);
|
||||
|
||||
void wb_bfree(caddr_t, u_int, void *);
|
||||
void wb_newbuf(struct wb_softc *, struct wb_chain_onefrag *);
|
||||
int wb_encap(struct wb_softc *, struct wb_chain *, struct mbuf *);
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: igc_base.h,v 1.3 2024/05/04 13:35:26 mbuhl Exp $ */
|
||||
/* $OpenBSD: igc_base.h,v 1.4 2024/05/13 01:15:51 jsg Exp $ */
|
||||
/*-
|
||||
* Copyright 2021 Intel Corp
|
||||
* Copyright 2021 Rubicon Communications, LLC (Netgate)
|
||||
|
@ -15,7 +15,6 @@ struct igc_hw;
|
|||
|
||||
int igc_init_hw_base(struct igc_hw *hw);
|
||||
void igc_power_down_phy_copper_base(struct igc_hw *hw);
|
||||
extern void igc_rx_fifo_flush_base(struct igc_hw *hw);
|
||||
int igc_acquire_phy_base(struct igc_hw *hw);
|
||||
void igc_release_phy_base(struct igc_hw *hw);
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: igc_hw.h,v 1.2 2022/05/11 06:14:15 kevlo Exp $ */
|
||||
/* $OpenBSD: igc_hw.h,v 1.3 2024/05/13 01:22:47 jsg Exp $ */
|
||||
/*-
|
||||
* Copyright 2021 Intel Corp
|
||||
* Copyright 2021 Rubicon Communications, LLC (Netgate)
|
||||
|
@ -260,15 +260,6 @@ struct igc_nvm_operations {
|
|||
int (*write)(struct igc_hw *, uint16_t, uint16_t, uint16_t *);
|
||||
};
|
||||
|
||||
struct igc_info {
|
||||
int (*get_invariants)(struct igc_hw *hw);
|
||||
struct igc_mac_operations *mac_ops;
|
||||
const struct igc_phy_operations *phy_ops;
|
||||
struct igc_nvm_operations *nvm_ops;
|
||||
};
|
||||
|
||||
extern const struct igc_info igc_i225_info;
|
||||
|
||||
struct igc_mac_info {
|
||||
struct igc_mac_operations ops;
|
||||
uint8_t addr[ETHER_ADDR_LEN];
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
|
||||
*******************************************************************************/
|
||||
|
||||
/* $OpenBSD: ixgb_hw.h,v 1.3 2010/09/20 07:50:19 deraadt Exp $ */
|
||||
/* $OpenBSD: ixgb_hw.h,v 1.4 2024/05/13 01:15:51 jsg Exp $ */
|
||||
|
||||
#ifndef _IXGB_HW_H_
|
||||
#define _IXGB_HW_H_
|
||||
|
@ -815,7 +815,6 @@ struct ixgb_hw_stats {
|
|||
/* Function Prototypes */
|
||||
extern boolean_t ixgb_adapter_stop(struct ixgb_hw *hw);
|
||||
extern boolean_t ixgb_init_hw(struct ixgb_hw *hw);
|
||||
extern boolean_t ixgb_adapter_start(struct ixgb_hw *hw);
|
||||
extern void ixgb_check_for_link(struct ixgb_hw *hw);
|
||||
extern boolean_t ixgb_check_for_bad_link(struct ixgb_hw *hw);
|
||||
extern void ixgb_rar_set(struct ixgb_hw *hw, uint8_t *addr, uint32_t index);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: ixgbe_82598.c,v 1.20 2022/01/27 18:28:45 bluhm Exp $ */
|
||||
/* $OpenBSD: ixgbe_82598.c,v 1.21 2024/05/13 01:15:51 jsg Exp $ */
|
||||
|
||||
/******************************************************************************
|
||||
SPDX-License-Identifier: BSD-3-Clause
|
||||
|
@ -46,7 +46,6 @@
|
|||
#define IXGBE_82598_VFT_TBL_SIZE 128
|
||||
#define IXGBE_82598_RX_PB_SIZE 512
|
||||
|
||||
uint32_t ixgbe_get_pcie_msix_count_82598(struct ixgbe_hw *hw);
|
||||
int32_t ixgbe_get_link_capabilities_82598(struct ixgbe_hw *hw,
|
||||
ixgbe_link_speed *speed,
|
||||
bool *autoneg);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: ixgbe_x550.c,v 1.8 2022/01/09 05:42:56 jsg Exp $ */
|
||||
/* $OpenBSD: ixgbe_x550.c,v 1.9 2024/05/13 01:15:51 jsg Exp $ */
|
||||
|
||||
/******************************************************************************
|
||||
|
||||
|
@ -109,9 +109,7 @@ int32_t ixgbe_read_phy_reg_x550a(struct ixgbe_hw *hw, uint32_t reg_addr,
|
|||
uint32_t device_type, uint16_t *phy_data);
|
||||
int32_t ixgbe_write_phy_reg_x550a(struct ixgbe_hw *hw, uint32_t reg_addr,
|
||||
uint32_t device_type, uint16_t phy_data);
|
||||
int32_t ixgbe_setup_fc_fiber_x550em_a(struct ixgbe_hw *hw);
|
||||
int32_t ixgbe_setup_fc_backplane_x550em_a(struct ixgbe_hw *hw);
|
||||
int32_t ixgbe_setup_fc_sgmii_x550em_a(struct ixgbe_hw *hw);
|
||||
void ixgbe_fc_autoneg_fiber_x550em_a(struct ixgbe_hw *hw);
|
||||
void ixgbe_fc_autoneg_backplane_x550em_a(struct ixgbe_hw *hw);
|
||||
void ixgbe_fc_autoneg_sgmii_x550em_a(struct ixgbe_hw *hw);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: neo.c,v 1.40 2022/10/26 20:19:08 kn Exp $ */
|
||||
/* $OpenBSD: neo.c,v 1.41 2024/05/13 01:15:51 jsg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1999 Cameron Grant <gandalf@vilnya.demon.co.uk>
|
||||
|
@ -199,7 +199,6 @@ int neo_query_devinfo(void *, mixer_devinfo_t *);
|
|||
void *neo_malloc(void *, int, size_t, int, int);
|
||||
void neo_free(void *, void *, int);
|
||||
size_t neo_round_buffersize(void *, int, size_t);
|
||||
void neo_set_mixer(struct neo_softc *sc, int a, int d);
|
||||
|
||||
struct cfdriver neo_cd = {
|
||||
NULL, "neo", DV_DULL
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: pccbb.c,v 1.103 2022/03/11 18:00:51 mpi Exp $ */
|
||||
/* $OpenBSD: pccbb.c,v 1.104 2024/05/13 01:15:51 jsg Exp $ */
|
||||
/* $NetBSD: pccbb.c,v 1.96 2004/03/28 09:49:31 nakayama Exp $ */
|
||||
|
||||
/*
|
||||
|
@ -106,7 +106,6 @@ void pccbb_pcmcia_attach_setup(struct pccbb_softc *,
|
|||
#if 0
|
||||
void pccbb_pcmcia_attach_card(struct pcic_handle *);
|
||||
void pccbb_pcmcia_detach_card(struct pcic_handle *, int);
|
||||
void pccbb_pcmcia_deactivate_card(struct pcic_handle *);
|
||||
#endif
|
||||
|
||||
int pccbb_ctrl(cardbus_chipset_tag_t, int);
|
||||
|
@ -166,7 +165,6 @@ int pccbb_winlist_delete(struct pccbb_win_chain_head *,
|
|||
bus_space_handle_t, bus_size_t);
|
||||
void pccbb_winset(bus_addr_t align, struct pccbb_softc *,
|
||||
bus_space_tag_t);
|
||||
void pccbb_winlist_show(struct pccbb_win_chain *);
|
||||
|
||||
/* for config_defer */
|
||||
void pccbb_pci_callback(struct device *);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: pciide.c,v 1.364 2024/04/13 23:44:11 jsg Exp $ */
|
||||
/* $OpenBSD: pciide.c,v 1.365 2024/05/13 01:15:51 jsg Exp $ */
|
||||
/* $NetBSD: pciide.c,v 1.127 2001/08/03 01:31:08 tsutsui Exp $ */
|
||||
|
||||
/*
|
||||
|
@ -240,9 +240,6 @@ int pdc205xx_pci_intr(void *);
|
|||
void pdc205xx_do_reset(struct channel_softc *);
|
||||
void pdc205xx_drv_probe(struct channel_softc *);
|
||||
|
||||
void opti_chip_map(struct pciide_softc *, struct pci_attach_args *);
|
||||
void opti_setup_channel(struct channel_softc *);
|
||||
|
||||
void hpt_chip_map(struct pciide_softc *, struct pci_attach_args *);
|
||||
void hpt_setup_channel(struct channel_softc *);
|
||||
int hpt_pci_intr(void *);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: pciidevar.h,v 1.21 2015/09/10 18:10:34 deraadt Exp $ */
|
||||
/* $OpenBSD: pciidevar.h,v 1.22 2024/05/13 01:15:51 jsg Exp $ */
|
||||
/* $NetBSD: pciidevar.h,v 1.6 2001/01/12 16:04:00 bouyer Exp $ */
|
||||
|
||||
/*
|
||||
|
@ -179,8 +179,6 @@ int pciide_unmapregs_compat(struct pciide_softc *,
|
|||
struct pciide_channel *);
|
||||
int pciide_unmapregs_native(struct pciide_softc *,
|
||||
struct pciide_channel *);
|
||||
int pciide_dma_table_free(struct pciide_softc *, int, int);
|
||||
void pciide_channel_dma_free(struct pciide_channel *);
|
||||
|
||||
/*
|
||||
* Functions defined by machine-dependent code.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: pcireg.h,v 1.62 2024/01/19 18:38:16 kettenis Exp $ */
|
||||
/* $OpenBSD: pcireg.h,v 1.63 2024/05/13 10:01:53 kettenis Exp $ */
|
||||
/* $NetBSD: pcireg.h,v 1.26 2000/05/10 16:58:42 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
|
@ -515,6 +515,7 @@ typedef u_int8_t pci_revision_t;
|
|||
* Message Signaled Interrupts; access via capability pointer.
|
||||
*/
|
||||
#define PCI_MSI_MC 0x00
|
||||
#define PCI_MSI_MC_PVMASK 0x01000000
|
||||
#define PCI_MSI_MC_C64 0x00800000
|
||||
#define PCI_MSI_MC_MME_MASK 0x00700000
|
||||
#define PCI_MSI_MC_MME_SHIFT 20
|
||||
|
@ -525,6 +526,8 @@ typedef u_int8_t pci_revision_t;
|
|||
#define PCI_MSI_MAU32 0x08
|
||||
#define PCI_MSI_MD32 0x08
|
||||
#define PCI_MSI_MD64 0x0c
|
||||
#define PCI_MSI_MASK32 0x0c
|
||||
#define PCI_MSI_MASK64 0x10
|
||||
|
||||
/*
|
||||
* Power Management Control Status Register; access via capability pointer.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: pcivar.h,v 1.79 2024/02/03 10:37:26 kettenis Exp $ */
|
||||
/* $OpenBSD: pcivar.h,v 1.80 2024/05/13 01:15:51 jsg Exp $ */
|
||||
/* $NetBSD: pcivar.h,v 1.23 1997/06/06 23:48:05 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
|
@ -277,7 +277,6 @@ int pci_detach_devices(struct pci_softc *, int);
|
|||
void pci_devinfo(pcireg_t, pcireg_t, int, char *, size_t);
|
||||
const struct pci_quirkdata *
|
||||
pci_lookup_quirkdata(pci_vendor_id_t, pci_product_id_t);
|
||||
void pciagp_set_pchb(struct pci_attach_args *);
|
||||
|
||||
#endif /* _KERNEL */
|
||||
#endif /* _DEV_PCI_PCIVAR_H_ */
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue