17
17
#define MB_POWER 6 /* media bay contains a Power device (???) */
18
18
#define MB_NO 7 /* media bay contains nothing */
20
/* Number of bays in the machine or 0 */
21
extern int media_bay_count;
23
#ifdef CONFIG_BLK_DEV_IDE_PMAC
24
#include <linux/ide.h>
26
int check_media_bay_by_base(unsigned long base, int what);
27
/* called by IDE PMAC host driver to register IDE controller for media bay */
28
int media_bay_set_ide_infos(struct device_node *which_bay, unsigned long base,
29
int irq, ide_hwif_t *hwif);
31
int check_media_bay(struct device_node *which_bay, int what);
22
#ifdef CONFIG_PMAC_MEDIABAY
24
/* Check the content type of the bay, returns MB_NO if the bay is still
27
extern int check_media_bay(struct macio_dev *bay);
29
/* The ATA driver uses the calls below to temporarily hold on the
30
* media bay callbacks while initializing the interface
32
extern void lock_media_bay(struct macio_dev *bay);
33
extern void unlock_media_bay(struct macio_dev *bay);
35
static inline int check_media_bay(struct device_node *which_bay, int what)
37
static inline int check_media_bay(struct macio_dev *bay)
42
static inline void lock_media_bay(struct macio_dev *bay) { }
43
static inline void unlock_media_bay(struct macio_dev *bay) { }
42
47
#endif /* __KERNEL__ */