summaryrefslogtreecommitdiff
path: root/include/linux/nvram.h
blob: 9189829c131c3051a0b3087b1d1596dcfa292954 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef _LINUX_NVRAM_H
#define _LINUX_NVRAM_H

#include <linux/ioctl.h>

/* /dev/nvram ioctls */
#define NVRAM_INIT	_IO('p', 0x40) /* initialize NVRAM and set checksum */
#define NVRAM_SETCKS	_IO('p', 0x41) /* recalculate checksum */

/* for all current systems, this is where NVRAM starts */
#define NVRAM_FIRST_BYTE    14
/* all these functions expect an NVRAM offset, not an absolute */
#define NVRAM_OFFSET(x)   ((x)-NVRAM_FIRST_BYTE)

#ifdef __KERNEL__
/* __foo is foo without grabbing the rtc_lock - get it yourself */
extern unsigned char __nvram_read_byte(int i);
extern unsigned char nvram_read_byte(int i);
extern void __nvram_write_byte(unsigned char c, int i);
extern void nvram_write_byte(unsigned char c, int i);
extern int __nvram_check_checksum(void);
extern int nvram_check_checksum(void);
#endif

#endif  /* _LINUX_NVRAM_H */
pingMarco Chiappero 2021-12-24crypto: qat - store the ring-to-service mappingMarco Chiappero 2021-11-26crypto: qat - do not rely on min versionMarco Chiappero 2021-11-26crypto: qat - pass the PF2VF responses back to the callersMarco Chiappero 2021-11-26crypto: qat - reorganize PFVF codeMarco Chiappero 2021-11-26crypto: qat - add pfvf_opsMarco Chiappero 2021-11-26crypto: qat - relocate PFVF VF related logicMarco Chiappero 2021-08-21crypto: qat - flush vf workqueue at driver removalAhsan Atta 2021-08-21crypto: qat - remove the unnecessary get_vintmsk_offset()Marco Chiappero 2021-08-21crypto: qat - fix naming of PF/VF enable functionsMarco Chiappero 2021-08-21crypto: qat - fix naming for init/shutdown VF to PF notificationsMarco Chiappero 2021-08-21crypto: qat - rename compatibility version definitionMarco Chiappero 2021-08-21crypto: qat - set DMA mask to 48 bits for Gen2Giovanni Cabiddu 2021-08-21crypto: qat - simplify code and axe the use of a deprecated APIChristophe JAILLET 2021-03-26crypto: qat - ADF_STATUS_PF_RUNNING should be set after adf_dev_initTong Zhang 2020-10-30crypto: qat - split transport CSR access logicGiovanni Cabiddu 2020-10-30crypto: qat - num_rings_per_bank is device dependentAhsan Atta 2020-10-30crypto: qat - mask device capabilities with soft strapsGiovanni Cabiddu 2020-09-18crypto: qat - use PCI_VDEVICEGiovanni Cabiddu 2020-09-18crypto: qat - replace device ids definesGiovanni Cabiddu 2020-09-11crypto: qat - include domain in top level debugfs pathGiovanni Cabiddu 2020-06-18crypto: qat - convert to SPDX License IdentifiersGiovanni Cabiddu