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:
subhobhai943 committed 2026-08-17 14:45:28 +05:30
1 parent 65c916d6ac
commit cfc122dda6
12 files changed
+775 -6

No files matched your search

+25
View File
@@ -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