git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Modules/AHCI - Reading the boot sector works
[tpg/acess2.git]
/
KernelLand
/
Modules
/
Storage
/
AHCI
/
ahci.h
diff --git
a/KernelLand/Modules/Storage/AHCI/ahci.h
b/KernelLand/Modules/Storage/AHCI/ahci.h
index
bc822d5
..
7052b3d
100644
(file)
--- a/
KernelLand/Modules/Storage/AHCI/ahci.h
+++ b/
KernelLand/Modules/Storage/AHCI/ahci.h
@@
-11,7
+11,9
@@
#include "ahci_hw.h"
#include <Storage/LVM/include/lvm.h>
#include <stdbool.h>
#include "ahci_hw.h"
#include <Storage/LVM/include/lvm.h>
#include <stdbool.h>
+#include <mutex.h>
#include <semaphore.h>
#include <semaphore.h>
+#include <events.h>
typedef struct sAHCI_Ctrlr tAHCI_Ctrlr;
typedef struct sAHCI_Port tAHCI_Port;
typedef struct sAHCI_Ctrlr tAHCI_Ctrlr;
typedef struct sAHCI_Port tAHCI_Port;
@@
-21,6
+23,8
@@
struct sAHCI_Ctrlr
int IRQ;
tPAddr PMemBase;
tAHCI_MemSpace *MMIO;
int IRQ;
tPAddr PMemBase;
tAHCI_MemSpace *MMIO;
+
+ bool Supports64Bit;
int NCS;
int NCS;
@@
-31,14
+35,22
@@
struct sAHCI_Ctrlr
struct sAHCI_Port
{
int Idx; // Hardware index
struct sAHCI_Port
{
int Idx; // Hardware index
+ tAHCI_Ctrlr *Ctrlr;
volatile struct s_port *MMIO;
volatile struct s_port *MMIO;
- bool bHotplug;
- bool bPresent;
- tSemaphore CommandListSem;
- volatile struct sAHCI_CmdHdr *CmdList;
+ tMutex lCommandSlots;
+ Uint32 IssuedCommands;
+ volatile struct sAHCI_CmdHdr *CmdList;
+ struct sAHCI_CmdTable *CommandTables[32];
+ tThread *CommandThreads[32];
+ volatile struct sAHCI_RcvdFIS *RcvdFIS;
- volatile struct sAHCI_RcvdFIS *RcvdFIS;
+ tSemaphore InterruptSem;
+ Uint32 LastIS;
+
+ bool bHotplug;
+ bool bPresent;
+ bool bATAPI;
void *LVMHandle;
};
void *LVMHandle;
};
UCC
git Repository :: git.ucc.asn.au