Changeset View
Changeset View
Standalone View
Standalone View
sys/arm/broadcom/bcm2835/bcm2835_fbd.c
Show All 12 Lines | |||||
/* | /* | ||||
* Add system sysctl tree/handlers. | * Add system sysctl tree/handlers. | ||||
*/ | */ | ||||
ctx = device_get_sysctl_ctx(sc->dev); | ctx = device_get_sysctl_ctx(sc->dev); | ||||
tree_node = device_get_sysctl_tree(sc->dev); | tree_node = device_get_sysctl_tree(sc->dev); | ||||
tree = SYSCTL_CHILDREN(tree_node); | tree = SYSCTL_CHILDREN(tree_node); | ||||
SYSCTL_ADD_PROC(ctx, tree, OID_AUTO, "resync", | SYSCTL_ADD_PROC(ctx, tree, OID_AUTO, "resync", | ||||
CTLFLAG_RW | CTLTYPE_UINT, sc, sizeof(*sc), | CTLFLAG_RW | CTLTYPE_UINT | CTLFLAG_NEEDGIANT, sc, sizeof(*sc), | ||||
bcm_fb_resync_sysctl, "IU", "Set to resync framebuffer with VC"); | bcm_fb_resync_sysctl, "IU", "Set to resync framebuffer with VC"); | ||||
} | } | ||||
static int | static int | ||||
bcm_fb_probe(device_t dev) | bcm_fb_probe(device_t dev) | ||||
{ | { | ||||
if (ofw_bus_search_compatible(dev, compat_data)->ocd_data == 0) | if (ofw_bus_search_compatible(dev, compat_data)->ocd_data == 0) | ||||
Show All 12 Lines |