Skip to content
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
6 changes: 5 additions & 1 deletion ASFWDriver/Controller/ControllerCoreInterrupts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,11 @@ IsochContextEvents ControllerCore::HandleInterrupt(const InterruptSnapshot& snap
if ((events & IntEventBits::kBusReset) != 0U) {
auto access = hw.TryBeginAccess();
if (!access) return {};
const uint32_t generation = access.Read(Register32::kSelfIDGeneration);
// SelfIDCount.selfIDGeneration already holds the new generation at the
// busReset edge (OHCI 1.2 Table 11-2); 0x06C is reserved.
const uint32_t generation =
(access.Read(Register32::kSelfIDCount) & SelfIDCountBits::kGenerationMask) >>
SelfIDCountBits::kGenerationShift;
// A reset edge is a hard liveness boundary: no higher layer may retain
// the old (generation,node) address while Self-ID and ROM discovery are
// in flight. This matches the legacy IOFireWireFamily policy of
Expand Down
1 change: 0 additions & 1 deletion ASFWDriver/Hardware/RegisterMap.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ enum class Register32 : uint32_t {
kHCControl = 0x050, // Read view: both 0x050/0x054 return latched value
kSelfIDBuffer = 0x064,
kSelfIDCount = 0x068,
kSelfIDGeneration = 0x06C,
kIRMultiChanMaskHiSet = 0x070,
kIRMultiChanMaskHiClear = 0x074,
kIRMultiChanMaskLoSet = 0x078,
Expand Down