// SPDX-License-Identifier: GPL-2.0-or-later /* * drivers/net/ethernet/rocker/rocker_tlv.c - Rocker switch device driver * Copyright (c) 2014-2016 Jiri Pirko <[email protected]> * Copyright (c) 2014 Scott Feldman <[email protected]> */ #include <linux/types.h> #include <linux/string.h> #include <linux/errno.h> #include "rocker_hw.h" #include "rocker_tlv.h" void rocker_tlv_parse(const struct rocker_tlv **tb, int maxtype, const char *buf, int buf_len) { … } int rocker_tlv_put(struct rocker_desc_info *desc_info, int attrtype, int attrlen, const void *data) { … }