mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
Driver for IXP4xx built-in Ethernet ports
Adds a driver for built-in IXP4xx Ethernet ports. Signed-off-by: Krzysztof Hałasa <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
This commit is contained in:
parent
770f867991
commit
dac2f83fce
5 changed files with 1280 additions and 0 deletions
|
|
@ -448,7 +448,9 @@ int npe_send_message(struct npe *npe, const void *msg, const char *what)
|
|||
return -ETIMEDOUT;
|
||||
}
|
||||
|
||||
#if DEBUG_MSG > 1
|
||||
debug_msg(npe, "Sending a message took %i cycles\n", cycles);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
@ -484,7 +486,9 @@ int npe_recv_message(struct npe *npe, void *msg, const char *what)
|
|||
return -ETIMEDOUT;
|
||||
}
|
||||
|
||||
#if DEBUG_MSG > 1
|
||||
debug_msg(npe, "Receiving a message took %i cycles\n", cycles);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -184,6 +184,8 @@ void qmgr_release_queue(unsigned int queue)
|
|||
case 3: mask[0] = 0xFF; break;
|
||||
}
|
||||
|
||||
mask[1] = mask[2] = mask[3] = 0;
|
||||
|
||||
while (addr--)
|
||||
shift_mask(mask);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue