Lines Matching refs:vendor

32  *   vendor specific features on the OpenHCI adapter.
47 * Macro which makes sure vendor register offset is not greater that 0x7FC and
57 * vendor cards are not effected.
64 static int hci1394_rio_init(hci1394_vendor_t *vendor);
65 static void hci1394_rio_guid_init(hci1394_vendor_t *vendor);
66 static int hci1394_rio_resume(hci1394_vendor_t *vendor);
77 * vendor routines.
84 hci1394_vendor_t *vendor;
93 * alloc the space to keep track of the vendor registers.
95 vendor = kmem_alloc(sizeof (hci1394_vendor_t), KM_SLEEP);
96 vendor->ve_info = *vendor_info;
97 vendor->ve_drvinfo = drvinfo;
98 vendor->ve_ohci = ohci;
101 *vendor_handle = vendor;
103 /* call vendor specific initialization routine */
112 status = hci1394_rio_init(vendor);
114 kmem_free(vendor,
129 vendor->ve_reg_count = 0;
135 /* unrecognized vendor - don't map any registers */
137 vendor->ve_reg_count = 0;
141 vendor_info->vendor_reg_count = vendor->ve_reg_count;
186 * re-setting up any vendor specific registers.
201 /* call vendor specific initialization routine */
229 /* unrecognized vendor - don't map any registers */
243 * Write vendor specific register. reg_set is the register set to write. The
245 * offset is the offset into the vendor specific register space. An offset of
246 * 0 would be the first vendor register for that register set. data is the
247 * data to write to the vendor register.
285 * Read vendor specific register. reg_set is the register set to write. The
287 * offset is the offset into the vendor specific register space. An offset
288 * of 0 would be the first vendor register for that register set. data is
327 * Initialize SUNW RIO vendor specific registers.
330 hci1394_rio_init(hci1394_vendor_t *vendor)
335 ASSERT(vendor != NULL);
338 vendor->ve_reg_count = 1;
339 vendor->ve_reg_array[0] = kmem_alloc(sizeof (hci1394_vendor_reg_t),
342 status = ddi_regs_map_setup(vendor->ve_drvinfo->di_dip, RIOREG_REG_BASE,
343 &vendor->ve_reg_array[0]->vr_reg_addr, RIOREG_OFFSET, RIOREG_LENGTH,
344 &vendor->ve_drvinfo->di_reg_attr,
345 &vendor->ve_reg_array[0]->vr_reg_handle);
347 vendor->ve_reg_count = 0;
348 kmem_free(vendor->ve_reg_array[0],
358 status = hci1394_vendor_reg_write(vendor, 0, RIOREG_HOST_CONTROL,
361 ddi_regs_map_free(&vendor->ve_reg_array[0]->vr_reg_handle);
362 vendor->ve_reg_count = 0;
363 kmem_free(vendor->ve_reg_array[0],
365 vendor->ve_reg_array[0] = NULL;
374 hci1394_rio_guid_init(vendor);
387 hci1394_rio_resume(hci1394_vendor_t *vendor)
392 ASSERT(vendor != NULL);
396 status = hci1394_vendor_reg_write(vendor, 0, RIOREG_HOST_CONTROL,
407 hci1394_rio_guid_init(vendor);
423 hci1394_rio_guid_init(hci1394_vendor_t *vendor)
427 ASSERT(vendor != NULL);
434 /* mask out the vendor field of the GUID */
441 ddi_put32(vendor->ve_ohci->ohci_reg_handle,
442 &vendor->ve_ohci->ohci_regs->guid_hi,
444 ddi_put32(vendor->ve_ohci->ohci_reg_handle,
445 &vendor->ve_ohci->ohci_regs->guid_lo,