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

12

/freebsd-9.3-release/sys/modules/bios/
H A DMakefile4 SUBDIR= smapi smbios vpd
/freebsd-9.3-release/sys/modules/bios/vpd/
H A DMakefile6 KMOD= vpd
7 SRCS= vpd.c \
/freebsd-9.3-release/sys/boot/powerpc/ofw/
H A Dstart.c71 startup(void *vpd, int res, int (*openfirm)(void *), char *arg, int argl) argument
/freebsd-9.3-release/sys/x86/bios/
H A Dvpd.c57 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 Dpciconf.c74 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 DMakefile31 vpd.4 \
/freebsd-9.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.c751 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 Dpcivar.h164 struct pcicfg_vpd vpd; /* Vital product data */ member in struct:pcicfg
/freebsd-9.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
4142 const struct vpd_params *vpd = &adapter->params.vpd; local
[all...]
H A Dcxgb_common.h390 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 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-9.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-9.3-release/sys/xen/interface/
H A Darch-ia64.h206 struct vpd { struct
212 typedef struct vpd vpd_t;
/freebsd-9.3-release/sys/dev/aic7xxx/
H A Daic79xx_pci.c542 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 Daic79xx.h990 int ahd_verify_vpd_cksum(struct vpd_config *vpd);
1415 struct vpd_config *vpd);
H A Daic79xx.c7082 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 DNOTES490 # vpd: Vital Product Data kernel interface
506 device vpd
/freebsd-9.3-release/sys/dev/cxgbe/common/
H A Dt4_hw.c627 * @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 Dcommon.h256 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 DNOTES822 # vpd: Vital Product Data kernel interface
857 device vpd
/freebsd-9.3-release/sys/dev/sfxge/common/
H A Dsiena_impl.h150 __in boolean_t vpd,
H A Dsiena_nvram.c458 __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 Dboot1.c123 ofw_init(void *vpd, int res, int (*openfirm)(void *), char *arg, int argl) argument
/freebsd-9.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 325 milliseconds

12