Changeset ae318d3 in mainline for uspace/srv/kbd/arch/sparc64/src/sgcn.c
- Timestamp:
- 2009-02-16T18:50:48Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 06da55b
- Parents:
- 17f168e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/kbd/arch/sparc64/src/sgcn.c
r17f168e rae318d3 98 98 void sgcn_init(void) 99 99 { 100 sram_virt_addr = (uintptr_t) as_get_mappable_page( 101 sysinfo_value("sram.area.size")); 102 int result = physmem_map( 103 (void *) sysinfo_value("sram.address.physical"), 104 (void *) sram_virt_addr, 105 sysinfo_value("sram.area.size") / PAGE_SIZE, 106 AS_AREA_READ | AS_AREA_WRITE 107 ); 108 if (result != 0) { 100 sram_virt_addr = (uintptr_t) as_get_mappable_page(sysinfo_value("sram.area.size")); 101 if (physmem_map((void *) sysinfo_value("sram.address.physical"), 102 (void *) sram_virt_addr, sysinfo_value("sram.area.size") / PAGE_SIZE, 103 AS_AREA_READ | AS_AREA_WRITE) != 0) 109 104 printf("SGCN: uspace driver could not map physical memory."); 110 }111 105 112 106 sram_buffer_offset = sysinfo_value("sram.buffer.offset");
Note:
See TracChangeset
for help on using the changeset viewer.