#include <linux/proc_fs.h>
#include <linux/interrupt.h>
-#include <asm/bootinfo.h>
-#include <asm/macintosh.h>
-#include <asm/macints.h>
+#include <asm/bootinfo.h>
+#include <asm/macintosh.h>
+#include <asm/macints.h>
#include <asm/mac_iop.h>
#include <asm/mac_oss.h>
/*
* Send a message
- *
+ *
* The message is placed at the end of the send queue. Afterwards if the
* channel is idle we force an immediate send of the next message in the
* queue.
if ((iop_num >= NUM_IOPS) || !iop_base[iop_num]) return;
iop_loadaddr(iop_base[iop_num], shared_ram_start);
-
+
while (code_len--) {
iop_base[iop_num]->ram_data = *code_start++;
}
if ((iop_num >= NUM_IOPS) || !iop_base[iop_num]) return;
iop_loadaddr(iop_base[iop_num], shared_ram_start);
-
+
while (code_len--) {
*code_start++ = iop_base[iop_num]->ram_data;
}
if ((iop_num >= NUM_IOPS) || !iop_base[iop_num]) return code_start;
iop_loadaddr(iop_base[iop_num], shared_ram_start);
-
+
while (code_len--) {
if (*code_start != iop_base[iop_num]->ram_data) {
return code_start;
iop_chan_state(iop_readb(iop, IOP_ADDR_RECV_STATE+i)),
iop_listeners[iop_num][i].handler?
iop_listeners[iop_num][i].devname : "");
-
+
}
len += sprintf(buf+len, "\n");
return len;
}
-
+
static int iop_get_proc_info(char *buf, char **start, off_t pos, int count)
{
int len, cnt;