Changes in uspace/drv/block/pci-ide/pci-ide.c [221daa5:07039850] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/block/pci-ide/pci-ide.c
r221daa5 r07039850 1 1 /* 2 * Copyright (c) 202 4Jiri Svoboda2 * Copyright (c) 2025 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 150 150 ctrl->bmregs_physical = res->bmregs; 151 151 152 ddf_msg(LVL_NOTE, "Bus master IDE regs I/O address: 0x% lx",152 ddf_msg(LVL_NOTE, "Bus master IDE regs I/O address: 0x%" PRIxPTR, 153 153 ctrl->bmregs_physical); 154 154 … … 186 186 bool irq_inited = false; 187 187 ata_params_t params; 188 void *buffer ;188 void *buffer = NULL; 189 189 190 190 ddf_msg(LVL_DEBUG, "pci_ide_channel_init()"); 191 192 memset(¶ms, 0, sizeof(params)); 191 193 192 194 chan->ctrl = ctrl; … … 294 296 return EOK; 295 297 error: 298 if (chan->channel != NULL) { 299 (void) ata_channel_destroy(chan->channel); 300 chan->channel = NULL; 301 } 302 if (buffer != NULL) 303 dmamem_unmap_anonymous(buffer); 296 304 if (irq_inited) 297 305 pci_ide_fini_irq(chan); … … 315 323 } 316 324 325 dmamem_unmap_anonymous(chan->dma_buf); 317 326 pci_ide_fini_irq(chan); 318 327 pci_ide_fini_io(chan); … … 320 329 321 330 return EOK; 331 } 332 333 /** Quiesce PCI IDE channel. */ 334 void pci_ide_channel_quiesce(pci_ide_channel_t *chan) 335 { 336 ddf_msg(LVL_DEBUG, ": pci_ide_channel_quiesce()"); 337 338 fibril_mutex_lock(&chan->lock); 339 ata_channel_quiesce(chan->channel); 340 fibril_mutex_unlock(&chan->lock); 322 341 } 323 342
Note:
See TracChangeset
for help on using the changeset viewer.