Changeset d9fae235 in mainline for uspace/srv/hw/bus/cuda_adb/cuda_adb.c
- Timestamp:
- 2010-04-17T01:28:38Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9d6bfa5
- Parents:
- 9256ad29
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hw/bus/cuda_adb/cuda_adb.c
r9256ad29 rd9fae235 254 254 static int cuda_init(void) 255 255 { 256 if (sysinfo_get_value("cuda.address.physical", &(instance->cuda_physical)) != EOK) 257 return -1; 258 259 if (sysinfo_get_value("cuda.address.kernel", &(instance->cuda_kernel)) != EOK) 260 return -1; 261 256 262 void *vaddr; 257 258 instance->cuda_physical = sysinfo_value("cuda.address.physical");259 instance->cuda_kernel = sysinfo_value("cuda.address.kernel");260 261 263 if (pio_enable((void *) instance->cuda_physical, sizeof(cuda_t), &vaddr) != 0) 262 264 return -1; 265 263 266 dev = vaddr; 264 267
Note:
See TracChangeset
for help on using the changeset viewer.