| 150 | } |
| 151 | |
| 152 | void * |
| 153 | busdma_bufalloc_alloc_uncacheable(uma_zone_t zone, vm_size_t size, int domain, |
| 154 | uint8_t *pflag, int wait) |
| 155 | { |
| 156 | |
| 157 | #ifdef VM_MEMATTR_UNCACHEABLE |
| 158 | /* Inform UMA that this allocator uses kernel_arena/object. */ |
| 159 | *pflag = UMA_SLAB_KERNEL; |
| 160 | |
| 161 | return ((void *)kmem_alloc_attr_domainset(DOMAINSET_FIXED(domain), size, |
| 162 | wait, 0, BUS_SPACE_MAXADDR, VM_MEMATTR_UNCACHEABLE)); |
| 163 | #else |
| 164 | panic("VM_MEMATTR_UNCACHEABLE unavailable"); |
| 165 | #endif /* VM_MEMATTR_UNCACHEABLE */ |
| 166 | } |
| 167 | |
| 168 | void |
| 169 | busdma_bufalloc_free_uncacheable(void *item, vm_size_t size, uint8_t pflag) |
nothing calls this directly
no test coverage detected