Searched refs:vpd (Results 1 - 25 of 29) sorted by relevance

12

/freebsd-10.3-release/sys/modules/bios/
H A DMakefile4 SUBDIR= smapi smbios vpd
/freebsd-10.3-release/sys/modules/bios/vpd/
H A DMakefile1 # $FreeBSD: releng/10.3/sys/modules/bios/vpd/Makefile 204309 2010-02-25 14:13:39Z attilio $
6 KMOD= vpd
7 SRCS= vpd.c \
/freebsd-10.3-release/sys/boot/powerpc/ofw/
H A Dstart.c71 startup(void *vpd, int res, int (*openfirm)(void *), char *arg, int argl) argument
/freebsd-10.3-release/sys/x86/bios/
H A Dvpd.c28 __FBSDID("$FreeBSD: releng/10.3/sys/x86/bios/vpd.c 227309 2011-11-07 15:43:11Z ed $");
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
[all...]
/freebsd-10.3-release/share/man/man4/man4.i386/
H A DMakefile31 vpd.4 \
/freebsd-10.3-release/usr.sbin/pciconf/
H A Dpciconf.c76 int caps, int errors, int vpd);
104 int bars, bridge, caps, errors, verbose, vpd; local
108 bars = bridge = caps = errors = verbose = vpd = byte = isshort = 0;
154 vpd = 1;
170 bars, bridge, caps, errors, vpd);
188 int errors, int vpd)
264 if (vpd)
546 struct pci_vpd_element *vpd, *end; local
560 vpd = list.plvi_data;
561 end = (struct pci_vpd_element *)((char *)vpd
187 list_devs(const char *name, int verbose, int bars, int bridge, int caps, int errors, int vpd) argument
[all...]
/freebsd-10.3-release/sys/dev/sfxge/
H A Dsfxge_ioc.h104 } vpd; member in union:sfxge_ioc_s::__anon10343
H A Dsfxge.c318 switch (ioc->u.vpd.op) {
320 value.evv_tag = ioc->u.vpd.tag;
321 value.evv_keyword = ioc->u.vpd.keyword;
325 ioc->u.vpd.len = MIN(ioc->u.vpd.len, value.evv_length);
326 if (ioc->u.vpd.payload != 0) {
327 rc = copyout(value.evv_value, ioc->u.vpd.payload,
328 ioc->u.vpd.len);
332 if (ioc->u.vpd.len > sizeof(value.evv_value))
334 value.evv_tag = ioc->u.vpd
[all...]
/freebsd-10.3-release/sys/xen/interface/arch-ia64/hvm/
H A Dsave.h61 struct vpd vpd; member in struct:hvm_hw_ia64_vpd
74 uint64_t vhpi; // ??? should this be saved in vpd
/freebsd-10.3-release/sys/dev/pci/
H A Dpci_user.c413 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 Dpci.c780 cfg->vpd.vpd_reg = ptr;
851 WREG(cfg->vpd.vpd_reg + PCIR_VPD_ADDR, reg, 2);
853 while ((REG(cfg->vpd.vpd_reg + PCIR_VPD_ADDR, 2) & 0x8000) != 0x8000) {
858 *data = (REG(cfg->vpd.vpd_reg + PCIR_VPD_DATA, 4));
871 WREG(cfg->vpd.vpd_reg + PCIR_VPD_DATA, data, 4);
872 WREG(cfg->vpd.vpd_reg + PCIR_VPD_ADDR, reg | 0x8000, 2);
873 while ((REG(cfg->vpd.vpd_reg + PCIR_VPD_ADDR, 2) & 0x8000) == 0x8000) {
932 /* init vpd reader */
950 printf("vpd: val: %#x, off: %d, bytesinval: %d, byte: %#hhx, " \
980 cfg->vpd
[all...]
H A Dpcivar.h183 struct pcicfg_vpd vpd; /* Vital product data */ member in struct:pcicfg
/freebsd-10.3-release/sys/dev/cxgb/common/
H A Dcxgb_t3_hw.c252 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
4149 const struct vpd_params *vpd = &adapter->params.vpd; local
[all...]
H A Dcxgb_common.h390 struct vpd_params vpd; member in struct:adapter_params
663 return adap->params.vpd.cclk / 1000;
717 int t3_get_vpd_len(adapter_t *adapter, struct generic_vpd *vpd);
718 int t3_read_vpd(adapter_t *adapter, struct generic_vpd *vpd);
H A Dcxgb_xgmac.c77 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-10.3-release/tools/tools/ath/athprom/
H A Dathprom.c449 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-10.3-release/sys/xen/interface/
H A Darch-ia64.h216 struct vpd { struct
222 typedef struct vpd vpd_t;
/freebsd-10.3-release/sys/dev/aic7xxx/
H A Daic79xx_pci.c556 struct vpd_config vpd; local
576 + (sizeof(vpd) * (ahd->channel - 'A'))) / 2;
578 error = ahd_read_seeprom(ahd, (uint16_t *)&vpd,
579 start_addr, sizeof(vpd)/2,
582 error = ahd_parse_vpddata(ahd, &vpd);
H A Daic79xx.h990 int ahd_verify_vpd_cksum(struct vpd_config *vpd);
1415 struct vpd_config *vpd);
/freebsd-10.3-release/sys/dev/cxgbe/common/
H A Dt4_hw.c631 * @v: Pointer to buffered vpd data structure
674 u8 vpd[VPD_LEN], csum; local
681 ret = t4_seeprom_read(adapter, VPD_BASE, (u32 *)(vpd));
682 addr = *vpd == CHELSIO_VPD_UNIQUE_ID ? VPD_BASE : VPD_BASE_OLD;
684 for (i = 0; i < sizeof(vpd); i += 4) {
685 ret = t4_seeprom_read(adapter, addr + i, (u32 *)(vpd + i));
689 v = (const struct t4_vpd_hdr *)vpd;
701 csum += vpd[i];
715 memcpy(p->ec, vpd + ec, EC_LEN);
717 i = vpd[s
[all...]
H A Dcommon.h257 struct vpd_params vpd; member in struct:adapter_params
375 return adap->params.vpd.cclk / 1000;
381 return (us * adap->params.vpd.cclk) / 1000;
/freebsd-10.3-release/sys/dev/sfxge/common/
H A Dsiena_nvram.c305 __in boolean_t vpd,
365 * the whole of VPD (there is no vpd length in this structure,
368 region = vpd ? vpd_offset + vpd_length : hdr_length;
302 siena_nvram_get_dynamic_cfg( __in efx_nic_t *enp, __in uint32_t partn, __in boolean_t vpd, __out siena_mc_dynamic_config_hdr_t **dcfgp, __out size_t *sizep) argument
H A Dsiena_impl.h167 __in boolean_t vpd,
/freebsd-10.3-release/sys/boot/powerpc/boot1.chrp/
H A Dboot1.c121 ofw_init(void *vpd, int res, int (*openfirm)(void *), char *arg, int argl) argument
/freebsd-10.3-release/sys/dev/cxgb/
H A Dcxgb_main.c664 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]);

Completed in 422 milliseconds

12