Beispiel #1
0
void
putfilentry(struct bufarea *bp)
{
	struct file_entry *fp;

	/* LINTED */
	fp = (struct file_entry *)bp->b_un.b_buf;
	maketag(&fp->fe_tag, &fp->fe_tag);
}
Beispiel #2
0
int
pcifinddev(int vid, int did, pcihdl_t *handle)
{
	int i;

	for (i = 0; i < 32; i++) {
		pcihdl_t h;
		int id;
		h = maketag(0, i, 0);
		pcicfgread(&h, 0, &id);
		if (id == (vid | (did << 16))) {
			*handle = h;
			return 0;
		}
	}
	return -1;
}