/freebsd-9.3-release/sys/modules/bios/ |
H A D | Makefile | 4 SUBDIR= smapi smbios vpd
|
/freebsd-9.3-release/sys/modules/bios/vpd/ |
H A D | Makefile | 6 KMOD= vpd 7 SRCS= vpd.c \
|
/freebsd-9.3-release/sys/boot/powerpc/ofw/ |
H A D | start.c | 71 startup(void *vpd, int res, int (*openfirm)(void *), char *arg, int argl) argument
|
/freebsd-9.3-release/sys/x86/bios/ |
H A D | vpd.c | 57 struct vpd { struct 76 struct vpd * vpd; member in struct:vpd_softc 93 #define RES2VPD(res) ((struct vpd *)rman_get_virtual(res)) 94 #define ADDR2VPD(addr) ((struct vpd *)BIOS_PADDRTOVADDR(addr)) 104 static int vpd_cksum (struct vpd *); 106 static SYSCTL_NODE(_hw, OID_AUTO, vpd, CTLFLAG_RD, NULL, NULL); 131 child = BUS_ADD_CHILD(parent, 5, "vpd", -1); 184 sc->vpd = RES2VPD(sc->res); 187 snprintf(sc->MachineType, 5, "%.4s", sc->vpd [all...] |
/freebsd-9.3-release/usr.sbin/pciconf/ |
H A D | pciconf.c | 74 int errors, int vpd); 102 int bars, caps, errors, verbose, vpd; local 106 bars = caps = errors = verbose = vpd = byte = isshort = 0; 148 vpd = 1; 164 bars, caps, errors, vpd); 182 int vpd) 255 if (vpd) 354 struct pci_vpd_element *vpd, *end; local 368 vpd = list.plvi_data; 369 end = (struct pci_vpd_element *)((char *)vpd 181 list_devs(const char *name, int verbose, int bars, int caps, int errors, int vpd) argument [all...] |
/freebsd-9.3-release/share/man/man4/man4.i386/ |
H A D | Makefile | 31 vpd.4 \
|
/freebsd-9.3-release/sys/dev/pci/ |
H A D | pci_user.c | 413 struct pcicfg_vpd *vpd; local 417 vpd = pci_fetch_vpd_list(dev); 418 if (vpd->vpd_reg == 0 || vpd->vpd_ident == NULL) 426 len = sizeof(struct pci_vpd_element) + strlen(vpd->vpd_ident); 427 for (i = 0; i < vpd->vpd_rocnt; i++) 428 len += sizeof(struct pci_vpd_element) + vpd->vpd_ros[i].len; 429 for (i = 0; i < vpd->vpd_wcnt; i++) 430 len += sizeof(struct pci_vpd_element) + vpd->vpd_w[i].len; 449 vpd_element.pve_datalen = strlen(vpd [all...] |
H A D | pci.c | 751 cfg->vpd.vpd_reg = ptr; 818 WREG(cfg->vpd.vpd_reg + PCIR_VPD_ADDR, reg, 2); 820 while ((REG(cfg->vpd.vpd_reg + PCIR_VPD_ADDR, 2) & 0x8000) != 0x8000) { 825 *data = (REG(cfg->vpd.vpd_reg + PCIR_VPD_DATA, 4)); 838 WREG(cfg->vpd.vpd_reg + PCIR_VPD_DATA, data, 4); 839 WREG(cfg->vpd.vpd_reg + PCIR_VPD_ADDR, reg | 0x8000, 2); 840 while ((REG(cfg->vpd.vpd_reg + PCIR_VPD_ADDR, 2) & 0x8000) == 0x8000) { 899 /* init vpd reader */ 917 printf("vpd: val: %#x, off: %d, bytesinval: %d, byte: %#hhx, " \ 948 cfg->vpd [all...] |
H A D | pcivar.h | 164 struct pcicfg_vpd vpd; /* Vital product data */ member in struct:pcicfg
|
/freebsd-9.3-release/sys/dev/cxgb/common/ |
H A D | cxgb_t3_hw.c | 252 u32 clkdiv = adap->params.vpd.cclk / (2 * adap->params.vpd.mdc) - 1; 736 * get_desc_len - get the length of a vpd descriptor. 738 * @offset: first byte offset of the vpd descriptor 774 * is_end_tag - Check if a vpd tag is the end tag. 800 * t3_get_vpd_len - computes the length of a vpd structure 802 * @vpd: contains the offset of first byte of vpd 804 * Computes the lentgh of the vpd structure starting at vpd 807 t3_get_vpd_len(adapter_t * adapter, struct generic_vpd *vpd) argument 839 t3_read_vpd(adapter_t *adapter, struct generic_vpd *vpd) argument 864 struct t3_vpd vpd; local 4142 const struct vpd_params *vpd = &adapter->params.vpd; local [all...] |
H A D | cxgb_common.h | 390 struct vpd_params vpd; member in struct:adapter_params 656 return adap->params.vpd.cclk / 1000; 710 int t3_get_vpd_len(adapter_t *adapter, struct generic_vpd *vpd); 711 int t3_read_vpd(adapter_t *adapter, struct generic_vpd *vpd);
|
H A D | cxgb_xgmac.c | 77 t3_write_reg(adap, ctrl, adap->params.vpd.xauicfg[macidx(mac)] | 469 unsigned port_type = adap->params.vpd.port_type[macidx(mac)]; 534 thres = (adap->params.vpd.cclk * 1000) / 15625;
|
/freebsd-9.3-release/tools/tools/ath/athprom/ |
H A D | athprom.c | 449 printVpd(FILE *fd, int vpd) argument 451 fprintf(fd, "[%3d]", vpd); 747 int vpd = atoi(var+6); local 748 if (vpd < pRaw->pDataPerChannel[curchan].pDataPerPDGain[curpdgain].numVpd) 750 pDataPerPDGain[curpdgain].pwr_t4[vpd]); 757 int vpd = atoi(var+3); local 758 if (vpd < pRaw->pDataPerChannel[curchan].pDataPerPDGain[curpdgain].numVpd) 760 pDataPerPDGain[curpdgain].Vpd[vpd]);
|
/freebsd-9.3-release/sys/xen/interface/ |
H A D | arch-ia64.h | 206 struct vpd { struct 212 typedef struct vpd vpd_t;
|
/freebsd-9.3-release/sys/dev/aic7xxx/ |
H A D | aic79xx_pci.c | 542 struct vpd_config vpd; local 562 + (sizeof(vpd) * (ahd->channel - 'A'))) / 2; 564 error = ahd_read_seeprom(ahd, (uint16_t *)&vpd, 565 start_addr, sizeof(vpd)/2, 568 error = ahd_parse_vpddata(ahd, &vpd);
|
H A D | aic79xx.h | 990 int ahd_verify_vpd_cksum(struct vpd_config *vpd); 1415 struct vpd_config *vpd);
|
H A D | aic79xx.c | 7082 ahd_parse_vpddata(struct ahd_softc *ahd, struct vpd_config *vpd) argument 7086 error = ahd_verify_vpd_cksum(vpd); 7089 if ((vpd->bios_flags & VPDBOOTHOST) != 0) 9724 ahd_verify_vpd_cksum(struct vpd_config *vpd) argument 9731 vpdarray = (uint8_t *)vpd; 9737 || (-checksum & 0xFF) != vpd->vpd_checksum) 9746 || (-checksum & 0xFF) != vpd->checksum)
|
/freebsd-9.3-release/sys/amd64/conf/ |
H A D | NOTES | 490 # vpd: Vital Product Data kernel interface 506 device vpd
|
/freebsd-9.3-release/sys/dev/cxgbe/common/ |
H A D | t4_hw.c | 627 * @v: Pointer to buffered vpd data structure 670 u8 vpd[VPD_LEN], csum; local 677 ret = t4_seeprom_read(adapter, VPD_BASE, (u32 *)(vpd)); 678 addr = *vpd == CHELSIO_VPD_UNIQUE_ID ? VPD_BASE : VPD_BASE_OLD; 680 for (i = 0; i < sizeof(vpd); i += 4) { 681 ret = t4_seeprom_read(adapter, addr + i, (u32 *)(vpd + i)); 685 v = (const struct t4_vpd_hdr *)vpd; 697 csum += vpd[i]; 711 memcpy(p->ec, vpd + ec, EC_LEN); 713 i = vpd[s [all...] |
H A D | common.h | 256 struct vpd_params vpd; member in struct:adapter_params 374 return adap->params.vpd.cclk / 1000; 380 return (us * adap->params.vpd.cclk) / 1000;
|
/freebsd-9.3-release/sys/i386/conf/ |
H A D | NOTES | 822 # vpd: Vital Product Data kernel interface 857 device vpd
|
/freebsd-9.3-release/sys/dev/sfxge/common/ |
H A D | siena_impl.h | 150 __in boolean_t vpd,
|
H A D | siena_nvram.c | 458 __in boolean_t vpd, 518 * the whole of VPD (there is no vpd length in this structure, 521 region = vpd ? vpd_offset + vpd_length : hdr_length; 455 siena_nvram_get_dynamic_cfg( __in efx_nic_t *enp, __in unsigned int partn, __in boolean_t vpd, __out siena_mc_dynamic_config_hdr_t **dcfgp, __out size_t *sizep) argument
|
/freebsd-9.3-release/sys/boot/powerpc/boot1.chrp/ |
H A D | boot1.c | 123 ofw_init(void *vpd, int res, int (*openfirm)(void *), char *arg, int argl) argument
|
/freebsd-9.3-release/sys/dev/cxgb/ |
H A D | cxgb_main.c | 664 sc->params.vpd.ec, sc->params.vpd.sn); 668 sc->params.vpd.port_type[0], sc->params.vpd.port_type[1], 669 sc->params.vpd.port_type[2], sc->params.vpd.port_type[3]);
|