From c979301184e2918eac4386c3c68d2dc417381710 Mon Sep 17 00:00:00 2001 From: "sem24h18 Fabian Hauser (fhauser)" Date: Wed, 23 Oct 2024 11:57:23 +0200 Subject: [PATCH] Added ports. Now 8 ports --- hw/newusb_regs/newusb_regs.hjson | 625 +++++++++++++++++++++++++++++++ 1 file changed, 625 insertions(+) diff --git a/hw/newusb_regs/newusb_regs.hjson b/hw/newusb_regs/newusb_regs.hjson index 064a9c9e..021b72a1 100644 --- a/hw/newusb_regs/newusb_regs.hjson +++ b/hw/newusb_regs/newusb_regs.hjson @@ -1138,6 +1138,631 @@ ] } + { name: "HcRhPortStatus[3]" + desc: "HC Port 3 Status and Control Register" + swaccess: "ro" + hwaccess: "hrw" + fields: [ + { bits: "31:21" + name: "Reserved" + resval: "0" + } + { bits: "20" + name: "PRSC" + desc: "PortResetStatusChange" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "19" + name: "OCIC" + desc: "PortOverCurrentIndicatorChange" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "18" + name: "PSSC" + desc: "PortEnableStatusChange" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "17" + name: "PESC" + desc: "LocalPowerStatusChange" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "16" + name: "CSC" + desc: "ConnectStatusChange" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "15:10" + name: "Reserved" + resval: "0" + } + { bits: "9" + name: "LSDA" + desc: "LowSpeedDeviceAttached" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "8" + name: "PPS" + desc: "PortPowerStatus" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "7:5" + name: "Reserved" + resval: "0" + } + { bits: "4" + name: "PRS" + desc: "PortResetStatus" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "3" + name: "POCI" + desc: "PortOverCurrentIndicator" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "2" + name: "PSS" + desc: "PortSuspendStatus" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "1" + name: "PES" + desc: "PortEnableStatus" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "0" + name: "CCS" + desc: "CurrentConnectStatus" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + ] + } + + { name: "HcRhPortStatus[4]" + desc: "HC Port 4 Status and Control Register" + swaccess: "ro" + hwaccess: "hrw" + fields: [ + { bits: "31:21" + name: "Reserved" + resval: "0" + } + { bits: "20" + name: "PRSC" + desc: "PortResetStatusChange" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "19" + name: "OCIC" + desc: "PortOverCurrentIndicatorChange" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "18" + name: "PSSC" + desc: "PortEnableStatusChange" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "17" + name: "PESC" + desc: "LocalPowerStatusChange" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "16" + name: "CSC" + desc: "ConnectStatusChange" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "15:10" + name: "Reserved" + resval: "0" + } + { bits: "9" + name: "LSDA" + desc: "LowSpeedDeviceAttached" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "8" + name: "PPS" + desc: "PortPowerStatus" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "7:5" + name: "Reserved" + resval: "0" + } + { bits: "4" + name: "PRS" + desc: "PortResetStatus" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "3" + name: "POCI" + desc: "PortOverCurrentIndicator" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "2" + name: "PSS" + desc: "PortSuspendStatus" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "1" + name: "PES" + desc: "PortEnableStatus" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "0" + name: "CCS" + desc: "CurrentConnectStatus" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + ] + } + + { name: "HcRhPortStatus[5]" + desc: "HC Port 5 Status and Control Register" + swaccess: "ro" + hwaccess: "hrw" + fields: [ + { bits: "31:21" + name: "Reserved" + resval: "0" + } + { bits: "20" + name: "PRSC" + desc: "PortResetStatusChange" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "19" + name: "OCIC" + desc: "PortOverCurrentIndicatorChange" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "18" + name: "PSSC" + desc: "PortEnableStatusChange" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "17" + name: "PESC" + desc: "LocalPowerStatusChange" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "16" + name: "CSC" + desc: "ConnectStatusChange" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "15:10" + name: "Reserved" + resval: "0" + } + { bits: "9" + name: "LSDA" + desc: "LowSpeedDeviceAttached" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "8" + name: "PPS" + desc: "PortPowerStatus" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "7:5" + name: "Reserved" + resval: "0" + } + { bits: "4" + name: "PRS" + desc: "PortResetStatus" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "3" + name: "POCI" + desc: "PortOverCurrentIndicator" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "2" + name: "PSS" + desc: "PortSuspendStatus" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "1" + name: "PES" + desc: "PortEnableStatus" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "0" + name: "CCS" + desc: "CurrentConnectStatus" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + ] + } + + { name: "HcRhPortStatus[6]" + desc: "HC Port 6 Status and Control Register" + swaccess: "ro" + hwaccess: "hrw" + fields: [ + { bits: "31:21" + name: "Reserved" + resval: "0" + } + { bits: "20" + name: "PRSC" + desc: "PortResetStatusChange" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "19" + name: "OCIC" + desc: "PortOverCurrentIndicatorChange" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "18" + name: "PSSC" + desc: "PortEnableStatusChange" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "17" + name: "PESC" + desc: "LocalPowerStatusChange" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "16" + name: "CSC" + desc: "ConnectStatusChange" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "15:10" + name: "Reserved" + resval: "0" + } + { bits: "9" + name: "LSDA" + desc: "LowSpeedDeviceAttached" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "8" + name: "PPS" + desc: "PortPowerStatus" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "7:5" + name: "Reserved" + resval: "0" + } + { bits: "4" + name: "PRS" + desc: "PortResetStatus" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "3" + name: "POCI" + desc: "PortOverCurrentIndicator" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "2" + name: "PSS" + desc: "PortSuspendStatus" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "1" + name: "PES" + desc: "PortEnableStatus" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "0" + name: "CCS" + desc: "CurrentConnectStatus" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + ] + } + + { name: "HcRhPortStatus[7]" + desc: "HC Port 7 Status and Control Register" + swaccess: "ro" + hwaccess: "hrw" + fields: [ + { bits: "31:21" + name: "Reserved" + resval: "0" + } + { bits: "20" + name: "PRSC" + desc: "PortResetStatusChange" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "19" + name: "OCIC" + desc: "PortOverCurrentIndicatorChange" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "18" + name: "PSSC" + desc: "PortEnableStatusChange" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "17" + name: "PESC" + desc: "LocalPowerStatusChange" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "16" + name: "CSC" + desc: "ConnectStatusChange" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "15:10" + name: "Reserved" + resval: "0" + } + { bits: "9" + name: "LSDA" + desc: "LowSpeedDeviceAttached" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "8" + name: "PPS" + desc: "PortPowerStatus" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "7:5" + name: "Reserved" + resval: "0" + } + { bits: "4" + name: "PRS" + desc: "PortResetStatus" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "3" + name: "POCI" + desc: "PortOverCurrentIndicator" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "2" + name: "PSS" + desc: "PortSuspendStatus" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "1" + name: "PES" + desc: "PortEnableStatus" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "0" + name: "CCS" + desc: "CurrentConnectStatus" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + ] + } + + { name: "HcRhPortStatus[8]" + desc: "HC Port 8 Status and Control Register" + swaccess: "ro" + hwaccess: "hrw" + fields: [ + { bits: "31:21" + name: "Reserved" + resval: "0" + } + { bits: "20" + name: "PRSC" + desc: "PortResetStatusChange" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "19" + name: "OCIC" + desc: "PortOverCurrentIndicatorChange" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "18" + name: "PSSC" + desc: "PortEnableStatusChange" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "17" + name: "PESC" + desc: "LocalPowerStatusChange" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "16" + name: "CSC" + desc: "ConnectStatusChange" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "15:10" + name: "Reserved" + resval: "0" + } + { bits: "9" + name: "LSDA" + desc: "LowSpeedDeviceAttached" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "8" + name: "PPS" + desc: "PortPowerStatus" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "7:5" + name: "Reserved" + resval: "0" + } + { bits: "4" + name: "PRS" + desc: "PortResetStatus" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "3" + name: "POCI" + desc: "PortOverCurrentIndicator" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "2" + name: "PSS" + desc: "PortSuspendStatus" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "1" + name: "PES" + desc: "PortEnableStatus" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + { bits: "0" + name: "CCS" + desc: "CurrentConnectStatus" + swaccess: "rw" + hwaccess: "hrw" + resval: "0" + } + ] + } + + ]