git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
feat: lru eviction policy on page caches
[lunaix-os.git]
/
lunaix-os
/
hal
/
ahci
/
ahci.c
diff --git
a/lunaix-os/hal/ahci/ahci.c
b/lunaix-os/hal/ahci/ahci.c
index 0551ee547fe9283bf4c063895bc61db89806d4fd..a04bca7e2551661566e04bc3ca188e73f1dbee33 100644
(file)
--- a/
lunaix-os/hal/ahci/ahci.c
+++ b/
lunaix-os/hal/ahci/ahci.c
@@
-34,7
+34,7
@@
LOG_MODULE("AHCI")
static struct ahci_hba hba;
void
static struct ahci_hba hba;
void
-__ahci_hba_isr(
isr_param
param);
+__ahci_hba_isr(
const isr_param*
param);
int
ahci_init_device(struct hba_port* port);
int
ahci_init_device(struct hba_port* port);
@@
-185,7
+185,7
@@
char sata_ifs[][20] = { "Not detected",
"SATA III (6.0Gbps)" };
void
"SATA III (6.0Gbps)" };
void
-__ahci_hba_isr(
isr_param
param)
+__ahci_hba_isr(
const isr_param*
param)
{
// TODO: clear the interrupt status
// TODO: I/O-operation scheduler should be here
{
// TODO: clear the interrupt status
// TODO: I/O-operation scheduler should be here
@@
-424,11
+424,11
@@
fail:
}
int
}
int
-ahci_identify_device(struct hba_
port* port
)
+ahci_identify_device(struct hba_
device* device
)
{
// 用于重新识别设备(比如在热插拔的情况下)
{
// 用于重新识别设备(比如在热插拔的情况下)
- vfree(
port->
device);
- return ahci_init_device(port);
+ vfree(device);
+ return ahci_init_device(
device->
port);
}
void
}
void