mirror of
https://github.com/subhobhai943/SUB-OS.git
synced 2026-10-25 16:52:29 +00:00
feat(drivers): Implement NVMe PCIe SSD, AHCI SATA, Realtek RTL8139, Intel HD Audio (HDA), and USB 3.0 xHCI drivers + lsdev/lsblk tools
This commit is contained in:
1 parent
65c916d6ac
commit
cfc122dda6
12 files changed
+775
-6
No files matched your search
@@ -0,0 +1,25 @@
|
||||
#ifndef _DRIVERS_XHCI_H
|
||||
#define _DRIVERS_XHCI_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#define XHCI_PCI_CLASS 0x0C
|
||||
#define XHCI_PCI_SUBCLASS 0x03
|
||||
#define XHCI_PCI_PROGIF 0x30
|
||||
|
||||
typedef struct {
|
||||
uint8_t cap_length;
|
||||
uint16_t hci_version;
|
||||
uint32_t max_slots;
|
||||
uint32_t max_ports;
|
||||
uint32_t max_interrupters;
|
||||
bool initialized;
|
||||
} xhci_controller_info_t;
|
||||
|
||||
bool xhci_init(void);
|
||||
bool xhci_is_detected(void);
|
||||
const xhci_controller_info_t* xhci_get_info(void);
|
||||
|
||||
#endif // _DRIVERS_XHCI_H
|
||||
Reference in new issue
Block a user