sync with OpenBSD -current
This commit is contained in:
parent
329362e59c
commit
22b00c65ca
13 changed files with 259 additions and 275 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: rkrng.c,v 1.5 2023/04/14 01:11:32 dlg Exp $ */
|
||||
/* $OpenBSD: rkrng.c,v 1.6 2024/02/17 13:29:25 kettenis Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2020 Mark Kettenis <kettenis@openbsd.org>
|
||||
*
|
||||
|
@ -124,6 +124,9 @@ rkrng_match(struct device *parent, void *match, void *aux)
|
|||
struct fdt_attach_args *faa = aux;
|
||||
|
||||
return OF_is_compatible(faa->fa_node, "rockchip,cryptov1-rng") ||
|
||||
OF_is_compatible(faa->fa_node, "rockchip,rk3288-crypto") ||
|
||||
OF_is_compatible(faa->fa_node, "rockchip,rk3328-crypto") ||
|
||||
OF_is_compatible(faa->fa_node, "rockchip,rk3399-crypto") ||
|
||||
OF_is_compatible(faa->fa_node, "rockchip,cryptov2-rng");
|
||||
}
|
||||
|
||||
|
@ -133,7 +136,10 @@ rkrng_attach(struct device *parent, struct device *self, void *aux)
|
|||
struct rkrng_softc *sc = (struct rkrng_softc *)self;
|
||||
struct fdt_attach_args *faa = aux;
|
||||
|
||||
if (OF_is_compatible(faa->fa_node, "rockchip,cryptov1-rng"))
|
||||
if (OF_is_compatible(faa->fa_node, "rockchip,cryptov1-rng") ||
|
||||
OF_is_compatible(faa->fa_node, "rockchip,rk3288-crypto") ||
|
||||
OF_is_compatible(faa->fa_node, "rockchip,rk3328-crypto") ||
|
||||
OF_is_compatible(faa->fa_node, "rockchip,rk3399-crypto"))
|
||||
sc->sc_v = &rkrnv_v1;
|
||||
else if (OF_is_compatible(faa->fa_node, "rockchip,cryptov2-rng"))
|
||||
sc->sc_v = &rkrnv_v2;
|
||||
|
|
|
@ -32,7 +32,7 @@ POSSIBILITY OF SUCH DAMAGE.
|
|||
***************************************************************************/
|
||||
|
||||
/* $FreeBSD: if_em.h,v 1.26 2004/09/01 23:22:41 pdeuskar Exp $ */
|
||||
/* $OpenBSD: if_em.h,v 1.82 2024/01/28 18:42:58 mglocker Exp $ */
|
||||
/* $OpenBSD: if_em.h,v 1.83 2024/02/16 22:30:54 mglocker Exp $ */
|
||||
|
||||
#ifndef _EM_H_DEFINED_
|
||||
#define _EM_H_DEFINED_
|
||||
|
@ -55,11 +55,14 @@ POSSIBILITY OF SUCH DAMAGE.
|
|||
|
||||
#include <net/if.h>
|
||||
#include <net/if_media.h>
|
||||
#include <net/route.h>
|
||||
|
||||
#include <netinet/in.h>
|
||||
#include <netinet/ip.h>
|
||||
#include <netinet/if_ether.h>
|
||||
#include <netinet/tcp.h>
|
||||
#include <netinet/tcp_timer.h>
|
||||
#include <netinet/tcp_var.h>
|
||||
#include <netinet/udp.h>
|
||||
|
||||
#if NBPFILTER > 0
|
||||
|
@ -269,6 +272,7 @@ typedef int boolean_t;
|
|||
|
||||
#define EM_MAX_SCATTER 64
|
||||
#define EM_TSO_SIZE 65535
|
||||
#define EM_TSO_SEG_SIZE 4096 /* Max dma segment size */
|
||||
|
||||
struct em_packet {
|
||||
int pkt_eop; /* Index of the desc to watch */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: if_iwn.c,v 1.260 2022/06/19 18:27:06 stsp Exp $ */
|
||||
/* $OpenBSD: if_iwn.c,v 1.261 2024/02/16 11:44:52 stsp Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2007-2010 Damien Bergamini <damien.bergamini@free.fr>
|
||||
|
@ -5359,7 +5359,7 @@ iwn_scan(struct iwn_softc *sc, uint16_t flags, int bgscan)
|
|||
* The current mode might have been fixed during association.
|
||||
* Ensure all channels get scanned.
|
||||
*/
|
||||
if (IFM_MODE(ic->ic_media.ifm_cur->ifm_media) == IFM_AUTO)
|
||||
if (IFM_SUBTYPE(ic->ic_media.ifm_cur->ifm_media) == IFM_AUTO)
|
||||
ieee80211_setmode(ic, IEEE80211_MODE_AUTO);
|
||||
|
||||
sc->sc_flags |= IWN_FLAG_SCANNING;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: if_iwx.c,v 1.180 2023/12/30 16:55:44 stsp Exp $ */
|
||||
/* $OpenBSD: if_iwx.c,v 1.181 2024/02/16 11:44:52 stsp Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2014, 2016 genua gmbh <info@genua.de>
|
||||
|
@ -7529,7 +7529,7 @@ iwx_scan(struct iwx_softc *sc)
|
|||
* The current mode might have been fixed during association.
|
||||
* Ensure all channels get scanned.
|
||||
*/
|
||||
if (IFM_MODE(ic->ic_media.ifm_cur->ifm_media) == IFM_AUTO)
|
||||
if (IFM_SUBTYPE(ic->ic_media.ifm_cur->ifm_media) == IFM_AUTO)
|
||||
ieee80211_setmode(ic, IEEE80211_MODE_AUTO);
|
||||
|
||||
sc->sc_flags |= IWX_FLAG_SCANNING;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue