patch-2.1.97 linux/include/asm-ppc/mediabay.h

Next file: linux/include/asm-ppc/mmu.h
Previous file: linux/include/asm-ppc/mbx.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.96/linux/include/asm-ppc/mediabay.h linux/include/asm-ppc/mediabay.h
@@ -0,0 +1,33 @@
+/*
+ * mediabay.h: definitions for using the media bay
+ * on PowerBook 3400 and similar computers.
+ *
+ * Copyright (C) 1997 Paul Mackerras.
+ */
+#ifndef _PPC_MEDIABAY_H
+#define _PPC_MEDIABAY_H
+
+#define MB_FD	0		/* media bay contains floppy drive */
+#define MB_CD	3		/* media bay contains ATA drive such as CD */
+#define MB_NO	7		/* media bay contains nothing */
+
+#ifdef __KERNEL__
+
+void media_bay_init(void);
+int check_media_bay(int what);
+int media_bay_task(void *);
+
+extern int media_bay_present;	/* 1 if this machine has a media bay */
+
+/*
+ * The following give information about the IDE interface
+ * of the media bay: the base virtual address and IRQ number,
+ * and the index that the IDE driver has assigned to it
+ * (or -1 if it is not currently registered with the driver).
+ */
+extern unsigned long mb_cd_base;
+extern int mb_cd_irq;
+extern int mb_cd_index;
+
+#endif /* __KERNEL__ */
+#endif /* _PPC_MEDIABAY_H */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov