MCPcopy Create free account
hub / github.com/F-Stack/f-stack / idma_cap_write

Function idma_cap_write

freebsd/arm/mv/mv_common.c:1854–1863  ·  view source on GitHub ↗

* Sets channel protection 'val' for window 'w' on channel 'c' */

Source from the content-addressed store, hash-verified

1852 * Sets channel protection 'val' for window 'w' on channel 'c'
1853 */
1854static void
1855idma_cap_write(u_long base, int c, int w, int val)
1856{
1857 uint32_t v;
1858
1859 v = win_idma_cap_read(base, c);
1860 v &= ~(0x3 << (w * 2));
1861 v |= (val << (w * 2));
1862 win_idma_cap_write(base, c, v);
1863}
1864
1865/*
1866 * Set protection 'val' on all channels for window 'w'

Callers 1

idma_set_protFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected