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); }
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; }