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: support ioctl() syscall for direct control to devices
[lunaix-os.git]
/
lunaix-os
/
includes
/
hal
/
ahci
/
ahci.h
diff --git
a/lunaix-os/includes/hal/ahci/ahci.h
b/lunaix-os/includes/hal/ahci/ahci.h
index acd779b7152646c3aa09d815e58e6ebd13bffce0..c7685104eebd8c1dd88d72a36926477022178318 100644
(file)
--- a/
lunaix-os/includes/hal/ahci/ahci.h
+++ b/
lunaix-os/includes/hal/ahci/ahci.h
@@
-1,6
+1,8
@@
#ifndef __LUNAIX_AHCI_H
#define __LUNAIX_AHCI_H
#ifndef __LUNAIX_AHCI_H
#define __LUNAIX_AHCI_H
+#include "hba.h"
+
/*
* Macro naming rule:
* HBA_R[xxx]
/*
* Macro naming rule:
* HBA_R[xxx]
@@
-28,4
+30,13
@@
ahci_get_port_usage();
struct hba_port*
ahci_get_port(unsigned int index);
struct hba_port*
ahci_get_port(unsigned int index);
+void
+ahci_parse_dev_info(struct hba_device* dev_info, uint16_t* data);
+
+void
+ahci_parsestr(char* str, uint16_t* reg_start, int size_word);
+
+int
+ahci_try_send(struct hba_port* port, int slot);
+
#endif /* __LUNAIX_AHCI_H */
#endif /* __LUNAIX_AHCI_H */