The Android Open Source Project | 8b23a6c | 2009-03-03 19:30:32 -0800 | [diff] [blame] | 1 | /* Copyright (C) 2007-2008 The Android Open Source Project |
| 2 | ** |
| 3 | ** This software is licensed under the terms of the GNU General Public |
| 4 | ** License version 2, as published by the Free Software Foundation, and |
| 5 | ** may be copied, distributed, and modified under those terms. |
| 6 | ** |
| 7 | ** This program is distributed in the hope that it will be useful, |
| 8 | ** but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 | ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 | ** GNU General Public License for more details. |
| 11 | */ |
| 12 | #ifndef NAND_DEVICE_H |
| 13 | #define NAND_DEVICE_H |
| 14 | |
| 15 | void nand_dev_init(uint32_t base); |
| 16 | void nand_add_dev(const char *arg); |
Vladimir Chtchetkine | e131686 | 2010-08-26 09:03:54 -0700 | [diff] [blame] | 17 | void parse_nand_limits(char* limits); |
The Android Open Source Project | 8b23a6c | 2009-03-03 19:30:32 -0800 | [diff] [blame] | 18 | |
| 19 | typedef struct { |
| 20 | uint64_t limit; |
| 21 | uint64_t counter; |
| 22 | int pid; |
| 23 | int signal; |
| 24 | } nand_threshold; |
| 25 | |
| 26 | extern nand_threshold android_nand_read_threshold; |
| 27 | extern nand_threshold android_nand_write_threshold; |
| 28 | |
| 29 | #endif |