Changeset a35b458 in mainline for uspace/drv/bus/isa/isa.c
- Timestamp:
- 2018-03-02T20:10:49Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f1380b7
- Parents:
- 3061bc1
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:38:31)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:10:49)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/isa/isa.c
r3061bc1 ra35b458 402 402 size_t count = fun->hw_resources.count; 403 403 hw_resource_t *resources = fun->hw_resources.resources; 404 404 405 405 if (count < ISA_MAX_HW_RES) { 406 406 if ((dma > 0) && (dma < 4)) { 407 407 resources[count].type = DMA_CHANNEL_8; 408 408 resources[count].res.dma_channel.dma8 = dma; 409 409 410 410 fun->hw_resources.count++; 411 411 ddf_msg(LVL_NOTE, "Added dma 0x%x to function %s", dma, 412 412 ddf_fun_get_name(fun->fnode)); 413 413 414 414 return; 415 415 } … … 418 418 resources[count].type = DMA_CHANNEL_16; 419 419 resources[count].res.dma_channel.dma16 = dma; 420 420 421 421 fun->hw_resources.count++; 422 422 ddf_msg(LVL_NOTE, "Added dma 0x%x to function %s", dma, 423 423 ddf_fun_get_name(fun->fnode)); 424 424 425 425 return; 426 426 } 427 427 428 428 ddf_msg(LVL_WARN, "Skipped dma 0x%x for function %s", dma, 429 429 ddf_fun_get_name(fun->fnode)); … … 492 492 { 493 493 char *end = NULL; 494 494 495 495 val = skip_spaces(val); 496 496 const int dma = strtol(val, &end, 10); 497 497 498 498 if (val != end) 499 499 isa_fun_add_dma(fun, dma); … … 733 733 if (rc != EOK) 734 734 return rc; 735 735 736 736 rc = pio_window_get(sess, &isa->pio_win); 737 737 if (rc != EOK) {
Note:
See TracChangeset
for help on using the changeset viewer.