Home
last modified time | relevance | path

Searched refs:hwcfg (Results 1 – 5 of 5) sorted by relevance

/freebsd/sys/dev/bhnd/bhndb/
H A Dbhndb_subr.c649 device_t dev, device_t parent_dev, const struct bhndb_hwcfg *hwcfg) in bhndb_alloc_host_resources() argument
661 hr->cfg = hwcfg; in bhndb_alloc_host_resources()
669 for (size_t i = 0; hwcfg->resource_specs[i].type != -1; i++) in bhndb_alloc_host_resources()
674 for (dt = hwcfg->dma_translations; dt != NULL && in bhndb_alloc_host_resources()
706 &hwcfg->dma_translations[i], &hr->dma_tags[i]); in bhndb_alloc_host_resources()
721 hr->resource_specs[i] = hwcfg->resource_specs[i]; in bhndb_alloc_host_resources()
H A Dbhndb.c516 const struct bhndb_hwcfg *hwcfg; in bhndb_attach() local
540 hwcfg = BHNDB_BUS_GET_GENERIC_HWCFG(sc->parent_dev, dev); in bhndb_attach()
543 hwcfg = hw->cfg; in bhndb_attach()
552 sc->bus_res = bhndb_alloc_resources(sc->dev, sc->parent_dev, hwcfg); in bhndb_attach()
2092 const struct bhndb_hwcfg *hwcfg; in bhndb_get_dma_translation() local
2098 hwcfg = sc->bus_res->cfg; in bhndb_get_dma_translation()
2122 dwin = &hwcfg->dma_translations[i]; in bhndb_get_dma_translation()
H A Dbhndbvar.h95 const struct bhndb_hwcfg *hwcfg);
H A Dbhndb_pci.c1289 const struct bhndb_hwcfg *hwcfg; in bhndb_pci_probe_alloc() local
1312 hwcfg = BHNDB_BUS_GET_GENERIC_HWCFG(parent_dev, dev); in bhndb_pci_probe_alloc()
1316 error = bhndb_alloc_host_resources(&p->hr, dev, parent_dev, hwcfg); in bhndb_pci_probe_alloc()
/freebsd/sys/dev/bge/
H A Dif_bge.c3293 uint32_t hwcfg = 0, misccfg, pcistate; in bge_attach() local
3759 hwcfg = bge_readmem_ind(sc, BGE_SRAM_DATA_CFG); in bge_attach()
3762 if (bge_read_eeprom(sc, (caddr_t)&hwcfg, BGE_EE_HWCFG_OFFSET, in bge_attach()
3763 sizeof(hwcfg))) { in bge_attach()
3768 hwcfg = ntohl(hwcfg); in bge_attach()
3773 SK_SUBSYSID_9D41 || (hwcfg & BGE_HWCFG_MEDIA) == BGE_MEDIA_FIBER) { in bge_attach()