Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ata/src/ata.c

    r07039850 r4285f384  
    8484static uint8_t ata_read_cmd_8(ata_channel_t *, uint16_t);
    8585static 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);
    8786
    8887static errno_t ata_bd_init_irq(ata_channel_t *);
     
    280279}
    281280
    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 
    292281/** Add ATA device.
    293282 *
     
    359348{
    360349        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);
    372350}
    373351
Note: See TracChangeset for help on using the changeset viewer.