Changes in uspace/lib/ata/src/ata.c [07039850:4285f384] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ata/src/ata.c
r07039850 r4285f384 84 84 static uint8_t ata_read_cmd_8(ata_channel_t *, uint16_t); 85 85 static void ata_write_cmd_8(ata_channel_t *, uint16_t, uint8_t); 86 static void ata_write_ctl_8(ata_channel_t *, uint16_t, uint8_t);87 86 88 87 static errno_t ata_bd_init_irq(ata_channel_t *); … … 280 279 } 281 280 282 /** Quiesce ATA channel. */283 void ata_channel_quiesce(ata_channel_t *chan)284 {285 ata_msg_debug(chan, ": ata_channel_quiesce()");286 287 fibril_mutex_lock(&chan->lock);288 ata_write_ctl_8(chan, REG_DEVCTL, DCR_SRST | DCR_nIEN);289 fibril_mutex_unlock(&chan->lock);290 }291 292 281 /** Add ATA device. 293 282 * … … 359 348 { 360 349 return chan->params.write_cmd_8(chan->params.arg, port, value); 361 }362 363 /** Write 8 bits to 8-bit control port.364 *365 * @param chan ATA channel366 * @param port Port number367 * @param value Register value368 */369 static void ata_write_ctl_8(ata_channel_t *chan, uint16_t port, uint8_t value)370 {371 return chan->params.write_ctl_8(chan->params.arg, port, value);372 350 } 373 351
Note:
See TracChangeset
for help on using the changeset viewer.