Gabe Black | a2f3a93 | 2012-12-02 04:55:18 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2012 The Chromium OS Authors. All rights reserved. |
| 3 | * Use of this source code is governed by a BSD-style license that can be |
| 4 | * found in the LICENSE file. |
| 5 | * |
| 6 | * Alternatively, this software may be distributed under the terms of the |
| 7 | * GNU General Public License ("GPL") version 2 as published by the Free |
| 8 | * Software Foundation. |
| 9 | */ |
| 10 | |
| 11 | /* |
| 12 | * These functions work like memset but operate on physical memory which may |
| 13 | * not be accessible directly. |
| 14 | * |
| 15 | * @param s The physical address to start setting memory at. |
| 16 | * @param c The character to set each byte of the region to. |
| 17 | * @param n The number of bytes to set. |
| 18 | * |
Heinrich Schuchardt | 47b4c02 | 2022-01-19 18:05:50 +0100 | [diff] [blame] | 19 | * Return: The physical address of the memory which was set. |
Gabe Black | a2f3a93 | 2012-12-02 04:55:18 +0000 | [diff] [blame] | 20 | */ |
| 21 | phys_addr_t arch_phys_memset(phys_addr_t s, int c, phys_size_t n); |