Lines Matching refs:pxe
223 memset(&hardware->pxe, 0, sizeof(struct s_pxe)); in init_hardware()
433 memset(&hardware->pxe, 0, sizeof(struct s_pxe)); in detect_pxe()
441 pxe_bootp_t *dhcp = &hardware->pxe.dhcpdata; in detect_pxe()
442 memcpy(&hardware->pxe.dhcpdata, dhcpdata, in detect_pxe()
443 sizeof(hardware->pxe.dhcpdata)); in detect_pxe()
444 snprintf(hardware->pxe.mac_addr, sizeof(hardware->pxe.mac_addr), in detect_pxe()
450 hardware->pxe.ip_addr[0] = hardware->pxe.dhcpdata.yip & 0xff; in detect_pxe()
451 hardware->pxe.ip_addr[1] = hardware->pxe.dhcpdata.yip >> 8 & 0xff; in detect_pxe()
452 hardware->pxe.ip_addr[2] = hardware->pxe.dhcpdata.yip >> 16 & 0xff; in detect_pxe()
453 hardware->pxe.ip_addr[3] = hardware->pxe.dhcpdata.yip >> 24 & 0xff; in detect_pxe()
459 hardware->pxe.vendor_id = gnt.info.pci.Vendor_ID; in detect_pxe()
460 hardware->pxe.product_id = gnt.info.pci.Dev_ID; in detect_pxe()
461 hardware->pxe.subvendor_id = gnt.info.pci.SubVendor_ID; in detect_pxe()
462 hardware->pxe.subproduct_id = in detect_pxe()
464 hardware->pxe.rev = gnt.info.pci.Rev; in detect_pxe()
465 hardware->pxe.pci_bus = (gnt.info.pci.BusDevFunc >> 8) & 0xff; in detect_pxe()
466 hardware->pxe.pci_dev = (gnt.info.pci.BusDevFunc >> 3) & 0x7; in detect_pxe()
467 hardware->pxe.pci_func = gnt.info.pci.BusDevFunc & 0x03; in detect_pxe()
468 hardware->pxe.base_class = gnt.info.pci.Base_Class; in detect_pxe()
469 hardware->pxe.sub_class = gnt.info.pci.Sub_Class; in detect_pxe()
470 hardware->pxe.prog_intf = gnt.info.pci.Prog_Intf; in detect_pxe()
471 hardware->pxe.nictype = gnt.NicType; in detect_pxe()
475 hardware->pxe.vendor_id = gnt.info.cardbus.Vendor_ID; in detect_pxe()
476 hardware->pxe.product_id = gnt.info.cardbus.Dev_ID; in detect_pxe()
477 hardware->pxe.subvendor_id = gnt.info.cardbus.SubVendor_ID; in detect_pxe()
478 hardware->pxe.subproduct_id = in detect_pxe()
480 hardware->pxe.rev = gnt.info.cardbus.Rev; in detect_pxe()
481 hardware->pxe.pci_bus = in detect_pxe()
483 hardware->pxe.pci_dev = in detect_pxe()
485 hardware->pxe.pci_func = gnt.info.cardbus.BusDevFunc & 0x03; in detect_pxe()
486 hardware->pxe.base_class = gnt.info.cardbus.Base_Class; in detect_pxe()
487 hardware->pxe.sub_class = gnt.info.cardbus.Sub_Class; in detect_pxe()
488 hardware->pxe.prog_intf = gnt.info.cardbus.Prog_Intf; in detect_pxe()
489 hardware->pxe.nictype = gnt.NicType; in detect_pxe()
498 hardware->pxe.pci_device = NULL; in detect_pxe()
499 hardware->pxe.pci_device_pos = 0; in detect_pxe()
504 if ((__pci_bus == hardware->pxe.pci_bus) && in detect_pxe()
505 (__pci_slot == hardware->pxe.pci_dev) && in detect_pxe()
506 (__pci_func == hardware->pxe.pci_func) && in detect_pxe()
507 (pci_device->vendor == hardware->pxe.vendor_id) in detect_pxe()
508 && (pci_device->product == hardware->pxe.product_id)) { in detect_pxe()
509 hardware->pxe.pci_device = pci_device; in detect_pxe()
510 hardware->pxe.pci_device_pos = pci_number; in detect_pxe()
523 hardware->pxe.pci_device = NULL; in detect_pxe()
524 hardware->pxe.pci_device_pos = 0; in detect_pxe()
528 if ((pci_device->vendor == hardware->pxe.vendor_id) in detect_pxe()
529 && (pci_device->product == hardware->pxe.product_id)) { in detect_pxe()
530 hardware->pxe.pci_device = pci_device; in detect_pxe()
531 hardware->pxe.pci_device_pos = pci_number; in detect_pxe()