patch-2.1.126 linux/include/linux/mca.h
Next file: linux/include/linux/mm.h
Previous file: linux/include/linux/major.h
Back to the patch index
Back to the overall index
- Lines: 36
- Date:
Sat Oct 17 15:34:26 1998
- Orig file:
v2.1.125/linux/include/linux/mca.h
- Orig date:
Thu Dec 12 06:54:20 1996
diff -u --recursive --new-file v2.1.125/linux/include/linux/mca.h linux/include/linux/mca.h
@@ -27,7 +27,7 @@
See Documentation/mca.txt or one of the existing drivers for
more information.
*/
-#define MCA_NOTFOUND -1
+#define MCA_NOTFOUND (-1)
#define MCA_INTEGSCSI (MCA_MAX_SLOT_NR)
#define MCA_INTEGVIDEO (MCA_MAX_SLOT_NR+1)
@@ -40,11 +40,16 @@
devices. Returns MCA_NOTFOUND if id not found. Also checks the
integrated adapters. */
extern int mca_find_adapter( int id, int start );
+extern int mca_find_unused_adapter( int id, int start );
/* adapter state info - returns 0 if no */
extern int mca_isadapter( int slot );
extern int mca_isenabled( int slot );
+extern int mca_is_adapter_used( int slot );
+extern int mca_mark_as_used( int slot );
+extern void mca_mark_as_unused( int slot );
+
/* gets a byte out of POS register (stored in memory) */
extern unsigned char mca_read_stored_pos( int slot, int reg );
@@ -87,5 +92,9 @@
/* write a byte to the specified POS register. */
extern void mca_write_pos( int slot, int reg, unsigned char byte );
+
+/* Should only be called by the NMI interrupt handler, this will do some
+fancy stuff to figure out what might have generated a NMI. */
+extern void mca_handle_nmi( void );
#endif /* _LINUX_MCA_H */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov