Ignore:
Timestamp:
2011-10-24T13:17:26Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b7f7183
Parents:
25f8e5d
Message:

sb16: Dump PNP registers on startup. Move well-known mixer addresses to one place.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/audio/sb16/dma_controller.c

    r25f8e5d rb130d0e  
    168168static dma_controller_t controller_8237 = {
    169169        .channels = {
    170             /* The first chip */
     170            /* The first chip 8-bit */
    171171            { (uint8_t*)0x00, (uint8_t*)0x01, (uint8_t*)0x87,
    172172              (uint8_t*)0x0a, (uint8_t*)0x0b, (uint8_t*)0x0c, },
     
    178178              (uint8_t*)0x0a, (uint8_t*)0x0b, (uint8_t*)0x0c, },
    179179
    180             /* The second chip */
     180            /* The second chip 16-bit */
    181181            { (uint8_t*)0xc0, (uint8_t*)0xc2, (uint8_t*)0x8f,
    182182              (uint8_t*)0xd4, (uint8_t*)0xd6, (uint8_t*)0xd8, },
     
    298298                return EIO;
    299299
    300         dma_channel_t dma_channel = controller_8237.channels[channel];
     300        const dma_channel_t dma_channel = controller_8237.channels[channel];
    301301
    302302        /* Mask DMA request */
     
    311311            | (auto_mode ? DMA_MODE_CHAN_AUTO_FLAG : 0)
    312312            | (mode << DMA_MODE_CHAN_MODE_SHIFT);
    313         ddf_log_verbose("Setting mode: %hhx.\n", value);
     313        ddf_log_verbose("Setting DMA mode: %hhx.\n", value);
    314314        pio_write_8(dma_channel.mode_address, value);
    315315
Note: See TracChangeset for help on using the changeset viewer.