-
Notifications
You must be signed in to change notification settings - Fork 72
Storahci Initial changeset #13
base: master
Are you sure you want to change the base?
Conversation
* @return | ||
* Return true if intialization was successful | ||
*/ | ||
BOOLEAN AhciPortInitialize( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general, our coding style for function is:
RETURNTYPE
FunctionName (
_In_Sal2_Annotations PTYPE Var,
_In_Sal2_Annotations PTYPE Var
)
{
...
}
OR:
RETURNTYPE
FunctionName (_In_Sal2_Annotations PTYPE Var,
_In_Sal2_Annotations PTYPE Var)
{
...
}
Can you pick one and be consistent? Thanks!
@ionescu007 I made all those changes, please review latest commit. |
I am pro at making silly mistakes :/
) | ||
BOOLEAN | ||
AhciPortInitialize ( | ||
__in PAHCI_PORT_EXTENSION portExtension |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use SAL 2 and just one space in all your functions, please.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All input arguments should be CamelCase
receivedFISPhysical = StorPortGetPhysicalAddress(adapterExtension, NULL, portExtension->ReceivedFIS, &mappedLength); | ||
if (mappedLength == 0 || (receivedFISPhysical.LowPart % 256) != 0){ | ||
StorPortDebugPrint(0, "\treceivedFISPhysical mappedLength:%d\n", mappedLength); | ||
receivedFISPhysical = StorPortGetPhysicalAddress( adapterExtension, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need for four spaces here.
^^ sorry for that #2 :/ |
// software should perform the appropriate error recovery actions based on whether | ||
// non-queued commands were being issued or native command queuing commands were being issued. | ||
|
||
DebugPrint("\tFata Error: %x\n", PxIS.Status); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing 'l'
… detection is still not working :/
No description provided.