Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/smartpqi/smartpqi_mem.c
Show All 34 Lines | |||||
*/ | */ | ||||
static void | static void | ||||
os_dma_map(void *arg, bus_dma_segment_t *segs, int nseg, int error) | os_dma_map(void *arg, bus_dma_segment_t *segs, int nseg, int error) | ||||
{ | { | ||||
bus_addr_t *paddr = (bus_addr_t *)arg; | bus_addr_t *paddr = (bus_addr_t *)arg; | ||||
*paddr = segs[0].ds_addr; | *paddr = segs[0].ds_addr; | ||||
} | } | ||||
int os_dma_setup(pqisrc_softstate_t *softs) | |||||
{ | |||||
DBG_FUNC("IN\n"); | |||||
DBG_FUNC("OUT\n"); | |||||
return PQI_STATUS_SUCCESS; | |||||
} | |||||
int os_dma_destroy(pqisrc_softstate_t *softs) | |||||
{ | |||||
DBG_FUNC("IN\n"); | |||||
DBG_FUNC("OUT\n"); | |||||
return PQI_STATUS_SUCCESS; | |||||
} | |||||
/* | /* | ||||
* DMA mem resource allocation wrapper function | * DMA mem resource allocation wrapper function | ||||
*/ | */ | ||||
int os_dma_mem_alloc(pqisrc_softstate_t *softs, struct dma_mem *dma_mem) | int os_dma_mem_alloc(pqisrc_softstate_t *softs, struct dma_mem *dma_mem) | ||||
{ | { | ||||
int ret = 0; | int ret = 0; | ||||
/* DBG_FUNC("IN\n"); */ | /* DBG_FUNC("IN\n"); */ | ||||
▲ Show 20 Lines • Show All 120 Lines • Show Last 20 Lines |