Michael Wildt aa2be50933 net/bnxt: add TF register and unregister
- Add TF register/unregister support. Session got session clients to
  keep track of the ctrl-channels/function.
- Add support code to tfp layer

Signed-off-by: Michael Wildt <michael.wildt@broadcom.com>
Signed-off-by: Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com>
Reviewed-by: Randy Schacher <stuart.schacher@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
2020-07-07 23:38:27 +02:00

47 lines
822 B
C

/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2019-2020 Broadcom
* All rights reserved.
*/
/* Linked List Header File */
#ifndef _LL_H_
#define _LL_H_
/* linked list entry */
struct ll_entry {
struct ll_entry *prev;
struct ll_entry *next;
};
/* linked list */
struct ll {
struct ll_entry *head;
struct ll_entry *tail;
};
/**
* Linked list initialization.
*
* [in] ll, linked list to be initialized
*/
void ll_init(struct ll *ll);
/**
* Linked list insert
*
* [in] ll, linked list where element is inserted
* [in] entry, entry to be added
*/
void ll_insert(struct ll *ll, struct ll_entry *entry);
/**
* Linked list delete
*
* [in] ll, linked list where element is removed
* [in] entry, entry to be deleted
*/
void ll_delete(struct ll *ll, struct ll_entry *entry);
#endif /* _LL_H_ */