blob: ee59ffe9992253ff20ee576b72c5a980ee54c20d [file] [log] [blame]
Waldemar Brodkorb121915c2010-06-08 19:06:01 +02001/*
2 * Copyright (C) 2005, Broadcom Corporation
3 * Copyright (C) 2006, Felix Fietkau <nbd@openwrt.org>
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the
7 * Free Software Foundation; either version 2 of the License, or (at your
8 * option) any later version.
9 */
10
Hauke Mehrtens111bd982012-12-26 19:51:14 +000011#ifndef __BCM47XX_NVRAM_H
12#define __BCM47XX_NVRAM_H
Waldemar Brodkorb121915c2010-06-08 19:06:01 +020013
14#include <linux/types.h>
Hauke Mehrtens59833fc2010-11-27 17:46:00 +010015#include <linux/kernel.h>
Waldemar Brodkorb121915c2010-06-08 19:06:01 +020016
Rafał Miłecki21400f22014-09-03 22:59:45 +020017int bcm47xx_nvram_init_from_mem(u32 base, u32 lim);
Rafał Miłecki341097f2014-10-30 12:50:03 +010018int bcm47xx_nvram_getenv(const char *name, char *val, size_t val_len);
Hauke Mehrtens62cf3bc2013-09-18 13:31:15 +020019int bcm47xx_nvram_gpio_pin(const char *name);
20
Hauke Mehrtens111bd982012-12-26 19:51:14 +000021#endif /* __BCM47XX_NVRAM_H */