Changes in uspace/drv/block/ahci/ahci.c [7f620e8:bf9cb2f] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/block/ahci/ahci.c
r7f620e8 rbf9cb2f 234 234 235 235 uintptr_t phys; 236 void *ibuf ;236 void *ibuf = AS_AREA_ANY; 237 237 int rc = dmamem_map_anonymous(sata->block_size, DMAMEM_4GiB, 238 238 AS_AREA_READ | AS_AREA_WRITE, 0, &phys, &ibuf); … … 277 277 278 278 uintptr_t phys; 279 void *ibuf ;279 void *ibuf = AS_AREA_ANY; 280 280 int rc = dmamem_map_anonymous(sata->block_size, DMAMEM_4GiB, 281 281 AS_AREA_READ | AS_AREA_WRITE, 0, &phys, &ibuf); … … 436 436 437 437 uintptr_t phys; 438 sata_identify_data_t *idata ;438 sata_identify_data_t *idata = AS_AREA_ANY; 439 439 int rc = dmamem_map_anonymous(SATA_IDENTIFY_DEVICE_BUFFER_LENGTH, 440 440 DMAMEM_4GiB, AS_AREA_READ | AS_AREA_WRITE, 0, &phys, 441 (void * *) &idata);441 (void *) &idata); 442 442 if (rc != EOK) { 443 443 ddf_msg(LVL_ERROR, "Cannot allocate buffer to identify device."); … … 630 630 631 631 uintptr_t phys; 632 sata_identify_data_t *idata ;632 sata_identify_data_t *idata = AS_AREA_ANY; 633 633 int rc = dmamem_map_anonymous(SATA_SET_FEATURE_BUFFER_LENGTH, 634 634 DMAMEM_4GiB, AS_AREA_READ | AS_AREA_WRITE, 0, &phys, 635 (void * *) &idata);635 (void *) &idata); 636 636 if (rc != EOK) { 637 637 ddf_msg(LVL_ERROR, "Cannot allocate buffer for device set mode."); … … 938 938 size_t size = 4096; 939 939 uintptr_t phys = 0; 940 void *virt_fb = NULL;941 void *virt_cmd = NULL;942 void *virt_table = NULL;940 void *virt_fb = AS_AREA_ANY; 941 void *virt_cmd = AS_AREA_ANY; 942 void *virt_table = AS_AREA_ANY; 943 943 ddf_fun_t *fun; 944 944 … … 1155 1155 1156 1156 /* Map AHCI registers. */ 1157 ahci->memregs = NULL;1157 ahci->memregs = AS_AREA_ANY; 1158 1158 1159 1159 physmem_map(RNGABS(hw_res_parsed.mem_ranges.ranges[0]), 1160 1160 AHCI_MEMREGS_PAGES_COUNT, AS_AREA_READ | AS_AREA_WRITE, 1161 (void * *) &ahci->memregs);1161 (void *) &ahci->memregs); 1162 1162 if (ahci->memregs == NULL) 1163 1163 goto error_map_registers;
Note:
See TracChangeset
for help on using the changeset viewer.