Subject: Re: Powerbook G4 Titanium
To: None <martin@hein.dk>
From: HEO SeonMeyong <seirios@matrix.iri.co.jp>
List: port-macppc
Date: 03/30/2001 17:49:59
----Next_Part(Fri_Mar_30_17:49:59_2001_892)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

	Hi. This is HEO SeonMeyong wwriting.

	I'm now using Ti and I using keyboard and Touch PAD.

	Attach following patch and remade kernel.

# This patch affects bad effects for Desktops and some.
# So do not attach this patch without pismo and Ti.

HEO

----Next_Part(Fri_Mar_30_17:49:59_2001_892)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename=ADB-patch

Index: sys/arch/macppc/dev/adb_direct.c
*** adb_direct.c	Tue Dec 19 11:50:11 2000
--- adb_direct.c	Fri Mar  9 00:44:30 2001
***************
*** 1300,1306 ****
--- 1300,1310 ----
  	 */
  
  	/* initial scan through the devices */
+ #ifdef ADB_NO_EXTERNAL_BUS
+ 	for (i = 1; i < 4; i++) {
+ #else
  	for (i = 1; i < 16; i++) {
+ #endif
  		send_string[0] = 0;
  		command = ADBTALK(i, 3);
  		result = adb_op_sync((Ptr)send_string, (Ptr)0,
***************
*** 1343,1348 ****
--- 1347,1353 ----
  	}
  #endif
  
+ #ifndef ADB_NO_EXTERNAL_BUS
  	nonewtimes = 0;		/* no loops w/o new devices */
  	while (saveptr > 0 && nonewtimes++ < 11) {
  		for (i = 1; i <= ADBNumDevices; i++) {
***************
*** 1454,1459 ****
--- 1459,1465 ----
  			}
  		}
  	}
+ #endif /* ADB_NO_EXTBUS */
  
  #ifdef ADB_DEBUG
  	if (adb_debug) {
Index: sys/arch/macppc/dev/pm_direct.c
*** pm_direct.c	Thu Mar  1 03:49:29 2001
--- pm_direct.c	Fri Mar  9 00:41:18 2001
***************
*** 1043,1048 ****
--- 1043,1054 ----
  	adbWaiting = 1;
  	adbWaitingCmd = command;
  
+ 	/* XXX XXX XXX */
+ 	if (read_via_reg(VIA1, vIFR) & 0x04) {
+ 		void delay(unsigned);
+ 		delay(150000);
+ 	}
+ 
  	PM_VIA_INTR_ENABLE();
  
  	/* wait until the PM interrupt is occured */

----Next_Part(Fri_Mar_30_17:49:59_2001_892)----