4.104.114.84.95
Rev | Line | |
---|
[1ec501c] | 1 | /* |
---|
| 2 | * cp.c |
---|
| 3 | * |
---|
| 4 | * MPC8xx CPM RISC Communication Processor routines. |
---|
| 5 | * |
---|
| 6 | * Based on code (alloc860.c in eth_comm port) by |
---|
| 7 | * Jay Monkman (jmonkman@frasca.com), |
---|
| 8 | * which, in turn, is based on code by |
---|
| 9 | * W. Eric Norum (eric@skatter.usask.ca). |
---|
| 10 | * |
---|
| 11 | * Modifications by Darlene Stewart (Darlene.Stewart@iit.nrc.ca): |
---|
| 12 | * Copyright (c) 1999, National Research Council of Canada |
---|
| 13 | */ |
---|
| 14 | |
---|
| 15 | #include <rtems.h> |
---|
| 16 | #include <mpc8260.h> |
---|
| 17 | #include <mpc8260/cpm.h> |
---|
| 18 | |
---|
| 19 | /* |
---|
| 20 | * Send a command to the CPM RISC processer |
---|
| 21 | */ |
---|
| 22 | |
---|
[66c373bf] | 23 | void m8xx_cp_execute_cmd( uint32_t command ) |
---|
[1ec501c] | 24 | { |
---|
[66c373bf] | 25 | uint16_t lvl; |
---|
[1ec501c] | 26 | |
---|
| 27 | rtems_interrupt_disable(lvl); |
---|
| 28 | while (m8260.cpcr & M8260_CR_FLG) { |
---|
| 29 | continue; |
---|
| 30 | } |
---|
| 31 | |
---|
| 32 | m8260.cpcr = command | M8260_CR_FLG; |
---|
| 33 | rtems_interrupt_enable (lvl); |
---|
| 34 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.