[Glibc-bsd-commits] r3692 - trunk/kfreebsd-9/debian/patches

Robert Millan rmh at alioth.debian.org
Fri Aug 26 15:36:18 UTC 2011


Author: rmh
Date: 2011-08-26 15:36:17 +0000 (Fri, 26 Aug 2011)
New Revision: 3692

Modified:
   trunk/kfreebsd-9/debian/patches/006_mips_i8259_alloc.diff
Log:
006_mips_i8259_alloc.diff: Extend to register I/O ports for keyboard and RTC.

Modified: trunk/kfreebsd-9/debian/patches/006_mips_i8259_alloc.diff
===================================================================
--- trunk/kfreebsd-9/debian/patches/006_mips_i8259_alloc.diff	2011-08-21 10:49:03 UTC (rev 3691)
+++ trunk/kfreebsd-9/debian/patches/006_mips_i8259_alloc.diff	2011-08-26 15:36:17 UTC (rev 3692)
@@ -8,7 +8,7 @@
  
  #include <mips/malta/maltareg.h>
  
-@@ -401,7 +402,26 @@
+@@ -401,7 +402,38 @@
  	}
  
  	/* Initialize memory and i/o rmans. */
@@ -31,6 +31,18 @@
 +		res = bus_alloc_resource(child, SYS_RES_IOPORT, &rid, IO_TIMER1, IO_TIMER1 + IO_TIMERSIZE, IO_TIMERSIZE, RF_ACTIVE);
 +		if (res == NULL)
 +			device_printf(child, "cannot allocate registers for i8254 controllers\n");
++
++		res = bus_alloc_resource(child, SYS_RES_IOPORT, &rid, MALTA_SMSC_KYBD_ADR, MALTA_SMSC_KYBD_ADR + 1, 1, RF_ACTIVE);
++		if (res == NULL)
++			device_printf(child, "cannot allocate registers for keyboard controller\n");
++
++		res = bus_alloc_resource(child, SYS_RES_IOPORT, &rid, MALTA_SMSC_KYBD_ADR + 4, MALTA_SMSC_KYBD_ADR + 4 + 1, 1, RF_ACTIVE);
++		if (res == NULL)
++			device_printf(child, "cannot allocate registers for keyboard controller\n");
++
++		res = bus_alloc_resource(child, SYS_RES_IOPORT, &rid, MALTA_RTCADR, MALTA_RTCADR + 2, 2, RF_ACTIVE);
++		if (res == NULL)
++			device_printf(child, "cannot allocate registers for RTC controller\n");
 +	}
 +
  	return (bus_generic_attach(dev));




More information about the Glibc-bsd-commits mailing list