sync with OpenBSD -current
This commit is contained in:
parent
ee61daa776
commit
e247f83c76
42 changed files with 45418 additions and 262 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: qcpmic.c,v 1.1 2022/11/08 19:40:08 patrick Exp $ */
|
||||
/* $OpenBSD: qcpmic.c,v 1.2 2024/08/14 10:54:58 mglocker Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2022 Patrick Wildt <patrick@blueri.se>
|
||||
*
|
||||
|
@ -117,7 +117,7 @@ qcpmic_read(struct qcpmic_softc *sc, uint16_t addr)
|
|||
err = spmi_cmd_read(sc->sc_tag, sc->sc_sid, SPMI_CMD_EXT_READL,
|
||||
addr, ®, sizeof(reg));
|
||||
if (err)
|
||||
printf("%s: error (%u) reading 0x%x\n", sc->sc_dev.dv_xname,
|
||||
printf("%s: error (%u) reading 0x%x", sc->sc_dev.dv_xname,
|
||||
err, addr);
|
||||
|
||||
return reg;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: qcspmi.c,v 1.5 2024/07/04 21:54:38 kettenis Exp $ */
|
||||
/* $OpenBSD: qcspmi.c,v 1.6 2024/08/14 10:54:58 mglocker Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2022 Patrick Wildt <patrick@blueri.se>
|
||||
*
|
||||
|
@ -408,14 +408,23 @@ qcspmi_cmd_read(void *cookie, uint8_t sid, uint8_t cmd, uint16_t addr,
|
|||
SPMI_OBSV_OFF(sc, sc->sc_ee, apid) + SPMI_STATUS);
|
||||
if (reg & SPMI_STATUS_DONE)
|
||||
break;
|
||||
if (reg & SPMI_STATUS_FAILURE) {
|
||||
printf(": transaction failed\n");
|
||||
return EIO;
|
||||
}
|
||||
if (reg & SPMI_STATUS_DENIED) {
|
||||
printf(": transaction denied\n");
|
||||
return EIO;
|
||||
}
|
||||
if (reg & SPMI_STATUS_DROPPED) {
|
||||
printf(": transaction dropped\n");
|
||||
return EIO;
|
||||
}
|
||||
}
|
||||
if (i == 0)
|
||||
if (i == 0) {
|
||||
printf("\n");
|
||||
return ETIMEDOUT;
|
||||
|
||||
if (reg & SPMI_STATUS_FAILURE ||
|
||||
reg & SPMI_STATUS_DENIED ||
|
||||
reg & SPMI_STATUS_DROPPED)
|
||||
return EIO;
|
||||
}
|
||||
|
||||
if (len > 0) {
|
||||
reg = HREAD4(sc, QCSPMI_REG_OBSRVR,
|
||||
|
|
25568
sys/dev/ic/qwz.c
Normal file
25568
sys/dev/ic/qwz.c
Normal file
File diff suppressed because it is too large
Load diff
13253
sys/dev/ic/qwzreg.h
Normal file
13253
sys/dev/ic/qwzreg.h
Normal file
File diff suppressed because it is too large
Load diff
2031
sys/dev/ic/qwzvar.h
Normal file
2031
sys/dev/ic/qwzvar.h
Normal file
File diff suppressed because it is too large
Load diff
|
@ -1,4 +1,4 @@
|
|||
# $OpenBSD: files.pci,v 1.365 2024/04/09 14:58:41 mglocker Exp $
|
||||
# $OpenBSD: files.pci,v 1.366 2024/08/14 14:40:46 patrick Exp $
|
||||
# $NetBSD: files.pci,v 1.20 1996/09/24 17:47:15 christos Exp $
|
||||
#
|
||||
# Config file and device description for machine-independent PCI code.
|
||||
|
@ -559,6 +559,10 @@ file dev/pci/if_iwx.c iwx
|
|||
attach qwx at pci with qwx_pci
|
||||
file dev/pci/if_qwx_pci.c qwx_pci
|
||||
|
||||
# Qualcomm 802.11be
|
||||
attach qwz at pci with qwz_pci
|
||||
file dev/pci/if_qwz_pci.c qwz_pci
|
||||
|
||||
# C-Media CMI8x38 Audio Chip
|
||||
device cmpci {}: audio
|
||||
attach cmpci at pci
|
||||
|
|
4142
sys/dev/pci/if_qwz_pci.c
Normal file
4142
sys/dev/pci/if_qwz_pci.c
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue