mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-25 11:37:56 +00:00
Move debug.h to the the rge driver directory. rge.c is the only user of
debug.h. Remove debug.h references from other files.
This commit is contained in:
parent
61b993a34f
commit
79994806a1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=211996
@ -102,7 +102,6 @@ __FBSDID("$FreeBSD$");
|
||||
#include <mips/rmi/interrupt.h>
|
||||
#include <mips/rmi/msgring.h>
|
||||
#include <mips/rmi/iomap.h>
|
||||
#include <mips/rmi/debug.h>
|
||||
#include <mips/rmi/pic.h>
|
||||
#include <mips/rmi/board.h>
|
||||
#include <mips/rmi/rmi_mips_exts.h>
|
||||
|
@ -95,11 +95,12 @@ __FBSDID("$FreeBSD$");
|
||||
#include <mips/rmi/interrupt.h>
|
||||
#include <mips/rmi/msgring.h>
|
||||
#include <mips/rmi/iomap.h>
|
||||
#include <mips/rmi/debug.h>
|
||||
#include <mips/rmi/pic.h>
|
||||
#include <mips/rmi/rmi_mips_exts.h>
|
||||
#include <mips/rmi/rmi_boot_info.h>
|
||||
#include <mips/rmi/board.h>
|
||||
|
||||
#include <mips/rmi/dev/xlr/debug.h>
|
||||
#include <mips/rmi/dev/xlr/atx_cpld.h>
|
||||
#include <mips/rmi/dev/xlr/xgmac_mdio.h>
|
||||
#include <mips/rmi/dev/xlr/rge.h>
|
||||
|
@ -374,18 +374,12 @@ message_send(unsigned int size, unsigned int code,
|
||||
|
||||
for (i = 0; i < 16; i++) {
|
||||
status = msgrng_read_status();
|
||||
//dbg_msg("status = %Lx\n", status);
|
||||
|
||||
if (status & 0x6) {
|
||||
continue;
|
||||
} else
|
||||
break;
|
||||
}
|
||||
if (i == 16) {
|
||||
if (dest == 0x61)
|
||||
//dbg_msg("Processor %x: Unable to send msg to %llx\n", processor_id(), dest);
|
||||
return status & 0x6;
|
||||
}
|
||||
return msgrng_read_status() & 0x06;
|
||||
}
|
||||
|
||||
@ -417,16 +411,10 @@ static __inline__ int
|
||||
message_receive(int pri, int *size, int *code, int *src_id,
|
||||
struct msgrng_msg *msg)
|
||||
{
|
||||
int res = message_receive_fast(pri, *size, *code, *src_id, msg->msg0, msg->msg1, msg->msg2, msg->msg3);
|
||||
|
||||
#ifdef MSGRING_DUMP_MESSAGES
|
||||
if (!res) {
|
||||
dbg_msg("Received msg <%llx, %llx, %llx, %llx> <%d,%d,%d>\n",
|
||||
msg->msg0, msg->msg1, msg->msg2, msg->msg3,
|
||||
*size, *code, *src_id);
|
||||
}
|
||||
#endif
|
||||
|
||||
int res;
|
||||
|
||||
res = message_receive_fast(pri, *size, *code, *src_id,
|
||||
msg->msg0, msg->msg1, msg->msg2, msg->msg3);
|
||||
return res;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user