patch-2.3.11 linux/arch/i386/kernel/mca.c
Next file: linux/arch/i386/kernel/process.c
Previous file: linux/arch/i386/kernel/ldt.c
Back to the patch index
Back to the overall index
- Lines: 35
- Date:
Mon Jul 19 12:32:54 1999
- Orig file:
v2.3.10/linux/arch/i386/kernel/mca.c
- Orig date:
Wed Jun 30 13:38:18 1999
diff -u --recursive --new-file v2.3.10/linux/arch/i386/kernel/mca.c linux/arch/i386/kernel/mca.c
@@ -210,6 +210,18 @@
/*--------------------------------------------------------------------*/
+struct resource mca_standard_resources[] = {
+ { "system control port B (MCA)", 0x60, 0x60 },
+ { "arbitration (MCA)", 0x90, 0x90 },
+ { "card Select Feedback (MCA)", 0x91, 0x91 },
+ { "system Control port A (MCA)", 0x92, 0x92 },
+ { "system board setup (MCA)", 0x94, 0x94 },
+ { "POS (MCA)", 0x96, 0x97 },
+ { "POS (MCA)", 0x100, 0x107 }
+};
+
+#define MCA_STANDARD_RESOURCES (sizeof(mca_standard_resources)/sizeof(struct resource))
+
__initfunc(void mca_init(void))
{
unsigned int i, j;
@@ -319,13 +331,8 @@
restore_flags(flags);
- request_region(0x60,0x01,"system control port B (MCA)");
- request_region(0x90,0x01,"arbitration (MCA)");
- request_region(0x91,0x01,"card Select Feedback (MCA)");
- request_region(0x92,0x01,"system Control port A (MCA)");
- request_region(0x94,0x01,"system board setup (MCA)");
- request_region(0x96,0x02,"POS (MCA)");
- request_region(0x100,0x08,"POS (MCA)");
+ for (i = 0; i < MCA_STANDARD_RESOURCES; i++)
+ request_resource(&ioport_resource, mca_standard_resources + i);
#ifdef CONFIG_PROC_FS
mca_do_proc_init();
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)