Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0+ */
0002 /*
0003  * Compaq Hot Plug Controller Driver
0004  *
0005  * Copyright (C) 1995,2001 Compaq Computer Corporation
0006  * Copyright (C) 2001 Greg Kroah-Hartman (greg@kroah.com)
0007  *
0008  * All rights reserved.
0009  *
0010  * Send feedback to <greg@kroah.com>
0011  *
0012  */
0013 
0014 #ifndef _CPQPHP_NVRAM_H
0015 #define _CPQPHP_NVRAM_H
0016 
0017 #ifndef CONFIG_HOTPLUG_PCI_COMPAQ_NVRAM
0018 
0019 static inline void compaq_nvram_init(void __iomem *rom_start) { }
0020 
0021 static inline int compaq_nvram_load(void __iomem *rom_start, struct controller *ctrl)
0022 {
0023     return 0;
0024 }
0025 
0026 static inline int compaq_nvram_store(void __iomem *rom_start)
0027 {
0028     return 0;
0029 }
0030 
0031 #else
0032 
0033 void compaq_nvram_init(void __iomem *rom_start);
0034 int compaq_nvram_load(void __iomem *rom_start, struct controller *ctrl);
0035 int compaq_nvram_store(void __iomem *rom_start);
0036 
0037 #endif
0038 
0039 #endif
0040