blob: f901ae52bf2b4174db4fad2620b029d10d6b1707 [file] [log] [blame]
Hante Meuleman9a1bb602014-07-30 13:20:03 +02001/* Copyright (c) 2014 Broadcom Corporation
2 *
3 * Permission to use, copy, modify, and/or distribute this software for any
4 * purpose with or without fee is hereby granted, provided that the above
5 * copyright notice and this permission notice appear in all copies.
6 *
7 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
8 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
9 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
10 * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
11 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
12 * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
13 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
14 */
15#ifndef BRCMFMAC_MSGBUF_H
16#define BRCMFMAC_MSGBUF_H
17
18
19#define BRCMF_H2D_MSGRING_CONTROL_SUBMIT_MAX_ITEM 20
20#define BRCMF_H2D_MSGRING_RXPOST_SUBMIT_MAX_ITEM 256
21#define BRCMF_D2H_MSGRING_CONTROL_COMPLETE_MAX_ITEM 20
22#define BRCMF_D2H_MSGRING_TX_COMPLETE_MAX_ITEM 1024
23#define BRCMF_D2H_MSGRING_RX_COMPLETE_MAX_ITEM 256
24#define BRCMF_H2D_TXFLOWRING_MAX_ITEM 512
25
26#define BRCMF_H2D_MSGRING_CONTROL_SUBMIT_ITEMSIZE 40
27#define BRCMF_H2D_MSGRING_RXPOST_SUBMIT_ITEMSIZE 32
28#define BRCMF_D2H_MSGRING_CONTROL_COMPLETE_ITEMSIZE 24
29#define BRCMF_D2H_MSGRING_TX_COMPLETE_ITEMSIZE 16
30#define BRCMF_D2H_MSGRING_RX_COMPLETE_ITEMSIZE 32
31#define BRCMF_H2D_TXFLOWRING_ITEMSIZE 48
32
33
34int brcmf_proto_msgbuf_rx_trigger(struct device *dev);
35int brcmf_proto_msgbuf_attach(struct brcmf_pub *drvr);
36void brcmf_proto_msgbuf_detach(struct brcmf_pub *drvr);
37void brcmf_msgbuf_delete_flowring(struct brcmf_pub *drvr, u8 flowid);
38
39
40#endif /* BRCMFMAC_MSGBUF_H */