diff options
author | MD Danish Anwar <danishanwar@ti.com> | 2023-08-01 12:14:22 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-08-02 12:38:11 +0300 |
commit | b8d5008f8c517b7cd61855fdb574b1ee80bcf4a3 (patch) | |
tree | 2adf505386f3066b4646bfc47ffc19bfe2ddd283 /drivers/net/ethernet/ti/icssg/icssg_prueth.h | |
parent | e9b4ece7d74b52bc5800afd4dfe32a8960a9d491 (diff) | |
download | linux-b8d5008f8c517b7cd61855fdb574b1ee80bcf4a3.tar.xz |
net: ti: icssg-prueth: Add icssg queues APIs and macros
Add icssg_queue.c file. This file introduces macros and APIs related to
ICSSG queues. These will be used by ICSSG Ethernet driver.
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: MD Danish Anwar <danishanwar@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/ti/icssg/icssg_prueth.h')
-rw-r--r-- | drivers/net/ethernet/ti/icssg/icssg_prueth.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/ethernet/ti/icssg/icssg_prueth.h b/drivers/net/ethernet/ti/icssg/icssg_prueth.h index e93488a79dbf..42fdf4005010 100644 --- a/drivers/net/ethernet/ti/icssg/icssg_prueth.h +++ b/drivers/net/ethernet/ti/icssg/icssg_prueth.h @@ -209,4 +209,9 @@ int emac_set_port_state(struct prueth_emac *emac, enum icssg_port_state_cmd state); void icssg_config_set_speed(struct prueth_emac *emac); +/* Buffer queue helpers */ +int icssg_queue_pop(struct prueth *prueth, u8 queue); +void icssg_queue_push(struct prueth *prueth, int queue, u16 addr); +u32 icssg_queue_level(struct prueth *prueth, int queue); + #endif /* __NET_TI_ICSSG_PRUETH_H */ |