2 * Copyright 2007 Free Software Foundation, Inc.
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 #include "memory_map.h"
19 #include "buffer_pool.h"
26 bp_disable_port(PORT_SERDES);
27 bp_disable_port(PORT_DSP);
28 bp_disable_port(PORT_ETH);
29 bp_disable_port(PORT_RAM);
31 for (i = 0; i < NBUFFERS; i++)
35 #ifndef INLINE_BUFFER_POOL
38 bp_clear_buf(int bufnum)
40 buffer_pool_ctrl->ctrl = BPC_BUFFER(bufnum) | BPC_PORT_NIL | BPC_CLR;
44 bp_disable_port(int portnum)
46 // disable buffer connections to this port
47 buffer_pool_ctrl->ctrl = BPC_BUFFER_NIL | BPC_PORT(portnum);
51 bp_receive_to_buf(int bufnum, int port, int step, int fl, int ll)
53 buffer_pool_ctrl->ctrl = (BPC_READ
62 bp_send_from_buf(int bufnum, int port, int step, int fl, int ll)
64 buffer_pool_ctrl->ctrl = (BPC_WRITE