Searched refs:hwcfg (Results 1 – 5 of 5) sorted by relevance
/freebsd/sys/dev/bhnd/bhndb/ |
H A D | bhndb_subr.c | 649 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 D | bhndb.c | 516 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 D | bhndbvar.h | 95 const struct bhndb_hwcfg *hwcfg);
|
H A D | bhndb_pci.c | 1289 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 D | if_bge.c | 3293 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()
|