1818#include <linux/mm.h>
1919#include <linux/delay.h>
2020#include <linux/init.h>
21- #include <linux/proc_fs.h>
2221
2322#include <asm/macintosh.h>
2423#include <asm/macints.h>
2524#include <asm/mac_iop.h>
26- #include <asm/mac_oss.h>
2725#include <asm/adb_iop.h>
2826
2927#include <linux/adb.h>
3028
31- /*#define DEBUG_ADB_IOP*/
32-
3329static struct adb_request * current_req ;
3430static struct adb_request * last_req ;
35- #if 0
36- static unsigned char reply_buff [16 ];
37- static unsigned char * reply_ptr ;
38- #endif
3931
4032static enum adb_iop_state {
4133 idle ,
@@ -104,22 +96,11 @@ static void adb_iop_listen(struct iop_msg *msg)
10496 struct adb_iopmsg * amsg = (struct adb_iopmsg * )msg -> message ;
10597 struct adb_request * req ;
10698 unsigned long flags ;
107- #ifdef DEBUG_ADB_IOP
108- int i ;
109- #endif
11099
111100 local_irq_save (flags );
112101
113102 req = current_req ;
114103
115- #ifdef DEBUG_ADB_IOP
116- printk ("adb_iop_listen %p: rcvd packet, %d bytes: %02X %02X" , req ,
117- (uint )amsg -> count + 2 , (uint )amsg -> flags , (uint )amsg -> cmd );
118- for (i = 0 ; i < amsg -> count ; i ++ )
119- printk (" %02X" , (uint )amsg -> data [i ]);
120- printk ("\n" );
121- #endif
122-
123104 /* Handle a timeout. Timeout packets seem to occur even after */
124105 /* we've gotten a valid reply to a TALK, so I'm assuming that */
125106 /* a "timeout" is actually more like an "end-of-data" signal. */
@@ -163,9 +144,6 @@ static void adb_iop_start(void)
163144 unsigned long flags ;
164145 struct adb_request * req ;
165146 struct adb_iopmsg amsg ;
166- #ifdef DEBUG_ADB_IOP
167- int i ;
168- #endif
169147
170148 /* get the packet to send */
171149 req = current_req ;
@@ -174,13 +152,6 @@ static void adb_iop_start(void)
174152
175153 local_irq_save (flags );
176154
177- #ifdef DEBUG_ADB_IOP
178- printk ("adb_iop_start %p: sending packet, %d bytes:" , req , req -> nbytes );
179- for (i = 0 ; i < req -> nbytes ; i ++ )
180- printk (" %02X" , (uint )req -> data [i ]);
181- printk ("\n" );
182- #endif
183-
184155 /* The IOP takes MacII-style packets, so */
185156 /* strip the initial ADB_PACKET byte. */
186157
0 commit comments