From nobody Thu Nov 14 18:11:48 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1708905939; cv=none; d=zohomail.com; s=zohoarc; b=KNSx2eRkmrU7tpy/dF3/YtYN8X4mHYzK4KMDe//Sixn+hrwy0o9t3sPXr3HHqRwlen/RceTtWO9dFxZG8iQp8S/ITg3Ziews5gAZeMM/ctTCtM9A3ZWwNoeQ/AsRz+MlpD95i25d/l9xKnLvSmH+XgQyl100AcGs7CsxiwlCghU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1708905939; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=m35zG+ajLJL60pM6bIM9adMNO13lGgmKjK7XnKNpmk8=; b=RO0hRcKcRdRQ0RxjmHM3hl1ZyOQTXowaCJxazsMXZTZNE7FfPA2HeMqj9rRkA2Thi3g+vumaaxgLjocbPmfneiZ5YFj2EbE/LqLkBGpSvHJYXbOhIZqt3f30OdLjWLb4zzQXzYMKZR2+6kXpQHUwp8igmrgVOZFGBU1VVN760RM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1708905939648348.3557432153908; Sun, 25 Feb 2024 16:05:39 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1reOTw-0007WZ-Jf; Sun, 25 Feb 2024 19:04:33 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1reOSz-0006k0-TN; Sun, 25 Feb 2024 19:03:33 -0500 Received: from mail-yw1-x112d.google.com ([2607:f8b0:4864:20::112d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1reOSy-0000S3-6U; Sun, 25 Feb 2024 19:03:33 -0500 Received: by mail-yw1-x112d.google.com with SMTP id 00721157ae682-608ed07bdc5so4861397b3.3; Sun, 25 Feb 2024 16:03:31 -0800 (PST) Received: from localhost.localdomain ([201.203.117.224]) by smtp.gmail.com with ESMTPSA id t18-20020a818312000000b00607bfa1913csm938171ywf.114.2024.02.25.16.03.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Feb 2024 16:03:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708905810; x=1709510610; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=m35zG+ajLJL60pM6bIM9adMNO13lGgmKjK7XnKNpmk8=; b=UEwvAeE6aQI6kpIZFQAY+xKRvaESmzdWaAql7r4K+BMVZ6c/AotJdCuOwJ7jqK9Jtc R8Seon8x8W9y1WAGnYXZu7sXDRbHJE/5+TGOLbHqTDFU5ZVQma5sNO3picwDRPW8aYTa v/pzEAnU73BBWVvunu21N5pjFLQ0qy2USVjj9DHkvciD2abYuTj1Coa3rlyLolk5FyJ3 St8tscRWLzwPC9OhbNE/UC5U+s5zjXQNZZy6G/owiOjXIzHi8fHLRk95IJD2cjqCJjC9 B4yBeKe+6oBNuy0t3Wm6kaBXoTwJgUqAkH6zwK+8Qtqo7pvaZNwxoAOmtCkX/LroxU8F y+fA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708905810; x=1709510610; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=m35zG+ajLJL60pM6bIM9adMNO13lGgmKjK7XnKNpmk8=; b=f9qRcCc0mv/X3HV6fbig0Asp7DgV0hunhq7UFmdGuyftNtuVJEym5itaesIkmXmZBn d3Cs8yfvhWeFwwwdlBSngT7hugKDhONQGPSouB7j8Zs6G9n/AeR/dhEjGw0Ch+5SYiR/ P/wVvAT/ITfAnntnUtUufU2HbdDsfsUTcqYZ3ai7OeeFZ+QgjINwsIlYB+CQSZy3Tq91 ScoSvZV7Gv5y7+ANsKTU1Gigd3lnZNCcGHqyZufKozFPqkIwREqo7FWjflCnf1JuR5vZ 7L6JPoOFAcNHGUHOWaPIDZ9RDrZM8N2tRkPf9B1L7i/E/k/fpGXH4oSPw+UkcaInvU1v gsIQ== X-Gm-Message-State: AOJu0YyKr3wbczNtkZuT7z+3c02KuBMyDPmqp3WZa0K0cfBDGN29TVKc szLJzwBPmPmw4xBanVhj93viARNz44C1g4fq83rcwwqaIm/xyYzlAl7e3iawlElKLA== X-Google-Smtp-Source: AGHT+IE9Vva1ndmOsge2ARLD15d9g7pvBZNzobm75D4nocNrhdhw+6coqCG+YQW/X84Yau3uolAMIQ== X-Received: by 2002:a81:698b:0:b0:608:2a4f:89a4 with SMTP id e133-20020a81698b000000b006082a4f89a4mr5289734ywc.37.1708905810573; Sun, 25 Feb 2024 16:03:30 -0800 (PST) From: Sergey Kambalin X-Google-Original-From: Sergey Kambalin To: qemu-arm@nongnu.org Cc: qemu-devel@nongnu.org, Sergey Kambalin Subject: [PATCH v6 23/41] Add GENET register structs. Part 4 Date: Sun, 25 Feb 2024 18:02:41 -0600 Message-Id: <20240226000259.2752893-24-sergey.kambalin@auriga.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240226000259.2752893-1-sergey.kambalin@auriga.com> References: <20240226000259.2752893-1-sergey.kambalin@auriga.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::112d; envelope-from=serg.oker@gmail.com; helo=mail-yw1-x112d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1708905940886100007 Content-Type: text/plain; charset="utf-8" Signed-off-by: Sergey Kambalin --- include/hw/net/bcm2838_genet.h | 37 ++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/include/hw/net/bcm2838_genet.h b/include/hw/net/bcm2838_genet.h index 1bd004785a..94c2f3ebca 100644 --- a/include/hw/net/bcm2838_genet.h +++ b/include/hw/net/bcm2838_genet.h @@ -25,6 +25,12 @@ OBJECT_DECLARE_SIMPLE_TYPE(BCM2838GenetState, BCM2838_GE= NET) #define BCM2838_GENET_HFB_FILTER_CNT 48 #define BCM2838_GENET_HFB_FILTER_SIZE 128 =20 +#define BCM2838_GENET_PHY_AUX_CTL_MISC 0x7 +#define BCM2838_GENET_PHY_AUX_CTL_REGS_SIZE 8 + +#define BCM2838_GENET_PHY_EXP_SHD_BLOCKS_CNT 256 +#define BCM2838_GENET_PHY_EXP_SHD_REGS_CNT 256 + typedef struct { uint32_t rev_ctrl; uint32_t port_ctrl; @@ -273,6 +279,34 @@ typedef struct { uint16_t rdb_data; } BCM2838GenetPhyRegs; =20 +typedef struct { + uint16_t reserved_0_2[3]; + uint16_t clk_ctl; + uint16_t scr2; + uint16_t scr3; + uint16_t reserved_6_9[4]; + uint16_t apd; + uint16_t rgmii_mode; + uint16_t reserved_12; + uint16_t leds1; + uint16_t reserved_14_18[5]; + uint16_t _100fx_ctrl; + uint16_t ssd; + uint16_t reserved_21_30[10]; + uint16_t mode; +} BCM2838GenetPhyShdRegs; + +typedef struct { + uint16_t auxctl; + uint16_t reserved_1_6[BCM2838_GENET_PHY_AUX_CTL_REGS_SIZE - 2]; + uint16_t misc; +} BCM2838GenetPhyAuxShdRegs; + +typedef struct { + uint16_t regs[BCM2838_GENET_PHY_EXP_SHD_BLOCKS_CNT] + [BCM2838_GENET_PHY_EXP_SHD_REGS_CNT]; +} BCM2838GenetPhyExpShdRegs; + struct BCM2838GenetState { /*< private >*/ SysBusDevice parent_obj; @@ -284,6 +318,9 @@ struct BCM2838GenetState { =20 BCM2838GenetRegs regs; BCM2838GenetPhyRegs phy_regs; + BCM2838GenetPhyShdRegs phy_shd_regs; + BCM2838GenetPhyAuxShdRegs phy_aux_ctl_shd_regs; + BCM2838GenetPhyExpShdRegs phy_exp_shd_regs; =20 qemu_irq irq_default; qemu_irq irq_prio; --=20 2.34.1