Lines Matching refs:device

177 	uint_t		device;
192 * design is to look for a device in this list during the configure
193 * operation, and if the device is listed here, then it is a nontransparent
628 /* get parent device's device_type property */
679 DEBUG1("device port_type = %x\n", port_type);
698 * opens on the nexus which is in the device tree path above the node
703 * This entry point is called to configure a device (and
705 * a new device is added to the PCI domain. This routine
706 * will create the device tree and program the devices
711 pcicfg_configure(dev_info_t *devi, uint_t device, uint_t function,
731 * Start probing at the device specified in "device" on the
753 trans_device = device;
765 "bus [0x%x] device [0x%x]\n",
769 DEBUG3("no device : bus "
797 DEBUG0("Did'nt find device node just created\n");
867 trans_device = device;
875 DEBUG2("Cleaning up device [0x%x] function [0x%x]\n",
878 * If this was a bridge device it will have a
907 pcicfg_configure_ntbridge(dev_info_t *new_device, uint_t bus, uint_t device)
934 /* check if we are PCIe device */
1456 DEBUG3("pcicfg: checking device %x,%x for indirect map. rc=%d\n",
1543 * and remove the device tree from the Hotplug Connection (CN)
1548 pcicfg_unconfigure(dev_info_t *devi, uint_t device, uint_t function,
1566 * If a single device is busy fail the whole unconfigure.
1576 trans_device = device;
1589 DEBUG2("Device [0x%x] function [%x] is busy\n", device, func);
1629 trans_device = device;
1637 DEBUG2("Tearing down device [0x%x] function [0x%x]\n",
1650 DEBUG2("Failed to tear down device [0x%x]"
1684 * This will disable the device
1966 * A single device (under a bridge).
2104 * A single device
2365 * the device at the Hotplug Connection (CN). Currently it is
2469 * much memory was wasted/unallocated in bridge device's domain.
2991 DEBUG0("Failed freeing up device resources\n");
3014 pcicfg_devi_find(dev_info_t *dip, uint_t device, uint_t function)
3019 ctrl.device = device;
3046 /* get the PCI device address info */
3056 if ((pci_dev == ctrl->device) && (pci_func == ctrl->function)) {
3057 /* found the match for the specified device address */
3403 * header of the PCI device
3442 "device-id", val)) != DDI_SUCCESS) {
3614 /* set the property prefix based on the device type */
3654 * did = device id
3908 * so no other device claims it.
3933 * other device claims it.
3962 /* if we are a PCIe device, disable the generation of UR, CE and NFE */
4006 pcicfg_probe_children(dev_info_t *parent, uint_t bus, uint_t device,
4017 * "parent". Allocate a blank device node. It will either
4032 device, func) != DDI_SUCCESS) {
4050 (void) pcie_init_bus(new_child, PCI_GETBDF(bus, device, func),
4055 * turn off device. It will get turned on
4060 /* check if we are PCIe device */
4063 DEBUG0("PCIe device detected\n");
4108 DEBUG3("--Bridge found bus [0x%x] device"
4109 "[0x%x] func [0x%x]\n", bus, device, func);
4111 /* Only support read-only probe for leaf device */
4123 DEBUG3("--Leaf device found bus [0x%x] device"
4125 bus, device, func);
4277 pcicfg_fcode_probe(dev_info_t *parent, uint_t bus, uint_t device,
4323 * "parent". Allocate a blank device node. It will either
4342 device, func) != DDI_SUCCESS) {
4356 p.pci_phys_hi = PCICFG_MAKE_REG_HIGH(bus, device, func, 0);
4375 * First use ddi_peek16 so that if there is not a device there,
4388 (void) pcie_init_bus(new_child, PCI_GETBDF(bus, device, func),
4394 * turn off device. It will get turned on
4399 /* check if we are PCIe device */
4403 DEBUG0("PCI/PCIe device detected\n");
4447 DEBUG3("--Bridge found bus [0x%x] device"
4448 "[0x%x] func [0x%x]\n", bus, device, func);
4450 /* Only support read-only probe for leaf device */
4460 DEBUG3("--Leaf device found bus [0x%x] device"
4462 bus, device, func);
4507 bus, device, func, request, &p)
4515 /* Turn device on */
4521 (void) pcicfg_load_fcode(new_child, bus, device,
4526 /* Turn device off */
4561 PCICFG_MAKE_REG_HIGH(bus, device, func, 0);
4568 (void) sprintf(unit_address, "%x,%x", device, func);
4571 "new device=%lx unit address=%s\n",
4666 * dropin, then we need to probe the device ourself.
4687 DEBUG0("No Drop-in Probe device ourself\n");
4689 ret = pcicfg_probe_children(parent, bus, device, func,
4698 * We successfully self probed the device.
4701 parent, device, func)) == NULL) {
4702 DEBUG0("Did'nt find device node "
4715 * To make the process simpler, lets load the device
4733 bus, device);
5262 "device [0x%x] "
5270 "[0x%x] device [0x%x] "
5604 * Return PCICFG_SUCCESS if device exists at the specified address.
5605 * Return PCICFG_NODEVICE is no device exists at the specified address.
5705 * message, then report back that there is no device there.
5744 uint_t bus, uint_t device, uint_t func)
5748 reg[0] = PCICFG_MAKE_REG_HIGH(bus, device, func, 0);
5785 pcicfg_load_fcode(dev_info_t *dip, uint_t bus, uint_t device, uint_t func,
5805 "bus %x device =%x func=%x rom_paddr=%lx\n",
5806 bus, device, func, rom_paddr);
5817 p.pci_phys_hi = PCI_ADDR_MEM32 | PCICFG_MAKE_REG_HIGH(bus, device,
5832 * Walk the ROM to find the proper image for this device.
5847 * Some device say they have an Expansion ROM, but do not, so
5911 * Is this image for this device?
5938 DEBUG0("Firmware Image is not for this device..."
6000 uint_t device, uint_t func, int32_t fc_request, pci_regspec_t *rom_regspec)
6004 * device for accessing the fcode on the PROM. On successful
6036 hiword = PCICFG_MAKE_REG_HIGH(bus, device, func, i);
6125 phys_spec.pci_phys_hi = PCICFG_MAKE_REG_HIGH(bus, device, func, \
6831 * Does this device reside in a pcie fabric ?