Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/bhnd/bhndb/bhndbvar.h
Show First 20 Lines • Show All 84 Lines • ▼ Show 20 Lines | int bhndb_find_hostb_core( | ||||
struct bhnd_core_info *core); | struct bhnd_core_info *core); | ||||
struct bhndb_intr_isrc *bhndb_alloc_intr_isrc(device_t owner, int rid, | struct bhndb_intr_isrc *bhndb_alloc_intr_isrc(device_t owner, int rid, | ||||
rman_res_t start, rman_res_t end, | rman_res_t start, rman_res_t end, | ||||
rman_res_t count, u_int flags); | rman_res_t count, u_int flags); | ||||
void bhndb_free_intr_isrc( | void bhndb_free_intr_isrc( | ||||
struct bhndb_intr_isrc *isrc); | struct bhndb_intr_isrc *isrc); | ||||
int bhndb_alloc_host_resources(device_t dev, | int bhndb_alloc_host_resources( | ||||
const struct bhndb_hwcfg *hwcfg, | struct bhndb_host_resources **resources, | ||||
struct bhndb_host_resources **resources); | device_t dev, device_t parent_dev, | ||||
const struct bhndb_hwcfg *hwcfg); | |||||
void bhndb_release_host_resources( | void bhndb_release_host_resources( | ||||
struct bhndb_host_resources *resources); | struct bhndb_host_resources *resources); | ||||
struct resource *bhndb_host_resource_for_range( | struct resource *bhndb_host_resource_for_range( | ||||
struct bhndb_host_resources *resources, | struct bhndb_host_resources *resources, | ||||
int type, rman_res_t start, | int type, rman_res_t start, | ||||
rman_res_t count); | rman_res_t count); | ||||
struct resource *bhndb_host_resource_for_regwin( | struct resource *bhndb_host_resource_for_regwin( | ||||
struct bhndb_host_resources *resources, | struct bhndb_host_resources *resources, | ||||
▲ Show 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | |||||
/** | /** | ||||
* Host resources allocated for a bridge hardware configuration. | * Host resources allocated for a bridge hardware configuration. | ||||
*/ | */ | ||||
struct bhndb_host_resources { | struct bhndb_host_resources { | ||||
device_t owner; /**< device owning the allocated resources */ | device_t owner; /**< device owning the allocated resources */ | ||||
const struct bhndb_hwcfg *cfg; /**< bridge hardware configuration */ | const struct bhndb_hwcfg *cfg; /**< bridge hardware configuration */ | ||||
struct resource_spec *resource_specs; /**< resource specification table */ | struct resource_spec *resource_specs; /**< resource specification table */ | ||||
struct resource **resources; /**< allocated resource table */ | struct resource **resources; /**< allocated resource table */ | ||||
bus_dma_tag_t *dma_tags; /**< DMA tags for all hwcfg DMA translations, or NULL | |||||
if DMA is not supported */ | |||||
size_t num_dma_tags; /**< DMA tag count */ | |||||
}; | }; | ||||
/** | /** | ||||
* bhndb driver instance state. Must be first member of all subclass | * bhndb driver instance state. Must be first member of all subclass | ||||
* softc structures. | * softc structures. | ||||
*/ | */ | ||||
struct bhndb_softc { | struct bhndb_softc { | ||||
device_t dev; /**< bridge device */ | device_t dev; /**< bridge device */ | ||||
Show All 14 Lines |