Home
last modified time | relevance | path

Searched refs:erom (Results 1 – 9 of 9) sorted by relevance

/freebsd/sys/dev/bhnd/bcma/
H A Dbcma_erom.c66 static int bcma_erom_read32(struct bcma_erom *erom,
68 static int bcma_erom_skip32(struct bcma_erom *erom);
70 static int bcma_erom_skip_core(struct bcma_erom *erom);
71 static int bcma_erom_skip_mport(struct bcma_erom *erom);
72 static int bcma_erom_skip_sport_region(struct bcma_erom *erom);
74 static int bcma_erom_seek_next(struct bcma_erom *erom,
76 static int bcma_erom_region_to_port_type(struct bcma_erom *erom,
79 static int bcma_erom_peek32(struct bcma_erom *erom,
82 static bus_size_t bcma_erom_tell(struct bcma_erom *erom);
83 static void bcma_erom_seek(struct bcma_erom *erom,
[all …]
H A Dbcma.c656 bhnd_erom_t *erom; in bcma_add_children() local
670 erom = bhnd_erom_alloc(&bcma_erom_parser, cid, eio); in bcma_add_children()
671 if (erom == NULL) { in bcma_add_children()
677 bcma_erom = (struct bcma_erom *)erom; in bcma_add_children()
708 bhnd_erom_free(erom); in bcma_add_children()
/freebsd/sys/dev/bhnd/
H A Dbhnd_erom.h63 bhnd_erom_t *erom, size_t esize,
67 void bhnd_erom_fini_static(bhnd_erom_t *erom);
69 void bhnd_erom_free(bhnd_erom_t *erom);
166 bhnd_erom_get_core_table(bhnd_erom_t *erom, struct bhnd_core_info **cores, in bhnd_erom_get_core_table() argument
169 return (BHND_EROM_GET_CORE_TABLE(erom, cores, num_cores)); in bhnd_erom_get_core_table()
179 bhnd_erom_free_core_table(bhnd_erom_t *erom, struct bhnd_core_info *cores) in bhnd_erom_free_core_table() argument
181 return (BHND_EROM_FREE_CORE_TABLE(erom, cores)); in bhnd_erom_free_core_table()
196 bhnd_erom_lookup_core(bhnd_erom_t *erom, const struct bhnd_core_match *desc, in bhnd_erom_lookup_core() argument
199 return (BHND_EROM_LOOKUP_CORE(erom, desc, core)); in bhnd_erom_lookup_core()
226 bhnd_erom_lookup_core_addr(bhnd_erom_t *erom, const struct bhnd_core_match *desc, in bhnd_erom_lookup_core_addr() argument
[all …]
H A Dbhnd_erom_if.m59 * @param cls The erom class to probe.
88 * @param erom The erom parser to initialize.
91 * enumeration table. On success, the erom parser assumes
98 bhnd_erom_t *erom;
104 * Release all resources held by @p erom.
106 * @param erom An erom parser instance previously initialized via
110 bhnd_erom_t *erom;
120 * @param erom The erom parser to be queried.
129 bhnd_erom_t *erom;
137 * @param erom The erom parser instance.
[all …]
H A Dbhnd_erom.c174 bhnd_erom_t *erom; in bhnd_erom_alloc() local
177 erom = (bhnd_erom_t *)kobj_create((kobj_class_t)cls, M_BHND, in bhnd_erom_alloc()
180 if ((error = BHND_EROM_INIT(erom, cid, eio))) { in bhnd_erom_alloc()
184 kobj_delete((kobj_t)erom, M_BHND); in bhnd_erom_alloc()
188 return (erom); in bhnd_erom_alloc()
213 bhnd_erom_init_static(bhnd_erom_class_t *cls, bhnd_erom_t *erom, size_t esize, in bhnd_erom_init_static() argument
225 kobj_init_static((kobj_t)erom, kcls); in bhnd_erom_init_static()
226 return (BHND_EROM_INIT(erom, cid, eio)); in bhnd_erom_init_static()
237 bhnd_erom_fini_static(bhnd_erom_t *erom) in bhnd_erom_fini_static() argument
239 return (BHND_EROM_FINI(erom)); in bhnd_erom_fini_static()
[all …]
/freebsd/sys/dev/bhnd/siba/
H A Dsiba_erom.c160 siba_erom_init(bhnd_erom_t *erom, const struct bhnd_chipid *cid, in siba_erom_init() argument
166 sc = (struct siba_erom *)erom; in siba_erom_init()
183 siba_erom_fini(bhnd_erom_t *erom) in siba_erom_fini() argument
185 struct siba_erom *sc = (struct siba_erom *)erom; in siba_erom_fini()
443 siba_erom_lookup_core(bhnd_erom_t *erom, const struct bhnd_core_match *desc, in siba_erom_lookup_core() argument
450 sc = (struct siba_erom *)erom; in siba_erom_lookup_core()
497 siba_erom_lookup_core_addr(bhnd_erom_t *erom, const struct bhnd_core_match *desc, in siba_erom_lookup_core_addr() argument
511 sc = (struct siba_erom *)erom; in siba_erom_lookup_core_addr()
514 if ((error = siba_erom_lookup_core(erom, desc, &core))) in siba_erom_lookup_core_addr()
542 error = siba_erom_lookup_core_addr(erom, desc, BHND_PORT_DEVICE, in siba_erom_lookup_core_addr()
[all …]
H A Dsiba.c1280 bhnd_erom_t *erom; in siba_add_children() local
1292 erom = bhnd_erom_alloc(&siba_erom_parser, cid, eio); in siba_add_children()
1293 if (erom == NULL) { in siba_add_children()
1311 siba_erom = (struct siba_erom *)erom; in siba_add_children()
1344 bhnd_erom_free(erom); in siba_add_children()
1345 erom = NULL; in siba_add_children()
1379 if (erom != NULL) in siba_add_children()
1380 bhnd_erom_free(erom); in siba_add_children()
/freebsd/sys/dev/bhnd/bhndb/
H A Dbhndb_pci.c168 bhnd_erom_t *erom; /**< erom parser */ member
818 error = bhnd_erom_lookup_core_addr(probe->erom, &md, BHND_PORT_DEVICE, in bhndb_pci_srsh_pi_war()
1340 p->erom = bhnd_erom_alloc(p->erom_class, &p->cid, eio); in bhndb_pci_probe_alloc()
1341 if (p->erom == NULL) { in bhndb_pci_probe_alloc()
1352 error = bhnd_erom_get_core_table(p->erom, &p->cores, &p->ncores); in bhndb_pci_probe_alloc()
1376 KASSERT(p->erom == NULL, ("I/O instance will be freed by " in bhndb_pci_probe_alloc()
1382 if (p->erom != NULL) { in bhndb_pci_probe_alloc()
1384 bhnd_erom_free_core_table(p->erom, p->cores); in bhndb_pci_probe_alloc()
1386 bhnd_erom_free(p->erom); in bhndb_pci_probe_alloc()
1406 bhnd_erom_free_core_table(probe->erom, probe->cores); in bhndb_pci_probe_free()
[all …]
H A Dbhndb.c84 bhnd_erom_t *erom,
228 bhndb_init_region_cfg(struct bhndb_softc *sc, bhnd_erom_t *erom, in bhndb_init_region_cfg() argument
270 error = bhnd_erom_lookup_core_addr(erom, &md, in bhndb_init_region_cfg()
370 error = bhnd_erom_lookup_core_addr(erom, &md, in bhndb_init_region_cfg()
519 bhnd_erom_t *erom; in bhndb_attach() local
533 erom = NULL; in bhndb_attach()
573 if ((erom = bhnd_erom_alloc(erom_class, cid, eio)) == NULL) { in bhndb_attach()
581 error = bhndb_init_region_cfg(sc, erom, sc->bus_res, cores, ncores, in bhndb_attach()
590 bhnd_erom_free(erom); in bhndb_attach()
591 erom = NULL; in bhndb_attach()
[all …]