more low-hanging fruits - kernel, fs, lib signedness
[pv_ops_mirror.git] / include / asm-arm / arch-omap / menelaus.h
blob82d276a6bd95b6f8f867ec22fe6b463a5fb32045
1 /*
2 * linux/include/asm-arm/arch-omap/menelaus.h
4 * Functions to access Menelaus power management chip
5 */
7 #ifndef __ASM_ARCH_MENELAUS_H
8 #define __ASM_ARCH_MENELAUS_H
10 extern int menelaus_register_mmc_callback(void (*callback)(void *data, u8 card_mask),
11 void *data);
12 extern void menelaus_unregister_mmc_callback(void);
13 extern int menelaus_set_mmc_opendrain(int slot, int enable);
14 extern int menelaus_set_mmc_slot(int slot, int enable, int power, int cd_on);
16 extern int menelaus_set_vmem(unsigned int mV);
17 extern int menelaus_set_vio(unsigned int mV);
18 extern int menelaus_set_vmmc(unsigned int mV);
19 extern int menelaus_set_vaux(unsigned int mV);
20 extern int menelaus_set_vdcdc(int dcdc, unsigned int mV);
21 extern int menelaus_set_slot_sel(int enable);
22 extern int menelaus_get_slot_pin_states(void);
24 #if defined(CONFIG_ARCH_OMAP24XX) && defined(CONFIG_MENELAUS)
25 #define omap_has_menelaus() 1
26 #else
27 #define omap_has_menelaus() 0
28 #endif
30 #endif