Searched refs:erom (Results 1 - 8 of 8) sorted by relevance

/freebsd-current/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);
125 * @param cls The erom class to probe.
151 * Parse all cores descriptors in @p erom, returning the array in @p cores and
157 * @param erom The erom parser to be queried.
166 bhnd_erom_get_core_table(bhnd_erom_t *erom, struct bhnd_core_info **cores, argument
169 return (BHND_EROM_GET_CORE_TABLE(erom, cores, num_cores));
175 * @param erom Th
179 bhnd_erom_free_core_table(bhnd_erom_t *erom, struct bhnd_core_info *cores) argument
196 bhnd_erom_lookup_core(bhnd_erom_t *erom, const struct bhnd_core_match *desc, struct bhnd_core_info *core) argument
226 bhnd_erom_lookup_core_addr(bhnd_erom_t *erom, const struct bhnd_core_match *desc, bhnd_port_type type, u_int port, u_int region, struct bhnd_core_info *core, bhnd_addr_t *addr, bhnd_size_t *size) argument
244 bhnd_erom_dump(bhnd_erom_t *erom) argument
[all...]
H A Dbhnd_erom.c86 * @param eio An erom bus I/O instance, configured with a
95 * @retval NULL if no erom class returned a successful probe result for
174 bhnd_erom_t *erom; local
177 erom = (bhnd_erom_t *)kobj_create((kobj_class_t)cls, M_BHND,
180 if ((error = BHND_EROM_INIT(erom, cid, eio))) {
184 kobj_delete((kobj_t)erom, M_BHND);
188 return (erom);
194 * This may be used to initialize a caller-allocated erom instance state
199 * @param erom The erom parse
213 bhnd_erom_init_static(bhnd_erom_class_t *cls, bhnd_erom_t *erom, size_t esize, const struct bhnd_chipid *cid, struct bhnd_erom_io *eio) argument
237 bhnd_erom_fini_static(bhnd_erom_t *erom) argument
250 bhnd_erom_free(bhnd_erom_t *erom) argument
[all...]
/freebsd-current/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,
137 bcma_erom_init(bhnd_erom_t *erom, const struct bhnd_chipid *cid, struct bhnd_erom_io *eio) argument
193 bcma_erom_fini(bhnd_erom_t *erom) argument
201 bcma_erom_lookup_core(bhnd_erom_t *erom, const struct bhnd_core_match *desc, struct bhnd_core_info *core) argument
211 bcma_erom_lookup_core_addr(bhnd_erom_t *erom, const struct bhnd_core_match *desc, bhnd_port_type port_type, u_int port_num, u_int region_num, struct bhnd_core_info *core, bhnd_addr_t *addr, bhnd_size_t *size) argument
360 bcma_erom_get_core_table(bhnd_erom_t *erom, struct bhnd_core_info **cores, u_int *num_cores) argument
441 bcma_erom_free_core_table(bhnd_erom_t *erom, struct bhnd_core_info *cores) argument
450 bcma_erom_tell(struct bcma_erom *erom) argument
459 bcma_erom_seek(struct bcma_erom *erom, bus_size_t offset) argument
475 bcma_erom_peek32(struct bcma_erom *erom, uint32_t *entry) argument
496 bcma_erom_read32(struct bcma_erom *erom, uint32_t *entry) argument
515 bcma_erom_skip32(struct bcma_erom *erom) argument
531 bcma_erom_skip_core(struct bcma_erom *erom) argument
546 bcma_erom_skip_mport(struct bcma_erom *erom) argument
561 bcma_erom_skip_sport_region(struct bcma_erom *erom) argument
578 bcma_erom_seek_next(struct bcma_erom *erom, uint8_t etype) argument
631 bcma_erom_reset(struct bcma_erom *erom) argument
735 bcma_erom_parse_core(struct bcma_erom *erom, struct bcma_erom_core *core) argument
785 bcma_erom_parse_mport(struct bcma_erom *erom, struct bcma_erom_mport *mport) argument
814 bcma_erom_parse_sport_region(struct bcma_erom *erom, struct bcma_erom_sport_region *region) argument
905 bcma_erom_region_to_port_type(struct bcma_erom *erom, uint8_t region_type, bhnd_port_type *port_type) argument
937 bcma_erom_corecfg_fill_port_regions(struct bcma_erom *erom, struct bcma_corecfg *corecfg, bcma_pid_t port_num, uint8_t region_type) argument
1054 bcma_erom_next_corecfg(struct bcma_erom *erom, struct bcma_corecfg **result) argument
1256 bcma_erom_dump(bhnd_erom_t *erom) argument
[all...]
H A Dbcma.c657 bhnd_erom_t *erom; local
671 erom = bhnd_erom_alloc(&bcma_erom_parser, cid, eio);
672 if (erom == NULL) {
678 bcma_erom = (struct bcma_erom *)erom;
709 bhnd_erom_free(erom);
/freebsd-current/sys/dev/bhnd/siba/
H A Dsiba_erom.c72 struct bhnd_erom_io *eio; /**< erom I/O callbacks */
160 siba_erom_init(bhnd_erom_t *erom, const struct bhnd_chipid *cid, argument
166 sc = (struct siba_erom *)erom;
183 siba_erom_fini(bhnd_erom_t *erom) argument
185 struct siba_erom *sc = (struct siba_erom *)erom;
443 siba_erom_lookup_core(bhnd_erom_t *erom, const struct bhnd_core_match *desc, argument
450 sc = (struct siba_erom *)erom;
497 siba_erom_lookup_core_addr(bhnd_erom_t *erom, const struct bhnd_core_match *desc, argument
511 sc = (struct siba_erom *)erom;
514 if ((error = siba_erom_lookup_core(erom, des
611 siba_erom_get_core_table(bhnd_erom_t *erom, struct bhnd_core_info **cores, u_int *num_cores) argument
651 siba_erom_free_core_table(bhnd_erom_t *erom, struct bhnd_core_info *cores) argument
658 siba_erom_dump(bhnd_erom_t *erom) argument
[all...]
H A Dsiba.c1281 bhnd_erom_t *erom; local
1293 erom = bhnd_erom_alloc(&siba_erom_parser, cid, eio);
1294 if (erom == NULL) {
1312 siba_erom = (struct siba_erom *)erom;
1345 bhnd_erom_free(erom);
1346 erom = NULL;
1385 if (erom != NULL)
1386 bhnd_erom_free(erom);
/freebsd-current/sys/dev/bhnd/bhndb/
H A Dbhndb_pci.c144 /* bhndb_pci erom I/O instance state */
166 struct bhndb_pci_eio erom_io; /**< erom I/O instance */
167 bhnd_erom_class_t *erom_class; /**< probed erom class */
168 bhnd_erom_t *erom; /**< erom parser */ member in struct:bhndb_pci_probe
169 struct bhnd_core_info *cores; /**< erom-owned core table */
819 error = bhnd_erom_lookup_core_addr(probe->erom, &md, BHND_PORT_DEVICE,
1341 p->erom = bhnd_erom_alloc(p->erom_class, &p->cid, eio);
1342 if (p->erom == NULL) {
1353 error = bhnd_erom_get_core_table(p->erom,
[all...]
H A Dbhndb.c84 bhnd_erom_t *erom,
217 * the priority @p table and the set of cores enumerated by @p erom.
221 * @param erom EROM parser used to enumerate @p cores.
228 bhndb_init_region_cfg(struct bhndb_softc *sc, bhnd_erom_t *erom, argument
270 error = bhnd_erom_lookup_core_addr(erom, &md,
370 error = bhnd_erom_lookup_core_addr(erom, &md,
505 * @param erom_class An erom parser class that may be used to parse
519 bhnd_erom_t *erom; local
533 erom = NULL;
571 * we use this to instantiate an erom parse
[all...]

Completed in 143 milliseconds