Pārlūkot izejas kodu

First versions

tags/v0.9.3
Michael Brown 19 gadus atpakaļ
vecāks
revīzija
e74bbaeca0

+ 20
- 0
src/arch/i386/prefix/select_isapnp.c Parādīt failu

@@ -0,0 +1,20 @@
1
+#include "isapnp.h"
2
+#include "registers.h"
3
+
4
+/*
5
+ * Register a device as the default ISAPnP boot device.  This code is
6
+ * called by the ISAPnP ROM prefix.
7
+ *
8
+ * Do not move this code to drivers/bus/isapnp.c, because it is
9
+ * i386-specific, and don't merge it with select_pci.c, because that
10
+ * would cause linker symbol pollution.
11
+ *
12
+ */
13
+void i386_select_isapnp_device ( struct i386_all_regs *regs ) {
14
+	/*
15
+	 * PnP BIOS passes card select number in %bx and read port
16
+	 * address in %dx.
17
+	 *
18
+	 */
19
+	select_isapnp_device ( regs->dx, regs->bx );
20
+}

+ 19
- 0
src/arch/i386/prefix/select_pci.c Parādīt failu

@@ -0,0 +1,19 @@
1
+#include "pci.h"
2
+#include "registers.h"
3
+
4
+/*
5
+ * Register a device as the default PCI boot device.  This code is
6
+ * called by the PCI ROM prefix.
7
+ *
8
+ * Do not move this code to drivers/bus/pci.c, because it is
9
+ * i386-specific, and don't merge it with select_isapnp.c, because
10
+ * that would cause linker symbol pollution.
11
+ *
12
+ */
13
+void i386_select_pci_device ( struct i386_all_regs *regs ) {
14
+	/*
15
+	 * PCI BIOS passes busdevfn in %ax
16
+	 *
17
+	 */
18
+	select_pci_device ( regs->ax );
19
+}

Notiek ielāde…
Atcelt
Saglabāt