Lines Matching refs:dev
53 #include <dev/pci/pcivar.h>
54 #include <dev/pci/pcireg.h>
56 #include <dev/pci/pcib_private.h>
75 ar71xx_pci_slot_create_eeprom_firmware(device_t dev, u_int bus, u_int slot,
83 device_printf(dev, "EEPROM firmware: 0x%lx @ %d bytes\n",
88 device_printf(dev,
103 device_get_name(dev), device_get_unit(dev), bus, slot, func);
106 device_printf(dev, "%s: firmware_register (%s) failed\n",
111 device_printf(dev, "device EEPROM '%s' registered\n", buf);
116 ar71xx_pci_slot_fixup(device_t dev, u_int bus, u_int slot, u_int func)
126 device_printf(dev, "%s: checking dev %s, %d/%d/%d\n",
127 __func__, device_get_nameunit(dev), bus, slot, func);
132 if (resource_long_value(device_get_name(dev), device_get_unit(dev),
136 if (resource_int_value(device_get_name(dev),
137 device_get_unit(dev), buf, &size) != 0) {
138 device_printf(dev,
145 device_printf(dev, "found EEPROM at 0x%lx on %d.%d.%d\n",
147 ar71xx_pci_fixup(dev, bus, slot, func, flash_addr, size);
148 ar71xx_pci_slot_create_eeprom_firmware(dev, bus, slot, func,