// SPDX-License-Identifier: GPL-2.0-only /* r8169_firmware.c: RealTek 8169/8168/8101 ethernet driver. * * Copyright (c) 2002 ShuChen <[email protected]> * Copyright (c) 2003 - 2007 Francois Romieu <[email protected]> * Copyright (c) a lot of people too. Please respect their work. * * See MAINTAINERS file for support contact information. */ #include <linux/delay.h> #include <linux/firmware.h> #include "r8169_firmware.h" enum rtl_fw_opcode { … }; struct fw_info { … } __packed; #define FW_OPCODE_SIZE … static bool rtl_fw_format_ok(struct rtl_fw *rtl_fw) { … } static bool rtl_fw_data_ok(struct rtl_fw *rtl_fw) { … } void rtl_fw_write_firmware(struct rtl8169_private *tp, struct rtl_fw *rtl_fw) { … } void rtl_fw_release_firmware(struct rtl_fw *rtl_fw) { … } int rtl_fw_request_firmware(struct rtl_fw *rtl_fw) { … }