sync with OpenBSD -current
This commit is contained in:
parent
7d66fd8cb0
commit
3f3212838f
122 changed files with 1363 additions and 8580 deletions
|
@ -2120,8 +2120,10 @@ static struct edid *edid_filter_invalid_blocks(struct edid *edid,
|
|||
kfree(edid);
|
||||
#else
|
||||
new = kmalloc(*alloc_size, GFP_KERNEL);
|
||||
if (!new)
|
||||
if (!new) {
|
||||
kfree(edid);
|
||||
return NULL;
|
||||
}
|
||||
memcpy(new, edid, EDID_LENGTH);
|
||||
kfree(edid);
|
||||
#endif
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: if_qwx_pci.c,v 1.4 2024/01/25 17:00:21 stsp Exp $ */
|
||||
/* $OpenBSD: if_qwx_pci.c,v 1.5 2024/02/03 20:07:19 kettenis Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright 2023 Stefan Sperling <stsp@openbsd.org>
|
||||
|
@ -770,6 +770,10 @@ qwx_pci_attach(struct device *parent, struct device *self, void *aux)
|
|||
psc->sc_pc = pa->pa_pc;
|
||||
psc->sc_tag = pa->pa_tag;
|
||||
|
||||
#ifdef __HAVE_FDT
|
||||
sc->sc_node = PCITAG_NODE(pa->pa_tag);
|
||||
#endif
|
||||
|
||||
rw_init(&sc->ioctl_rwl, "qwxioctl");
|
||||
|
||||
sreg = pci_conf_read(psc->sc_pc, psc->sc_tag, PCI_SUBSYS_ID_REG);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: pcivar.h,v 1.78 2023/04/13 15:07:43 miod Exp $ */
|
||||
/* $OpenBSD: pcivar.h,v 1.79 2024/02/03 10:37:26 kettenis Exp $ */
|
||||
/* $NetBSD: pcivar.h,v 1.23 1997/06/06 23:48:05 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
|
@ -161,13 +161,15 @@ struct pci_attach_args {
|
|||
*
|
||||
* OpenBSD doesn't actually use them yet -- csapuntz@cvs.openbsd.org
|
||||
*/
|
||||
#define PCI_FLAGS_IO_ENABLED 0x01 /* I/O space is enabled */
|
||||
#define PCI_FLAGS_MEM_ENABLED 0x02 /* memory space is enabled */
|
||||
#define PCI_FLAGS_MRL_OKAY 0x04 /* Memory Read Line okay */
|
||||
#define PCI_FLAGS_MRM_OKAY 0x08 /* Memory Read Multiple okay */
|
||||
#define PCI_FLAGS_MWI_OKAY 0x10 /* Memory Write and Invalidate
|
||||
#define PCI_FLAGS_IO_ENABLED 0x01 /* I/O space is enabled */
|
||||
#define PCI_FLAGS_MEM_ENABLED 0x02 /* memory space is enabled */
|
||||
#define PCI_FLAGS_MRL_OKAY 0x04 /* Memory Read Line okay */
|
||||
#define PCI_FLAGS_MRM_OKAY 0x08 /* Memory Read Multiple okay */
|
||||
#define PCI_FLAGS_MWI_OKAY 0x10 /* Memory Write and Invalidate
|
||||
okay */
|
||||
#define PCI_FLAGS_MSI_ENABLED 0x20 /* Message Signaled Interrupt
|
||||
#define PCI_FLAGS_MSI_ENABLED 0x20 /* Message Signaled Interrupt
|
||||
enabled */
|
||||
#define PCI_FLAGS_MSIVEC_ENABLED 0x40 /* Multiple Message Capability
|
||||
enabled */
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue