Theory of Operation
R
SATA Programmer’s Reference Manual
49
//
// Since a device detect failed, we disable the port. This is not
// required, but is part of a good power conservation policy.
//
And( PCS, 0x02, PCS) // disable Port 0
}
}
// Check if we are enabling Port 1
If( LAnd( Arg0, 0x02) {
If( LAnd( Local2, 0x20)) {
Decrement( Local1) // Port 1 is enabled
}
Else {
And( PCS, 0x01, PCS) // disable Port 1
}
}
If( LEqual( Local1, Zero)) { // all ports enabled?
Store( Zero, Local0) // terminate loop
}
} // end while
}
//
// CTYP - This method determines the type of device being
// managed by the specified logical channel
//
// Entry:
// Arg0 ==> specifies which channel is to be checked (0 =
//
Primary, 1 = Secondary)
// Exit:
// Returns 0 if the channel is hosting P-ATA device(s)
// Returns 1 if the primary channel is hosting SATA device(s)
// (Combined mode)
// Returns 2 if the secondary channel is hosting SATA
// device(s) (Combined Mode)
// Returns 3 if port 0 is primary master SATA device (non-
// Combined mode)
// Returns 4 if port 1 is primary master SATA device (non-
// Combined)
// Returns 5 if port 0 is secondary master SATA device(s)
//(non-Combined Mode)
// Returns 6 if port 1 is secondary master SATA device(s)
//(non-Combined Mode)
//
Summary of Contents for 82801EB
Page 6: ...R 6 SATA Programmer s Reference Manual This page is intentionally left blank...
Page 8: ...Introduction R 8 SATA Programmer s Reference Manual This page is intentionally left blank...
Page 10: ...Conventions R 10 SATA Programmer s Reference Manual This page is intentionally left blank...
Page 59: ...Theory of Operation R SATA Programmer s Reference Manual 59...