Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/smartpqi/smartpqi_main.c
| Show First 20 Lines • Show All 623 Lines • ▼ Show 20 Lines | smartpqi_attach(device_t dev) | ||||
| callout_init(&softs->os_specific.wellness_periodic, 1); | callout_init(&softs->os_specific.wellness_periodic, 1); | ||||
| callout_init(&softs->os_specific.heartbeat_timeout_id, 1); | callout_init(&softs->os_specific.heartbeat_timeout_id, 1); | ||||
| /* | /* | ||||
| * Create DMA tag for mapping buffers into controller-addressable space. | * Create DMA tag for mapping buffers into controller-addressable space. | ||||
| */ | */ | ||||
| if (bus_dma_tag_create(softs->os_specific.pqi_parent_dmat,/* parent */ | if (bus_dma_tag_create(softs->os_specific.pqi_parent_dmat,/* parent */ | ||||
| PAGE_SIZE, 0, /* algnmnt, boundary */ | 1, 0, /* algnmnt, boundary */ | ||||
| BUS_SPACE_MAXADDR,/* lowaddr */ | BUS_SPACE_MAXADDR, /* lowaddr */ | ||||
| BUS_SPACE_MAXADDR, /* highaddr */ | BUS_SPACE_MAXADDR, /* highaddr */ | ||||
| NULL, NULL, /* filter, filterarg */ | NULL, NULL, /* filter, filterarg */ | ||||
| (bus_size_t)softs->pqi_cap.max_sg_elem*PAGE_SIZE,/* maxsize */ | (bus_size_t)softs->pqi_cap.max_sg_elem*PAGE_SIZE,/* maxsize */ | ||||
| softs->pqi_cap.max_sg_elem, /* nsegments */ | softs->pqi_cap.max_sg_elem, /* nsegments */ | ||||
| BUS_SPACE_MAXSIZE, /* maxsegsize */ | BUS_SPACE_MAXSIZE, /* maxsegsize */ | ||||
| BUS_DMA_ALLOCNOW, /* flags */ | BUS_DMA_ALLOCNOW, /* flags */ | ||||
| busdma_lock_mutex, /* lockfunc */ | busdma_lock_mutex, /* lockfunc */ | ||||
| &softs->os_specific.map_lock, /* lockfuncarg*/ | &softs->os_specific.map_lock, /* lockfuncarg*/ | ||||
| ▲ Show 20 Lines • Show All 192 Lines • Show Last 20 Lines | |||||