Changeset a066c1b9 in mainline
- Timestamp:
- 2011-11-14T10:14:50Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 85c4cc45
- Parents:
- a0d1d9d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/isa/dma_controller.c
ra0d1d9d ra066c1b9 272 272 273 273 /* 16 bit transfers are a bit special */ 274 ddf_msg(LVL_DEBUG, "Unspoiled address: %p and size: %zu. \n", pa, size);274 ddf_msg(LVL_DEBUG, "Unspoiled address: %p and size: %zu.", pa, size); 275 275 if (channel > 4) { 276 276 /* Size must be aligned to 16 bits */ … … 285 285 286 286 ddf_msg(LVL_DEBUG, 287 "Setting channel %u, to address %p(%zu), mode %hhx. \n",287 "Setting channel %u, to address %p(%zu), mode %hhx.", 288 288 channel, pa, size, mode); 289 289 … … 295 295 /* Set mode */ 296 296 value = DMA_MODE_CHAN_TO_REG(channel) | mode; 297 ddf_msg(LVL_DEBUG2, "Writing mode byte: %p:%hhx. \n",297 ddf_msg(LVL_DEBUG2, "Writing mode byte: %p:%hhx.", 298 298 dma_channel.mode_address, value); 299 299 pio_write_8(dma_channel.mode_address, value); … … 304 304 /* Low byte */ 305 305 value = pa & 0xff; 306 ddf_msg(LVL_DEBUG2, "Writing address low byte: %p:%hhx. \n",306 ddf_msg(LVL_DEBUG2, "Writing address low byte: %p:%hhx.", 307 307 dma_channel.offset_reg_address, value); 308 308 pio_write_8(dma_channel.offset_reg_address, value); … … 310 310 /* High byte */ 311 311 value = (pa >> 8) & 0xff; 312 ddf_msg(LVL_DEBUG2, "Writing address high byte: %p:%hhx. \n",312 ddf_msg(LVL_DEBUG2, "Writing address high byte: %p:%hhx.", 313 313 dma_channel.offset_reg_address, value); 314 314 pio_write_8(dma_channel.offset_reg_address, value); … … 316 316 /* Page address - third byte */ 317 317 value = (pa >> 16) & 0xff; 318 ddf_msg(LVL_DEBUG2, "Writing address page byte: %p:%hhx. \n",318 ddf_msg(LVL_DEBUG2, "Writing address page byte: %p:%hhx.", 319 319 dma_channel.page_reg_address, value); 320 320 pio_write_8(dma_channel.page_reg_address, value); … … 325 325 /* Low byte */ 326 326 value = (size - 1) & 0xff; 327 ddf_msg(LVL_DEBUG2, "Writing size low byte: %p:%hhx. \n",327 ddf_msg(LVL_DEBUG2, "Writing size low byte: %p:%hhx.", 328 328 dma_channel.size_reg_address, value); 329 329 pio_write_8(dma_channel.size_reg_address, value); … … 331 331 /* High byte */ 332 332 value = ((size - 1) >> 8) & 0xff; 333 ddf_msg(LVL_DEBUG2, "Writing size high byte: %p:%hhx. \n",333 ddf_msg(LVL_DEBUG2, "Writing size high byte: %p:%hhx.", 334 334 dma_channel.size_reg_address, value); 335 335 pio_write_8(dma_channel.size_reg_address, value);
Note:
See TracChangeset
for help on using the changeset viewer.