* Set channel protection 'val' for window 'w' on channel 'c' */
| 2096 | * Set channel protection 'val' for window 'w' on channel 'c' |
| 2097 | */ |
| 2098 | static void |
| 2099 | xor_chan_write(u_long base, int c, int e, int w, int val) |
| 2100 | { |
| 2101 | uint32_t v; |
| 2102 | |
| 2103 | v = win_xor_ctrl_read(base, c, e); |
| 2104 | v &= ~(0x3 << (w * 2 + 16)); |
| 2105 | v |= (val << (w * 2 + 16)); |
| 2106 | win_xor_ctrl_write(base, c, e, v); |
| 2107 | } |
| 2108 | |
| 2109 | /* |
| 2110 | * Set protection 'val' on all channels for window 'w' on engine 'e' |