Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/jedec_ts/jedec_ts.c
Show First 20 Lines • Show All 241 Lines • ▼ Show 20 Lines | ts_attach(device_t dev) | ||||
struct sysctl_oid_list *tree; | struct sysctl_oid_list *tree; | ||||
ctx = device_get_sysctl_ctx(dev); | ctx = device_get_sysctl_ctx(dev); | ||||
tree = SYSCTL_CHILDREN(device_get_sysctl_tree(dev)); | tree = SYSCTL_CHILDREN(device_get_sysctl_tree(dev)); | ||||
SYSCTL_ADD_PROC(ctx, tree, OID_AUTO, "temp", | SYSCTL_ADD_PROC(ctx, tree, OID_AUTO, "temp", | ||||
CTLTYPE_INT | CTLFLAG_RD | CTLFLAG_MPSAFE, dev, 0, | CTLTYPE_INT | CTLFLAG_RD | CTLFLAG_MPSAFE, dev, 0, | ||||
ts_temp_sysctl, "IK4", "Current temperature"); | ts_temp_sysctl, "IK4", "Current temperature"); | ||||
gone_in_dev(dev, 12, | |||||
"jedec_ts(4) driver; see COMPATIBILITY section of jedec_dimm(4)"); | |||||
return (0); | return (0); | ||||
} | } | ||||
static int | static int | ||||
ts_detach(device_t dev) | ts_detach(device_t dev) | ||||
{ | { | ||||
return (0); | return (0); | ||||
} | } | ||||
Show All 23 Lines |