Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/pms/freebsd/driver/ini/src/agtiapi.c
Show First 20 Lines • Show All 1,617 Lines • ▼ Show 20 Lines | |||||
int agtiapi_alloc_requests( struct agtiapi_softc *pmcsc ) | int agtiapi_alloc_requests( struct agtiapi_softc *pmcsc ) | ||||
{ | { | ||||
int rsize, nsegs; | int rsize, nsegs; | ||||
U32 next_tick; | U32 next_tick; | ||||
nsegs = AGTIAPI_NSEGS; | nsegs = AGTIAPI_NSEGS; | ||||
rsize = AGTIAPI_MAX_DMA_SEGS; // 128 | rsize = AGTIAPI_MAX_DMA_SEGS; // 128 | ||||
AGTIAPI_PRINTK( "agtiapi_alloc_requests: MAXPHYS 0x%x PAGE_SIZE 0x%x \n", | AGTIAPI_PRINTK( "agtiapi_alloc_requests: maxphys 0x%lx PAGE_SIZE 0x%x \n", | ||||
MAXPHYS, PAGE_SIZE ); | maxphys, PAGE_SIZE ); | ||||
AGTIAPI_PRINTK( "agtiapi_alloc_requests: nsegs %d rsize %d \n", | AGTIAPI_PRINTK( "agtiapi_alloc_requests: nsegs %d rsize %d \n", | ||||
nsegs, rsize ); // 32, 128 | nsegs, rsize ); // 32, 128 | ||||
// This is for csio->data_ptr | // This is for csio->data_ptr | ||||
if( bus_dma_tag_create( agNULL, // parent | if( bus_dma_tag_create( agNULL, // parent | ||||
1, // alignment | 1, // alignment | ||||
0, // boundary | 0, // boundary | ||||
BUS_SPACE_MAXADDR, // lowaddr | BUS_SPACE_MAXADDR, // lowaddr | ||||
BUS_SPACE_MAXADDR, // highaddr | BUS_SPACE_MAXADDR, // highaddr | ||||
▲ Show 20 Lines • Show All 5,000 Lines • Show Last 20 Lines |