clean up and standardize types across the codebase, unify atomic operations, improve UTF-8 handling throughout the system, remove obsolete input and named queue interfaces, redesign process preparation and creation, tighten IPC and service boundaries, improve error handling and reliability, minor documentation cleanup, fix doom surfaces, fix panic in ini parsing.
This commit is contained in:
1 parent
899225f551
commit
c0ad63c27f
226 files changed
+6562
-4147
No files matched your search
@@ -266,7 +266,7 @@ static void AhciIsr(void) {
|
||||
if (!pending)
|
||||
continue;
|
||||
|
||||
for (int i = 0; i < ctl->driveCount; i++) {
|
||||
for (uint32_t i = 0; i < ctl->driveCount; i++) {
|
||||
AHCI_DRIVE* drv = &ctl->drives[i];
|
||||
uint32_t portBit = (1u << drv->portNo);
|
||||
if (!(pending & portBit)) continue;
|
||||
@@ -676,7 +676,7 @@ static KSTATUS AhciDispatchControllerPnp(DEVICE_OBJECT* device, IRP* irp) {
|
||||
case IRP_MN_SURPRISE_REMOVAL:
|
||||
ctl->surpriseRemoved = true;
|
||||
device->PnpState = DevicePnpSurpriseRemoved;
|
||||
for (int i = 0; i < ctl->driveCount; i++) {
|
||||
for (uint32_t i = 0; i < ctl->driveCount; i++) {
|
||||
AHCI_DRIVE* drv = &ctl->drives[i];
|
||||
drv->surpriseRemoved = true;
|
||||
if (drv->deviceObject)
|
||||
@@ -689,7 +689,7 @@ static KSTATUS AhciDispatchControllerPnp(DEVICE_OBJECT* device, IRP* irp) {
|
||||
case IRP_MN_REMOVE_DEVICE:
|
||||
ctl->removed = true;
|
||||
device->PnpState = DevicePnpDeleted;
|
||||
for (int i = 0; i < ctl->driveCount; i++) {
|
||||
for (uint32_t i = 0; i < ctl->driveCount; i++) {
|
||||
AHCI_DRIVE* drv = &ctl->drives[i];
|
||||
if (drv->deviceObject) {
|
||||
(void)IoUnregisterDiskDevice(drv->deviceObject->u.Disk.DiskIndex);
|
||||
@@ -974,7 +974,7 @@ static KSTATUS AhciStartController(AHCI_CONTROLLER* ctl) {
|
||||
|
||||
DbgPrint("AHCI: port %u: link up, initializing...\n", portno);
|
||||
|
||||
int driveIdx = ctl->driveCount;
|
||||
uint32_t driveIdx = ctl->driveCount;
|
||||
AHCI_DRIVE* drv = &ctl->drives[driveIdx];
|
||||
memset(drv, 0, sizeof(*drv));
|
||||
drv->magic = AHCI_DRIVE_MAGIC;
|
||||
@@ -1119,11 +1119,11 @@ static KSTATUS AhciStartController(AHCI_CONTROLLER* ctl) {
|
||||
ctl->pciInfo.Address.Function);
|
||||
|
||||
if (!ctl->pollingMode) {
|
||||
DbgPrint("AHCI: ISR registered on IRQ %u (%s); controller drives=%d\n",
|
||||
(unsigned)ctl->irq, ctl->usingMsi ? "MSI" : "INTx", ctl->driveCount);
|
||||
DbgPrint("AHCI: ISR registered on IRQ %u (%s); controller drives=%u\n",
|
||||
(unsigned)ctl->irq, ctl->usingMsi ? "MSI" : "INTx", (unsigned)ctl->driveCount);
|
||||
} else {
|
||||
DbgPrint("AHCI: controller started in polling mode; controller drives=%d\n",
|
||||
ctl->driveCount);
|
||||
DbgPrint("AHCI: controller started in polling mode; controller drives=%u\n",
|
||||
(unsigned)ctl->driveCount);
|
||||
}
|
||||
ctl->started = true;
|
||||
ctl->fdo->PnpState = DevicePnpStarted;
|
||||
|
||||
@@ -378,7 +378,7 @@ struct AHCI_CONTROLLER {
|
||||
bool pollingMode;
|
||||
|
||||
AHCI_DRIVE drives[MAX_AHCI_DRIVES];
|
||||
int driveCount;
|
||||
uint32_t driveCount;
|
||||
|
||||
bool started;
|
||||
bool surpriseRemoved;
|
||||
|
||||
Reference in new issue
Block a user