1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 /***************************************************************************
4 * Copyright (C) 2014 Angus Gratton *
6 ***************************************************************************/
19 * r6 = watchdog refresh value
20 * r7 = watchdog refresh register address
31 // Abort if it is NULL
36 // Continue waiting if it equals the write pointer
39 // Copy one word from buffer to target, and increment pointers
42 // If at end of buffer, wrap back to buffer start
48 // Update read pointer inside the buffer
50 // Deduce the word transferred from the byte count