Changeset b130d0e in mainline for uspace/drv/audio/sb16/dma_controller.c
- Timestamp:
- 2011-10-24T13:17:26Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b7f7183
- Parents:
- 25f8e5d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/audio/sb16/dma_controller.c
r25f8e5d rb130d0e 168 168 static dma_controller_t controller_8237 = { 169 169 .channels = { 170 /* The first chip */170 /* The first chip 8-bit */ 171 171 { (uint8_t*)0x00, (uint8_t*)0x01, (uint8_t*)0x87, 172 172 (uint8_t*)0x0a, (uint8_t*)0x0b, (uint8_t*)0x0c, }, … … 178 178 (uint8_t*)0x0a, (uint8_t*)0x0b, (uint8_t*)0x0c, }, 179 179 180 /* The second chip */180 /* The second chip 16-bit */ 181 181 { (uint8_t*)0xc0, (uint8_t*)0xc2, (uint8_t*)0x8f, 182 182 (uint8_t*)0xd4, (uint8_t*)0xd6, (uint8_t*)0xd8, }, … … 298 298 return EIO; 299 299 300 dma_channel_t dma_channel = controller_8237.channels[channel];300 const dma_channel_t dma_channel = controller_8237.channels[channel]; 301 301 302 302 /* Mask DMA request */ … … 311 311 | (auto_mode ? DMA_MODE_CHAN_AUTO_FLAG : 0) 312 312 | (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); 314 314 pio_write_8(dma_channel.mode_address, value); 315 315
Note:
See TracChangeset
for help on using the changeset viewer.