Changeset d0cbfd3 in mainline
- Timestamp:
- 2017-11-01T20:34:04Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- aad43a8
- Parents:
- aa537a5a
- Location:
- uspace/drv/intctl/obio
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/intctl/obio/obio.c
raa537a5a rd0cbfd3 94 94 case IRC_ENABLE_INTERRUPT: 95 95 inr = IPC_GET_ARG1(call); 96 ((volatile uint64_t *)(obio->regs))[OBIO_IMR(inr & INO_MASK)] |= (1UL << 31); 96 pio_set_64(&obio->regs[OBIO_IMR(inr & INO_MASK)], 97 1UL << 31, 0); 97 98 async_answer_0(callid, EOK); 98 99 break; … … 103 104 case IRC_CLEAR_INTERRUPT: 104 105 inr = IPC_GET_ARG1(call); 105 ((volatile uint64_t *)(obio->regs))[OBIO_CIR(inr & INO_MASK)] = 0;106 pio_write_64(&obio->regs[OBIO_CIR(inr & INO_MASK)], 0); 106 107 async_answer_0(callid, EOK); 107 108 break; … … 122 123 123 124 flags = AS_AREA_READ | AS_AREA_WRITE; 124 obio->regs = ( volatile uint64_t *)AS_AREA_ANY;125 obio->regs = (ioport64_t *)AS_AREA_ANY; 125 126 retval = physmem_map(res->base, 126 127 ALIGN_UP(OBIO_SIZE, PAGE_SIZE) >> PAGE_WIDTH, flags, -
uspace/drv/intctl/obio/obio.h
raa537a5a rd0cbfd3 47 47 /** OBIO */ 48 48 typedef struct { 49 volatile uint64_t *regs;49 ioport64_t *regs; 50 50 uintptr_t phys_base; 51 51 ddf_dev_t *dev;
Note:
See TracChangeset
for help on using the changeset viewer.