--- zzzz-none-000/linux-2.4.17/include/asm-ppc/machdep.h 2001-11-16 18:10:08.000000000 +0000 +++ sangam-fb-322/linux-2.4.17/include/asm-ppc/machdep.h 2004-11-24 13:21:50.000000000 +0000 @@ -1,5 +1,5 @@ /* - * BK Id: SCCS/s.machdep.h 1.25 11/13/01 21:26:07 paulus + * BK Id: SCCS/s.machdep.h 1.34 12/03/01 10:00:02 trini */ #ifdef __KERNEL__ #ifndef _PPC_MACHDEP_H @@ -16,6 +16,11 @@ struct pci_dev; struct seq_file; +/* We export this macro for external modules like Alsa to know if + * ppc_md.feature_call is implemented or not + */ +#define CONFIG_PPC_HAS_FEATURE_CALLS + struct machdep_calls { void (*setup_arch)(void); /* Optional, may be NULL. */ @@ -95,6 +100,12 @@ /* this is for modules, since _machine can be a define -- Cort */ int ppc_machine; + /* Motherboard/chipset features. This is a kind of general purpose + * hook used to control some machine specific features (like reset + * lines, chip power control, etc...). + */ + int (*feature_call)(unsigned int feature, ...); + #ifdef CONFIG_SMP /* functions for dealing with other cpus */ struct smp_ops_t *smp_ops;