Home | History | Annotate | Download | only in nubus

Lines Matching refs:bst

100 	bus_space_tag_t bst;
117 na_args.na_tag = bst = mba->mba_bst;
120 if (bus_space_map(bst,
132 if (nubus_probe_slot(bst, bsh, i, &fmtblock) <= 0) {
134 bus_space_unmap(bst, bsh, NBMEMSIZE);
156 if (nubus_find_rsrc(bst, bsh,
172 rsrcid = nubus_read_1(bst, bsh,
179 rsrcid = nubus_read_1(bst, bsh, lanes, entry);
196 if (nubus_find_rsrc(bst, bsh,
203 if (nubus_find_rsrc(bst, bsh,
207 if (nubus_get_ind_data(bst, bsh, &fmtblock, &dirent,
222 if (nubus_find_rsrc(bst, bsh,
229 if (nubus_find_rsrc(bst, bsh, &fmtblock, &dir,
233 if (nubus_get_ind_data(bst, bsh,
250 bus_space_unmap(bst, bsh, NBMEMSIZE);
262 bus_space_tag_t bst = na->na_tag;
267 if (bus_space_map(bst,
270 nubus_get_card_name(bst, bsh, na->fmt));
272 nubus_get_vendor(bst, bsh,
274 aprint_normal(" Part: %s)", nubus_get_vendor(bst, bsh,
276 bus_space_unmap(bst, bsh, NBMEMSIZE);
331 nubus_probe_slot(bus_space_tag_t bst, bus_space_handle_t bsh, int slot,
360 if (!mac68k_bus_space_probe(bst, bsh, ofs, 1)) {
364 if (bus_space_read_1(bst, bsh, ofs) ==
418 0xff000000 | nubus_read_4(bst, bsh, lanes, hdr);
420 fmt->length = nubus_read_4(bst, bsh, lanes, hdr);
422 fmt->crc = nubus_read_4(bst, bsh, lanes, hdr);
424 fmt->revision_level = nubus_read_1(bst, bsh, lanes, hdr);
426 fmt->format = nubus_read_1(bst, bsh, lanes, hdr);
428 fmt->test_pattern = nubus_read_4(bst, bsh, lanes, hdr);
455 if (fmt->crc != nubus_calc_CRC(bst, bsh, fmt)) {
464 nubus_calc_CRC(bus_space_tag_t bst, bus_space_handle_t bsh, nubus_slot *fmt)
482 sum += nubus_read_1(bst, bsh, lanes, ptr);
538 nubus_read_1(bus_space_tag_t bst, bus_space_handle_t bsh, u_int8_t lanes,
541 return bus_space_read_1(bst, bsh, ofs);
547 nubus_read_2(bus_space_tag_t bst, bus_space_handle_t bsh, u_int8_t lanes,
552 s = (nubus_read_1(bst, bsh, lanes, ofs) << 8);
554 s |= nubus_read_1(bst, bsh, lanes, ofs);
560 nubus_read_4(bus_space_tag_t bst, bus_space_handle_t bsh, u_int8_t lanes,
568 l = (l << 8) | nubus_read_1(bst, bsh, lanes, ofs);
607 nubus_find_rsrc(bus_space_tag_t bst
623 byte = nubus_read_1(bst, bsh, lanes, entry);
631 entry = nubus_read_4(bst, bsh, lanes, entry);
645 nubus_get_ind_data(bus_space_tag_t bst, bus_space_handle_t bsh, nubus_slot *fmt,
662 *data_return++ = nubus_read_1(bst, bsh, lanes, loc);
669 nubus_get_c_string(bus_space_tag_t bst, bus_space_handle_t bsh, nubus_slot *fmt,
688 nubus_read_1(bst, bsh, lanes, loc)) == 0)
701 nubus_get_smem_addr_rangelist(bus_space_tag_t bst, bus_space_handle_t bsh,
720 blocklen = nubus_read_4(bst, bsh, lanes, loc);
729 nubus_get_ind_data(bst, bsh, fmt, dirent, blocklist, blocklen);
752 nubus_get_vendor(bus_space_tag_t bst, bus_space_handle_t bsh, nubus_slot *fmt,
764 if (nubus_find_rsrc(bst, bsh, fmt, &dir, 1, &ent) <= 0)
768 if (nubus_find_rsrc(bst, bsh, fmt, &dir, NUBUS_RSRC_VENDORINFO, &ent)
773 if (nubus_find_rsrc(bst, bsh, fmt, &dir, rsrc, &ent) <= 0)
776 nubus_get_c_string(bst, bsh, fmt, &ent, str_ret, 64);
782 nubus_get_card_name(bus_space_tag_t bst, bus_space_handle_t bsh,
795 if (nubus_find_rsrc(bst, bsh, fmt, &dir, 1, &ent) <= 0)
800 if (nubus_find_rsrc(bst, bsh, fmt, &dir, NUBUS_RSRC_NAME, &ent) <= 0)
803 nubus_get_c_string(bst, bsh, fmt, &ent, name_ret, 64);
810 nubus_scan_slot(bus_space_tag_t bst, int slotno)
816 if (bus_space_map(bst, NUBUS_SLOT2PA(slotno), NBMEMSIZE, 0, &sc_bsh)) {
824 if (mac68k_bus_space_probe(bst, sc_bsh, i, 1)) {