From 1066eb27f89d80c3f343cd7c4ab96671aebfbe2f Mon Sep 17 00:00:00 2001 From: stsp Date: Wed, 11 Oct 2023 12:32:46 +0000 Subject: [PATCH] fix bitmask of GMAC4 hwfeatures1 RX FIFO size ok kettenis --- sys/dev/ic/dwqereg.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/ic/dwqereg.h b/sys/dev/ic/dwqereg.h index 70954d47124..88da091f1ad 100644 --- a/sys/dev/ic/dwqereg.h +++ b/sys/dev/ic/dwqereg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: dwqereg.h,v 1.3 2023/10/10 19:06:42 kettenis Exp $ */ +/* $OpenBSD: dwqereg.h,v 1.4 2023/10/11 12:32:46 stsp Exp $ */ /* * Copyright (c) 2008, 2019 Mark Kettenis * Copyright (c) 2017, 2022 Patrick Wildt @@ -62,7 +62,7 @@ #define GMAC_VERSION_SNPS_MASK 0xff #define GMAC_MAC_HW_FEATURE(x) (0x011c + (x) * 0x4) #define GMAC_MAC_HW_FEATURE1_TXFIFOSIZE(x) (((x) >> 6) & 0x1f) -#define GMAC_MAC_HW_FEATURE1_RXFIFOSIZE(x) (((x) >> 0) & 0x3f) +#define GMAC_MAC_HW_FEATURE1_RXFIFOSIZE(x) (((x) >> 0) & 0x1f) #define GMAC_MAC_MDIO_ADDR 0x0200 #define GMAC_MAC_MDIO_ADDR_PA_SHIFT 21 #define GMAC_MAC_MDIO_ADDR_RDA_SHIFT 16 -- 2.20.1