Debian Codegraph @

drivers/dahdi/wcxb_flash.h

raw
1 /*
2 * wcxb SPI library
3 *
4 * Copyright (C) 2013 Digium, Inc.
5 *
6 * All rights reserved.
7 *
8 */
9
10 /*
11 * See http://www.asterisk.org for more information about
12 * the Asterisk project. Please do not directly contact
13 * any of the maintainers of this project for assistance;
14 * the project provides a web site, mailing lists and IRC
15 * channels for your use.
16 *
17 * This program is free software, distributed under the terms of
18 * the GNU General Public License Version 2 as published by the
19 * Free Software Foundation. See the LICENSE file included with
20 * this program for more details.
21 */
22
23 #ifndef __WCXB_FLASH_H__
24 #define __WCXB_FLASH_H__
25
26 extern int wcxb_flash_read(struct wcxb_spi_device *spi, unsigned int address,
27 void *data, size_t len);
28
29 extern int wcxb_flash_sector_erase(struct wcxb_spi_device *spi, unsigned int
30 address);
31 extern int wcxb_flash_write(struct wcxb_spi_device *spi, unsigned int address,
32 const void *data, size_t len);
33
34 #endif