Intel 82801EB Programmer's Reference Manual page 49

Serial ata controller
Table of Contents

Advertisement

R
} // 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 =
//
// 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)
//
SATA Programmer's Reference Manual
//
// 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)
}
}
// Check if we are enabling Port 1
If( LAnd( Arg0, 0x02) {
If( LAnd( Local2, 0x20)) {
Decrement( Local1)
}
Else {
And( PCS, 0x01, PCS)
}
}
If( LEqual( Local1, Zero)) { // all ports enabled?
Store( Zero, Local0)
}
Primary, 1 = Secondary)
// disable Port 0
// Port 1 is enabled
// disable Port 1
// terminate loop
Theory of Operation
49

Advertisement

Table of Contents
loading

This manual is also suitable for:

82801erIch5Ich5r

Table of Contents