Skip to content
This repository has been archived by the owner on Dec 17, 2017. It is now read-only.

Storahci Initial changeset #13

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open

Storahci Initial changeset #13

wants to merge 16 commits into from

Conversation

amaneureka
Copy link

No description provided.

* @return
* Return true if intialization was successful
*/
BOOLEAN AhciPortInitialize(
Copy link

@ionescu007 ionescu007 Jun 9, 2016

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!

@amaneureka
Copy link
Author

@ionescu007 I made all those changes, please review latest commit.

)
BOOLEAN
AhciPortInitialize (
__in PAHCI_PORT_EXTENSION portExtension

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.

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,

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.

@amaneureka
Copy link
Author

^^ 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);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing 'l'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants