Lines Matching defs:vpd
57 struct vpd {
76 struct vpd * vpd;
93 #define RES2VPD(res) ((struct vpd *)rman_get_virtual(res))
94 #define ADDR2VPD(addr) ((struct vpd *)BIOS_PADDRTOVADDR(addr))
102 static int vpd_cksum (struct vpd *);
104 static SYSCTL_NODE(_hw, OID_AUTO, vpd, CTLFLAG_RD | CTLFLAG_MPSAFE, NULL,
144 child = BUS_ADD_CHILD(parent, 5, "vpd", DEVICE_UNIT_ANY);
197 sc->vpd = RES2VPD(sc->res);
200 snprintf(sc->MachineType, 5, "%.4s", sc->vpd->MachType);
201 snprintf(sc->MachineModel, 4, "%.3s", sc->vpd->MachType+4);
202 snprintf(sc->BuildID, 10, "%.9s", sc->vpd->BuildID);
203 snprintf(sc->BoxSerial, 8, "%.7s", sc->vpd->BoxSerial);
204 snprintf(sc->PlanarSerial, 12, "%.11s", sc->vpd->PlanarSerial);
261 devclass_get_devices(devclass_find("vpd"), &devs, &count);
283 "vpd",
288 DRIVER_MODULE(vpd, nexus, vpd_driver, vpd_modevent, 0);
289 MODULE_VERSION(vpd, 1);
296 vpd_cksum (struct vpd *v)
304 for (i = offsetof(struct vpd, BuildID); i < v->Length ; i++)