Changeset bfa4ffa in mainline for uspace/srv/hw/irc/obio/obio.c
- Timestamp:
- 2016-12-27T13:34:08Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9185e42
- Parents:
- 0d9b4a8 (diff), 73d8600 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hw/irc/obio/obio.c
r0d9b4a8 rbfa4ffa 45 45 #include <ipc/irc.h> 46 46 #include <ns.h> 47 #include <sysinfo.h>48 47 #include <as.h> 49 48 #include <ddi.h> … … 94 93 switch (IPC_GET_IMETHOD(call)) { 95 94 case IRC_ENABLE_INTERRUPT: 96 /* Noop */ 95 inr = IPC_GET_ARG1(call); 96 base_virt[OBIO_IMR(inr & INO_MASK)] |= (1UL << 31); 97 97 async_answer_0(callid, EOK); 98 98 break; … … 111 111 /** Initialize the OBIO driver. 112 112 * 113 * So far, the driver heavily depends on information provided by the kernel via 114 * sysinfo. In the future, there should be a standalone OBIO driver. 113 * In the future, the OBIO driver should be integrated with the sun4u platform driver. 115 114 */ 116 115 static bool obio_init(void) 117 116 { 118 sysarg_t paddr; 119 120 if (sysinfo_get_value("obio.base.physical", &paddr) != EOK) { 121 printf("%s: No OBIO registers found\n", NAME); 122 return false; 123 } 124 125 base_phys = (uintptr_t) paddr; 117 base_phys = (uintptr_t) 0x1fe00000000ULL; 126 118 127 119 int flags = AS_AREA_READ | AS_AREA_WRITE; … … 135 127 } 136 128 137 printf("%s: OBIO registers with base at % zu\n", NAME, base_phys);129 printf("%s: OBIO registers with base at %lx\n", NAME, base_phys); 138 130 139 131 async_set_fallback_port_handler(obio_connection, NULL);
Note:
See TracChangeset
for help on using the changeset viewer.