/* SPDX-License-Identifier: GPL-2.0+ */ /* * Copyright (c) 2018-2019 HiSilicon Limited. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * */ #ifndef HISI_ZIP_H #define HISI_ZIP_H #include #include "../qm.h" #include "zip_usr_if.h" #undef pr_fmt #define pr_fmt(fmt) "hisi_zip: " fmt enum hisi_zip_error_type { /* negative compression */ HZIP_NC_ERR = 0x0d, }; struct hisi_zip_ctrl; enum hisi_zip_status { HISI_ZIP_RESET, }; struct hisi_zip { struct hisi_qm qm; struct list_head list; struct hisi_zip_ctrl *ctrl; unsigned long status; }; struct hisi_zip *find_zip_device(int node); int hisi_zip_register_to_crypto(void); void hisi_zip_unregister_from_crypto(void); #endif