Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

espi: Mark W1C bits accordingly #7

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions patch/espi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,25 @@ ESPI:

_array:
PENA*: {}

# Mark W1C bits accordingly
MSTAT:
_modify:
P80Int:
modifiedWriteValues: oneToClear

BusRst:
modifiedWriteValues: oneToClear

IrqUpd:
modifiedWriteValues: oneToClear

WireChg:
modifiedWriteValues: oneToClear

CRCERR:
modifiedWriteValues: oneToClear

GPIO:
modifiedWriteValues: oneToClear

14 changes: 7 additions & 7 deletions src/espi/mstat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,31 +7,31 @@ pub type PortIntR = crate::FieldReader;
#[doc = "Field `P80Int` reader - Port80 has had a request and is pending service."]
pub type P80intR = crate::BitReader;
#[doc = "Field `P80Int` writer - Port80 has had a request and is pending service."]
pub type P80intW<'a, REG> = crate::BitWriter<'a, REG>;
pub type P80intW<'a, REG> = crate::BitWriter1C<'a, REG>;
#[doc = "Field `BusRst` reader - If 1, the entered or left reset. Sticky - must clear."]
pub type BusRstR = crate::BitReader;
#[doc = "Field `BusRst` writer - If 1, the entered or left reset. Sticky - must clear."]
pub type BusRstW<'a, REG> = crate::BitWriter<'a, REG>;
pub type BusRstW<'a, REG> = crate::BitWriter1C<'a, REG>;
#[doc = "Field `IrqUpd` reader - If 1, the bus had an IRQ update completion (for eSPI, IRQPush done; for LPC, SERIRQ done)"]
pub type IrqUpdR = crate::BitReader;
#[doc = "Field `IrqUpd` writer - If 1, the bus had an IRQ update completion (for eSPI, IRQPush done; for LPC, SERIRQ done)"]
pub type IrqUpdW<'a, REG> = crate::BitWriter<'a, REG>;
pub type IrqUpdW<'a, REG> = crate::BitWriter1C<'a, REG>;
#[doc = "Field `WireChg` reader - If 1, one or more input VWire has changed since last cleared for eSPI; for LPC, SERIRQ started"]
pub type WireChgR = crate::BitReader;
#[doc = "Field `WireChg` writer - If 1, one or more input VWire has changed since last cleared for eSPI; for LPC, SERIRQ started"]
pub type WireChgW<'a, REG> = crate::BitWriter<'a, REG>;
pub type WireChgW<'a, REG> = crate::BitWriter1C<'a, REG>;
#[doc = "Field `Hstall` reader - If 1, the Host is stalled on a read from or write to a port that has the StallRd or StallWr bit set in the PnCFG register"]
pub type HstallR = crate::BitReader;
#[doc = "Field `Hstall` writer - If 1, the Host is stalled on a read from or write to a port that has the StallRd or StallWr bit set in the PnCFG register"]
pub type HstallW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `CRCERR` reader - If 1, the CRC from the Master did not match the computed CRC"]
pub type CrcerrR = crate::BitReader;
#[doc = "Field `CRCERR` writer - If 1, the CRC from the Master did not match the computed CRC"]
pub type CrcerrW<'a, REG> = crate::BitWriter<'a, REG>;
pub type CrcerrW<'a, REG> = crate::BitWriter1C<'a, REG>;
#[doc = "Field `GPIO` reader - If 1, the GPIO in ESPIMISC has had an input change"]
pub type GpioR = crate::BitReader;
#[doc = "Field `GPIO` writer - If 1, the GPIO in ESPIMISC has had an input change"]
pub type GpioW<'a, REG> = crate::BitWriter<'a, REG>;
pub type GpioW<'a, REG> = crate::BitWriter1C<'a, REG>;
#[doc = "Field `Busy` reader - If 1, the bus is busy."]
pub type BusyR = crate::BitReader;
#[doc = "Field `InRst` reader - If 1, the bus in reset."]
Expand Down Expand Up @@ -177,7 +177,7 @@ impl crate::Readable for MstatSpec {}
impl crate::Writable for MstatSpec {
type Safety = crate::Unsafe;
const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0x6f00;
}
#[doc = "`reset()` method sets MSTAT to value 0"]
impl crate::Resettable for MstatSpec {
Expand Down
Loading