sync and add missing code for ToolChains
This commit is contained in:
parent
f5f0d5c82b
commit
01bad5edf2
44 changed files with 3514 additions and 2673 deletions
|
@ -1428,6 +1428,9 @@ int drm_fb_helper_check_var(struct fb_var_screeninfo *var,
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
var->xres_virtual = fb->width;
|
||||
var->yres_virtual = fb->height;
|
||||
|
||||
/*
|
||||
* Workaround for SDL 1.2, which is known to be setting all pixel format
|
||||
* fields values to zero in some cases. We treat this situation as a
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: if_aq_pci.c,v 1.20 2023/04/24 09:18:55 jmatthew Exp $ */
|
||||
/* $OpenBSD: if_aq_pci.c,v 1.21 2023/05/01 08:25:55 kettenis Exp $ */
|
||||
/* $NetBSD: if_aq.c,v 1.27 2021/06/16 00:21:18 riastradh Exp $ */
|
||||
|
||||
/*
|
||||
|
@ -96,6 +96,10 @@
|
|||
#include <netinet/in.h>
|
||||
#include <netinet/if_ether.h>
|
||||
|
||||
#ifdef __HAVE_FDT
|
||||
#include <dev/ofw/openfirm.h>
|
||||
#endif
|
||||
|
||||
#include <dev/pci/pcireg.h>
|
||||
#include <dev/pci/pcivar.h>
|
||||
#include <dev/pci/pcidevs.h>
|
||||
|
@ -2260,6 +2264,14 @@ aq2_get_mac_addr(struct aq_softc *sc)
|
|||
AQ_READ_REGS(sc, AQ2_FW_INTERFACE_IN_MAC_ADDRESS_REG,
|
||||
mac_addr, nitems(mac_addr));
|
||||
|
||||
#ifdef __HAVE_FDT
|
||||
if (mac_addr[0] == 0 && mac_addr[1] == 0 &&
|
||||
PCITAG_NODE(sc->sc_pcitag)) {
|
||||
OF_getprop(PCITAG_NODE(sc->sc_pcitag), "local-mac-address",
|
||||
mac_addr, ETHER_ADDR_LEN);
|
||||
}
|
||||
#endif
|
||||
|
||||
if (mac_addr[0] == 0 && mac_addr[1] == 0) {
|
||||
printf(": mac address not found\n");
|
||||
return ENXIO;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
$OpenBSD: pcidevs,v 1.2033 2023/04/30 23:38:52 jsg Exp $
|
||||
$OpenBSD: pcidevs,v 1.2034 2023/05/01 07:24:04 dlg Exp $
|
||||
/* $NetBSD: pcidevs,v 1.30 1997/06/24 06:20:24 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
|
@ -4440,6 +4440,7 @@ product INTEL BSW_SIO_DMA_2 0x2286 Braswell SIO DMA
|
|||
product INTEL BSW_SIO_HSUART_1 0x228a Braswell Serial
|
||||
product INTEL BSW_SIO_HSUART_2 0x228c Braswell Serial
|
||||
product INTEL BRASWELL_SMB 0x2292 Braswell SMBus
|
||||
product INTEL BSW_SDIO 0x2295 Braswell SDIO
|
||||
product INTEL BSW_TXE 0x2298 Braswell TXE
|
||||
product INTEL BSW_PCU_LPC 0x229c Braswell PCU LPC
|
||||
product INTEL BSW_AHCI 0x22a3 Braswell AHCI
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
*
|
||||
* generated from:
|
||||
* OpenBSD: pcidevs,v 1.2033 2023/04/30 23:38:52 jsg Exp
|
||||
* OpenBSD: pcidevs,v 1.2034 2023/05/01 07:24:04 dlg Exp
|
||||
*/
|
||||
/* $NetBSD: pcidevs,v 1.30 1997/06/24 06:20:24 thorpej Exp $ */
|
||||
|
||||
|
@ -4445,6 +4445,7 @@
|
|||
#define PCI_PRODUCT_INTEL_BSW_SIO_HSUART_1 0x228a /* Braswell Serial */
|
||||
#define PCI_PRODUCT_INTEL_BSW_SIO_HSUART_2 0x228c /* Braswell Serial */
|
||||
#define PCI_PRODUCT_INTEL_BRASWELL_SMB 0x2292 /* Braswell SMBus */
|
||||
#define PCI_PRODUCT_INTEL_BSW_SDIO 0x2295 /* Braswell SDIO */
|
||||
#define PCI_PRODUCT_INTEL_BSW_TXE 0x2298 /* Braswell TXE */
|
||||
#define PCI_PRODUCT_INTEL_BSW_PCU_LPC 0x229c /* Braswell PCU LPC */
|
||||
#define PCI_PRODUCT_INTEL_BSW_AHCI 0x22a3 /* Braswell AHCI */
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
*
|
||||
* generated from:
|
||||
* OpenBSD: pcidevs,v 1.2033 2023/04/30 23:38:52 jsg Exp
|
||||
* OpenBSD: pcidevs,v 1.2034 2023/05/01 07:24:04 dlg Exp
|
||||
*/
|
||||
|
||||
/* $NetBSD: pcidevs,v 1.30 1997/06/24 06:20:24 thorpej Exp $ */
|
||||
|
@ -15135,6 +15135,10 @@ static const struct pci_known_product pci_known_products[] = {
|
|||
PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_BRASWELL_SMB,
|
||||
"Braswell SMBus",
|
||||
},
|
||||
{
|
||||
PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_BSW_SDIO,
|
||||
"Braswell SDIO",
|
||||
},
|
||||
{
|
||||
PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_BSW_TXE,
|
||||
"Braswell TXE",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue