Changeset 07039850 in mainline for uspace/lib/ata/src/ata.c
- Timestamp:
- 2025-03-05T21:41:03Z (16 hours ago)
- Branches:
- master
- Parents:
- a64970e1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ata/src/ata.c
ra64970e1 r07039850 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); 86 87 87 88 static errno_t ata_bd_init_irq(ata_channel_t *); … … 279 280 } 280 281 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 281 292 /** Add ATA device. 282 293 * … … 348 359 { 349 360 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 channel 366 * @param port Port number 367 * @param value Register value 368 */ 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); 350 372 } 351 373
Note:
See TracChangeset
for help on using the changeset viewer.